/* Premium UI/UX Polish: Homepage specific overrides loaded after the large base stylesheet. */

/* =====================================================================
   1. Cinematic Combined Hero Section (Video Background + Overlay + Grid Copy)
===================================================================== */

/* Override display lock in base.css so copy shows over video */
html body #home.hero > :not(.hero-video) {
    display: revert !important;
}
html body #home.hero > .hero-message-grid {
    display: grid !important;
}
html body #home.hero > .hero-video-overlay {
    display: block !important;
}

html body #home.hero {
    position: relative !important;
    isolation: isolate !important;
    min-height: min(780px, calc(100vh - 92px)) !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    padding: clamp(98px, 9vw, 160px) 0 !important;
    overflow: hidden !important;
    color: #fff !important;
    background: #06111f !important;
}

html body #home .hero-video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 0 !important;
    opacity: 0.46 !important;
    filter: brightness(0.8) contrast(1.05) !important;
    transition: opacity 0.5s ease !important;
}

/* Gradient overlay mask to protect text readability on top of video */
.hero-video-overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    pointer-events: none !important;
    background:
        linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
        radial-gradient(circle at 12% 15%, rgba(239, 59, 63, 0.16), transparent 38%),
        radial-gradient(circle at 88% 80%, rgba(33, 108, 181, 0.22), transparent 42%),
        linear-gradient(140deg, rgba(6, 17, 31, 0.82) 0%, rgba(16, 39, 68, 0.88) 55%, rgba(35, 27, 60, 0.90) 100%) !important;
    background-size: 74px 74px, 74px 74px, auto, auto, auto !important;
}

html body #home .hero-message-grid {
    position: relative !important;
    z-index: 2 !important;
    width: min(calc(100% - 80px), 1440px) !important;
    max-width: 1440px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.7fr) !important;
    gap: clamp(46px, 7vw, 110px) !important;
    align-items: center !important;
    margin: 0 auto !important;
}

html body #home .hero-message-copy {
    max-width: 860px !important;
}

html body #home .hero-message-copy .hero-eyebrow {
    display: inline-flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin: 0 0 28px !important;
    color: #ff6b70 !important;
    font-size: clamp(0.86rem, 0.9vw, 1rem) !important;
    font-weight: 900 !important;
    letter-spacing: 0.22em !important;
    line-height: 1.65 !important;
    text-transform: uppercase !important;
}

html body #home .hero-message-copy .hero-eyebrow::before {
    flex: 0 0 auto !important;
    width: 46px !important;
    height: 3px !important;
    border-radius: 999px !important;
    background: #ef3438 !important;
    content: "" !important;
}

html body #home .hero-message-copy .main-headline {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    max-width: 850px !important;
    margin: 0 !important;
    background: linear-gradient(115deg, #ffffff 25%, #ffd2d4 65%, #ff8b8f 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-size: clamp(3.8rem, 5.8vw, 6.8rem) !important;
    line-height: 0.96 !important;
    letter-spacing: -0.035em !important;
    text-shadow: 0 15px 48px rgba(0, 0, 0, 0.16) !important;
}

html body #home .hero-message-copy .main-headline span {
    display: block !important;
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    color: transparent !important;
    text-shadow: none !important;
}

html body #home .hero-message-copy .hero-description {
    width: min(100%, 820px) !important;
    max-width: 820px !important;
    margin: clamp(24px, 2vw, 32px) 0 0 !important;
    color: rgba(255, 255, 255, 0.86) !important;
    font-size: clamp(1.08rem, 1.15vw, 1.24rem) !important;
    line-height: 1.76 !important;
}

html body #home .hero-message-copy .hero-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    margin-top: clamp(28px, 3vw, 44px) !important;
}

html body #home .hero-message-copy .hero-actions .hero-btn {
    min-width: 168px !important;
    min-height: 56px !important;
    justify-content: center !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

html body #home .hero-message-copy .hero-actions .btn-primary {
    background: linear-gradient(135deg, #ef3438, #c91f28) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 16px 36px rgba(239, 52, 56, 0.24) !important;
}

html body #home .hero-message-copy .hero-actions .btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 20px 48px rgba(239, 52, 56, 0.36) !important;
}

html body #home .hero-message-copy .hero-actions .btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    backdrop-filter: blur(14px) !important;
}

html body #home .hero-message-copy .hero-actions .btn-secondary:hover {
    transform: translateY(-3px) !important;
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Glassmorphism badged note in hero */
html body main #home .hero-message-note, html body .hero-message-note {
    width: min(100%, 540px) !important;
    max-width: 540px !important;
    justify-self: end !important;
    padding: clamp(34px, 4vw, 50px) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-left: 4px solid #ef3438 !important;
    border-radius: 20px !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(239, 52, 56, 0.16), transparent 36%),
        linear-gradient(145deg, rgba(12, 31, 54, 0.88), rgba(27, 47, 75, 0.82)) !important;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.24) !important;
    backdrop-filter: blur(16px) !important;
}

html body main #home .hero-message-note::before, html body .hero-message-note::before {
    display: block !important;
    width: 60px !important;
    height: 4px !important;
    margin: 0 0 24px !important;
    border-radius: 999px !important;
    background: #ef3438 !important;
    content: "" !important;
}

html body main #home .hero-message-note span, html body .hero-message-note span {
    color: #ff6b70 !important;
    font-size: clamp(0.82rem, 0.92vw, 0.96rem) !important;
    font-weight: 900 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    margin-bottom: 20px !important;
}

html body main #home .hero-message-note strong, html body .hero-message-note strong {
    color: #fff !important;
    font-size: clamp(1.6rem, 2.2vw, 2.65rem) !important;
    line-height: 1.18 !important;
    letter-spacing: -0.02em !important;
    font-weight: 800 !important;
}

/* =====================================================================
   2. Typography Gradient Header Rules (homepage)
===================================================================== */
html body :is(.av-pathways-heading h2, #av-boq-calculator .section-title h2, #about h2, .model-heading h2, .services-intro h2, .why-heading h2, .product-section-heading h2, .testimonial-heading h2) {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* Light sections H2 gradient clip (Navy to Red) */
html body :is(.av-pathways-heading h2, #av-boq-calculator .section-title h2, #about h2, .services-intro h2, .product-section-heading h2) {
    background: linear-gradient(135deg, #071426 0%, #173d70 52%, #ef3b3f 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    letter-spacing: -0.025em !important;
    line-height: 1.05 !important;
    display: inline-block !important;
}

/* Dark sections H2 gradient clip (White to Pink) - Solves 4th Image Visibility */
html body :is(.model-heading h2, .why-heading h2, .testimonial-heading h2) {
    background: linear-gradient(135deg, #ffffff 0%, #dbe8f7 65%, #ffacae 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    letter-spacing: -0.025em !important;
    line-height: 1.05 !important;
    display: inline-block !important;
}

/* =====================================================================
   3. Operating Model Visibility Overrides (Solves 2nd Image white-on-white)
===================================================================== */
html body .operating-model {
    background:
        radial-gradient(circle at 12% 8%, rgba(239, 59, 63, 0.20), transparent 30%),
        radial-gradient(circle at 92% 16%, rgba(38, 107, 168, 0.26), transparent 32%),
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.038) 1px, transparent 1px),
        linear-gradient(135deg, #071526 0%, #112946 55%, #251f3d 100%) !important;
    background-size: auto, auto, 72px 72px, 72px 72px, auto !important;
    color: #ffffff !important;
}

html body .operating-model .model-copy-panel {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-left: 3px solid #ef3b3f !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22) !important;
    backdrop-filter: blur(14px) !important;
}

html body .operating-model .model-copy-panel p {
    color: rgba(239, 246, 255, 0.86) !important;
    -webkit-text-fill-color: rgba(239, 246, 255, 0.86) !important;
}

/* =====================================================================
   4. AV Pathway Cards Refresh (Best in Industry)
===================================================================== */
.av-pathways-grid {
    grid-template-columns: repeat(5, minmax(200px, 1fr)) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    gap: 20px !important;
}

.av-pathway-card {
    display: grid !important;
    align-content: start !important;
    min-height: 250px !important;
    padding: clamp(20px, 2.5vw, 32px) !important;
    border: 1px solid rgba(13, 38, 68, 0.12) !important;
    border-radius: 20px !important;
    background: linear-gradient(145deg, #ffffff 0%, #f9fbff 100%) !important;
    box-shadow: 0 14px 44px rgba(15, 35, 60, 0.05) !important;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.av-pathway-card + .av-pathway-card {
    border-left: 1px solid rgba(13, 38, 68, 0.12) !important;
}

.av-pathway-card::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 auto auto 0 !important;
    width: 60px !important;
    height: 4px !important;
    background: linear-gradient(90deg, #ef3438, #ff7a45) !important;
    border-radius: 0 0 999px 0 !important;
    opacity: 0 !important;
    transition: opacity 0.24s ease !important;
}

.av-pathway-card:hover::before {
    opacity: 1 !important;
}

.av-pathway-card:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(239, 52, 56, 0.3) !important;
    box-shadow: 0 34px 84px rgba(15, 35, 60, 0.12) !important;
    background: #ffffff !important;
    color: #071526 !important;
}

.av-pathway-card span {
    color: #d32f2f !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.14em !important;
}

.av-pathway-card i {
    display: inline-grid !important;
    place-items: center !important;
    width: 52px !important;
    height: 52px !important;
    margin: 22px 0 18px !important;
    border-radius: 14px !important;
    background: rgba(211, 47, 47, 0.08) !important;
    color: #d32f2f !important;
    font-size: 1.35rem !important;
    transition: background 0.28s cubic-bezier(0.4, 0, 0.2, 1), color 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.av-pathway-card:hover i {
    background: #d32f2f !important;
    color: #ffffff !important;
    transform: scale(1.08) rotate(4deg) !important;
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.24) !important;
}

.av-pathway-card h3 {
    margin: 0 0 10px !important;
    color: #071526 !important;
    font-size: clamp(1.2rem, 1.4vw, 1.45rem) !important;
    font-weight: 800 !important;
}

.av-pathway-card p {
    color: #536780 !important;
    font-size: 0.94rem !important;
    line-height: 1.6 !important;
}

.av-pathway-card:hover p {
    color: #536780 !important;
}

/* =====================================================================
   5. Featured Products Section - Modern Interactive Aesthetic (3rd Image)
===================================================================== */

/* Description & badges card panel */
html body .featured-products .product-heading-copy {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(13, 38, 68, 0.08) !important;
    border-left: 4px solid #ef3b3f !important;
    border-radius: 22px !important;
    box-shadow: 0 24px 60px rgba(15, 35, 60, 0.06) !important;
    padding: clamp(24px, 3vw, 36px) !important;
    max-width: 780px !important;
}

/* Glowing pills for counter badges */
.product-capability-strip {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin: 22px 0 !important;
}

.product-capability-strip span {
    background: rgba(239, 52, 56, 0.06) !important;
    border: 1px solid rgba(239, 52, 56, 0.12) !important;
    color: #ef3b3f !important;
    padding: 8px 18px !important;
    border-radius: 999px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.product-capability-strip span strong {
    color: #d32f2f !important;
    font-size: 1.02rem !important;
}

/* Product Cards Classy Aesthetics */
.featured-product-grid .featured-product-card {
    border: 1px solid rgba(13, 38, 68, 0.08) !important;
    border-radius: 24px !important;
    background: linear-gradient(145deg, #ffffff 0%, #f9fbff 100%) !important;
    box-shadow: 0 12px 36px rgba(15, 35, 60, 0.04) !important;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
}

.featured-product-grid .featured-product-card:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(239, 52, 56, 0.3) !important;
    box-shadow: 0 36px 84px rgba(15, 35, 60, 0.12) !important;
}

/* Product Card Image Zoom */
.product-card-visual {
    overflow: hidden !important;
    position: relative !important;
}

.product-card-visual img {
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.featured-product-card:hover .product-card-visual img {
    transform: scale(1.08) !important;
}

/* Product card icon badge */
.product-card-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, box-shadow 0.3s ease !important;
}

.featured-product-card:hover .product-card-icon {
    transform: scale(1.1) rotate(6deg) !important;
    background: #ef3b3f !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(239, 52, 56, 0.3) !important;
}

/* Category Pill Badges */
.product-tags span {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-radius: 999px !important;
    font-size: 0.78rem !important;
    padding: 6px 12px !important;
    font-weight: 600 !important;
    border: 1px solid rgba(13, 38, 68, 0.04) !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}

.featured-product-card:hover .product-tags span {
    background: rgba(239, 52, 56, 0.08) !important;
    color: #ef3b3f !important;
    border-color: rgba(239, 52, 56, 0.15) !important;
}

/* Explore arrow animation */
.product-explore {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #536780 !important;
    font-weight: 700 !important;
    transition: color 0.25s ease !important;
}

.product-explore i {
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.featured-product-card:hover .product-explore {
    color: #ef3b3f !important;
}

.featured-product-card:hover .product-explore i {
    transform: translateX(6px) !important;
}

/* =====================================================================
   6. Client Logo Grid Columns Override (5th Image 14-item alignment)
===================================================================== */
.client-logo-grid {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin-top: 32px !important;
}

@media (max-width: 1200px) {
    .client-logo-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .client-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* =====================================================================
   7. Card Hover Effects & General Polish
===================================================================== */

/* Service Cards Lift & shadow */
.enterprise-service-grid .enterprise-service-card {
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.enterprise-service-grid .enterprise-service-card:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(239, 52, 56, 0.28) !important;
    box-shadow: 0 32px 76px rgba(15, 35, 60, 0.12) !important;
}

/* Why GPSPL Cards lift */
.why-grid article {
    border-radius: 18px !important;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.why-grid article:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(239, 52, 56, 0.28) !important;
    box-shadow: 0 32px 76px rgba(15, 35, 60, 0.12) !important;
}

/* Featured Products Cards lift */
.featured-product-grid .featured-product-card {
    border-radius: 20px !important;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.featured-product-grid .featured-product-card:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(239, 52, 56, 0.3) !important;
    box-shadow: 0 36px 84px rgba(15, 35, 60, 0.14) !important;
}

/* =====================================================================
   8. Responsive Grid Queries (No layout overflows)
===================================================================== */
@media (max-width: 1200px) {
    html body #home .hero-message-grid {
        width: min(calc(100% - 44px), 940px) !important;
        grid-template-columns: 1fr !important;
        gap: 42px !important;
    }

    html body #home .hero-message-note {
        width: 100% !important;
        max-width: none !important;
        justify-self: stretch !important;
    }

    .av-pathways-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}

@media (max-width: 820px) {
    .av-pathways-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 720px) {
    html body #home.hero {
        padding: clamp(64px, 7vw, 98px) 0 !important;
    }

    html body #home .hero-message-grid {
        width: min(calc(100% - 28px), 520px) !important;
    }

    html body #home .hero-message-copy .hero-eyebrow {
        align-items: flex-start !important;
        font-size: 0.78rem !important;
        letter-spacing: 0.16em !important;
    }

    html body #home .hero-message-copy .hero-eyebrow::before {
        width: 30px !important;
        margin-top: 9px !important;
    }

    html body #home .hero-message-copy .main-headline {
        font-size: clamp(2.8rem, 12vw, 4rem) !important;
        line-height: 1.02 !important;
    }

    html body #home .hero-message-copy .hero-actions,
    html body #home .hero-message-copy .hero-actions .hero-btn {
        width: 100% !important;
    }

    html body #home .hero-message-note {
        padding: 28px 22px !important;
    }

    html body #home .hero-message-note span {
        letter-spacing: 0.11em !important;
    }

    html body #home .hero-message-note strong {
        font-size: clamp(1.65rem, 8.5vw, 2.35rem) !important;
    }

    .av-pathways-grid {
        grid-template-columns: 1fr !important;
    }
}
