/* ==========================================================================
   GEMINI ASSOCIATES — VISUAL POLISH LAYER
   --------------------------------------------------------------------------
   Loaded after design-system.css. This file is about LOOK, not plumbing:
   depth, hierarchy, rhythm and focal points.

   Design problems this solves:
     - Every section had the same centred badge/title/subtitle/3-cards shape
     - 9 identical value cards formed an unreadable wall
     - Icon tiles were small, flat and low-impact
     - Cards were white-on-white with almost no separation
     - Nothing on the page told the eye where to go first
   ========================================================================== */

/* ==========================================================================
   01. ATMOSPHERIC BACKGROUNDS
   Replaces flat #fff / #f8fafc with layered light so sections feel
   designed rather than stacked.
   ========================================================================== */

/* Soft radial "lab glow" behind light sections */
.gemini-innovation-section,
.gemini-values-section,
.gemini-products-section {
    background:
        radial-gradient(900px 420px at 12% -5%, rgba(1, 162, 211, 0.07), transparent 60%),
        radial-gradient(760px 380px at 92% 8%, rgba(99, 102, 241, 0.06), transparent 62%),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
}

.gemini-about-section,
.gemini-services-section,
.gemini-certifications-section {
    background:
        radial-gradient(820px 400px at 88% 0%, rgba(1, 162, 211, 0.055), transparent 60%),
        #ffffff !important;
}

/* Hairline gradient divider between sections — softer than a 1px border */
.gemini-about-section,
.gemini-innovation-section,
.gemini-services-section,
.gemini-products-section,
.gemini-values-section,
.gemini-certifications-section {
    border-top: 0 !important;
    border-bottom: 0 !important;
}

.gemini-innovation-section::before,
.gemini-services-section::before,
.gemini-products-section::before,
.gemini-values-section::before,
.gemini-certifications-section::before,
.gemini-contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(1, 162, 211, 0.28) 35%,
        rgba(1, 162, 211, 0.28) 65%,
        transparent);
    pointer-events: none;
}

/* ==========================================================================
   02. SECTION HEADERS — tighter, with an accent rule under the title
   ========================================================================== */
.gemini-section-badge,
.pillars-badge {
    background: linear-gradient(135deg, #ffffff 0%, var(--ga-brand-50) 100%);
    box-shadow:
        0 1px 2px rgba(12, 30, 56, 0.04),
        inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    position: relative;
}

/* Accent rule beneath centred section titles */
.values-main-title,
.innovation-title,
.services-main-title,
.products-main-title,
.projects-main-title,
.certifications-main-title,
.contact-main-title,
.pillars-title {
    position: relative;
    padding-bottom: 0.65rem;
}

.text-center > .values-main-title::after,
.text-center > .innovation-title::after,
.text-center > .services-main-title::after,
.text-center > .products-main-title::after,
.text-center > .projects-main-title::after,
.text-center > .certifications-main-title::after,
.text-center > .contact-main-title::after,
.text-center > .pillars-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 68px;
    height: 3px;
    border-radius: 3px;
    background: var(--ga-gradient-sheen);
}

/* Subtitles: slightly tighter measure so centred text is easy to scan */
.values-main-subtitle,
.innovation-lead,
.services-main-subtitle,
.products-main-subtitle,
.projects-main-subtitle,
.certifications-main-subtitle,
.contact-main-subtitle,
.pillars-subtitle {
    max-width: 60ch !important;
    margin-inline: auto;
}

/* ==========================================================================
   03. ICON TILES — bold, dimensional focal points
   Previously 46px flat pastel squares that read as placeholders.
   ========================================================================== */
.value-icon-box,
.bento-icon-box,
.innovation-icon-wrapper {
    width: 56px !important;
    height: 56px !important;
    border-radius: 16px !important;
    font-size: 1.5rem !important;
    position: relative;
    box-shadow:
        0 6px 16px rgba(12, 30, 56, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* Glossy highlight across the top of each tile */
.value-icon-box::after,
.bento-icon-box::after,
.innovation-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.65), transparent 55%);
    pointer-events: none;
}

/* Saturate the tints — the old ones were nearly white */
.bg-blue-subtle    { background: linear-gradient(145deg, #dbeafe, #eff6ff) !important; }
.bg-cyan-subtle    { background: linear-gradient(145deg, #cffafe, #ecfeff) !important; }
.bg-indigo-subtle  { background: linear-gradient(145deg, #e0e7ff, #eef2ff) !important; }
.bg-teal-subtle    { background: linear-gradient(145deg, #ccfbf1, #f0fdfa) !important; }
.bg-sky-subtle     { background: linear-gradient(145deg, #e0f2fe, #f0f9ff) !important; }
.bg-emerald-subtle { background: linear-gradient(145deg, #d1fae5, #ecfdf5) !important; }
.bg-amber-subtle   { background: linear-gradient(145deg, #fef3c7, #fffbeb) !important; }
.bg-rose-subtle    { background: linear-gradient(145deg, #ffe4e6, #fff1f2) !important; }

/* Guarantee icon glyphs sit above the gloss layer */
.value-icon-box > i,
.bento-icon-box > i,
.innovation-icon-wrapper > i {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   04. CARDS — real separation and depth
   ========================================================================== */
.gemini-value-card,
.about-bento-card,
.innovation-card {
    background: linear-gradient(170deg, #ffffff 0%, #fdfefe 100%) !important;
    border: 1px solid rgba(203, 213, 225, 0.75) !important;
    box-shadow:
        0 1px 2px rgba(12, 30, 56, 0.04),
        0 8px 24px -12px rgba(12, 30, 56, 0.14) !important;
}

.gemini-value-card:hover,
.about-bento-card:hover,
.innovation-card:hover {
    box-shadow:
        0 2px 4px rgba(12, 30, 56, 0.05),
        0 24px 48px -18px rgba(1, 162, 211, 0.30) !important;
    border-color: var(--ga-brand-200) !important;
}

/* ==========================================================================
   05. THE 9-CARD VALUES WALL
   --------------------------------------------------------------------------
   Nine identical cards in a 3x3 grid gave the eye no entry point.
   A masonry-style column flow with varied emphasis breaks the monotony
   without touching the PHP markup.
   ========================================================================== */
@media (min-width: 992px) {
    .gemini-values-section .row.g-4 {
        display: block;
        column-count: 3;
        column-gap: 1.5rem;
    }

    .gemini-values-section .row.g-4 > [class*="col-"] {
        width: 100%;
        max-width: 100%;
        display: inline-block;
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 1.5rem;
        padding: 0;
        flex: none;
    }

    /* Elevate three cards into "feature" treatment so the grid has rhythm */
    .gemini-values-section .row.g-4 > [class*="col-"]:nth-child(1) .gemini-value-card,
    .gemini-values-section .row.g-4 > [class*="col-"]:nth-child(5) .gemini-value-card,
    .gemini-values-section .row.g-4 > [class*="col-"]:nth-child(9) .gemini-value-card {
        background:
            radial-gradient(420px 200px at 100% 0%, rgba(1, 162, 211, 0.10), transparent 70%),
            linear-gradient(165deg, #ffffff, #f8fdff) !important;
        border-color: var(--ga-brand-200) !important;
        box-shadow:
            0 1px 2px rgba(12, 30, 56, 0.04),
            0 14px 36px -16px rgba(1, 162, 211, 0.28) !important;
    }

    /* Feature cards get a larger title and a visible left accent */
    .gemini-values-section .row.g-4 > [class*="col-"]:nth-child(1) .value-card-title,
    .gemini-values-section .row.g-4 > [class*="col-"]:nth-child(5) .value-card-title,
    .gemini-values-section .row.g-4 > [class*="col-"]:nth-child(9) .value-card-title {
        font-size: 1.32rem;
    }
}

/* ==========================================================================
   06. NUMBERED CARDS
   Ghost index numerals give the innovation row a sense of sequence.
   ========================================================================== */
.gemini-innovation-section .row > [class*="col-"] {
    counter-increment: ga-innov;
}

.gemini-innovation-section .row {
    counter-reset: ga-innov;
}

.innovation-card {
    position: relative;
    overflow: hidden;
}

.innovation-card::after {
    content: '0' counter(ga-innov);
    position: absolute;
    top: 0.5rem;
    right: 1.1rem;
    font-family: var(--ga-font-display);
    font-size: 4.2rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(1, 162, 211, 0.07);
    pointer-events: none;
    transition: color var(--ga-duration) var(--ga-ease-out);
}

.innovation-card:hover::after {
    color: rgba(1, 162, 211, 0.14);
}

/* ==========================================================================
   07. HERO REFINEMENT
   ========================================================================== */

/* Deepen the overlay so white text always clears AA contrast over video */
.gemini-hero-overlay {
    background:
        radial-gradient(1200px 600px at 50% 40%, rgba(8, 23, 44, 0.55), rgba(8, 23, 44, 0.88)),
        linear-gradient(180deg, rgba(8, 23, 44, 0.82) 0%, rgba(8, 23, 44, 0.72) 45%, rgba(8, 23, 44, 0.94) 100%) !important;
}

/* Tighter headline: large type needs negative tracking and shorter leading */
.gemini-hero-title {
    letter-spacing: -0.03em !important;
    line-height: 1.08 !important;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-gradient-text {
    background: linear-gradient(100deg, #7dd3fc 0%, #38bdf8 45%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

/* KPI strip: stronger glass, clearer separation from the video */
.hero-kpi-grid {
    background: rgba(8, 23, 44, 0.62) !important;
    border: 1px solid rgba(125, 211, 252, 0.22) !important;
    box-shadow:
        0 20px 50px -20px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
    border-radius: 22px !important;
}

.kpi-value {
    background: linear-gradient(135deg, #7dd3fc, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   08. LINKS & BUTTONS — motion that signals direction
   ========================================================================== */
.innovation-link,
.about-secondary-link,
.pillar-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    text-decoration: none !important;
    transition: gap var(--ga-duration) var(--ga-ease-out),
                color var(--ga-duration) var(--ga-ease-out);
}

.innovation-link:hover,
.about-secondary-link:hover,
.pillar-action:hover {
    gap: 12px;
}

/* Arrow glyphs slide on hover */
.innovation-link i,
.about-cta-btn i,
.values-explore-btn i,
.custom-button i {
    transition: transform var(--ga-duration) var(--ga-ease-out);
}

.innovation-link:hover i,
.about-cta-btn:hover i,
.values-explore-btn:hover i,
.custom-button:hover i {
    transform: translateX(4px);
}

/* Light sweep across primary buttons on hover */
.about-cta-btn,
.values-explore-btn,
.custom-button,
.hero-btn-primary {
    position: relative;
    overflow: hidden;
}

.about-cta-btn::before,
.values-explore-btn::before,
.custom-button::before,
.hero-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg,
        transparent,
        rgba(255, 255, 255, 0.28),
        transparent);
    transform: skewX(-18deg);
    transition: left 620ms var(--ga-ease-out);
    pointer-events: none;
    z-index: 0;
}

.about-cta-btn:hover::before,
.values-explore-btn:hover::before,
.custom-button:hover::before,
.hero-btn-primary:hover::before {
    left: 130%;
}

/* Keep label above the sweep */
.about-cta-btn > *,
.values-explore-btn > *,
.custom-button > *,
.hero-btn-primary > * {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .about-cta-btn::before,
    .values-explore-btn::before,
    .custom-button::before,
    .hero-btn-primary::before {
        display: none;
    }
}
