/* ==========================================================================
   Mobile Full-Screen Overlay Menu
   ========================================================================== */
.mobile-nav-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg, rgba(10, 14, 26, 0.95)); 
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

[data-theme="light"] .mobile-nav-wrapper.active {
    background-color: rgba(255, 255, 255, 0.98);
}

.mobile-nav-slider {
    display: flex;
    width: 100%;
    transition: transform 0.3s ease-in-out;
    transform: translateX(0%);
}

.mobile-nav-panel {
    flex: 0 0 100%;
    width: 100%;
    display: none; /* Hide all panels by default */
    flex-direction: column;
    padding: 2rem;
    box-sizing: border-box;
}

/* Only the first level is visible initially */
.mobile-nav-panel.level-1 {
    display: flex;
}

.mobile-nav-panel > button.nav-item-parent,
.mobile-nav-panel > a.nav-item-leaf {
    background: none;
    border: none;
    color: var(--text-main);
    font-family: var(--font-body);
    text-align: left;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    width: 100%;
    text-decoration: none;
}

.mobile-nav-panel > button:last-of-type,
.mobile-nav-panel > a:last-of-type {
    border-bottom: none;
}

.nav-item-parent {
    font-weight: 700;
    font-size: 1.2rem;
}

.nav-item-leaf {
    font-weight: 400;
    font-size: 1.1rem;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-main);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.back-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    margin: -0.5rem; /* Offset padding to align visually */
    color: #F39C5A !important;
    font-size: 1.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-bottom-cta {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.mobile-nav-bottom-cta .btn {
    width: 100%;
    justify-content: center;
}

body.menu-open { overflow: hidden; }

/* Nav right-side controls group */
.nav-right-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .nav-links { display: none !important; }
    .mobile-menu-btn { display: flex !important; }
    .btn-nav { display: none; }
}

/* ==========================================================================
   Placeholder / Interior Page Hero
   ========================================================================== */
.page-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-top: 9rem;
    padding-bottom: 5rem;
    overflow: hidden;
}

.page-hero-bg-shapes {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none !important;
    -webkit-user-select: none;
    user-select: none;
    overflow: hidden;
}

#page-particles {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none !important;
    -webkit-user-select: none;
    user-select: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    padding: 0.4rem 1.25rem;
    border: 1px solid rgba(242,110,34,0.35);
    border-radius: 50px;
    background: rgba(242,110,34,0.06);
}

.page-hero-title {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    max-width: 720px;
}

.page-hero-sub {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    max-width: 580px;
    line-height: 1.7;
}

/* Coming-soon teaser section */
.page-teaser {
    padding: 5rem 0 6rem;
}

.page-teaser-card {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding: 3.5rem 3rem;
    background: transparent;
    backdrop-filter: blur(10px);
}

.page-teaser-card i {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    display: block;
}

.page-teaser-card h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.page-teaser-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

/* Page Card Grids (for Parent Pages) */
.page-cards-section {
    padding: 2rem 0 6rem;
}

.page-group-title {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    margin-top: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}
.page-group-title:first-child {
    margin-top: 0;
}

/* ==========================================================================
   Coming Soon Block (Sub-pages)
   ========================================================================== */
.coming-soon-section {
    padding: 120px 0;
    display: flex;
    justify-content: center;
}

.coming-soon-block {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.coming-soon-icon {
    font-size: 72px;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: pulse-icon 2s infinite ease-in-out;
}

@keyframes pulse-icon {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.coming-soon-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.coming-soon-block h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.coming-soon-block p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.coming-soon-block p strong {
    color: var(--text-main);
}

.coming-soon-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.coming-soon-note {
    font-size: 0.85rem !important;
    color: var(--text-muted);
    opacity: 0.7;
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    .coming-soon-actions {
        flex-direction: column;
    }
}

.page-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.subpage-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    transition: var(--transition);
    text-decoration: none;
    height: 100%;
}

.subpage-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(242, 110, 34, 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), inset 0 0 15px rgba(242, 110, 34, 0.05);
    transform: translateY(-4px);
}

.subpage-card h3 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}

.subpage-card:hover h3 {
    color: var(--secondary);
}

.subpage-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.subpage-card-arrow {
    align-self: flex-start;
    color: var(--secondary);
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.subpage-card:hover .subpage-card-arrow {
    transform: translateX(5px);
}

/* Breadcrumbs for sub-pages */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.breadcrumbs a {
    color: var(--text-main);
    opacity: 0.7;
    transition: opacity 0.2s;
}
.breadcrumbs a:hover {
    opacity: 1;
    color: var(--secondary);
}
.breadcrumbs span {
    color: var(--secondary);
}

/* Spinner for form sending state */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Trust Section — Enterprise Grade (Accenture/IBM inspired)
   ========================================================================== */

.trust-section {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.trust-particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.trust-section .container {
    position: relative;
    z-index: 1;
}

/* Intro */
.trust-top {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* Live Age Card (right of intro) */
.trust-age-card {
    padding: 2rem 2.5rem;
    border: 1px solid rgba(242, 110, 34, 0.18);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(242, 110, 34, 0.04) 0%, rgba(242, 110, 34, 0.01) 100%);
    backdrop-filter: blur(6px);
    min-width: 320px;
}

.trust-age-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.trust-age-label > span:nth-of-type(1) {
    color: #22c55e;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.trust-age-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.trust-age-numbers .ticker-col {
    flex-direction: column;
    gap: 0.25rem;
}

.trust-age-numbers .ticker-digits {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1;
}

.trust-age-numbers .ticker-sup {
    margin-bottom: 0;
    font-size: 0.75rem;
    letter-spacing: 2.5px;
}

.ticker-divider {
    width: 1px;
    height: 48px;
    background: rgba(242, 110, 34, 0.25);
}

/* Static numeric stat (no count animation) — same orange gradient as .trust-num */
.trust-num-static {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, #F26E22 0%, #F98F4F 50%, var(--gradient-text-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
    font-variant-numeric: tabular-nums;
}

.trust-stat:hover .trust-num-static {
    transform: scale(1.08);
}

@media (max-width: 900px) {
    .trust-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .trust-age-card {
        min-width: 0;
    }
}

.trust-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--secondary);
    margin-bottom: 1.25rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(242, 110, 34, 0.3);
    border-radius: 50px;
    background: rgba(242, 110, 34, 0.05);
}

.trust-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    max-width: 650px;
}

.trust-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 550px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Stats Row */
.trust-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: none;
}

.trust-stat {
    padding: 2.5rem 1rem;
    border-bottom: 2px solid transparent;
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.trust-stat::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.trust-stat:last-child::after,
.trust-stat:nth-child(4n)::after {
    display: none;
}

.trust-stat:nth-child(n+5) {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.trust-stat:hover {
    border-bottom-color: var(--secondary);
    background: rgba(242, 110, 34, 0.03);
}

.trust-num {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, #F26E22 0%, #F98F4F 50%, var(--gradient-text-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}

.trust-stat:hover .trust-num {
    transform: scale(1.08);
}

.trust-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-transform: uppercase;
}


/* ==========================================================================
   Live Revenue Ticker
   ========================================================================== */
.revenue-ticker {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}

.ticker-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(242, 110, 34, 0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: tickerGlowPulse 4s ease-in-out infinite;
}

@keyframes tickerGlowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.ticker-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.ticker-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.ticker-label span {
    color: #22c55e;
    font-weight: 700;
    letter-spacing: 2px;
}

.ticker-pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--secondary);
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(242, 110, 34, 0.6);
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 8px rgba(242, 110, 34, 0.6);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7);
        box-shadow: 0 0 4px rgba(242, 110, 34, 0.3);
    }
}

.ticker-amount {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.ticker-top-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4rem;
}

.ticker-bottom-row {
    display: flex;
    justify-content: center;
}

.ticker-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ticker-sup {
    font-size: 1rem;
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.ticker-currency {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--secondary);
}

.ticker-digits {
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 700;
    font-family: 'Outfit', monospace;
    background: linear-gradient(135deg, #F98F4F 0%, #F26E22 40%, var(--gradient-text-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
}

.ticker-sub {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Age Sub Stats */
.age-stats-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.age-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.age-stat-num {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #F98F4F 0%, #F26E22 60%, var(--gradient-text-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Outfit', monospace;
    line-height: 1;
}

.age-stat-label {
    font-size: 0.85rem;
    color: var(--secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .age-stats-grid {
        gap: 2rem;
    }
}

/* ==========================================================================
   Partners Section
   ========================================================================== */
.partners {
    padding: 6rem 0;
    overflow: hidden;
    border-bottom: none;
}

.partners-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 3rem;
}

.partners-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 3.5rem;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3rem; /* Space between the two tracks */
}

/* Removed fade masks completely — no side gradients as requested */
.marquee-container::before,
.marquee-container::after {
    display: none !important;
}

.marquee-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    gap: 2rem;
}

.marquee-track.left {
    animation: scroll-marquee-left 50s linear infinite;
}

.marquee-track.right {
    animation: scroll-marquee-right 50s linear infinite;
}

.marquee-container {
    user-select: none;
}
.marquee-content {
    display: flex;
    flex-shrink: 0;
    min-width: max-content;
    gap: 2rem;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    width: 180px; /* Precise unified container width */
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.partner-item img {
    height: 42px; /* Strict unified height for all logos */
    max-width: 140px; /* Strict unified width constraint */
    object-fit: contain;
    /* Transformation logic:
       brightness(0) makes everything black.
       invert(1) makes it white.
       This works even if the original SVG was white, black, or colored.
    */
    filter: brightness(0) invert(1) opacity(0.5);
    transition: filter 0.4s ease, transform 0.4s ease, opacity 0.4s ease;
    -webkit-user-drag: none;
}

.partner-item img.logo-sm {
    height: 68px; /* Balanced for compact/square logos */
}

/* Custom sizing for Najm — viewBox cropped to content area so no offset needed */
.partner-item img.logo-najm {
    height: 72px;
    min-width: 92px;
}

/* Custom sizing for SecuGen — wide oval logo needs extra horizontal room */
.partner-item img.logo-secugen {
    height: 50px;
    max-width: 172px;
}

[data-theme="light"] .partner-item img {
    /* Pure black silhouettes for light mode */
    filter: brightness(0) opacity(0.4);
}

.partner-item:hover img {
    /* Original colors on hover (force removal of all filters) */
    filter: brightness(1) invert(0) grayscale(0) !important;
    opacity: 1 !important;
    transform: scale(1.1);
}

/* Custom hover state for Najm — dark green (#155E30) */
.partner-item:hover img.logo-najm {
    filter: brightness(0) saturate(100%) invert(32%) sepia(35%) saturate(1212%) hue-rotate(100deg) brightness(97%) contrast(91%) !important;
    transform: scale(1.1);
}

.partner-item:hover img.logo-secugen {
    transform: scale(1.1);
}

@keyframes scroll-marquee-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 1rem));
    }
}

@keyframes scroll-marquee-right {
    0% {
        transform: translateX(calc(-50% - 1rem));
    }
    100% {
        transform: translateX(0);
    }
}

/* ==========================================================================
   Portfolio Section
   ========================================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.portfolio-card {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-10px) rotate(-0.5deg);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(242, 110, 34, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.portfolio-img {
    height: 240px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img img {
    transform: scale(1.04);
}

/* Theme-aware image swap — dark is default */
.portfolio-img .portfolio-img-light { display: none; }
[data-theme="light"] .portfolio-img .portfolio-img-dark { display: none; }
[data-theme="light"] .portfolio-img .portfolio-img-light { display: block; }

/* Gradient fallbacks — used by index.php portfolio cards */
.bg-gradient-1 { background: linear-gradient(45deg, #1A365D, #2B4C7E); }
.bg-gradient-2 { background: linear-gradient(45deg, #F26E22, #D95D1A); }
.bg-gradient-3 { background: linear-gradient(45deg, #2B4C7E, #F26E22); }

.portfolio-content {
    padding: 2rem;
}

.portfolio-category {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.portfolio-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.portfolio-card p {
    color: var(--text-muted);
}

/* Portfolio Highlight */
.portfolio-highlight {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    padding: 4rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.portfolio-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
    pointer-events: none;
}

.portfolio-highlight-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.portfolio-highlight-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.portfolio-highlight-content p {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .portfolio-highlight {
        padding: 2.5rem 1.5rem;
    }
    
    .portfolio-highlight-content h3 {
        font-size: 1.6rem;
    }

    .portfolio-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
        gap: 1.2rem;
        padding-bottom: 1rem;
        /* Allow edge-to-edge scroll by breaking out of container padding */
        margin-left: -2rem;
        margin-right: -2rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .portfolio-grid::-webkit-scrollbar {
        display: none;
    }

    .portfolio-card {
        flex: 0 0 85%;
        max-width: 320px;
        scroll-snap-align: center;
    }
}

/* ==========================================================================
   Careers Section
   ========================================================================== */
.careers-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.glass-panel {
    background: transparent;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
}

.dark-mode-override .glass-panel {
    background: rgba(10, 15, 28, 0.5);
    border-color: var(--border-color);
}

.glass-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.glass-item i {
    color: var(--primary);
    font-size: 1.75rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding-top: 6rem;
    padding-bottom: 2rem;
}

.footer-cta {
    background: var(--gradient-primary);
    border-radius: 2rem;
    padding: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6rem;
    box-shadow: var(--shadow-glow);
}

.footer-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.footer-cta p {
    font-size: 1.25rem;
    opacity: 0.9;
}

.footer-cta .btn {
    background: white;
    color: var(--primary);
}

.footer-cta .btn:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1.5rem;
    max-width: 400px;
}

.footer h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-links ul li,
.footer-locations ul li {
    margin-bottom: 1rem;
}

.footer-links a,
.footer-locations a {
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover,
.footer-locations a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-locations i {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: none;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    font-size: 1.25rem;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ==========================================================================
   Why Choose Us Section
   ========================================================================== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-glow), 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary);
}

.why-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-flex;
    padding: 1rem;
    background: rgba(242, 110, 34, 0.1);
    border-radius: 1rem;
}

.why-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.why-card p {
    color: var(--text-muted);
}

/* ==========================================================================
   Methodology Section
   ========================================================================== */
.methodology-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
}

/* Connecting line */
.methodology-timeline::before {
    content: '';
    position: absolute;
    top: 4rem;
    left: 4rem;
    right: 4rem;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
    z-index: 0;
}

@media (max-width: 992px) {
    .methodology-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .methodology-timeline::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .methodology-timeline {
        grid-template-columns: 1fr;
    }
}

.method-step {
    position: relative;
    z-index: 1;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: var(--transition);
}

.dark-mode-override .method-step {
    background: var(--bg-card);
    border-color: var(--border-color);
}

.method-step:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step-num {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-glow);
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.step-content p {
    color: var(--text-muted);
}

/* ==========================================================================
   Technology Stack Section
   ========================================================================== */
.tech-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 4rem;
}

@media (max-width: 992px) {
    .tech-grid {
        flex-direction: column;
        align-items: center;
    }
}

.tech-category {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

.tech-category h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.dark-mode-override .tech-category h4 {
    color: white;
}

.tech-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.tech-logos span {
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.tech-logos span:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    padding: 3rem;
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(242, 110, 34, 0.1);
    transform: translateY(-5px);
}

.quote-icon {
    font-size: 3rem;
    color: rgba(242, 110, 34, 0.2);
    position: absolute;
    top: 2rem;
    right: 2rem;
}

.quote-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.dark-mode-override .quote-text {
    color: white;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(26, 54, 93, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.author-info h4 {
    font-size: 1.125rem;
    margin: 0;
}

.author-info span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Insights Section
   ========================================================================== */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.insight-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.insight-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.2);
}

.insight-meta {
    font-size: 0.875rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.insight-card h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.4;
    flex-grow: 1;
}

.insight-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
}

.insight-link:hover {
    color: var(--secondary);
}

.insight-link:hover i {
    transform: translateX(5px);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    background: transparent;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info .section-desc {
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.contact-detail-item i {
    font-size: 1.5rem;
    color: var(--secondary);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(242, 110, 34, 0.1);
    border-radius: 0.75rem;
    flex-shrink: 0;
}

.contact-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3e%3cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23f26e22' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    padding-right: 3rem;
}

.form-group select:invalid {
    color: var(--text-muted);
}

.form-group select option {
    background-color: #0a0e1a;
    color: var(--text-main);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(242, 110, 34, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-full {
    width: 100%;
}

/* Custom Form Validation */
.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
    border-color: #f26e22;
    background: rgba(242, 110, 34, 0.05);
}

.form-error-message {
    display: block;
    color: #f26e22;
    font-size: 0.8125rem;
    margin-top: 0.35rem;
    font-family: var(--font-body);
    animation: slideInError 0.2s ease-out forwards;
    opacity: 0;
    transform: translateY(-5px);
}

@keyframes slideInError {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form submission success state */
.contact-form.submitted {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.form-success {
    text-align: center;
}

.form-success i {
    font-size: 4rem;
    color: #4ade80;
    margin-bottom: 1.5rem;
}

.form-success h3 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.form-success p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* ==========================================================================
   Scroll-to-Top Button
   ========================================================================== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(242, 110, 34, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 110, 34, 0.4);
}

/* ==========================================================================
   Hero Particles Canvas
   ========================================================================== */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ==========================================================================
   Footer Bottom Links
   ========================================================================== */
.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-bottom-links a:hover {
    color: var(--secondary);
}

/* ==========================================================================
   Logo in Footer
   ========================================================================== */
.footer .logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.footer .logo .dot {
    color: var(--secondary);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/* Cursor Glow Follower */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 110, 34, 0.08), transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, opacity 0.3s;
    opacity: 0.6;
}

.cursor-glow.active {
    width: 400px;
    height: 400px;
    opacity: 1;
    background: radial-gradient(circle, rgba(242, 110, 34, 0.12), transparent 70%);
}

@media (max-width: 768px) {
    .cursor-glow {
        display: none;
    }
}

/* Stagger Reveal */
.stagger-in {
    animation: staggerReveal 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes staggerReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Slide In From Left */
.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-60px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animated gradient mesh background for dark sections */
.dark-section {
    position: relative;
}

.dark-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(26, 54, 93, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(242, 110, 34, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(26, 54, 93, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: meshFloat 15s ease-in-out infinite alternate;
}

.dark-section>* {
    position: relative;
    z-index: 1;
}

@keyframes meshFloat {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.7;
    }
}

.section {
    position: relative;
    overflow: hidden;
}

.section>* {
    position: relative;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 992px) {

    .stats-showcase,
    .trust-grid,
    .careers-layout,
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-cta {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-content {
        margin-bottom: 0;
    }

    #globe-canvas {
        max-width: 100% !important;
        height: auto !important;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .trust-title {
        font-size: 2.2rem;
    }

    .trust-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .trust-stat::after {
        display: none;
    }

    .ticker-top-row {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .ticker-digits {
        font-size: 3.5rem;
    }

    .ticker-sup {
        font-size: 0.8rem;
    }

    #age-time {
        font-size: 2rem;
    }

    .footer-grid, 
    .contact-grid, 
    .careers-layout, 
    .testimonials-grid,
    .why-grid,
    .methodology-timeline {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-container {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .nav-links,
    .btn-nav {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-light);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        align-items: center;
    }

    .mobile-menu-btn {
        display: block;
        color: var(--primary);
        position: absolute;
        left: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .theme-toggle-btn {
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        display: flex;
    }
}

/* ==========================================================================
   Phase 2 Perf — Remove backdrop-filter on touch devices (sections.css)
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
    /* Careers glass panel */
    .glass-panel {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background-color: rgba(10, 22, 40, 0.92) !important;
    }

    [data-theme="light"] .glass-panel {
        background-color: rgba(248, 250, 252, 0.96) !important;
    }

    /* Contact form */
    .contact-form {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background-color: rgba(10, 22, 40, 0.85) !important;
    }

    [data-theme="light"] .contact-form {
        background-color: rgba(255, 255, 255, 0.95) !important;
    }
}

/* ==========================================================================
   Coming Soon Section
   ========================================================================== */
.coming-soon-section {
  padding: 120px 24px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.coming-soon-container {
  max-width: 600px;
  margin: 0 auto;
}

.coming-soon-icon {
  font-size: 72px;
  color: #F75C28;
  margin-bottom: 24px;
  animation: comingSoonPulse 2s ease-in-out infinite;
}

@keyframes comingSoonPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.coming-soon-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #F75C28;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.coming-soon-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  line-height: 1.2;
}

.coming-soon-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.coming-soon-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.coming-soon-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

@media (max-width: 600px) {
  .coming-soon-section { padding: 80px 20px; }
  .coming-soon-actions { flex-direction: column; align-items: stretch; }
  .coming-soon-actions .btn { width: 100%; }
}

.mobile-nav-wrapper.active { display: block; }

/* ==========================================================================
   Service Page Content
   ========================================================================== */
.service-content {
    padding: 5rem 0 7rem;
}

.service-content-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.service-content h2 {
    font-size: 2rem;
    color: var(--text-main);
    margin: 3.5rem 0 1.5rem;
    font-weight: 700;
}

.service-content h2:first-child {
    margin-top: 0;
}

.service-content h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.service-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-content ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.service-content li {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.service-content li strong {
    color: var(--text-main);
}

.service-content a {
    color: var(--secondary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.service-content a:hover {
    border-color: var(--secondary);
}

.service-cta {
    margin-top: 5rem;
    padding: 3rem;
    background: rgba(242,110,34,0.05);
    border: 1px solid rgba(242,110,34,0.2);
    border-radius: 8px;
    text-align: center;
}

.service-cta h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.service-cta p {
    margin-bottom: 2rem;
}

.service-cta .btn-primary {
    color: #ffffff !important;
    opacity: 1 !important;
    font-weight: 700;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .service-content {
        padding: 3rem 0 5rem;
    }
    .service-content h2 {
        font-size: 1.6rem;
    }
    .service-content h3 {
        font-size: 1.25rem;
    }
    .service-content p, .service-content li {
        font-size: 1rem;
    }
    .service-cta {
        padding: 2rem 1.5rem;
    }
}
/* Fix for missing animations.js on service pages */
.service-content .fade-in-up, .page-hero .fade-in-up {
    opacity: 1 !important;
    transform: none !important;
}

/* ==========================================================================
   Page Media — hero + section images for capability/industry sub-pages
   ========================================================================== */
.page-feature-media,
.page-section-media {
    position: relative;
    z-index: 1;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.page-feature-media {
    max-width: 1440px;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

.page-section-media {
    max-width: 960px;
    margin-top: 4.5rem;
    margin-bottom: 1.5rem;
}

.page-media-frame {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: var(--bg-card);
    box-shadow:
        0 30px 80px -20px rgba(242, 110, 34, 0.18),
        0 12px 40px -10px rgba(26, 54, 93, 0.45);
}

[data-theme="light"] .page-media-frame {
    box-shadow:
        0 30px 80px -20px rgba(242, 110, 34, 0.18),
        0 12px 40px -10px rgba(26, 54, 93, 0.18);
}

.page-feature-media .page-media-frame {
    aspect-ratio: 21 / 9;
}

.page-section-media .page-media-frame {
    aspect-ratio: 16 / 9;
    border-radius: 14px;
}

.page-media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Theme-aware variant swap (dark image shown by default) */
.page-media-frame .page-media-img-light { display: none; }
[data-theme="light"] .page-media-frame .page-media-img-dark { display: none; }
[data-theme="light"] .page-media-frame .page-media-img-light { display: block; }

/* Soft inner edge so the photo blends into the page background */
.page-media-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 70px 20px var(--bg-dark);
    opacity: 0.35;
    transition: opacity 0.4s ease;
}

[data-theme="light"] .page-media-frame::after {
    opacity: 0.25;
}

/* Hero image — auto reveals on page load */
.page-feature-media {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    animation: synk-page-media-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

/* Section image — waits for IntersectionObserver to add .is-revealed */
.page-section-media {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-section-media.is-revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@keyframes synk-page-media-in {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-feature-media,
    .page-section-media {
        animation: none;
        transition: none;
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 768px) {
    .page-feature-media {
        margin-top: 0;
        padding: 0 1rem;
    }
    .page-feature-media .page-media-frame {
        aspect-ratio: 4 / 3;
        border-radius: 14px;
    }
    .page-section-media {
        margin-top: 3rem;
        padding: 0 1rem;
    }
    .page-section-media .page-media-frame {
        aspect-ratio: 4 / 3;
        border-radius: 12px;
    }
}

/* ==========================================================================
   Synk sub-page sections (Accenture/DXC/PwC-style layout)
   ========================================================================== */

.synk-section {
    position: relative;
    padding: 7rem 0;
}

.synk-section + .synk-section { padding-top: 0; }

.synk-section--problem  { padding-top: 6rem; }
.synk-section--process  { padding-top: 7rem; }
.synk-section--outcomes { padding-top: 7rem; }
.synk-section--proof    { padding-top: 7rem; }
.synk-section--adjacent { padding-top: 7rem; }
.synk-section--cta      { padding: 6rem 0 8rem; }

.synk-section .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.synk-section-head {
    max-width: 880px;
    margin-bottom: 3rem;
}

.synk-section--proof .synk-section-head,
.synk-section--cta .synk-section-head {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.synk-section-label {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 1.4rem;
}

.synk-section-label::before {
    content: '';
    width: 36px;
    height: 1px;
    background: var(--secondary);
    display: inline-block;
}

.synk-section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--text-main);
    margin: 0 0 0.6rem;
}

.synk-section--problem .synk-section-title { max-width: 880px; }

.synk-prose {
    max-width: 820px;
    color: var(--text-muted);
}

.synk-prose p {
    font-size: 1.125rem;
    line-height: 1.75;
    margin: 0 0 1.4rem;
}

.synk-prose p:last-child { margin-bottom: 0; }

.synk-prose strong { color: var(--text-main); font-weight: 600; }

.synk-prose a {
    color: var(--text-main);
    text-decoration: none;
    background-image: linear-gradient(var(--secondary), var(--secondary));
    background-size: 100% 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    padding-bottom: 2px;
    transition: background-size 0.4s ease, color 0.3s ease;
}

.synk-prose a:hover {
    color: var(--secondary);
    background-size: 100% 2px;
}

/* — Problem section: large accent quote bar */
.synk-section--problem::before {
    content: '';
    position: absolute;
    left: max(1.5rem, calc((100vw - 1240px) / 2 + 1.5rem));
    top: 6rem;
    bottom: auto;
    width: 3px;
    height: 80px;
    background: linear-gradient(180deg, var(--secondary) 0%, transparent 100%);
    z-index: 1;
    border-radius: 4px;
    opacity: 0.55;
}

/* — Process grid (3 numbered steps) */
.synk-process-intro {
    max-width: 820px;
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.75;
    margin: 0 0 3rem;
}

.synk-process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.synk-process-step {
    position: relative;
    padding: 2.4rem 2rem 2.2rem;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1),
                border-color 0.4s ease,
                background 0.4s ease,
                box-shadow 0.5s ease;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

[data-theme="light"] .synk-process-step {
    border-color: rgba(15,22,35,0.08);
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(15,22,35,0.04);
}

.synk-process-step::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(242,110,34,0.10), rgba(242,110,34,0) 55%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.synk-process-step:hover {
    border-color: rgba(242,110,34,0.45);
    box-shadow: 0 30px 60px -25px rgba(242,110,34,0.35),
                0 12px 30px -12px rgba(26,54,93,0.35);
}

.synk-process-step:hover::after { opacity: 1; }

.synk-step-number {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--secondary) 0%, #F98F4F 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.2rem;
    letter-spacing: -2px;
}

.synk-step-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 0.9rem;
    line-height: 1.3;
}

.synk-step-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
}

/* — Outcomes grid (cards from <li>) */
.synk-outcomes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.synk-outcome-card {
    position: relative;
    display: flex;
    gap: 1.1rem;
    padding: 2rem 2rem 2rem 1.75rem;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 3px solid var(--secondary);
    border-radius: 14px;
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1),
                background 0.4s ease,
                border-color 0.4s ease,
                box-shadow 0.5s ease;
    will-change: transform;
    transform-style: preserve-3d;
}

[data-theme="light"] .synk-outcome-card {
    background: #ffffff;
    border-color: rgba(15,22,35,0.08);
    border-left-color: var(--secondary);
}

.synk-outcome-card:hover {
    background: var(--bg-card-hover);
    box-shadow: 0 22px 50px -22px rgba(26,54,93,0.4);
}

.synk-outcome-icon {
    color: var(--secondary);
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.synk-outcome-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.synk-outcome-card p strong {
    display: inline;
    color: var(--text-main);
    font-weight: 700;
}

/* — Proof panel */
.synk-proof-panel {
    max-width: 920px;
    margin: 0 auto;
    padding: 3.4rem 3rem;
    background: linear-gradient(135deg, rgba(242,110,34,0.08) 0%, rgba(26,54,93,0.04) 100%);
    border: 1px solid rgba(242,110,34,0.22);
    border-radius: 22px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1),
                box-shadow 0.5s ease;
    will-change: transform;
    transform-style: preserve-3d;
}

.synk-proof-panel::before {
    content: '"';
    position: absolute;
    top: -40px;
    left: 28px;
    font-family: var(--font-heading);
    font-size: 12rem;
    line-height: 1;
    color: var(--secondary);
    opacity: 0.10;
    pointer-events: none;
}

.synk-proof-panel .synk-section-label { justify-content: center; }
.synk-proof-panel .synk-section-label::before { display: none; }

.synk-proof-panel .synk-section-title {
    margin-bottom: 1.6rem;
}

.synk-proof-body {
    font-size: 1.18rem;
    line-height: 1.8;
    color: var(--text-main);
    margin: 0;
    font-weight: 400;
}

/* — Adjacent services: chip-style inline links */
.synk-section--adjacent .synk-prose {
    max-width: 920px;
    font-size: 1.125rem;
}

.synk-section--adjacent .synk-prose a {
    color: var(--secondary);
    background: rgba(242,110,34,0.08);
    background-image: none;
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
}

.synk-section--adjacent .synk-prose a:hover {
    background: var(--secondary);
    color: #ffffff;
}

/* — CTA panel */
.synk-cta-panel {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding: 3.6rem 3rem;
    background: var(--bg-card);
    border: 1px solid rgba(242,110,34,0.22);
    border-radius: 24px;
    text-align: center;
    overflow: hidden;
}

[data-theme="light"] .synk-cta-panel {
    background: #ffffff;
    border-color: rgba(242,110,34,0.25);
    box-shadow: 0 20px 60px -28px rgba(26,54,93,0.18);
}

.synk-cta-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(242,110,34,0.18), transparent 65%);
    pointer-events: none;
    opacity: 0.9;
}

.synk-cta-panel > * { position: relative; z-index: 1; }

.synk-cta-panel h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 1rem;
    line-height: 1.2;
}

.synk-cta-panel p {
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 2rem;
}

.synk-cta-panel .btn-primary {
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 0.4px;
}

/* — Section image wrapper around .page-section-media */
.synk-media-row {
    padding: 2rem 0 1rem;
}

/* — Scroll reveal (slide up + fade).
   CSS failsafe: if JS hasn't added .is-revealed within 1.2s, force-reveal
   so users never see permanently invisible content. */
.synk-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--synk-delay, 0s);
    animation: synk-failsafe-reveal 0.001s linear 1.2s forwards;
}

.synk-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
    animation: none;
}

@keyframes synk-failsafe-reveal {
    to { opacity: 1; transform: translateY(0); }
}

/* — Clip-path reveal for section media frames only.
   Failsafe: auto-reveal after 1.5s if JS doesn't fire. */
.synk-clip-reveal {
    clip-path: inset(0 100% 0 0 round 14px);
    transition: clip-path 0.9s cubic-bezier(0.7, 0, 0.3, 1);
    animation: synk-failsafe-clip 0.001s linear 1.5s forwards;
}

.synk-clip-reveal.is-revealed {
    clip-path: inset(0 0% 0 0 round 14px);
    animation: none;
}

@keyframes synk-failsafe-clip {
    to { clip-path: inset(0 0% 0 0 round 14px); }
}

/* — Parallax wrapper hint */
.synk-parallax {
    will-change: transform;
}

/* — 3D tilt media frames (lighter than card tilt) */
.synk-tilt-media {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .synk-reveal,
    .synk-clip-reveal {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        transition: none !important;
    }
    .synk-parallax,
    .synk-tilt-media { transform: none !important; }
}

/* — Responsive */
@media (max-width: 980px) {
    .synk-section { padding: 5rem 0; }
    .synk-section + .synk-section { padding-top: 0; }
    .synk-process-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .synk-outcomes-grid { grid-template-columns: 1fr; gap: 1rem; }
    .synk-proof-panel { padding: 2.4rem 1.6rem; }
    .synk-cta-panel { padding: 2.6rem 1.6rem; }
    .synk-section-head { margin-bottom: 2.2rem; }
}

@media (max-width: 640px) {
    .synk-section { padding: 4rem 0; }
    .synk-prose p { font-size: 1rem; }
    .synk-step-number { font-size: 2.6rem; }
    .synk-outcome-card { padding: 1.4rem 1.25rem; }
    .synk-proof-body { font-size: 1.05rem; }
    .synk-section--problem::before { display: none; }
}