/*
 * Eastseas Trading Est. — Home Page CSS
 * Layout: Swiper Hero → 3 Floating Cards → Remaining Sections
 * ============================================================
 */

/* ==========================================================================
   EASTSEAS TRADING EST. — HOME PAGE STYLES
   ========================================================================== */

.relative-container { position:relative; z-index:2; }
.hs-slide-bg1 { background-image:url('../images/banner/hero_supply_v2.png'); }
.hs-slide-bg2 { background-image:url('../images/banner/contact.png'); }
.hs-slide-bg3 { background-image:url('../images/banner/hero_crane_v2.png'); }
.hs-slide-bg4 { background-image:url('../images/banner/hero_valves_v2.png'); }
.hs-slide-bg5 { background-image:url('../images/banner/about_banner.jpg'); }
.ind-bg-oil { background-image:url('../images/industries/ind_oil_gas.jpg'); }
.ind-bg-construction { background-image:url('../images/industries/ind_construction.jpg'); }
.ind-bg-mechanical { background-image:url('../images/industries/ind_mechanical.jpg'); }
.ind-bg-utilities { background-image:url('../images/industries/ind_utilities.jpg'); }
.c-blue { --feat-c:#0284c7; }
.c-green { --feat-c:#059669; }
.c-purple { --feat-c:#7c3aed; }

/* ── CSS Custom Properties (page-level) ── */
:root {
    --h-navy:       #0b122b;
    --h-navy2:      #111B3D;
    --h-blue:       #283890;
    --h-cyan:       #00AEEF;
    --h-orange:     #F15A24;
    --h-green:      #25D366;
    --h-white:      #ffffff;
    --h-transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────────────────────────────────────────
   1. SWIPER HERO BANNER
───────────────────────────────────────────────────────────── */
.hero-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 620px;
    overflow: hidden; /* keep this — move cards inside so they don't clip */
}

/* Swiper fills entire hero */
.hero-swiper {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hs-slide {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Slide overlays - Left to Right Fade (desktop) */
.hs-overlay {
    position: absolute;
    inset: 0;
}
.hs-overlay-blue {
    background: linear-gradient(90deg,
        rgba(11, 18, 43, 0.95) 0%,
        rgba(11, 18, 43, 0.90) 25%,
        rgba(11, 18, 43, 0.82) 50%,
        rgba(11, 18, 43, 0.70) 75%,
        rgba(11, 18, 43, 0.55) 90%,
        rgba(11, 18, 43, 0.35) 100%) !important;
}
.hs-overlay-dark {
    background: linear-gradient(90deg,
        rgba(6, 10, 26, 0.95) 0%,
        rgba(6, 10, 26, 0.90) 25%,
        rgba(6, 10, 26, 0.82) 50%,
        rgba(6, 10, 26, 0.70) 75%,
        rgba(6, 10, 26, 0.55) 90%,
        rgba(6, 10, 26, 0.35) 100%) !important;
}
.hs-overlay-warm {
    background: linear-gradient(90deg,
        rgba(11, 18, 43, 0.95) 0%,
        rgba(11, 18, 43, 0.90) 25%,
        rgba(11, 18, 43, 0.82) 50%,
        rgba(11, 18, 43, 0.70) 75%,
        rgba(11, 18, 43, 0.55) 90%,
        rgba(11, 18, 43, 0.35) 100%) !important;
}
.hs-overlay-teal {
    background: linear-gradient(90deg,
        rgba(5, 15, 38, 0.95) 0%,
        rgba(5, 15, 38, 0.90) 25%,
        rgba(5, 15, 38, 0.82) 50%,
        rgba(5, 15, 38, 0.70) 75%,
        rgba(5, 15, 38, 0.55) 90%,
        rgba(5, 15, 38, 0.35) 100%) !important;
}

/* Mobile: remove directional gradient — use smooth uniform overlay */
@media (max-width: 768px) {
    .hs-overlay-blue,
    .hs-overlay-warm {
        background: rgba(11, 18, 43, 0.72) !important;
    }
    .hs-overlay-dark {
        background: rgba(6, 10, 26, 0.72) !important;
    }
    .hs-overlay-teal {
        background: rgba(5, 15, 38, 0.72) !important;
    }
}

/* Swiper pagination override */
.hero-pagination {
    bottom: 36px !important;
}
.hero-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.35);
    opacity: 1;
    transition: all 0.3s ease;
}
.hero-pagination .swiper-pagination-bullet-active {
    background: #fff;
    width: 28px;
    border-radius: 4px;
}

/* ── Override style.css .hero background on hero-banner ── */
/* The swiper slides provide all backgrounds — no base gradient needed */
.hero-banner {
    background: #0b122b !important; /* flat dark base, slides overlay on top */
}

/* Cancel the white ::before fade from style.css .hero */
.hero-banner::before {
    display: none !important;
}

/* Text content — sits above swiper (z-index: 2) */

/* ── Override style.css .hero-content (which centers content) ── */
.hero-banner .hero-content {
    /* Keep in normal flow — NOT absolute, so it respects the fixed header */
    position: relative;
    z-index: 2;
    /* Cancel style.css centering */
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    animation: none !important;
}

.hero-content-inner {
    pointer-events: all;
    /* ── Top padding must clear topbar (~45px) + navbar (~90px) = ~135px
       Add extra breathing room = 120px total looks balanced          ── */
    padding: 120px 24px 60px 24px;
    width: 100%;
    /* No margin:auto — stay anchored to LEFT edge of viewport */
    margin: 0;
    /* Limit text block to left portion so image shows on right side */
    max-width: 660px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* Badge pill -> Premium text style */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--h-cyan);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: heroBadgeFade 0.8s ease both;
}

@keyframes heroBadgeFade {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Main H1 */
.hero-h1 {
    font-family: var(--font-headings);
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
    animation: heroTextSlide 0.9s ease 0.15s both;
    text-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

@keyframes heroTextSlide {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-accent {
    color: var(--h-cyan);
    font-style: normal;
    position: relative;
}

/* Description */
.hero-desc {
    font-family: var(--font-headings); /* Cleaner body font */
    font-size: 1.15rem;
    font-weight: 300;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    max-width: 580px;
    margin-bottom: 40px;
    animation: heroTextSlide 0.9s ease 0.3s both;
    text-align: left;
}

/* CTA buttons */
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-start;  /* Left align the buttons */
    margin-bottom: 56px;
    animation: heroTextSlide 0.9s ease 0.45s both;
}

.btn-primary-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 36px;
    background: linear-gradient(135deg, var(--h-cyan) 0%, var(--h-blue) 100%);
    color: #fff;
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 1.05rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--h-transition);
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-primary-hero:hover {
    transform: translateY(-4px) scale(1.02);
    color: #fff;
}

.btn-wa-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 36px;
    background: rgba(37, 211, 102, 0.15);
    color: #fff;
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 1.05rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--h-transition);
    border: 1px solid rgba(37, 211, 102, 0.5);
    backdrop-filter: blur(10px);
}
.btn-wa-hero:hover {
    background: var(--h-green);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
    border-color: var(--h-green);
}

/* Stats bar — hidden on desktop, visible only on mobile */
.hero-stats-bar {
    display: none; /* Hidden on desktop */
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2), inset 0 0 0 1px rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 20px 32px;
    width: fit-content;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: heroTextSlide 0.9s ease 0.6s both;
    margin: 0;  /* left align the stats bar */
}

.hsb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0 24px;
}
.hsb-item:first-child { padding-left: 0; }
.hsb-item:last-child  { padding-right: 0; }

.hsi-num {
    font-family: var(--font-headings);
    font-size: 1.9rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -1px;
}

.hsb-item span {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.hsb-sep {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

/* ── Business Credentials Overlay — Modern Floating Cards ── */
.hero-credentials {
    position: absolute;
    right: 215px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: heroTextSlide 0.9s ease 0.6s both;
}

.hero-credentials-mobile {
    display: none;
}

.hero-cred-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(8, 14, 38, 0.72);   /* much more opaque dark navy */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 14px 20px;
    min-width: 220px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45),
                0 2px 8px rgba(0,0,0,0.3),
                inset 0 1px 0 rgba(255,255,255,0.08);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    cursor: default;
}

/* Glowing top-edge accent line hidden */
.hero-cred-item::before {
    display: none;
}

.hero-cred-item:hover {
    background: rgba(8, 14, 38, 0.88);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateX(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.55),
                0 4px 12px rgba(0,0,0,0.4),
                inset 0 1px 0 rgba(255,255,255,0.12);
}

/* Per-card accent colors */
.hero-cred-item:nth-child(1) { --cred-accent: linear-gradient(90deg, #00AEEF, #0284c7); }
.hero-cred-item:nth-child(2) { --cred-accent: linear-gradient(90deg, #10b981, #059669); }
.hero-cred-item:nth-child(3) { --cred-accent: linear-gradient(90deg, #f59e0b, #d97706); }

/* Icon box */
.hero-cred-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.08);
}
.hero-cred-item:nth-child(1) .hero-cred-icon { background: rgba(0,174,239,0.20);  color: #00AEEF; box-shadow: 0 0 12px rgba(0,174,239,0.2); }
.hero-cred-item:nth-child(2) .hero-cred-icon { background: rgba(16,185,129,0.20); color: #10b981; box-shadow: 0 0 12px rgba(16,185,129,0.2); }
.hero-cred-item:nth-child(3) .hero-cred-icon { background: rgba(245,158,11,0.20); color: #f59e0b; box-shadow: 0 0 12px rgba(245,158,11,0.2); }

.hero-cred-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hero-cred-label {
    font-size: 0.60rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: rgba(255,255,255,0.5);
    line-height: 1;
}

.hero-cred-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.3px;
    font-family: var(--font-headings);
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.hero-cred-divider { display: none; }

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    right: 50px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.6);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.mouse-icon {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 16px;
    position: relative;
    display: flex;
    justify-content: center;
}
.wheel {
    width: 4px;
    height: 8px;
    background: var(--h-cyan);
    border-radius: 2px;
    margin-top: 6px;
    animation: mouseScroll 1.5s infinite ease-in-out;
}
@keyframes mouseScroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* ─────────────────────────────────────────────────────────────
   2. SECTION EYEBROW (reusable)
───────────────────────────────────────────────────────────── */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--h-cyan);
    margin-bottom: 12px;
}
.section-eyebrow.light { color: rgba(0,174,239,0.85); }

/* ─────────────────────────────────────────────────────────────
   3. PRODUCT TICKER STRIP
───────────────────────────────────────────────────────────── */
.ticker-strip {
    background: #111B3D;
    overflow: hidden;
    padding: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ticker-inner {
    display: flex;
    width: max-content;
    animation: tickerScroll 40s linear infinite;
    padding: 16px 0;
}

.ticker-inner span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    padding: 0 32px;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.ticker-inner span i {
    color: var(--h-cyan);
    font-size: 0.5rem;
}

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ─────────────────────────────────────────────────────────────
   4. CARDS SHOWCASE SECTION (3 Floating Flip Cards)
───────────────────────────────────────────────────────────── */
.cards-showcase-section {
    background: linear-gradient(150deg, #0b122b 0%, #0f1a3d 50%, #0b122b 100%);
    padding: 90px 0 100px;
    position: relative;
    overflow: hidden;
}

/* Background decorations */
.css-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}
.css-glow-left {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,174,239,0.14) 0%, transparent 70%);
    top: -100px; left: -150px;
    animation: glowDrift 12s infinite alternate ease-in-out;
}
.css-glow-right {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(241,90,36,0.10) 0%, transparent 70%);
    bottom: -80px; right: -100px;
    animation: glowDrift 16s infinite alternate-reverse ease-in-out;
}
@keyframes glowDrift {
    from { transform: translate(0, 0); }
    to   { transform: translate(30px, -20px); }
}

.css-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Section header */
.css-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.css-title {
    font-family: var(--font-headings);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 14px;
}

.css-desc {
    color: rgba(255,255,255,0.55);
    font-size: 1rem;
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── PREMIUM PRODUCT CAROUSEL ── */
.wavy-loop-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: visible; 
    /* padding: 60px 0 100px; */
    z-index: 2;
}

.wavy-loop-container .swiper-wrapper {
    /* Critical for continuous marquee-like swiper scrolling */
    transition-timing-function: linear !important;
}

.wavy-loop-track {
    display: flex;
    box-sizing: border-box;
    align-items: center; 
}

/* Each card wrapper */
.wavy-card-wrap {
    width: 300px; /* Slightly wider, premium feel */
    flex-shrink: 0;
    position: relative;
    transition: transform 0.4s ease;
}

/* Swiper slide effects (Performance Optimized) */
.swiper-slide {
    opacity: 0.3;
    /* Removed expensive blur/grayscale for mobile to prevent lag */
    transition: opacity 0.4s ease;
}

/* Base Mobile: Only the very center card is highlighted */
.swiper-slide-active {
    opacity: 1;
    z-index: 10;
}

/* Desktop: Restore premium filters and highlight neighbors */
@media (min-width: 992px) {
    .swiper-slide {
        filter: grayscale(100%) blur(2px);
        transition: opacity 0.4s ease, filter 0.4s ease;
    }
    
    .swiper-slide-active {
        filter: grayscale(0%) blur(0px);
    }
    
    .swiper-slide-prev,
    .swiper-slide-next {
        opacity: 1;
        filter: grayscale(0%) blur(0px);
        z-index: 9;
    }
}

/* The card face */
.fp-card-face {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 340px; /* Force card height */
    /* Lighter shadow for mobile performance */
    box-shadow: 0 10px 30px rgba(0,0,0,0.25),
                0 0 0 1px rgba(255,255,255,0.07);
    transition: transform 0.26s cubic-bezier(0.4,0,0.6,1),
                box-shadow 0.3s ease;
    transform-origin: center;
}

@media (min-width: 992px) {
    .fp-card-face {
        box-shadow: 0 24px 70px rgba(0,0,0,0.45),
                    0 0 0 1px rgba(255,255,255,0.07);
    }
}

.fp-card-wrap:hover .fp-card-face {
    box-shadow: 0 36px 90px rgba(0,0,0,0.55),
                0 0 0 2px rgba(0,174,239,0.45);
}

/* Flip states (JS-driven) */
.fp-card-face.fp-out    { transform: rotateY(90deg);  transition: transform 0.26s cubic-bezier(0.4,0,1,1); }
.fp-card-face.fp-in     { transform: rotateY(-90deg); transition: none; }
.fp-card-face.fp-reveal { transform: rotateY(0deg);   transition: transform 0.28s cubic-bezier(0,0,0.2,1); }

/* Card image */
.fp-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #e2e8f0;
    z-index: 0;
}

.fp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease;
}
.fp-card-wrap:hover .fp-card-img img { transform: scale(1.06); }

/* Gradient on image bottom */
.fp-card-img::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(11,18,43,0.5), transparent);
    pointer-events: none;
}

/* Card number badge */
.fp-card-num {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px; height: 36px;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headings);
    font-size: 0.8rem;
    font-weight: 900;
    color: rgba(255,255,255,0.9);
    z-index: 2;
    letter-spacing: 0;
}

/* Card body */
.fp-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 20px 24px;
    background: rgba(11, 18, 43, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.fp-cat-tag {
    font-size: 0.63rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: yellow;
    display: block;
}

.fp-card-body h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff; /* White text on dark glass */
    margin: 0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fp-enquire-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    padding: 9px 14px;
    background: var(--h-green);
    border-radius: 9px;
    transition: var(--h-transition);
    margin-top: 4px;
    width: fit-content;
}
.fp-enquire-btn:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,211,102,0.3);
}

/* View-all button */
.css-cta {
    text-align: center;
    margin-top: 48px;
    position: relative;
    z-index: 2;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 28px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: color 0.3s ease, border-color 0.3s ease, gap 0.3s ease;
    overflow: hidden;
    z-index: 1;
}
.btn-view-all::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: var(--h-cyan);
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50px;
    z-index: -1;
}
.btn-view-all:hover {
    color: #fff;
    border-color: var(--h-cyan);
    gap: 12px;
}
.btn-view-all:hover::after {
    transform: scale(1);
}

/* ─────────────────────────────────────────────────────────────
   5. CATEGORY GRID
───────────────────────────────────────────────────────────── */
.cats-section {
    background: #f8fafc;
    padding: 90px 0;
}

.cats-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.cats-header-left { max-width: 520px; }

.cats-title {
    font-family: var(--font-headings);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 900;
    color: var(--h-navy2);
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 10px;
}

.cats-desc {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.65;
}

.cats-view-all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--h-blue);
    text-decoration: none;
    white-space: nowrap;
    
    /* Nav Pill Styles */
    position: relative;
    padding: 10px 24px;
    border: 1px solid rgba(40,56,144,0.2);
    border-radius: 50px;
    transition: color 0.3s ease, border-color 0.3s ease, gap 0.3s ease;
    overflow: hidden;
    z-index: 1;
}

.cats-view-all::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: var(--h-blue);
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50px;
    z-index: -1;
}

.cats-view-all:hover { 
    color: #fff; 
    border-color: var(--h-blue); 
    gap: 12px;
}
.cats-view-all:hover::after {
    transform: scale(1);
}

/* Grid */
/* ─────────────────────────────────────────────────────────────
   BENTO GRID LAYOUT
───────────────────────────────────────────────────────────── */
.cats-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 16px;
    grid-auto-flow: dense;
}

.bento-tile {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    text-decoration: none;
    
    /* Entry Animation Base State */
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s ease;
    
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Active state triggered by locomotive scroll */
.bento-tile.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger delays for a cascading reveal effect */
.bento-tile:nth-child(1) { transition-delay: 0s; }
.bento-tile:nth-child(2) { transition-delay: 0.05s; }
.bento-tile:nth-child(3) { transition-delay: 0.1s; }
.bento-tile:nth-child(4) { transition-delay: 0.15s; }
.bento-tile:nth-child(5) { transition-delay: 0.2s; }
.bento-tile:nth-child(6) { transition-delay: 0.25s; }
.bento-tile:nth-child(7) { transition-delay: 0.3s; }
.bento-tile:nth-child(8) { transition-delay: 0.35s; }
.bento-tile:nth-child(9) { transition-delay: 0.4s; }
.bento-tile:nth-child(10) { transition-delay: 0.45s; }

/* Span Classes */
.bento-span-2-col { grid-column: span 2; }
.bento-span-2-row { grid-row: span 2; }

/* Background & Overlay */
.bento-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), filter 0.7s ease;
    filter: brightness(0.65);
    z-index: 0;
}
.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 18, 43, 0.9) 0%, rgba(11, 18, 43, 0.1) 60%);
    z-index: 1;
    transition: opacity 0.4s ease;
}

/* Content */
.bento-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.bento-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
}
.bento-text h3 {
    font-family: var(--font-headings);
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    padding-top: 8px; /* align vertically with icon */
}

/* Special styling for large span items */
.bento-span-2-col.bento-span-2-row .bento-text h3 {
    font-size: 2rem;
    padding-top: 2px;
}
.bento-span-2-col.bento-span-2-row .bento-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
}

/* Arrow indicator */
.bento-arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
}

/* Hover Interactions */
.bento-tile.active:hover {
    transform: translateY(-5px) scale(1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    /* Reset delay on hover so it responds instantly */
    transition-delay: 0s;
}
.bento-tile:hover .bento-bg {
    transform: scale(1.05);
    filter: brightness(0.85);
}
.bento-tile:hover .bento-overlay {
    opacity: 0.8; /* Make gradient slightly more intense */
}
.bento-tile:hover .bento-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ─────────────────────────────────────────────────────────────
   6. INDUSTRIES
───────────────────────────────────────────────────────────── */
.industries-section {
    padding: 90px 0;
    background: var(--h-navy);
    position: relative;
    overflow: hidden;
}
.ind-bg-layer {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}
.ind-header { text-align: center; margin-bottom: 52px; }
.ind-title {
    font-family: var(--font-headings);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
}
.ind-sub { color: rgba(255,255,255,0.55); font-size: 0.97rem; max-width: 500px; margin: 0 auto; line-height: 1.65; }

.ind-accordion-container {
    display: flex;
    gap: 16px;
    height: 500px;
    margin:0;
    padding:0;
    width: 100%;
}

.ind-accordion-panel {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
}

/* On hover or click, expand the panel */
.ind-accordion-panel:hover,
.ind-accordion-panel.active {
    flex: 5;
    border-color: rgba(0, 174, 239, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Background image handling */
.ind-panel-bg {
    position: absolute;
    inset: 0;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.2) blur(1px);
    transition: filter 0.6s ease, transform 0.6s ease;
}
.ind-accordion-panel:hover .ind-panel-bg,
.ind-accordion-panel.active .ind-panel-bg {
    filter: brightness(0.9) blur(0px);
    transform: scale(1.03);
}


/* Content layout */
.ind-panel-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    background: linear-gradient(to top, rgba(11, 18, 43, 0.9) 0%, rgba(11, 18, 43, 0) 60%);
}

.ind-panel-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.4s ease;
    z-index: 2;
}
.ind-accordion-panel:hover .ind-panel-icon,
.ind-accordion-panel.active .ind-panel-icon {
    transform: scale(1.1);
    background: var(--h-cyan);
    color: #fff;
    border-color: transparent;
}

/* Text handling */
.ind-panel-text {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform: translate(-50%, 50%);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    white-space: nowrap;
    pointer-events: none;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ind-accordion-panel:hover .ind-panel-text,
.ind-accordion-panel.active .ind-panel-text {
    pointer-events: all;
    white-space: normal;
    left: 30px;
    bottom: 30px;
    transform: translate(0, 0);
    align-items: flex-start;
}

.ind-panel-text h3 {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    
    transform: rotate(-90deg);
    transform-origin: center center;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    letter-spacing: 2px;
}

.ind-accordion-panel:hover .ind-panel-text h3,
.ind-accordion-panel.active .ind-panel-text h3 {
    font-size: 1.8rem;
    color: #fff;
    transform: rotate(0deg);
    margin-bottom: 8px;
    letter-spacing: normal;
}

.ind-panel-text p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.5;
    display: none; /* unused */
}

.ind-panel-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--h-cyan);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.ind-accordion-panel:hover .ind-panel-cta,
.ind-accordion-panel.active .ind-panel-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.ind-panel-cta:hover {
    color: #fff;
}

/* ─────────────────────────────────────────────────────────────
   7. WHY EASTSEAS
───────────────────────────────────────────────────────────── */
.why-section {
    width: 100%;
    padding: 100px 0;
    background: transparent;
    overflow: hidden;
}
.why-container {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.why-img-col {
    position: relative;
    /* No overflow:hidden — badge card must NOT be clipped */
    min-height: 600px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.why-main-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
    border-radius: 24px; /* Match parent radius since no overflow:hidden */
    transition: transform 8s ease;
}
.why-section:hover .why-main-img { transform: scale(1.04); }
.why-badge-card {
    position: absolute;
    bottom: 0;
    right: 0;             /* Flush to the right edge of the image */
    z-index: 10;
    background: rgba(11,18,43,0.92);
    border: 1px solid rgba(255,255,255,0.15);
    border-top: 1px solid rgba(255,255,255,0.15);
    border-right: none;   /* No border on right — touching the edge */
    border-bottom: none;  /* No border on bottom — touching the edge */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 14px 0 24px 0; /* top-left rounded, bottom-right matches image corner radius */
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 220px;
    box-shadow: -4px -4px 24px rgba(0,0,0,0.3);
}
.why-badge-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(0,174,239,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: var(--h-cyan);
    flex-shrink: 0;
}
.why-badge-card strong { display: block; color: #fff; font-size: 0.9rem; font-weight: 800; }
.why-badge-card span   { color: rgba(255,255,255,0.55); font-size: 0.75rem; }

.why-content-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* A wrapper inside the column to limit text width naturally */
.why-content-inner {
    max-width: 100%;
}
.why-heading {
    font-family: var(--font-headings);
    font-size: clamp(1.9rem, 2.8vw, 2.4rem);
    font-weight: 900;
    color: var(--h-navy2);
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin: 12px 0 18px;
}
.why-heading em { color: var(--h-cyan); font-style: normal; }
.why-para { color: #64748b; font-size: 1.05rem; line-height: 1.8; margin-bottom: 40px; }
.why-features { display: flex; flex-direction: column; gap: 24px; margin-bottom: 48px; }
.why-feat { 
    display: flex; 
    gap: 20px; 
    align-items: flex-start; 
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s ease;
}
.why-feat:hover {
    background: #fff;
    border-color: rgba(0,174,239,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}
.why-feat-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--feat-c) 10%, transparent);
    color: var(--feat-c);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.why-feat-text h4 { font-size: 1.05rem; font-weight: 800; color: var(--h-navy2); margin-bottom: 6px; }
.why-feat-text p  { font-size: 0.9rem; color: #64748b; line-height: 1.6; }
.why-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--h-blue);
    text-decoration: none;
    width: fit-content;

    /* Nav Pill Styles */
    position: relative;
    padding: 10px 24px;
    border: 1px solid rgba(40,56,144,0.2);
    border-radius: 50px;
    transition: color 0.3s ease, border-color 0.3s ease, gap 0.3s ease;
    overflow: hidden;
    z-index: 1;
}

.why-more-btn::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: var(--h-blue);
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50px;
    z-index: -1;
}

.why-more-btn:hover { 
    color: #fff; 
    border-color: var(--h-blue); 
    gap: 12px; 
}
.why-more-btn:hover::after {
    transform: scale(1);
}

/* ─────────────────────────────────────────────────────────────
   8. ENQUIRY CTA BANNER
───────────────────────────────────────────────────────────── */
.enquiry-cta-banner {
    background: linear-gradient(135deg, #0b122b 0%, #16224d 50%, #0b122b 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    /* padding: 100px 0; */
    position: relative;
    overflow: hidden;

    /* margin: 40px 0; Creates separation from other sections */
}

/* Internal glows for the banner so it doesn't rely on the global background */
.enquiry-cta-banner::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,174,239,0.15) 0%, transparent 70%);
    top: -200px; left: -100px;
    border-radius: 50%;
    pointer-events: none;
}
.enquiry-cta-banner::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(241,90,36,0.12) 0%, transparent 70%);
    bottom: -150px; right: -50px;
    border-radius: 50%;
    pointer-events: none;
}

.ecb-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}
.ecb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--h-cyan);
    margin-bottom: 20px;
}

.ecb-text h2 {
    font-family: var(--font-headings);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 16px;
}
.ecb-text h2 em { color: var(--h-cyan); font-style: normal; }
.ecb-text p { color: rgba(255,255,255,0.7); font-size: 1.05rem; line-height: 1.65; max-width: 480px; }
.ecb-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
/* Trailing old button CSS removed */
/* ─────────────────────────────────────────────────────────────
   9. CLIENTS MARQUEE
───────────────────────────────────────────────────────────── */
.clients-section { background: #fff; padding: 80px 0 40px; }
.clients-header {
    text-align: center;
    margin-bottom: 50px;
}
.clients-title {
    font-family: var(--font-headings);
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    font-weight: 900;
    color: var(--h-navy2);
    letter-spacing: -1px;
    margin-bottom: 8px;
}
.clients-header p { color: #64748b; font-size: 0.93rem; }
.marquee-wrap { position: relative; overflow: hidden; padding: 20px 0 60px; }
.marquee-fade-left, .marquee-fade-right {
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.marquee-fade-left  { left:0;  background: linear-gradient(to right, #fff, transparent); }
.marquee-fade-right { right:0; background: linear-gradient(to left, #fff, transparent); }
.marquee-track {
    display: flex;
    gap: 32px;
    width: max-content;
    animation: marqueeScroll 50s linear infinite;
}
.mlogo-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    height: 140px;
    flex-shrink: 0;
}
.mlogo-card.wide { min-width: 280px; }
.mlogo-card img { 
    max-height: 90px; 
    max-width: 190px; 
    object-fit: contain; 
}
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ─────────────────────────────────────────────────────────────
   10. RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .cats-grid { grid-template-columns: repeat(3, 1fr); }
    .ind-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .why-container { grid-template-columns: 1fr; gap: 40px; }
    .why-img-col { min-height: 380px; }
    .why-content-col { padding: 60px 40px; }
    .cards-trio { gap: 20px; }
    .fp-card-wrap { width: 200px; }
}

@media (max-width: 768px) {
    .hero-banner { height: 90vh; }
    .hero-h1 { font-size: 2.8rem; }
    .hero-desc { font-size: 1rem; }
    .hero-stats-bar { padding: 14px 18px; flex-wrap: wrap; justify-content: center; gap: 12px; }
    .hsb-item { padding: 0 10px; }
    .hsi-num { font-size: 1.5rem; }
    
    .cats-header { flex-direction: column; align-items: flex-start; }
    
    /* Bento Grid Scaling for Mobile */
    .cats-bento-grid { grid-auto-rows: 150px; gap: 10px; }
    .bento-tile { border-radius: 12px; } /* Reduce radius for smaller tiles */
    .bento-content { padding: 12px; flex-direction: column; gap: 8px; }
    .bento-icon { width: 32px; height: 32px; font-size: 0.9rem; border-radius: 8px; }
    .bento-text h3 { font-size: 0.85rem; padding-top: 0; line-height: 1.15; }
    .bento-span-2-col.bento-span-2-row .bento-text h3 { font-size: 1.3rem; }
    .bento-span-2-col.bento-span-2-row .bento-icon { width: 40px; height: 40px; font-size: 1.1rem; }
    .bento-arrow { display: none; } /* Hide arrow to save space */
    
    .ind-cards-grid { grid-template-columns: 1fr 1fr; }
    
    /* Industries Vertical Accordion for Mobile */
    .ind-accordion-container { flex-direction: column; height: 600px; gap: 10px; }
    .ind-accordion-panel { 
        flex: 1; 
        min-height: 100px; 
        position: relative;
    }
    
    @keyframes arrowPulse {
        0% { transform: translateY(0) rotate(45deg); opacity: 0.7; }
        50% { transform: translateY(4px) rotate(45deg); opacity: 1; }
        100% { transform: translateY(0) rotate(45deg); opacity: 0.7; }
    }

    .ind-accordion-panel::after {
        content: '';
        position: absolute;
        right: 25px;
        top: 32px;
        width: 12px;
        height: 12px;
        border-right: 3px solid #fff;
        border-bottom: 3px solid #fff;
        transform: rotate(45deg);
        pointer-events: none;
        transition: border-color 0.3s ease;
        animation: arrowPulse 1.5s infinite;
        filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.5));
    }
    .ind-accordion-panel.active::after,
    .ind-accordion-panel:hover::after {
        border-color: var(--h-cyan);
    }
    
    .ind-panel-icon {
        display: none !important;
    }
    
    .ind-panel-content { padding: 20px; }
    
    .ind-panel-text,
    .ind-accordion-panel:hover .ind-panel-text,
    .ind-accordion-panel.active .ind-panel-text {
        position: relative;
        left: auto;
        bottom: auto;
        opacity: 1;
        transform: none;
        pointer-events: all;
        white-space: normal;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .ind-panel-text h3 { 
        font-size: 1.4rem; 
        margin-bottom: 8px; 
        transform: none;
        color: #fff;
    }
    
    .ind-panel-cta {
        display: inline-flex;
        margin-top: 0;
        opacity: 1;
        transform: none;
    }
    
    .ecb-inner { flex-direction: column; text-align: center; }
    .ecb-actions { justify-content: center; }
    .cards-trio { flex-wrap: wrap; justify-content: center; gap: 16px; }
    .fp-card-wrap { margin-top: 0 !important; width: calc(50% - 8px); max-width: 230px; }
    .hero-scroll-hint { display: none; }
    .why-content-col { padding: 40px 24px; }

    /* Global Sourcing badge — compact & flush to corner on mobile */
    .why-badge-card {
        bottom: 0;
        right: 0;
        padding: 10px 14px;       /* smaller padding */
        min-width: unset;          /* don't force a min width */
        width: auto;
        gap: 8px;
        border-radius: 10px 0 20px 0; /* match image corner */
    }
    .why-badge-icon {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    .why-badge-card strong {
        font-size: 0.75rem;
    }
    .why-badge-card span {
        font-size: 0.65rem;
    }
    
    /* Make marquee logos smaller on mobile to fit 2-3 brands */
    .mlogo-card {
        min-width: 140px;
        height: 90px;
        padding: 10px 15px;
    }
    .mlogo-card.wide {
        min-width: 180px;
    }
    .mlogo-card img {
        max-height: 60px;
        max-width: 110px;
    }
    .marquee-track {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .ind-cards-grid { grid-template-columns: 1fr; }
    
    /* Extreme Bento Shrink for small phones */
    .cats-bento-grid { grid-auto-rows: 120px; gap: 6px; }
    .bento-tile { border-radius: 8px; } /* Even smaller radius */
    .bento-content { padding: 8px; gap: 6px; }
    .bento-icon { width: 24px; height: 24px; font-size: 0.7rem; border-radius: 6px; }
    .bento-text h3 { font-size: 0.7rem; }
    .bento-span-2-col.bento-span-2-row .bento-text h3 { font-size: 1.1rem; }
    .bento-span-2-col.bento-span-2-row .bento-icon { width: 32px; height: 32px; font-size: 0.9rem; }
    
    .hero-h1 { font-size: 2.3rem; }
    .hero-desc { font-size: 0.95rem; margin-bottom: 24px; }
    
    .hero-actions { 
        flex-direction: row; 
        flex-wrap: nowrap; 
        gap: 8px; 
    }
    .btn-primary-hero, .btn-wa-hero { 
        padding: 10px 15px; 
        font-size: 0.85rem; 
    }
    
    /* Hide stats bar at bottom on mobile — shown inline in hero content instead */
    .hero-stats-bar { display: none; }
    
    /* Ensure 2-3 brands fit on small phones (under 480px) */
    .mlogo-card {
        min-width: 110px;
        height: 70px;
        padding: 8px 10px;
    }
    .mlogo-card.wide {
        min-width: 140px;
    }
    .mlogo-card img {
        max-height: 45px;
        max-width: 90px;
    }
    .marquee-track {
        gap: 16px;
    }
}

/* ─────────────────────────────────────────────────────────────
   HERO CONTENT RESPONSIVE OVERRIDE
───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-content-inner {
        max-width: 100%;
        /* Adjusted padding to fit mobile viewport heights perfectly */
        padding: 95px 20px 40px 20px;
    }
    .hero-h1 {
        font-size: clamp(2.5rem, 9.5vw, 3.6rem);
        letter-spacing: -1px;
        text-align: center;
    }

    /* Centre everything in the hero on mobile */
    .hero-content-inner {
        align-items: center;
        text-align: center;
    }
    .hero-badge {
        align-self: center;
        margin-bottom: 16px;
    }
    .hero-desc {
        text-align: center;
        max-width: 100%;
        margin-bottom: 20px;
    }
    .hero-actions {
        justify-content: center;
        margin-bottom: 0;
    }
}

/* ─────────────────────────────────────────────────────────────
   11. SCROLL REVEAL ANIMATIONS
───────────────────────────────────────────────────────────── */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Credentials Panel — Mobile: full-width frosted bottom strip ── */
@media (max-width: 768px) {
    .hero-credentials {
        display: none !important;
    }

    .hero-credentials-mobile {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 480px;
        margin: 28px auto 0 auto;
        box-sizing: border-box;
        
        /* Premium frosted-glass box */
        background: rgba(8, 14, 38, 0.65);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 16px;
        padding: 8px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        animation: heroTextSlide 0.9s ease 0.6s both;
    }

    /* Each credential = equal column */
    .hero-cred-item {
        flex: 1;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 12px 8px;
        gap: 4px;
        min-width: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        border: none;
        /* Vertical divider between items */
        border-right: 1px solid rgba(255,255,255,0.07);
    }
    .hero-cred-item:last-child { border-right: none; }

    /* Coloured top accent per item hidden */
    .hero-cred-item::before {
        display: none;
    }

    .hero-cred-item:hover { transform: none; box-shadow: none; }

    .hero-cred-icon {
        width: 30px;
        height: 30px;
        min-width: 30px;
        border-radius: 8px;
        font-size: 0.78rem;
        margin-bottom: 2px;
    }

    .hero-cred-text {
        gap: 1px;
        align-items: center;
    }

    .hero-cred-label {
        font-size: 0.48rem;
        letter-spacing: 1.4px;
        white-space: nowrap;
        color: rgba(255,255,255,0.45);
    }

    .hero-cred-value {
        font-size: 0.74rem;
        font-weight: 800;
        white-space: nowrap;
        color: #fff;
    }
}

@media (max-width: 480px) {
    .hero-credentials-mobile {
        margin: 20px auto 0 auto;
        padding: 6px;
    }
    .hero-cred-item { padding: 10px 6px; }
    .hero-cred-icon { width: 26px; height: 26px; font-size: 0.68rem; }
    .hero-cred-label { font-size: 0.44rem; }
    .hero-cred-value { font-size: 0.68rem; }
    /* Also give content more bottom space for the strip */
    .hero-content-inner { padding-bottom: 40px !important; }
}

/* ─── TRENDING MODAL ─── */
.trending-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 18, 43, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 80px 20px 20px 20px;
}

.trending-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.exa-modal {
    width: 100%;
    max-width: 1000px;
    height: 560px;
    border-radius: 20px;
    background: #0f1423; /* Dark navy for left side */
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    position: relative;
    display: flex;
    overflow: hidden; /* clip the rounded corners */
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.trending-modal-overlay.active .exa-modal {
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Close button */
.exa-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.exa-close:hover {
    background: #f1f5f9;
    color: #0f1423;
}

.exa-left {
    width: 48%;
    position: relative;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Glowing background on left */
.exa-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.exa-left > * {
    position: relative;
    z-index: 2;
}

/* Top Left Badge */
.exa-left-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    margin-bottom: 24px;
}
.exa-fire-icon {
    color: #f97316;
    font-size: 1.4rem;
}
.exa-fire-icon i {
    animation: liveFirePulse 1.2s infinite alternate ease-in-out;
}
.exa-badge-text {
    display: flex;
    flex-direction: column;
}
.exa-badge-text strong {
    color: #f97316;
    font-size: 0.75rem;
    letter-spacing: 1px;
}
.exa-badge-text span {
    color: #fff;
    font-size: 0.7rem;
}

/* Center product showcase */
.exa-product-showcase {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    min-height: 420px;
}
.exa-podium {
    position: absolute;
    bottom: 5px;
    width: 380px;
    height: 60px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.8) 70%);
    border-radius: 50%;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    z-index: 1;
}

/* Swiper Styles */
.exa-swiper {
    width: 100%;
    height: 100%;
    z-index: 2;
}
.exa-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}
.exa-slide-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}
.exa-img-wrapper {
    position: relative;
    display: inline-flex;
    margin-bottom: 12px;
}
.exa-main-img {
    max-height: 360px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 16px;
    background: #fff;
    padding: 12px;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}
.exa-slide-info h4 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

/* RIGHT SIDE */
.exa-right {
    width: 58%; /* overlap */
    position: relative;
    margin-left: -6%; /* Pull left to overlap */
    z-index: 10;
}
.exa-right-bg {
    position: absolute;
    inset: -30px -50px -30px 0;
    background: #ffffff;
    transform: skewX(-10deg);
    transform-origin: bottom left;
    border-left: 6px solid #f97316;
    box-shadow: -15px 0 30px rgba(0,0,0,0.5);
    z-index: 1;
}

.exa-right-content {
    position: relative;
    z-index: 2;
    padding: 60px 60px 50px 120px; /* heavily padded left to avoid slant */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.exa-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f97316;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.exa-title {
    font-family: var(--font-headings);
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    margin-bottom: 12px;
}
.exa-highlight {
    color: #ef4444;
}

.exa-desc {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* 3 Cards */
.exa-cards {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.exa-card {
    flex: 1;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 10px;
}
.exa-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.exa-red-icon { background: #fee2e2; color: #ef4444; }
.exa-blue-icon { background: #e0f2fe; color: #0ea5e9; }
.exa-green-icon { background: #dcfce7; color: #22c55e; }
.exa-card span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

/* Buttons */
.exa-btn-primary {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #f97316 0%, #ec4899 100%);
    color: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
    margin-bottom: 12px;
    transition: transform 0.2s;
    justify-content: center;
    position: relative;
}
.exa-btn-primary:hover {
    transform: translateY(-2px);
    color: #fff;
}
.exa-btn-primary i.fa-whatsapp {
    margin-right: 8px;
    font-size: 1.3rem;
}
.exa-btn-arrow {
    position: absolute;
    right: 14px;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.exa-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    margin-bottom: 24px;
    transition: background 0.2s;
    gap: 10px;
}
.exa-btn-secondary:hover {
    background: #f8fafc;
    color: #0f172a;
}

/* Footer Stats */
.exa-footer-stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
    margin-top: auto;
}
.exa-fs-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.exa-fs-item i {
    color: #94a3b8;
    font-size: 1.2rem;
}
.exa-fs-item span {
    font-size: 0.65rem;
    color: #64748b;
    line-height: 1.2;
}

@media (max-width: 992px) {
    .trending-modal-overlay {
        padding: 20px;
        align-items: center;
    }
    .exa-modal {
        flex-direction: column;
        height: auto;
        max-width: 480px;
    }
    .exa-left {
        width: 100%;
        padding: 30px 15px 10px 15px;
    }
    .exa-product-showcase {
        min-height: 200px;
    }
    .exa-main-img {
        max-height: 180px;
        padding: 6px;
    }
    .exa-podium {
        width: 180px;
        height: 26px;
        bottom: 5px;
    }
    .exa-slide-info h4 {
        font-size: 1.15rem;
    }
    .exa-right {
        width: 100%;
        margin-left: 0;
    }
    .exa-right-bg {
        transform: none;
        border-left: none;
        border-top: 4px solid #f97316;
        inset: 0;
    }
    .exa-right-content {
        padding: 20px 20px;
    }
    .exa-tag {
        margin-bottom: 4px;
        font-size: 0.7rem;
    }
    .exa-title {
        font-size: 1.25rem;
        margin-bottom: 6px;
    }
    .exa-desc {
        font-size: 0.8rem;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    /* Hide bulky auxiliary elements on mobile to guarantee single-screen fit */
    .exa-cards { 
        display: none; 
    }
    .exa-footer-stats {
        display: none;
    }
    .exa-btn-primary {
        padding: 12px 16px;
        font-size: 1rem;
        margin-bottom: 10px;
    }
    .exa-btn-secondary {
        padding: 12px 16px;
        font-size: 0.95rem;
        margin-bottom: 0;
    }
}

@keyframes liveFirePulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(239, 68, 68, 0.4)); opacity: 0.8; }
    100% { transform: scale(1.25); filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.9)); opacity: 1; }
}
