/* ============================================================
   JIGU STORE — YANGDA-STYLE CSS
   Organized top to bottom matching the HTML sections.
   Every section is labeled so you know what it controls.
   ============================================================ */

/* ============================================================
   CSS VARIABLES — change colors/sizes here to update whole site
   ============================================================ */
:root {
    --red:        #cc0000;      /* Brand red — used for logo text and hover */
    --dark-green: #1a2e1a;      /* Top strip background — same as Yangda's dark bar */
    --white:      #ffffff;
    --black:      #050505;
    --text:       #222222;      /* Main dark text color */
    --muted:      #666666;      /* Grey text for descriptions */
    --border:     #e0e0e0;      /* Light grey border lines */
    --bg:         #ffffff;      /* Page background — white like Yangda */
    --pad:        clamp(20px, 4vw, 80px);  /* Side padding that shrinks on mobile */
}

/* ============================================================
   RESET — removes default browser spacing
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Inter Tight", Inter, Arial, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: none;
    font: inherit;
    cursor: pointer;
}
/* ============================================================
   This is for Search Bar 
   ============================================================ */
.search-overlay {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 28px 60px;
    border-bottom: 2px solid #e0e0e0;
    z-index: 9999;
    align-items: center;
    gap: 20px;
}

.search-overlay.is-open {
    display: flex;
}

/* Big search icon inside the bar */
.search-overlay svg {
    width: 32px;
    height: 32px;
    color: #aaa;
    flex-shrink: 0;
}

/* The input field — big and full width like Yangda */
.search-overlay input {
    flex: 1;                        /* takes all remaining space */
    border: none;
    outline: none;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #333;
    background: transparent;
}

.search-overlay input::placeholder {
    color: #aaa;
}

/* Close X button */
#searchClose {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #888;
    cursor: pointer;
    padding: 4px 8px;
}

#searchClose:hover {
    color: #cc0000;
}

/* ============================================================
   HEADER — TOP STRIP
   Yangda: dark green/grey thin bar at very top of page
   ============================================================ */
.top-strip {
    background: var(--dark-green);
    color: var(--white);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 7px var(--pad);
    letter-spacing: 0.03em;
}


/* ============================================================
   HEADER — LOGO ROW
   Yangda: search icon LEFT, YANGDA logo CENTER, USD+icons RIGHT
   Uses CSS grid with 3 columns to achieve this exact layout.
   ============================================================ */
.site-header {
    position: relative;       /* scrolls away with page — NOT sticky */
    background: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav-top-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;  /* left | CENTER | right */
    align-items: center;
    padding: 20px var(--pad);
    border-bottom: 1px solid var(--border);
}

/* Logo: centered column — Yangda logo is about 140px tall total */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 4rem;         /* Same large size as YANGDA text */
    font-weight: 900;
    color: var(--red);
    justify-self: center;      /* Forces logo to stay in center column */
    letter-spacing: -0.01em;
}

/* Logo circle image — Yangda logo image is about 60px */
.brand-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Right icons: NPR label + heart + person + cart */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-self: end;         /* Pushes icons to far right */
}

/* NPR currency label — Yangda shows "USD ▾" */
.currency-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #444;
    cursor: pointer;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Icon buttons: search, heart, person, cart */
.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 10px;
    display: flex;
    align-items: center;
    transition: color 180ms ease;
}

.icon-btn:hover {
    color: var(--red);
}


/* ============================================================
   HEADER — NAVIGATION ROW
   Yangda: all nav links centered on their own separate row below logo
   ============================================================ */
.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;   /* Centered like Yangda */
    gap: clamp(28px, 4vw, 64px);
    padding: 16px var(--pad);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-nav a {
    color: var(--text);
    transition: color 180ms ease;
    white-space: nowrap;
}

.site-nav a:hover {
    color: var(--red);
}


/* ============================================================
   SECTION 1: HERO BANNER
   Yangda: wide dark banner, ~500px tall, text on LEFT side, arrows on edges
   ============================================================ */
.hero-banner {
    position: relative;
    width: 100%;
    height: 520px;             
    overflow: hidden;
    background: #000;
}

/* The div that holds the background image */
.hero-inner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;       /* Vertically center the text block */
}

/* Dark gradient overlay — darkens left side for text readability */
/* Yangda: left side is dark, right side shows the product clearly */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.45) 45%,
        rgba(0, 0, 0, 0.05) 100%
    );
}

/* Text block: left side of hero */
.hero-text {
    position: relative;
    z-index: 2;
    padding-left: clamp(30px, 6vw, 100px);
    padding-right: 40px;
    max-width: 580px;
    color: var(--white);
}

/* Main title — Yangda: "SKY EYE-HT75-M" in bold white uppercase ~2.5rem */
.hero-text h1 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: 12px;
}

/* Subtitle — Yangda: "DUAL THERMAL, 5KM LASER RANGEFINDER" uppercase smaller */
.hero-text p {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 28px;
}

/* LEARN MORE button — Yangda: dark grey filled rectangle, not rounded */
.hero-btn {
    display: inline-block;
    background: rgba(50, 50, 50, 0.9);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 12px 30px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 4px;        /* Slight radius like Yangda — NOT pill shaped */
    transition: background 200ms ease, color 200ms ease;
}

.hero-btn:hover {
    background: var(--white);
    color: var(--black);
}

/* Arrow buttons on left and right edges — same as Yangda's < > arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0, 0, 0, 0.25);
    color: var(--white);
    font-size: 3rem;
    width: 46px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: background 200ms ease;
    line-height: 1;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.5);
}

.hero-arrow--left  { left: 0; }
.hero-arrow--right { right: 0; }

/* this is drop down pannel of product section */
.dropdown-panel {
    display: none;
    position: absolute;   /* ← THIS is what makes it float over the page */
    top: 100%;
    left: 50%;
    transform: translateX(-50%);  
    background: white;
    border: 1px solid #e0e0e0;
    min-width: 220px;
    z-index: 999;
}

.nav-item {
    position: relative;
}

.nav-item:hover .dropdown-panel {
    display: block;
}

.dropdown-panel a {
    display: block;
    padding: 10px 16px;
    color: #222;
    font-size: 0.88rem;
    font-weight: 600;
    border-left: 3px solid transparent;
}

.dropdown-panel a:hover {
    color: #cc0000;
    border-left: 3px solid #cc0000;
    background: #f9f9f9;
}

.nav-item {
    position: relative;
}

.nav-item:hover .dropdown-panel {
    display: block;
}

/* ============================================================
   SECTION 2: PRODUCT CATEGORY CARDS
   Yangda: 2 large cards side by side — "VTOL Drone Series" + "UAV Camera"
   Each card: light background, product image centered, title + Learn More button
   ============================================================ */
.product-cards-section {
    padding: 40px var(--pad);
    background: var(--white);
}

/* 2-column grid — same as Yangda's 2 product category cards */
.product-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
}

/* Each card: light grey background with rounded corners */
.product-card {
    position: relative;
    background: #f0f0f0;       /* Light grey like Yangda's card background */
    border-radius: 12px;
    overflow: hidden;
    height: 440px;             /* Yangda cards are about 430-440px tall */
    display: flex;
    flex-direction: column;
}

/* Product image fills the card */
.product-card img {
    width: 100%;
    height: 340px;             /* Image takes top portion of card */
    object-fit: cover;
    object-position: center;
    transition: transform 600ms ease;
}

.product-card:hover img {
    transform: scale(1.04);
}

/* Card bottom: title + button centered */
.product-card-body {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #f0f0f0;
}

/* Card title — Yangda: "VTOL Drone Series" in medium weight */
.product-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.01em;
}

/* Learn More button — Yangda: dark grey pill button */
.product-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4a4a4a;
    color: var(--white);
    padding: 10px 22px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 999px;      /* Pill shape like Yangda's Learn More */
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: background 200ms ease;
}

.product-card-btn:hover {
    background: var(--red);
}


/* ============================================================
   SECTION 3: DARK FEATURE BANNER
   Yangda: full-width dark image "Professional Gimbal Manufacturer" with play button
   This is a wide dark dramatic photo with centered white title and play button
   ============================================================ */
.dark-feature-banner {
    position: relative;
    width: 100%;
    height: 480px;             /* Yangda's dark feature banner height */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Dark overlay over the banner image */
.dark-feature-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
}

/* Centered text + button block */
.dark-feature-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

/* Title — Yangda: "Professional Gimbal Manufacturer" bold white centered */
.dark-feature-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.8rem);
    font-weight: 800;
    letter-spacing: 0.01em;
    text-align: center;
}

/* Play/action button — Yangda: white circle with play triangle icon */
.play-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 3px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    transition: background 220ms ease, transform 220ms ease;
}

.play-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}


/* ============================================================
   SECTION 4: ONE-STOP SOLUTIONS
   Yangda: "ONE-STOP UAV SOLUTION PROVIDER" heading + 4 application cards
   Cards have: full background image + overlay + title + description + Learn More
   ============================================================ */
.solutions-section {
    padding: 64px var(--pad);
    background: var(--white);
}

/* Section heading — Yangda: "ONE-STOP UAV SOLUTION PROVIDER" large bold uppercase */
.solutions-heading {
    text-align: center;
    margin-bottom: 48px;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 48px;
}

.solutions-heading h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text);
    margin-bottom: 10px;
}

.solutions-heading p {
    font-size: 1rem;
    color: var(--muted);
}

/* 4 cards in a row — same as Yangda's 4 application cards */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
}

/* Each solution card: tall card with full background image */
.solution-card {
    position: relative;
    height: 480px;             /* Yangda cards are about 480px tall */
    border-radius: 12px;
    overflow: hidden;
    background: #222;
    display: flex;
    align-items: flex-end;
}

/* Card background image */
.solution-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
    transition: transform 600ms ease, opacity 300ms ease;
}

.solution-card:hover img {
    transform: scale(1.05);
    opacity: 0.85;
}

/* Dark gradient at bottom so text is readable */
.solution-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.05) 100%
    );
}

/* Text content at bottom of card */
.solution-card-body {
    position: relative;
    z-index: 2;
    padding: 24px 20px;
    color: var(--white);
    width: 100%;
    text-align: center;
}

/* Card title — Yangda: "Pipeline Inspection" bold white */
.solution-card-body h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 10px;
}

/* Card description text */
.solution-card-body p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Learn More button inside card — Yangda: dark grey pill button */
.solution-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(60, 60, 60, 0.85);
    color: var(--white);
    padding: 9px 22px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 999px;
    letter-spacing: 0.04em;
    transition: background 200ms ease;
}

.solution-card-btn:hover {
    background: var(--red);
}


/* ============================================================
   SECTION 5: EVENTS
   Yangda: "Event" section — 3 cards with photo + date + bold title
   Photo is on TOP, date and title stack BELOW the photo
   ============================================================ */
.events-section {
    padding: 64px var(--pad);
    background: var(--white);
    border-top: 1px solid var(--border);
}

/* Section heading — Yangda: "Event" large centered heading */
.events-heading {
    text-align: center;
    margin-bottom: 48px;
}

.events-heading h2 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
}

/* 3 cards in a row */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1280px;
    margin: 0 auto;
}

/* Each event card */
.event-card {
    border-radius: 10px;
    overflow: hidden;
    background: var(--white);
    transition: transform 260ms ease;
}

.event-card:hover {
    transform: translateY(-4px);
}

/* Photo container — Yangda photo is about 230px tall */
.event-card-img {
    width: 100%;
    height: 230px;
    overflow: hidden;
    border-radius: 8px;
    background: #eee;
}

.event-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.event-card:hover .event-card-img img {
    transform: scale(1.04);
}

/* Text area below photo */
.event-card-body {
    padding: 18px 4px;
}

/* Date — Yangda: "25th Dec 2025" in muted grey small text */
.event-card-body time {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 10px;
    font-weight: 500;
    text-align: center;
}

/* Event title — Yangda: bold dark text, centered, 2-3 lines */
.event-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.45;
    text-align: center;
}


/* ============================================================
   FOOTER
   Dark background with 4 columns
   ============================================================ */
.site-footer {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: clamp(24px, 4vw, 52px);
    background: #050505;
    color: rgba(255, 255, 255, 0.72);
    padding: clamp(48px, 7vw, 88px) var(--pad) 28px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.footer-brand img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.footer-brand-block p {
    max-width: 340px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-column h3 {
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.footer-column a,
.footer-column span {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    transition: color 180ms ease;
}

.footer-column a:hover {
    color: var(--red);
}

.copyright {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    padding-top: 20px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}


/* ============================================================
   REVEAL ANIMATION — items fade up as you scroll
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms ease var(--delay, 0ms),
                transform 600ms ease var(--delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   RESPONSIVE — TABLET (max 1100px)
   ============================================================ */
@media (max-width: 1100px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-footer {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ============================================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================================ */
@media (max-width: 768px) {
    /* Hero shorter on mobile */
    .hero-banner {
        height: 380px;
    }

    /* Product cards stack vertically */
    .product-cards-grid {
        grid-template-columns: 1fr;
    }

    /* Solutions: 2 columns on mobile */
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .solution-card {
        height: 360px;
    }

    /* Events: 1 column on mobile */
    .events-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-inline: auto;
    }

    /* Footer: single column on mobile */
    .site-footer {
        grid-template-columns: 1fr;
    }

    /* Nav row: smaller gap on mobile */
    .site-nav {
        gap: 16px;
        font-size: 0.75rem;
        flex-wrap: wrap;
        padding: 12px var(--pad);
    }

    /* Logo row: tighter on mobile */
    .brand {
        font-size: 1.6rem;
    }

    .brand-logo {
        width: 44px;
        height: 44px;
    }

    /* Dark feature banner shorter on mobile */
    .dark-feature-banner {
        height: 320px;
    }
}


/* ============================================================
   RESPONSIVE — SMALL PHONES (max 480px)
   ============================================================ */
@media (max-width: 480px) {
    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .nav-icons {
        gap: 12px;
    }

    .currency-label {
        display: none;  /* Hide NPR label on very small screens */
    }
    /* ============================================================
   FILTER BUTTONS
   ============================================================ */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #444;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    cursor: pointer;
    transition: all 200ms ease;
}

.filter-btn:hover {
    border-color: #cc0000;
    color: #cc0000;
}

/* Active state — the currently selected filter */
.filter-btn.active {
    background: #cc0000;
    border-color: #cc0000;
    color: white;
}

}