/* ==========================================================================
   MaAngo Tech Labs - Stylesheet
   ========================================================================== */

/* 1. Imports & Core variables */
@import url('https://fonts.googleapis.com/css2?family=Michroma&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Orbitron:wght@400;500;700;900&display=swap');

:root {
    /* Color Palette */
    --bg-color: #000000;
    --bg-darker: #02040a;
    --bg-card: rgba(5, 10, 25, 0.65);
    
    --primary-blue: #0052d4;
    --electric-blue: #0072ff;
    --cyan: #00e5ff;
    --neon-glow: rgba(0, 229, 255, 0.35);
    
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #8b949e;
    --text-blue: #38bdf8;
    
    /* Fonts */
    --font-heading: 'Michroma', sans-serif;
    --font-ui: 'Plus Jakarta Sans', sans-serif;
    --font-tech: 'Orbitron', sans-serif;
    
    /* Layout */
    --header-height: 80px;
    --max-width: 1400px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 2. Resets & Baseline */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto;
    background-color: var(--bg-color);
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    color: var(--text-primary);
    font-family: var(--font-ui);
    overflow-x: hidden;
    height: 100%;
}

body {
    background-color: transparent;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 3. Interactive WebGL canvas background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 25%, #081636 0%, #030c22 45%, #01040e 80%, #000208 100%);
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

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

button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* Section Common Styles */
.section {
    padding: calc(var(--header-height) + 12px) 20px 24px;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: transparent;
}

.section-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.section-subtitle {
    font-family: var(--font-tech);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-blue);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 42px;
    line-height: 1.4;
    font-weight: 400;
    margin-top: 15px;
    letter-spacing: -0.5px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    font-weight: 300;
    max-width: 600px;
    margin-top: 25px;
}

.highlight-blue {
    color: var(--text-blue);
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
}

/* 4. Header & Navigation Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Burger Button */
.burger-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.burger-btn:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
    color: var(--cyan);
}

/* Let's Talk Button */
.lets-talk-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-family: var(--font-tech);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: var(--transition-fast);
}

.lets-talk-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.lets-talk-btn .arrow-icon {
    transition: transform 0.3s ease;
}

.lets-talk-btn:hover .arrow-icon {
    transform: translate(2px, -2px);
    color: var(--cyan);
}

.mobile-contact-btn {
    display: none;
}

/* Premium collapsible navigation: burger keeps control while the rest of the header slides left */
.header .nav-menu,
.header .header-right,
.header .lets-talk-btn {
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.35s ease,
                visibility 0s linear 0s;
    will-change: transform, opacity;
}

.header.menu-collapsed .nav-menu,
.header.menu-collapsed .header-right,
.header.menu-collapsed .lets-talk-btn {
    transform: translateX(calc(-100vw - 120px));
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.25s ease,
                visibility 0s linear 0.55s;
}

.header.menu-collapsed {
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.header.menu-collapsed .burger-btn {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    background: rgba(5, 8, 14, 0.72);
    border-color: rgba(0, 229, 255, 0.28);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35), 0 0 24px rgba(0, 229, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header.menu-collapsed .burger-btn:hover {
    transform: translateX(-50%) scale(1.05);
}

/* Navigation Links */
.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-menu a {
    font-family: var(--font-tech);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--text-muted);
    transition: var(--transition-fast);
    position: relative;
    padding: 8px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
}

.nav-menu a.active {
    color: var(--cyan);
}

.nav-menu a .dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: var(--cyan);
    border-radius: 50%;
    margin-left: 6px;
    box-shadow: 0 0 8px var(--cyan);
    vertical-align: middle;
}

/* Active indicator dot underneath active tab */
.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--cyan);
}

/* Logo on Right */
.logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    height: auto;
    text-decoration: none;
}

.logo img {
    display: block;
    width: 160px;
    height: auto;
    max-height: 48px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo img {
        width: 135px;
        max-height: 42px;
    }
}

/* 5. Hero Section Styles */
.hero-section {
    padding: 80px 20px 40px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    padding-left: 35px;
}

.subtitle-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.subtitle-line {
    width: 10px;
    height: 1px;
    background-color: var(--text-blue);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 46px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.typewriter-text {
    color: var(--text-blue);
    text-shadow: 0 0 20px rgba(0, 114, 255, 0.4);
}

.cursor {
    font-weight: 100;
    color: var(--text-blue);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-desc {
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 30px;
    max-width: 520px;
}

.learn-more-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-tech);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-top: 45px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 6px;
}

.learn-more-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 1px;
    background-color: var(--text-blue);
    transition: var(--transition-normal);
}

.learn-more-link:hover::after {
    width: 100%;
    background-color: var(--cyan);
}

.learn-more-link .arrow-right {
    transition: transform var(--transition-fast);
}

.learn-more-link:hover .arrow-right {
    transform: translateX(5px);
    color: var(--cyan);
}

.hero-visual {
    height: 550px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#cube-container {
    width: 100%;
    height: 100%;
}


/* 6. Services Section (Screenshot 5) */
.services-section {
    position: relative;
    overflow: hidden;
}

.services-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 140px;
    width: 100%;
}

/* Semicircular Arc Container */
.services-arc-wrapper {
    position: absolute;
    top: -140px;
    width: 100%;
    height: 420px;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.services-arc {
    position: relative;
    width: 820px;
    height: 820px;
    border-radius: 50%;
    pointer-events: auto;
}

.services-arc::after {
    content: '';
    position: absolute;
    inset: 7% 3%;
    border-radius: 50%;
    border: 1px solid transparent;
    background: linear-gradient(90deg, transparent, rgba(0,229,255,.24), transparent) border-box;
    -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transform: rotate(-12deg);
    pointer-events: none;
}

.services-section.is-active .services-arc::after {
    animation: rainbowSweep 1.8s ease-out 0.35s both;
}

@keyframes rainbowSweep {
    0% { opacity: 0; transform: rotate(-24deg) scale(.96); }
    25% { opacity: .85; }
    100% { opacity: 0; transform: rotate(12deg) scale(1.02); }
}

/* Glowing Service Cards */
.service-card {
    position: absolute;
    width: 145px;
    height: 145px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), 
                box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), 
                border-color 0.35s ease, 
                background 0.35s ease;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 2;
    
    /* Centering calculation in the circle */
    left: 50%;
    top: 50%;
    --angle: calc(-78deg + var(--card-index) * 22.3deg);
    --radius: 290px;
    
    --arc-transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(-1 * var(--radius))) rotate(calc(-0.45 * var(--angle)));
    transform: var(--arc-transform);
    opacity: 1;
}

/* Rainbow expansion choreography:
   When the Services section becomes active, the cards do NOT fly in from
   outside the viewport. Instead, they begin stacked at the leftmost card's
   position and expand outward one-by-one into their final rainbow arc. */
.service-card {
    --fan-start: translate(-50%, -50%) rotate(-78deg) translateY(calc(-1 * var(--radius))) rotate(35.1deg);
    transform-origin: center center;
}

.services-section:not(.is-active) .service-card {
    opacity: 0;
    transform: var(--fan-start) scale(0.82);
}

.services-section.is-active .service-card {
    animation: servicesRainbowExpand 0.58s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: calc(var(--card-index) * 58ms);
    will-change: transform, opacity;
}

@keyframes servicesRainbowExpand {
    0% {
        opacity: 0;
        transform: var(--fan-start) scale(0.78);
    }
    18% {
        opacity: 1;
        transform: var(--fan-start) scale(0.96);
    }
    68% {
        opacity: 1;
        transform: var(--fan-start) scale(1.035);
    }
    84% {
        transform: var(--arc-transform) scale(1.025);
    }
    100% {
        opacity: 1;
        transform: var(--arc-transform) scale(1);
    }
}

/* A subtle light follows the expansion so the rainbow feels like one
   connected formation rather than eight unrelated card animations. */
.services-section.is-active .services-arc::before {
    content: '';
    position: absolute;
    left: 2%;
    top: 50%;
    width: 18%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,229,255,.75), transparent);
    filter: blur(.2px);
    opacity: 0;
    transform: translateY(-50%);
    animation: rainbowFormationLight 1.9s cubic-bezier(.2,.8,.2,1) .15s both;
    pointer-events: none;
}

@keyframes rainbowFormationLight {
    0% { opacity: 0; left: 0%; }
    15% { opacity: .9; }
    70% { opacity: .5; }
    100% { opacity: 0; left: 80%; }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-fast);
}

.card-glow {
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--cyan), transparent 60%);
    z-index: -1;
    opacity: 0;
    transition: var(--transition-fast);
}

.service-card:hover,
.services-section.is-active .service-card:hover {
    z-index: 50;
    background: rgba(8, 18, 38, 0.88);
    border-color: var(--cyan);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 229, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(-1 * var(--radius) - 15px)) rotate(calc(-0.45 * var(--angle))) scale(1.14);
}

.service-card:hover .card-glow,
.services-section.is-active .service-card:hover .card-glow {
    opacity: 0.4;
}

.card-icon {
    width: 36px;
    height: 36px;
    color: var(--cyan);
    filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.3));
    transition: transform var(--transition-normal);
}

.service-card:hover .card-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.85));
}

.card-title {
    font-family: var(--font-ui); /* Match the site-wide UI font */
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition-fast);
}

.service-card:hover .card-title {
    color: #ffffff;
}

/* Center Content block */
.services-center-content {
    text-align: center;
    z-index: 10;
    margin-bottom: 0px;
}

.subtitle-center {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.subtitle-deco-line {
    width: 25px;
    height: 1px;
    background-color: var(--text-blue);
}

.services-center-content .section-title {
    font-size: 34px;
    line-height: 1.25;
}

.services-center-content .section-desc {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.55;
}

.explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 10px 24px;
    border-radius: 30px;
    border: 1px solid rgba(0, 229, 255, 0.25);
    font-family: var(--font-tech);
    font-size: 11px;
    letter-spacing: 1.5px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.explore-btn:hover {
    background: rgba(0, 229, 255, 0.05);
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
}

.explore-btn .arrow-icon {
    transition: transform var(--transition-fast);
}

.explore-btn:hover .arrow-icon {
    transform: translateX(4px);
    color: var(--cyan);
}

/* Bottom Pillars Grid */
.services-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 850px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
}

.pillar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pillar-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-blue);
    margin-bottom: 10px;
    transition: var(--transition-fast);
}

.pillar-col:hover .pillar-icon {
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
    color: var(--cyan);
    transform: translateY(-2px);
}

.pillar-title {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.pillar-text {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 300;
    margin-top: 6px;
}


/* 7. Process Section (Screenshot 2) */
.process-section {
    overflow: hidden;
    position: relative;
}

.process-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.process-header {
    text-align: center;
    margin-bottom: 20px;
}

.process-header .section-title {
    font-size: 34px;
    line-height: 1.25;
    margin-top: 8px;
}

.process-header .section-desc {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 620px;
}

.process-accent-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--text-blue), transparent);
    margin: 14px auto 0;
}

/* Timeline Layout */
.timeline-wrapper {
    --timeline-line-inset: 70px;
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 14px auto 20px;
    padding: 0 30px;
}

.timeline-progress-bg {
    position: absolute;
    top: 48px;
    left: var(--timeline-line-inset);
    right: var(--timeline-line-inset);
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08) 6px, transparent 6px, transparent 12px);
    z-index: 1;
}

.timeline-progress-bar {
    position: absolute;
    top: 48px;
    left: var(--timeline-line-inset);
    width: 0;
    max-width: calc(100% - (var(--timeline-line-inset) * 2));
    height: 2px;
    background: linear-gradient(90deg, var(--electric-blue), var(--cyan));
    box-shadow: 0 0 8px var(--cyan);
    z-index: 2;
    transition: width 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.timeline-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: relative;
    z-index: 3;
    gap: 12px;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

/* Badges showing 01, 02... */
.step-badge {
    font-family: var(--font-tech);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-fast);
    margin-bottom: 10px;
}

.timeline-step:hover .step-badge,
.timeline-step.active .step-badge {
    color: var(--cyan);
}

/* Circular nodes */
.step-node-outer {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition-normal);
}

.step-node-outer::before {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 229, 255, 0);
    transition: var(--transition-normal);
}

.step-node-inner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.step-node-inner svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 0 2px transparent);
    transition: var(--transition-fast);
}

.timeline-step:hover .step-node-outer {
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.25);
    transform: scale(1.04);
}

.timeline-step.active .step-node-outer {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
}

.timeline-step:hover .step-node-outer::before,
.timeline-step.active .step-node-outer::before {
    border-color: rgba(0, 229, 255, 0.4);
    animation: rotate 10s linear infinite;
}

.timeline-step:hover .step-node-inner,
.timeline-step.active .step-node-inner {
    background: rgba(0, 229, 255, 0.05);
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: inset 0 0 8px rgba(0, 229, 255, 0.2);
}

.timeline-step:hover .step-node-inner svg,
.timeline-step.active .step-node-inner svg {
    filter: drop-shadow(0 0 6px var(--cyan));
}

/* Step Info text below */
.step-info {
    margin-top: 12px;
    padding: 0 6px;
}

.step-title {
    font-family: var(--font-tech);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.timeline-step:hover .step-title,
.timeline-step.active .step-title {
    color: var(--cyan);
}

.step-text {
    font-family: var(--font-ui);
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.45;
    margin-top: 5px;
}

/* Continuous Improvement Panel */
.improvement-banner {
    width: 100%;
    max-width: 850px;
    background: var(--bg-card);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    margin-top: 14px;
}

.banner-glow {
    position: absolute;
    bottom: -150px;
    right: -100px;
    width: 400px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 114, 255, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.banner-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-blue);
    background: rgba(56, 189, 248, 0.05);
    flex-shrink: 0;
}

.banner-text-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.banner-subtitle {
    font-family: var(--font-tech);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-blue);
}

.banner-desc {
    font-family: var(--font-ui);
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.45;
}


/* 8. Build What's Next Section (Screenshot 3) */
.next-section {
    min-height: 100vh;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: transparent;
    padding-top: calc(var(--header-height) + 20px);
}

#next-visual-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.next-container {
    position: relative;
    z-index: 2;
    text-align: center;
    pointer-events: none;
}

.next-title {
    font-family: var(--font-heading);
    transform: translateY(-34px);
    font-size: 58px;
    font-weight: 400;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.scroll-indicator {
    position: absolute;
    bottom: -116px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.scroll-text {
    font-family: var(--font-tech);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--text-muted) 50%, transparent 100%);
    position: relative;
}

.scroll-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    animation: scrollAnimation 2s cubic-bezier(0.15, 0.41, 0.69, 0.94) infinite;
}

@keyframes scrollAnimation {
    0% { top: 0; opacity: 1; }
    50% { top: 40px; opacity: 1; }
    100% { top: 60px; opacity: 0; }
}


/* 9. Let's Build Something Section (Screenshot 4) */
.contact-section {
    padding-top: calc(var(--header-height) + 10px);
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin: 0 auto min(3vh, 22px);
    max-width: 720px;
}

.contact-header .section-subtitle {
    display: block;
    margin-bottom: 8px;
}

.contact-header .section-title {
    font-size: clamp(28px, 3.8vw, 44px);
    line-height: 1.25;
    margin-top: 8px;
}

.contact-header .section-desc {
    margin: 10px auto 0;
    font-size: 15px;
    line-height: 1.6;
    max-width: 600px;
}

.contact-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin: 0 auto min(3.5vh, 28px);
    width: 100%;
}

/* Angled Hexagonal border button */
.cta-hex-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5px;
    background: transparent;
    clip-path: polygon(15px 0%, calc(100% - 15px) 0%, 100% 50%, calc(100% - 15px) 100%, 15px 100%, 0% 50%);
    filter: drop-shadow(0 0 10px rgba(0, 114, 255, 0.15));
    transition: var(--transition-fast);
}

.cta-hex-btn .btn-border {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, var(--primary-blue), var(--cyan));
    z-index: 1;
}

.cta-hex-btn .btn-inner {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 36px;
    background: var(--bg-color);
    clip-path: polygon(14px 0%, calc(100% - 14px) 0%, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0% 50%);
    font-family: var(--font-tech);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    z-index: 2;
    transition: var(--transition-fast);
}

.cta-hex-btn:hover {
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.4));
    transform: translateY(-2px);
}

.cta-hex-btn:hover .btn-inner {
    background: rgba(0, 114, 255, 0.1);
    color: var(--cyan);
}

.cta-hex-btn svg {
    transition: transform var(--transition-fast);
}

.cta-hex-btn:hover svg {
    transform: translateX(4px);
}

/* Play button outline */
.cta-play-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-tech);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    transition: var(--transition-fast);
}

.play-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition-fast);
}

.play-icon-circle svg {
    margin-left: 2px;
    filter: drop-shadow(0 0 2px var(--cyan));
}

.cta-play-btn:hover .play-icon-circle {
    border-color: var(--cyan);
    background: rgba(0, 229, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.25);
    transform: scale(1.05);
}

.cta-play-btn:hover span {
    color: var(--cyan);
}

/* Footer Assurances Grid */
.assurances-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: min(2.5vh, 22px) 28px;
    box-sizing: border-box;
}

.assurance-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
}

.assurance-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(56, 189, 248, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-blue);
    background: rgba(56, 189, 248, 0.03);
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.assurance-card:hover .assurance-icon {
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.25);
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.05);
    transform: translateY(-2px);
}

.assurance-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.assurance-title {
    font-family: var(--font-tech);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-primary);
}

.assurance-text {
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.5;
}


/* 10. Responsive Design Media Queries */

@media (max-width: 1200px) {
    .services-arc-wrapper {
        top: -120px;
    }
    .services-arc {
        width: 800px;
        height: 800px;
    }
    .service-card {
        width: 150px;
        height: 150px;
        --radius: 290px;
        padding: 16px;
    }
    .services-container {
        padding-top: 200px;
    }
    .hero-title {
        font-size: 38px;
    }
    .section-title {
        font-size: 34px;
    }
}

@media (max-width: 992px) {
    html {
        scroll-snap-type: y proximity;
    }
    .section {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 100px 20px 60px;
        scroll-snap-align: start;
        scroll-snap-stop: normal;
        overflow: visible;
    }
    .hero-content {
        padding-left: 0;
    }
    .header {
        padding: 0 30px;
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    .subtitle-wrapper {
        justify-content: center;
    }
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-visual {
        height: 400px;
    }
    
    /* Radial layout down to flex layout on tablets */
    .services-arc-wrapper {
        position: static;
        height: auto;
        width: 100%;
        margin-bottom: 50px;
        pointer-events: auto;
    }
    .services-arc {
        width: 100%;
        height: auto;
        border-radius: 0;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        pointer-events: auto;
    }
    .service-card {
        position: static;
        width: 100%;
        height: 150px;
        transform: none !important;
        margin: 0;
    }
    .service-card:hover {
        z-index: 10;
        transform: translateY(-8px) scale(1.06) !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 229, 255, 0.35) !important;
    }
    .services-container {
        padding-top: 50px;
    }
    
    .timeline-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .timeline-progress-bg,
    .timeline-progress-bar {
        display: none;
    }
    .timeline-step {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        gap: 25px;
    }
    .step-badge {
        margin-bottom: 0;
        margin-top: 15px;
    }
    .step-info {
        margin-top: 0;
        padding: 0;
    }
    
    .assurances-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* hidden on mobile, toggled with burger script */
    }
    .section {
        padding: 60px 15px;
    }
    .hero-title {
        font-size: 32px;
    }
    .section-title {
        font-size: 28px;
    }
    .next-title {
        font-size: 36px;
    }
    
    .services-arc {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-pillars-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .improvement-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    .contact-actions {
        flex-direction: column;
        gap: 20px;
    }
    .assurances-grid {
        grid-template-columns: 1fr;
        padding: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .services-section:not(.is-active) .service-card,
    .services-section.is-active .service-card {
        opacity: 1;
        transform: var(--arc-transform);
        animation: none;
    }
    .services-section.is-active .services-arc::after {
        animation: none;
        opacity: 0;
    }
}

/* 11. Minimal Footer Styles */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background-color: rgba(2, 5, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px 20px;
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-ui);
    z-index: 10;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    box-sizing: border-box;
}

.footer-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.footer-left p {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-center {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-tagline {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.footer-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: none;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-socials a {
    color: var(--text-muted);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-socials a:hover {
    color: var(--cyan);
    transform: translateY(-2px);
}

/* Mobile nav menu open state (used by script.js burger toggle) */
@media (max-width: 768px) {
    /* Full-screen overlay menu — takes over everything except the header bar itself */
    .nav-menu.mobile-open {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(0, 0, 0, 0.97);
        backdrop-filter: blur(16px);
        z-index: 99;
    }
    .nav-menu.mobile-open ul {
        flex-direction: column;
        gap: 34px;
        align-items: center;
    }
    /* Enlarged link text while the menu is open */
    .nav-menu.mobile-open a {
        font-size: 20px;
        letter-spacing: 3px;
    }

    /* While the menu is open, everything in the header hides except the
       logo and the burger button (which morphs into a close icon below) */
    .header.menu-open .lets-talk-btn {
        display: none;
    }

    /* Burger icon morphs into an X */
    .burger-line {
        transform-origin: center;
        transition: transform 0.3s ease, opacity 0.2s ease;
    }
    .burger-btn.active .burger-line-top {
        transform: translateY(6px) rotate(45deg);
    }
    .burger-btn.active .burger-line-mid {
        opacity: 0;
    }
    .burger-btn.active .burger-line-bottom {
        transform: translateY(-6px) rotate(-45deg);
    }
}




/* ==========================================================================
   Products Page Styles
   ========================================================================== */

/* 1. Products Hero */
.products-hero-section {
    padding-top: calc(var(--header-height) + 100px);
    padding-bottom: 40px;
}

.products-hero-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.products-hero-subtitle {
    justify-content: center;
    margin-bottom: 20px;
}

.products-hero-title {
    max-width: 700px;
}

.products-hero-desc {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.product-jump-links {
    display: flex;
    align-items: center;
    gap: 36px;
    margin-top: 45px;
}

.jump-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-tech);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.jump-link:hover {
    color: var(--cyan);
}

.jump-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    box-shadow: 0 0 0 rgba(0, 229, 255, 0);
    transition: var(--transition-fast);
}

.jump-link:hover .jump-dot {
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

/* 2. Shared Product Showcase Layout */
.product-showcase-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.product-showcase-section--alt {
    background: linear-gradient(180deg, transparent, rgba(0, 40, 90, 0.08), transparent);
}

.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.product-showcase--reverse .product-copy {
    order: 2;
}

.product-showcase--reverse .product-visual {
    order: 1;
}

.product-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.product-wordmark {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.product-icon {
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.35));
    flex-shrink: 0;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.product-category {
    font-family: var(--font-tech);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-blue);
    opacity: 0.85;
}

.product-tagline {
    margin-top: 18px;
}

.product-desc {
    max-width: 520px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 35px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-family: var(--font-ui);
    font-size: 14.5px;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.6;
}

.feature-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--cyan);
    filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.35));
}

.product-cta {
    margin-top: 40px;
}

.product-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* PoultryTrack screenshot gallery */
.screenshot-gallery {
    width: 100%;
    max-width: 540px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.screenshot-card {
    position: relative;
    min-height: 146px;
    overflow: hidden;
    padding: 0;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    background: #040d1a;
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 16px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.screenshot-card--featured { grid-row: span 2; min-height: 306px; }

.screenshot-preview-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
    background: #020710;
}

.screenshot-svg {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform .35s ease;
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .35s ease;
}

.screenshot-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 40%, rgba(2, 8, 16, .85) 100%);
    z-index: 2;
}

.screenshot-card:hover .screenshot-svg,
.screenshot-card:hover .screenshot-img {
    transform: scale(1.05);
}

.screenshot-card:hover,
.screenshot-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 255, .75);
    box-shadow: 0 22px 44px rgba(0, 0, 0, .45), 0 0 28px rgba(0, 229, 255, .2);
    outline: none;
}

.screenshot-card-label,
.screenshot-zoom-icon {
    position: absolute;
    z-index: 3;
    bottom: 13px;
    font-family: var(--font-tech);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.screenshot-card-label { left: 14px; }
.screenshot-zoom-icon { right: 14px; font-size: 17px; color: var(--cyan); }

/* Product Screenshot Overview Modal - Borderless Stage with Blur Backdrop */
.screenshot-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    z-index: 9999;
}

.screenshot-modal[open] {
    display: flex;
}

.screenshot-modal::backdrop {
    background: rgba(2, 6, 16, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.screenshot-modal-stage {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1240px;
    padding: 24px 20px 0;
    gap: clamp(14px, 3vw, 36px);
    box-sizing: border-box;
    position: relative;
}

.screenshot-modal-media-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: min(860px, 78vw);
    max-height: min(72vh, 580px);
    height: 100%;
    position: relative;
}

.screenshot-modal-display {
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #030a16;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85), 0 0 45px rgba(0, 229, 255, 0.15);
}

.screenshot-modal-display img,
.screenshot-modal-display svg {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.screenshot-modal-caption {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 6px;
    font-family: var(--font-tech);
    font-size: 11px;
    letter-spacing: 1.5px;
    box-sizing: border-box;
}

.caption-title {
    color: #ffffff;
    font-weight: 600;
}

.caption-counter {
    color: var(--cyan);
    font-weight: 700;
}

/* Nav Buttons (Left & Right) */
.screenshot-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(8, 22, 42, 0.75);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s ease;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    outline: none;
}

.screenshot-nav-btn:hover,
.screenshot-nav-btn:focus-visible {
    background: var(--cyan);
    color: #01050e;
    border-color: var(--cyan);
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.6);
    transform: scale(1.08);
}

/* Bottom Bar and Floating Close Button */
.screenshot-modal-bottom-bar {
    padding: 16px 20px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.screenshot-modal-close-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 22px;
    background: rgba(10, 24, 46, 0.85);
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 30px;
    color: #ffffff;
    font-family: var(--font-tech);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    outline: none;
}

.screenshot-modal-close-btn:hover,
.screenshot-modal-close-btn:focus-visible {
    background: rgba(255, 50, 80, 0.2);
    border-color: rgba(255, 80, 100, 0.8);
    color: #ff5566;
    box-shadow: 0 0 20px rgba(255, 80, 100, 0.4);
    transform: translateY(-2px);
}

/* Homepage contact form modal */
.contact-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(560px, calc(100vw - 32px));
    max-height: min(760px, calc(100vh - 32px));
    margin: 0;
    padding: 0;
    overflow: auto;
    transform: translate(-50%, -50%);
    color: var(--text-primary);
    background: linear-gradient(145deg, #081a2e, #02070f);
    border: 1px solid rgba(0, 229, 255, .35);
    border-radius: 20px;
    box-shadow: 0 32px 100px rgba(0, 0, 0, .72), 0 0 48px rgba(0, 114, 255, .16);
}

.contact-modal::backdrop { background: rgba(0, 5, 12, .84); backdrop-filter: blur(7px); }
.contact-modal-content { display: grid; gap: 18px; padding: clamp(24px, 5vw, 36px); }
.contact-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.contact-modal-eyebrow { color: var(--cyan); font-family: var(--font-tech); font-size: 10px; font-weight: 700; letter-spacing: 1.6px; }
.contact-modal h2 { margin: 8px 0 0; font-family: var(--font-heading); font-size: clamp(26px, 5vw, 34px); font-weight: 400; }
.contact-modal-close { display: grid; flex: 0 0 auto; width: 36px; height: 36px; padding: 0; place-items: center; color: var(--text-primary); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .15); border-radius: 50%; font-size: 27px; line-height: 1; }
.contact-modal-close:hover, .contact-modal-close:focus-visible { color: var(--cyan); border-color: var(--cyan); outline: none; }
.contact-form-field { display: grid; gap: 8px; color: var(--text-muted); font-family: var(--font-tech); font-size: 10px; font-weight: 700; letter-spacing: 1.2px; }
.contact-form-field input, .contact-form-field textarea { width: 100%; box-sizing: border-box; padding: 13px 14px; resize: vertical; color: var(--text-primary); background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; font: 400 14px var(--font-ui); }
.contact-form-field input:focus, .contact-form-field textarea:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(0, 229, 255, .1); }
.contact-delivery-options { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 2px 0 0; border: 0; }
.contact-delivery-options legend { width: 100%; margin-bottom: 2px; color: var(--text-muted); font-family: var(--font-tech); font-size: 10px; font-weight: 700; letter-spacing: 1.2px; }
.contact-delivery-options label { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; color: var(--text-primary); background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; font: 500 12px var(--font-ui); }
.contact-delivery-options input { accent-color: var(--cyan); }
.contact-send-btn { min-height: 48px; color: #03101a; background: var(--cyan); border: 1px solid var(--cyan); border-radius: 10px; font-family: var(--font-tech); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; }
.contact-send-btn:hover, .contact-send-btn:focus-visible { background: #fff; border-color: #fff; outline: none; box-shadow: 0 0 24px rgba(0, 229, 255, .3); }
.contact-modal-note { margin: -5px 0 0; color: var(--text-muted); font: 400 11px/1.5 var(--font-ui); text-align: center; }

/* ==========================================================================
   Legal (Privacy Policy & Terms of Service) Modal Styles
   ========================================================================== */
.legal-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(740px, calc(100vw - 32px));
    height: min(85vh, 680px);
    max-height: min(85vh, 700px);
    margin: 0;
    padding: 0;
    transform: translate(-50%, -50%);
    color: #ffffff;
    background: linear-gradient(160deg, #09192f 0%, #030a16 100%);
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 20px;
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.85), 0 0 50px rgba(0, 229, 255, 0.15);
    z-index: 10000;
    overflow: hidden;
}

.legal-modal[open] {
    display: flex !important;
    flex-direction: column !important;
}

.legal-modal::backdrop {
    background: rgba(0, 6, 16, 0.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.legal-modal-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.legal-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px 28px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(2, 8, 18, 0.75);
    gap: 16px;
    flex-shrink: 0;
}

.legal-modal-header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.legal-modal-eyebrow {
    color: var(--cyan);
    font-family: var(--font-tech);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.legal-modal-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(22px, 3.5vw, 26px);
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.legal-modal-tabs {
    display: inline-flex;
    gap: 8px;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: fit-content;
}

.legal-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-tech);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.legal-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.legal-tab-btn.active {
    color: #01040a;
    background: var(--cyan);
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.4);
}

.legal-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.legal-modal-close:hover,
.legal-modal-close:focus-visible {
    color: #ff5566;
    border-color: rgba(255, 85, 102, 0.6);
    background: rgba(255, 85, 102, 0.12);
    box-shadow: 0 0 16px rgba(255, 85, 102, 0.35);
    transform: rotate(90deg);
}

.legal-modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 229, 255, 0.3) rgba(255, 255, 255, 0.03);
    -webkit-overflow-scrolling: touch;
}

.legal-modal-body::-webkit-scrollbar {
    width: 6px;
}

.legal-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

.legal-modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.3);
    border-radius: 4px;
}

.legal-tab-panel {
    display: none !important;
}

.legal-tab-panel.active {
    display: block !important;
    animation: legalFadeIn 0.3s ease;
}

@keyframes legalFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.legal-effective-date {
    font-family: var(--font-tech);
    font-size: 10.5px;
    color: var(--cyan);
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.legal-section {
    margin-bottom: 22px;
    display: block !important;
}

.legal-section h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: #ffffff !important;
    margin: 0 0 8px !important;
    letter-spacing: 0.2px;
}

.legal-section p {
    font-family: var(--font-ui);
    font-size: 12.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85) !important;
    margin: 0 0 10px !important;
}

.legal-section ul {
    margin: 8px 0 10px 18px !important;
    padding: 0 !important;
    list-style: disc !important;
}

.legal-section li {
    font-family: var(--font-ui);
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82) !important;
    margin-bottom: 6px;
    display: list-item !important;
}

.legal-section li strong {
    color: #ffffff !important;
}

.legal-contact-box {
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 10px;
    padding: 14px 18px !important;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.88) !important;
}

.legal-contact-box strong {
    color: #ffffff !important;
}

.legal-contact-box a {
    color: var(--cyan) !important;
    text-decoration: none;
    font-weight: 500;
}

.legal-contact-box a:hover {
    text-decoration: underline;
}

.legal-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(2, 8, 18, 0.75);
    flex-shrink: 0;
}

.legal-footer-copy {
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--text-muted);
}

.legal-close-action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-family: var(--font-tech);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    padding: 7px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.legal-close-action-btn:hover {
    background: var(--cyan);
    border-color: var(--cyan);
    color: #01040a;
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.35);
}

@media (max-width: 600px) {
    .legal-modal-header {
        padding: 18px 18px 14px;
    }
    .legal-modal-body {
        padding: 18px;
    }
    .legal-modal-footer {
        padding: 12px 18px;
    }
    .legal-modal-tabs {
        width: 100%;
        display: flex;
    }
    .legal-tab-btn {
        flex: 1;
        text-align: center;
        padding: 7px 8px;
    }
}

.mockup {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(0, 229, 255, 0.12);
    border-radius: 22px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 114, 255, 0.06);
}

/* 3. PoultryTrack Dashboard Mockup */
.dashboard-mockup {
    padding: 26px;
}

.mockup-topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 22px;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.mockup-topbar-label {
    font-family: var(--font-tech);
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    flex: 1;
}

.live-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-tech);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.25);
    padding: 4px 9px;
    border-radius: 20px;
}

.live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
    animation: livePulse 1.4s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.dashboard-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
}

.stat-tile {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-label {
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-value {
    font-family: var(--font-tech);
    font-size: 22px;
    font-weight: 700;
    color: var(--cyan);
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}

.dashboard-chart {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 18px;
}

.chart-caption {
    display: block;
    font-family: var(--font-tech);
    font-size: 9px;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 90px;
}

.chart-bar {
    flex: 1;
    height: var(--bar-h);
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.5), rgba(0, 114, 255, 0.15));
    border-radius: 4px 4px 0 0;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.9s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.chart-bar--active {
    background: linear-gradient(180deg, var(--cyan), rgba(0, 114, 255, 0.25));
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.3);
}

.dashboard-mockup.in-view .chart-bar {
    transform: scaleY(1);
}

.dashboard-footrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--text-muted);
}

.footrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.footrow-dot--ok {
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
}

/* 4. Zuperfans Phone Mockup */
.phone-mockup {
    width: 300px;
    max-width: 100%;
    border-radius: 42px;
    padding: 14px;
    position: relative;
    border-color: rgba(0, 229, 255, 0.18);
}

.phone-notch {
    width: 90px;
    height: 20px;
    background: var(--bg-color);
    border-radius: 0 0 14px 14px;
    margin: 0 auto 10px;
}

.phone-screen {
    background: linear-gradient(180deg, #050b18, #01040a);
    border-radius: 28px;
    padding: 18px 16px 20px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phone-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--electric-blue), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-tech);
    font-size: 12px;
    font-weight: 700;
    color: #01040a;
    flex-shrink: 0;
}

.phone-topbar-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 2px;
}

.phone-title {
    font-family: var(--font-ui);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.phone-subtitle {
    font-family: var(--font-ui);
    font-size: 10.5px;
    color: var(--text-muted);
}

.phone-bell {
    color: var(--text-muted);
    display: flex;
}

.phone-tabs {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 10px;
}

.phone-tab {
    font-family: var(--font-tech);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 20px;
    transition: var(--transition-fast);
}

.phone-tab.active {
    color: #01040a;
    background: var(--cyan);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}

.phone-screens {
    flex: 1;
    margin-top: 16px;
    position: relative;
}

.phone-screen-panel {
    display: none;
    flex-direction: column;
    gap: 12px;
    animation: panelFade 0.35s ease;
}

.phone-screen-panel.active {
    display: flex;
}

@keyframes panelFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.feed-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feed-tag {
    align-self: flex-start;
    font-family: var(--font-tech);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #01040a;
    background: var(--cyan);
    padding: 3px 8px;
    border-radius: 10px;
}

.feed-tag--muted {
    color: var(--text-blue);
    background: rgba(56, 189, 248, 0.12);
}

.feed-title {
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
}

.feed-meta {
    font-family: var(--font-ui);
    font-size: 10.5px;
    color: var(--text-muted);
}

.chat-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 14px;
    font-family: var(--font-ui);
    font-size: 12px;
    line-height: 1.4;
}

.chat-bubble--fan {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-radius: 14px 14px 14px 4px;
}

.chat-bubble--creator {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--electric-blue), var(--cyan));
    color: #01040a;
    font-weight: 500;
    border-radius: 14px 14px 4px 14px;
}

.reward-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--text-primary);
}

.reward-value {
    font-family: var(--font-tech);
    color: var(--cyan);
    font-weight: 700;
}

.reward-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 4px;
}

.reward-bar-fill {
    width: 79%;
    height: 100%;
    background: linear-gradient(90deg, var(--electric-blue), var(--cyan));
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.reward-caption {
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

.phone-bottomnav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.phone-bottomnav span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.phone-bottomnav span.active {
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

/* 5. Products CTA */
.products-cta-section {
    padding-top: 40px;
    padding-bottom: 120px;
}

.products-cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    justify-content: center;
}

.products-cta-container .section-title {
    margin-bottom: 30px;
}

/* 6. Responsive */
@media (max-width: 992px) {
    .product-showcase {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .product-copy {
        align-items: center;
    }
    .product-showcase--reverse .product-copy {
        order: 1;
    }
    .product-showcase--reverse .product-visual {
        order: 2;
    }
    .feature-list li {
        text-align: left;
    }
    .product-jump-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .screenshot-gallery { gap: 10px; }
    .screenshot-card { min-height: 112px; border-radius: 12px; }
    .screenshot-card--featured { min-height: 234px; }
    .screenshot-card-label { left: 10px; bottom: 10px; font-size: 7px; letter-spacing: .7px; }
    .screenshot-modal-stage { gap: 10px; padding: 14px 10px 0; }
    .screenshot-modal-media-wrapper { max-width: calc(100vw - 84px); max-height: 65vh; }
    .screenshot-nav-btn { width: 38px; height: 38px; }
    .screenshot-modal-bottom-bar { padding: 12px 14px 18px; }
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    .phone-mockup {
        width: 100%;
    }
}


/* ==========================================================================
   Work Page Styles
   ========================================================================== */

/* 1. Work Hero */
.work-hero-section {
    padding-top: calc(var(--header-height) + 100px);
    padding-bottom: 40px;
}

.work-hero-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.work-hero-subtitle {
    justify-content: center;
    margin-bottom: 20px;
}

.work-hero-title {
    max-width: 700px;
}

.work-hero-desc {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* 2. Filter bar */
/* 2. Filter bar */
.work-catalog-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 1.8vh, 18px);
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    box-sizing: border-box;
}

.work-filter-aside {
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(6, 16, 32, 0.65);
    padding: 5px 8px;
    border-radius: 40px;
    border: 1px solid rgba(0, 229, 255, 0.12);
    backdrop-filter: blur(14px);
}

.filter-btn {
    font-family: var(--font-tech);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid transparent;
    background: transparent;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.08);
}

.filter-btn.active {
    color: #01040a;
    background: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.4);
}

/* 3. Work Paginated Grid & Carousel */
.work-grid-section {
    min-height: 100dvh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding-top: calc(var(--header-height) + clamp(24px, 4vh, 48px));
    padding-bottom: clamp(28px, 4.5vh, 48px);
    overflow: visible;
}

.work-catalog-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(16px, 2.5vh, 28px);
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 clamp(16px, 2.5vw, 36px);
}

.work-catalog-list {
    position: relative;
    width: 100%;
}

.work-pages-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 16px 8px 24px;
    box-sizing: border-box;
}

.work-pages-track {
    --work-group-gap: clamp(36px, 5.5vw, 68px);
    display: flex;
    width: 100%;
    gap: var(--work-group-gap);
    position: relative;
    transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    touch-action: pan-y;
    user-select: none;
}

.work-page {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(var(--grid-cols, 3), minmax(0, 1fr));
    gap: clamp(20px, 2.4vw, 32px);
    box-sizing: border-box;
    align-content: start;
}

/* 2-row (height-based compact grid mode fallback) */
.work-pages-viewport.grid-rows-2 .work-page {
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
}

.work-pages-viewport.grid-rows-2 .work-card-media {
    height: 150px;
}

.work-pages-viewport.grid-rows-2 .work-card-content {
    padding: 16px 18px 18px;
}

.work-pages-viewport.grid-rows-2 .work-card-title {
    font-size: 17.5px;
    margin-bottom: 6px;
}

.work-pages-viewport.grid-rows-2 .work-card-desc {
    font-size: 12px;
    -webkit-line-clamp: 2;
    margin-bottom: 12px;
    line-height: 1.55;
}

.work-pages-viewport.grid-rows-2 .work-card-tags {
    gap: 6px;
    margin-bottom: 12px;
}

.work-pages-viewport.grid-rows-2 .work-card-tags span {
    font-size: 10px;
    padding: 3px 8px;
}

.work-pages-viewport.grid-rows-2 .work-action-btn {
    padding: 9px 14px;
    font-size: 10px;
}

/* Individual Work Card */
.work-card {
    width: 100%;
    background: linear-gradient(170deg, rgba(10, 24, 46, 0.82) 0%, rgba(3, 9, 20, 0.94) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 229, 255, 0.16);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
    position: relative;
    box-sizing: border-box;
}

.work-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 229, 255, 0.6);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 229, 255, 0.2);
}

.work-card.is-hidden {
    display: none !important;
}

/* Card Media / Image Header Section */
.work-card-media {
    position: relative;
    width: 100%;
    height: 185px;
    background: #020712;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: height 0.3s ease;
}

.media-window-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 3;
}

.media-window-header .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-amber { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.media-window-header .window-title {
    margin-left: 6px;
    font-family: var(--font-tech);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 1px;
}

.media-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    overflow: hidden;
}

.media-glow-aura {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.work-card:hover .media-glow-aura {
    opacity: 1;
}

.work-media--zuperfans .media-glow-aura {
    background: radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.24) 0%, transparent 70%);
}
.work-media--poultrytrack .media-glow-aura {
    background: radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.24) 0%, transparent 70%);
}
.work-media--chiqfresh .media-glow-aura {
    background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.24) 0%, transparent 70%);
}
.work-media--toolslands .media-glow-aura {
    background: radial-gradient(circle at 50% 50%, rgba(0, 114, 255, 0.28) 0%, transparent 70%);
}
.work-media--shubodh .media-glow-aura {
    background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.24) 0%, transparent 70%);
}
.work-media--scapezo .media-glow-aura,
.work-media--skapezo .media-glow-aura {
    background: radial-gradient(circle at 50% 50%, rgba(150, 191, 54, 0.26) 0%, rgba(0, 229, 255, 0.15) 45%, transparent 70%);
}

.work-showcase-img {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.work-card:hover .work-showcase-img {
    transform: scale(1.08);
}

.tech-visual-mockup {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
}

.mockup-svg {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.work-card:hover .mockup-svg {
    transform: scale(1.08);
}

.media-badges {
    position: absolute;
    bottom: 8px;
    right: 10px;
    z-index: 3;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-tech);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    background: rgba(1, 8, 20, 0.85);
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 3px 8px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

.pulse-light {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 6px var(--cyan);
    animation: pulseBadge 1.8s infinite;
}
.pulse-green { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.pulse-emerald { background: #10b981; box-shadow: 0 0 6px #10b981; }
.pulse-blue { background: #0072ff; box-shadow: 0 0 6px #0072ff; }
.pulse-purple { background: #a855f7; box-shadow: 0 0 6px #a855f7; }
.pulse-shopify { background: #96bf36; box-shadow: 0 0 6px #96bf36; }

@keyframes pulseBadge {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.8); }
}

/* Card Body Content */
.work-card-content {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.work-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.work-category-tag {
    font-family: var(--font-tech);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--cyan);
}

.work-index-tag {
    font-family: var(--font-tech);
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.32);
}

.work-card-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    line-height: 1.3;
    transition: color var(--transition-fast);
}

.work-card:hover .work-card-title {
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.work-card-desc {
    font-family: var(--font-ui);
    font-size: 12.5px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0 0 18px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1 1 auto;
}

.work-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 20px;
}

.work-card-tags span {
    font-family: var(--font-ui);
    font-size: 10.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 16px;
}

.work-card-footer {
    margin-top: auto;
    width: 100%;
    padding-top: 4px;
}

/* Action Button */
.work-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    min-height: 42px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(0, 114, 255, 0.18));
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: 12px;
    font-family: var(--font-tech);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 5;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-sizing: border-box;
}

.work-action-btn svg {
    transition: transform 0.3s ease;
}

.work-action-btn:hover {
    background: linear-gradient(135deg, var(--cyan), var(--primary-blue));
    color: #01050e;
    border-color: var(--cyan);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.5);
    transform: translateY(-2px);
}

.work-action-btn:hover svg {
    transform: translateX(4px);
}

/* Carousel Navigation Bar (Page Indicators + Controls) */
.work-carousel-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding: 0 8px;
    width: 100%;
    box-sizing: border-box;
}

.work-carousel-indicators {
    display: flex;
    align-items: center;
    gap: 8px;
}

.indicator-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding: 0;
}

.indicator-dot:hover {
    background: rgba(0, 229, 255, 0.4);
    border-color: var(--cyan);
}

.indicator-dot.active {
    width: 26px;
    border-radius: 8px;
    background: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.65);
}

.work-carousel-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.work-carousel-btn {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--text-primary);
    background: rgba(12, 28, 50, 0.65);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.work-carousel-btn:hover:not(.is-disabled),
.work-carousel-btn:focus-visible:not(.is-disabled) {
    color: #01050e;
    background: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.5);
    transform: scale(1.06);
    outline: none;
}

.work-carousel-btn.is-disabled {
    opacity: 0.28;
    cursor: not-allowed;
    pointer-events: none;
}

.work-empty-state {
    display: none;
    text-align: center;
    font-family: var(--font-ui);
    color: var(--text-muted);
    font-size: 15px;
    padding: 60px 0;
}

.work-empty-state.visible {
    display: block;
}

/* 4. Work CTA */
.work-cta-section {
    padding-top: 40px;
    padding-bottom: 120px;
}

.work-cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    justify-content: center;
}

.work-cta-container .section-title {
    margin-bottom: 30px;
}

/* 5. Responsive Breakpoints */
@media (max-width: 1100px) {
    .work-page {
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .work-filter-aside {
        padding: 8px 0;
    }
}

@media (max-width: 640px) {
    .work-card-media { height: 160px; }
    .work-card-content { padding: 18px 20px 20px; }
    .work-card-title { font-size: 18px; margin-bottom: 6px; }
    .work-card-desc { font-size: 12px; line-height: 1.6; -webkit-line-clamp: 3; margin-bottom: 14px; }
    .work-card-tags { gap: 6px; margin-bottom: 16px; }
    .work-card-tags span { font-size: 9.5px; padding: 3px 8px; }
    .work-action-btn { padding: 10px 14px; font-size: 10px; }
    .work-carousel-nav-bar { margin-top: 14px; }
}


/* ==========================================================================
   Services Page Styles
   ========================================================================== */

/* 1. Services Hero */
.services-hero-section {
    padding-top: calc(var(--header-height) + 100px);
    padding-bottom: 40px;
}

.services-hero-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-hero-subtitle {
    justify-content: center;
    margin-bottom: 20px;
}

.services-hero-title {
    max-width: 700px;
}

.services-hero-desc {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* 2. Accordion Section */
.services-accordion-section {
    padding-top: 30px;
    padding-bottom: 40px;
}

.services-accordion-container {
    max-width: 1180px;
}

.services-accordion {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.accordion-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: none;
}

.accordion-item {
    background: linear-gradient(145deg, rgba(10, 26, 49, 0.72), rgba(4, 9, 20, 0.6));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 229, 255, 0.16);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease, background 0.3s ease;
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    text-align: left;
    cursor: pointer;
    background: transparent;
    border: none;
}

.accordion-index {
    font-family: var(--font-tech);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    width: 24px;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.accordion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    flex-shrink: 0;
    transition: var(--transition-normal);
}

.accordion-title {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 400;
    color: var(--text-primary);
    flex: 1;
}

.accordion-chevron {
    display: flex;
    color: var(--text-muted);
    transition: transform var(--transition-normal), color var(--transition-fast);
    flex-shrink: 0;
}

/* Hover state */
.accordion-item:hover {
    border-color: rgba(0, 229, 255, 0.35);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(0, 229, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.accordion-item:hover .accordion-index {
    color: var(--cyan);
}

.accordion-item:hover .accordion-icon {
    border-color: rgba(0, 229, 255, 0.35);
    color: var(--cyan);
}

/* Active (expanded) state */
.accordion-item.active {
    border-color: rgba(0, 229, 255, 0.45);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 229, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    background: linear-gradient(145deg, rgba(12, 32, 60, 0.82), rgba(4, 12, 28, 0.72));
}

.accordion-item.active .accordion-index {
    color: var(--cyan);
}

.accordion-item.active .accordion-icon {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.25);
    background: rgba(0, 229, 255, 0.08);
}

.accordion-item.active .accordion-title {
    color: var(--cyan);
}

.accordion-item.active .accordion-chevron {
    color: var(--cyan);
    transform: rotate(180deg);
}

/* Panel */
.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.accordion-item.active .accordion-panel {
    max-height: 520px;
}

.accordion-panel-inner {
    padding: 0 24px 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.accordion-desc {
    font-family: var(--font-ui);
    font-size: 14.5px;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.7;
    width: 100%;
    max-width: 100%;
    text-align: left;
    margin: 0;
}

.capability-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.capability-list li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(0, 229, 255, 0.035);
    border: 1px solid rgba(0, 229, 255, 0.12);
    border-radius: 10px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    transition: all var(--transition-fast);
    width: 100%;
    box-sizing: border-box;
}

.capability-list li:hover {
    background: rgba(0, 229, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.28);
    color: #fff;
    transform: translateY(-1px);
}

.capability-list li::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 6px var(--cyan);
    flex-shrink: 0;
}

/* 3. Services CTA */
.services-cta-section {
    padding-top: 40px;
    padding-bottom: 120px;
}

.services-cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    justify-content: center;
}

.services-cta-container .section-title {
    margin-bottom: 30px;
}

/* 4. Responsive */
@media (max-width: 700px) {
    .services-accordion {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .accordion-column {
        gap: 14px;
    }
    .accordion-item {
        border-radius: 14px;
    }
    .accordion-header {
        gap: 14px;
        padding: 18px 16px;
    }
    .accordion-index {
        display: none;
    }
    .accordion-icon {
        width: 38px;
        height: 38px;
    }
    .accordion-title {
        font-size: 16px;
    }
    .accordion-panel-inner {
        padding: 0 16px 20px 16px;
        align-items: stretch;
        text-align: left;
        width: 100%;
    }
    .accordion-desc {
        text-align: left;
        width: 100%;
    }
    .capability-list {
        grid-template-columns: 1fr;
        gap: 8px;
        width: 100%;
    }
}


/* ==========================================================================
   About Page Styles
   ========================================================================== */

/* 1. About Hero */
.about-hero-section {
    padding-top: calc(var(--header-height) + 100px);
    padding-bottom: 40px;
}

.about-hero-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-hero-subtitle {
    justify-content: center;
    margin-bottom: 20px;
}

.about-hero-title {
    max-width: 700px;
}

.about-hero-desc {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* 2. The Studio / Idea Work Section */
.studio-section {
    padding-top: 30px;
    padding-bottom: 30px;
}

.studio-container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
}

.studio-text .section-title {
    margin-top: 10px;
    margin-bottom: 12px;
}

.studio-text .section-desc {
    max-width: 500px;
    line-height: 1.55;
    margin-bottom: 18px;
    font-size: 14px;
}

/* Left Side: Compact Idea Flow / Process List */
.idea-flow-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
    max-width: 480px;
}

.idea-flow-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.idea-flow-item:hover {
    background: rgba(0, 229, 255, 0.04);
    border-color: rgba(0, 229, 255, 0.2);
    transform: translateX(3px);
}

.idea-flow-num {
    font-family: var(--font-tech);
    font-size: 11px;
    font-weight: 700;
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.22);
    border-radius: 6px;
    padding: 3px 6px;
    line-height: 1;
    flex-shrink: 0;
}

.idea-flow-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.idea-flow-title {
    font-family: var(--font-ui);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.idea-flow-desc {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.35;
    margin: 0;
}

/* Left Side Action Row */
.idea-action-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.idea-pitch-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(0, 102, 255, 0.18));
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: 30px;
    color: #ffffff;
    font-family: var(--font-tech);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.idea-pitch-btn:hover {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(0, 102, 255, 0.35));
    border-color: var(--cyan);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.45);
    transform: translateY(-2px);
    color: #ffffff;
}

.idea-pitch-btn svg {
    transition: transform 0.3s ease;
}

.idea-pitch-btn:hover svg {
    transform: translate(3px, -3px);
}

.idea-sprint-badge {
    font-family: var(--font-tech);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-blue);
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 20px;
    padding: 7px 14px;
    letter-spacing: 0.5px;
}

/* Right Side: Pure Floating Animated Illustration + Constellation Nodes */
.idea-illustration-stage {
    position: relative;
    width: 100%;
    max-width: 480px;
    min-height: 420px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 10px;
}

.idea-node {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(8, 18, 38, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(0, 229, 255, 0.08);
    z-index: 6;
    pointer-events: auto;
    cursor: default;
    transition: all 0.35s ease;
}

.idea-node:hover {
    background: rgba(0, 229, 255, 0.15);
    border-color: rgba(0, 229, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 25px rgba(0, 229, 255, 0.3);
    transform: scale(1.08) !important;
}

.idea-node .node-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

.idea-node .node-text {
    font-family: var(--font-tech);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Individual node positions & orbital floating animations */
.idea-node--top-left {
    top: 15px;
    left: 0;
    animation: floatNode1 4.8s ease-in-out infinite;
}

.idea-node--top-right {
    top: 25px;
    right: -10px;
    animation: floatNode2 5.2s ease-in-out infinite;
}

.idea-node--mid-left {
    top: 48%;
    left: -20px;
    transform: translateY(-50%);
    animation: floatNode6 5.1s ease-in-out infinite;
}

.idea-node--mid-right {
    top: 50%;
    right: -25px;
    transform: translateY(-50%);
    animation: floatNode3 4.6s ease-in-out infinite;
}

.idea-node--bottom-left {
    bottom: 35px;
    left: -10px;
    animation: floatNode4 5s ease-in-out infinite;
}

.idea-node--bottom-right {
    bottom: 15px;
    right: 15px;
    animation: floatNode5 4.4s ease-in-out infinite;
}

@keyframes floatNode1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(4px, -8px); }
}

@keyframes floatNode2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-5px, -6px); }
}

@keyframes floatNode3 {
    0%, 100% { transform: translate(0, -50%); }
    50% { transform: translate(5px, calc(-50% - 6px)); }
}

@keyframes floatNode4 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(6px, 6px); }
}

@keyframes floatNode5 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-4px, 7px); }
}

@keyframes floatNode6 {
    0%, 100% { transform: translate(0, -50%); }
    50% { transform: translate(-5px, calc(-50% - 7px)); }
}

.idea-svg-art {
    width: 100%;
    height: auto;
    max-height: 420px;
    overflow: visible;
    transform: rotate(-35deg) scale(0.95);
    transform-origin: 50% 50%;
    filter: drop-shadow(0 0 24px rgba(0, 229, 255, 0.15));
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

.idea-illustration-stage:hover .idea-svg-art {
    transform: rotate(-30deg) scale(1.02);
    filter: drop-shadow(0 0 40px rgba(0, 229, 255, 0.35));
}

/* ===================================================
   ANIMATION CHOREOGRAPHY FOR THE IDEA SNAP & BULB
   =================================================== */

/* 1. Bulb Aura Glow Pulse */
.bulb-aura {
    transform-origin: 210px 115px;
    animation: bulbAuraAnim 3.2s ease-in-out infinite;
}

@keyframes bulbAuraAnim {
    0%, 16% {
        opacity: 0.15;
        transform: scale(0.85);
    }
    21% {
        opacity: 0.35;
        transform: scale(0.92);
    }
    24% {
        opacity: 1;
        transform: scale(1.36);
    }
    36% {
        opacity: 0.88;
        transform: scale(1.2);
    }
    66% {
        opacity: 0.72;
        transform: scale(1.08);
    }
    84%, 100% {
        opacity: 0.2;
        transform: scale(0.88);
    }
}

/* 2. Bulb Inner Glow Core Ignition */
.bulb-core {
    transform-origin: 210px 115px;
    animation: bulbCoreAnim 3.2s ease-in-out infinite;
}

@keyframes bulbCoreAnim {
    0%, 16% {
        opacity: 0.22;
        transform: scale(0.92);
    }
    22% {
        opacity: 0.4;
        transform: scale(0.96);
    }
    24% {
        opacity: 1;
        transform: scale(1.06);
    }
    38% {
        opacity: 0.95;
        transform: scale(1.02);
    }
    68% {
        opacity: 0.78;
        transform: scale(0.98);
    }
    84%, 100% {
        opacity: 0.28;
        transform: scale(0.94);
    }
}

/* 3. Radiating Sunburst Rays */
.bulb-rays {
    transform-origin: 210px 115px;
    animation: raysAnim 3.2s ease-in-out infinite;
}

@keyframes raysAnim {
    0%, 18% {
        opacity: 0;
        transform: scale(0.65) rotate(-6deg);
    }
    24% {
        opacity: 1;
        transform: scale(1.24) rotate(4deg);
    }
    32% {
        opacity: 0.92;
        transform: scale(1.08) rotate(0deg);
    }
    64% {
        opacity: 0.68;
        transform: scale(0.98) rotate(2deg);
    }
    80%, 100% {
        opacity: 0;
        transform: scale(0.7) rotate(-4deg);
    }
}

.ray {
    animation: individualRay 3.2s ease-in-out infinite;
}

@keyframes individualRay {
    0%, 18% { stroke-dasharray: 4 20; stroke-dashoffset: 10; }
    24% { stroke-dasharray: 28 0; stroke-dashoffset: 0; }
    68% { stroke-dasharray: 20 6; stroke-dashoffset: -4; }
    84%, 100% { stroke-dasharray: 4 20; stroke-dashoffset: -12; }
}

/* 4. Filament Intense Burn */
.filament-group {
    animation: filamentGlowAnim 3.2s ease-in-out infinite;
}

@keyframes filamentGlowAnim {
    0%, 16% {
        opacity: 0.4;
        filter: drop-shadow(0 0 2px rgba(255, 183, 3, 0.4));
    }
    24% {
        opacity: 1;
        filter: drop-shadow(0 0 10px #ffffff) drop-shadow(0 0 20px #00f0ff) drop-shadow(0 0 30px #ffdd57);
    }
    42% {
        opacity: 0.92;
        filter: drop-shadow(0 0 7px #ffffff) drop-shadow(0 0 14px #00f0ff);
    }
    68% {
        opacity: 0.72;
        filter: drop-shadow(0 0 4px #00f0ff);
    }
    84%, 100% {
        opacity: 0.42;
        filter: drop-shadow(0 0 2px rgba(255, 183, 3, 0.4));
    }
}

/* 5. Hand Snapping Motion */
.hand-gesture-group {
    transform-origin: 250px 390px;
    animation: handSnapAction 3.2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes handSnapAction {
    0%, 14% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    18% {
        /* Pre-snap windup tension */
        transform: translateY(4px) rotate(1.5deg) scale(0.98);
    }
    22% {
        /* THE INSTANT SNAP! */
        transform: translateY(-9px) rotate(-3.5deg) scale(1.04);
    }
    27% {
        /* Recoil shock */
        transform: translateY(-1px) rotate(0.8deg) scale(1.01);
    }
    34% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    50% {
        /* Gentle floating sway */
        transform: translateY(-3px) rotate(-0.5deg) scale(1);
    }
    75% {
        transform: translateY(2px) rotate(0.5deg) scale(1);
    }
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

/* 6. Snap Impact Starburst Flash */
.snap-flash {
    transform-origin: 205px 256px;
    animation: snapFlashAnim 3.2s cubic-bezier(0.1, 0.9, 0.2, 1) infinite;
}

@keyframes snapFlashAnim {
    0%, 20% {
        opacity: 0;
        transform: scale(0.1);
    }
    22% {
        opacity: 1;
        transform: scale(1.5);
    }
    26% {
        opacity: 0.75;
        transform: scale(1.1);
    }
    32% {
        opacity: 0;
        transform: scale(0.3);
    }
    100% {
        opacity: 0;
        transform: scale(0.1);
    }
}

/* 7. Snap Shockwave Rings */
.snap-ring {
    transform-origin: 205px 256px;
    animation: snapRingPulse 3.2s cubic-bezier(0.15, 0.85, 0.35, 1.2) infinite;
}

.snap-ring-1 {
    animation-delay: 0s;
}

.snap-ring-2 {
    animation-delay: 0.04s;
}

.snap-ring-3 {
    animation-delay: 0.08s;
}

@keyframes snapRingPulse {
    0%, 20% {
        opacity: 0;
        transform: scale(0.2);
    }
    22% {
        opacity: 1;
        transform: scale(0.6);
    }
    34% {
        opacity: 0;
        transform: scale(1.9);
    }
    100% {
        opacity: 0;
        transform: scale(0.2);
    }
}

/* 8. Electric Arc / Energy Zap */
.electric-arc {
    animation: electricArcAnim 3.2s ease-in-out infinite;
}

@keyframes electricArcAnim {
    0%, 20% {
        opacity: 0;
        stroke-dashoffset: 40;
    }
    22% {
        opacity: 1;
        stroke-dashoffset: 0;
    }
    30% {
        opacity: 0.85;
        stroke-dashoffset: -15;
    }
    40% {
        opacity: 0;
        stroke-dashoffset: -40;
    }
    100% {
        opacity: 0;
        stroke-dashoffset: 40;
    }
}

/* 9. Floating Spark Particles */
.spark {
    animation: sparkFloatAnim 3.2s ease-out infinite;
}

.spark-1 {
    transform-origin: 165px 207px;
    animation-delay: 0.04s;
}

.spark-2 {
    transform-origin: 255px 215px;
    animation-delay: 0.1s;
}

.spark-3 {
    transform-origin: 245px 167px;
    animation-delay: 0.16s;
}

.spark-4 {
    transform-origin: 175px 150px;
    animation-delay: 0.2s;
}

.spark-5 {
    transform-origin: 210px 231px;
    animation-delay: 0.06s;
}

@keyframes sparkFloatAnim {
    0%, 20% {
        opacity: 0;
        transform: translateY(12px) scale(0.4);
    }
    24% {
        opacity: 1;
        transform: translateY(0) scale(1.3);
    }
    48% {
        opacity: 0.85;
        transform: translateY(-16px) scale(1);
    }
    72% {
        opacity: 0.4;
        transform: translateY(-30px) scale(0.7);
    }
    88%, 100% {
        opacity: 0;
        transform: translateY(-40px) scale(0.3);
    }
}

/* Responsive adjustment for media queries */
@media (max-width: 992px) {
    .studio-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .idea-work-text {
        text-align: left;
    }
    .idea-flow-list {
        max-width: 100%;
    }
    .idea-illustration-stage {
        max-width: 420px;
        min-height: 380px;
    }
}

@media (max-width: 580px) {
    .idea-illustration-stage {
        max-width: 100%;
        min-height: 320px;
        overflow: hidden;
    }
    .idea-node {
        padding: 4px 8px;
        font-size: 9px;
    }
    .idea-node .node-text {
        font-size: 9px;
    }
    .idea-node--top-left {
        top: 8px;
        left: 4px;
    }
    .idea-node--top-right {
        top: 12px;
        right: 4px;
    }
    .idea-node--mid-left {
        left: 0;
    }
    .idea-node--mid-right {
        right: 0;
    }
    .idea-node--bottom-left {
        bottom: 12px;
        left: 4px;
    }
    .idea-node--bottom-right {
        bottom: 8px;
        right: 4px;
    }
    .idea-action-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* 3. Team Section */
.team-section {
    padding-top: 40px;
    padding-bottom: 40px;
}

.team-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-header {
    text-align: center;
    margin-bottom: 60px;
}

.team-header .section-title {
    margin-top: 15px;
}

.team-carousel-wrapper {
    width: 100%;
    position: relative;
}

.team-carousel-indicators {
    display: none;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.team-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-normal);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.team-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 229, 255, 0.25);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), 0 0 25px rgba(0, 229, 255, 0.1);
}

.team-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--electric-blue), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.25);
}

.team-avatar span {
    font-family: var(--font-tech);
    font-size: 22px;
    font-weight: 700;
    color: #01040a;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 400;
    color: var(--text-primary);
}

.team-role {
    font-family: var(--font-tech);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-blue);
    margin-top: 10px;
}

.team-bio {
    font-family: var(--font-ui);
    font-size: 13.5px;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 16px;
}

.team-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.team-tags span {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 5px 12px;
    border-radius: 20px;
}

/* Reveal animation */
.team-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.team-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* 4. About CTA */
.about-cta-section {
    padding-top: 40px;
    padding-bottom: 120px;
}

.about-cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    justify-content: center;
}

.about-cta-container .section-title {
    margin-bottom: 30px;
}

/* 5. Responsive */
@media (max-width: 992px) {
    .studio-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .studio-text .section-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .studio-pillars .pillar-col {
        text-align: left;
    }
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
}

/* ==========================================================================\n   FULL-SCREEN SNAP SCROLL — FINAL OVERRIDES\n   One viewport = one section. The WebGL background remains fixed while\n   section content scrolls and snaps cleanly into place.\n   ========================================================================== */
html {
    height: 100%;
    min-height: 100%;
    scroll-behavior: auto;
    scroll-padding-top: 0;
    overflow-x: hidden;
    overflow-y: scroll;
}

body {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    background: transparent;
}

#bg-canvas {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

main {
    position: relative;
    z-index: 1;
}

main > .section,
main > section.section {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    flex: 0 0 100dvh;
    box-sizing: border-box;
    scroll-margin-top: 0;
    position: relative;
    overflow: hidden;
}

footer.footer {
    width: 100%;
    height: auto;
    min-height: 0;
    box-sizing: border-box;
    display: block;
    margin: 0;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
}

footer.footer .footer-container {
    width: 100%;
}

.header {
    position: fixed;
    z-index: 1000;
}

main > .section,
footer.footer {
    background: transparent;
}

@media (max-width: 992px) {
    html {
        scroll-snap-type: y mandatory;
        scroll-padding-top: 0;
        -webkit-overflow-scrolling: touch;
    }

    main > .section,
    main > section.section {
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        flex-basis: 100dvh;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

}

@media (max-width: 700px) {
    main > .section,
    main > section.section {
        padding-top: calc(var(--header-height) + 24px);
        padding-bottom: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* ==========================================================================\n   MAANGO PREMIUM UI POLISH\n   ========================================================================== */
:root {
    --premium-border: rgba(255,255,255,.10);
    --premium-glass: rgba(4,8,18,.48);
    --premium-glow: rgba(0,229,255,.18);
    --premium-radius: 22px;
}

html { overscroll-behavior-y: none; }
body { isolation: isolate; }

/* Keep the WebGL scene visually locked to the viewport with high clarity. */
#bg-canvas {
    transform: translateZ(0);
    will-change: transform;
    opacity: 1;
}

/* Subtle cinematic vignette over the fixed background. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 35%, transparent 35%, rgba(0,0,0,.15) 70%, rgba(0,0,0,.42) 100%),
        linear-gradient(180deg, rgba(0,0,0,.08), transparent 20%, transparent 80%, rgba(0,0,0,.15));
}

/* Luminous cyber tech grid for modern depth. */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .24;
    background-image:
        linear-gradient(rgba(0, 229, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, .06) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
}

main, footer, .header { position: relative; z-index: 2; }

/* Premium glass navigation. */
.header {
    background: linear-gradient(180deg, rgba(2,5,12,.78), rgba(2,5,12,.36));
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    border-bottom: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 12px 40px rgba(0,0,0,.18);
}

.header::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: min(34vw, 460px);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(0,229,255,.65), transparent);
    opacity: .75;
}

.burger-btn, .lets-talk-btn {
    background: rgba(255,255,255,.025);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.lets-talk-btn:hover {
    background: rgba(0,229,255,.07);
    box-shadow: 0 0 24px rgba(0,229,255,.10), inset 0 1px 0 rgba(255,255,255,.08);
}

/* Every screen is a controlled stage. */
main > .section, footer.footer {
    overflow: hidden;
    position: relative;
}

main > .section::before, footer.footer::before {
    content: '';
    position: absolute;
    inset: 12% 4% 8%;
    z-index: -1;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,.035);
    border-radius: 32px;
    opacity: .4;
}

.section-container {
    position: relative;
    z-index: 3;
}

/* Stable section opacity transition without jittery transforms */
main > .section .section-container,
footer.footer .footer-container {
    opacity: 0.85;
    transition: opacity .4s ease;
}

main > .section.is-active .section-container,
footer.footer.is-active .footer-container {
    opacity: 1;
}

/* Premium typography rhythm without replacing the existing font system. */
.hero-title, .next-title, .section-title {
    text-wrap: balance;
    text-shadow: 0 8px 35px rgba(0,0,0,.25);
}

.section-desc, .hero-desc {
    text-wrap: pretty;
}

.highlight-blue {
    text-shadow: 0 0 22px rgba(56,189,248,.22);
}

/* Elevated cards / panels. */
.service-card,
.work-card,
.team-card,
.product-showcase,
.pillar-col {
    border-color: var(--premium-border);
    box-shadow: 0 18px 60px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.035);
}

.team-card:hover,
.pillar-col:hover {
    transform: translateY(-5px);
    border-color: rgba(0,229,255,.22);
    box-shadow: 0 24px 70px rgba(0,0,0,.30), 0 0 35px rgba(0,229,255,.06), inset 0 1px 0 rgba(255,255,255,.06);
}

/* Preserve transforms used by reveal animations on team cards. */
.team-card.in-view:hover { transform: translateY(-5px); }

/* Refined buttons and links. */
.explore-btn, .learn-more-link, .work-card-link, .jump-link {
    transition: transform .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease, color .3s ease;
}

.explore-btn:hover, .learn-more-link:hover { transform: translateX(3px); }

/* Full-screen progress rail, injected by JS. */
#page-progress {
    position: fixed;
    right: 22px;
    top: 50%;
    z-index: 1100;
    width: 2px;
    height: min(42vh, 360px);
    transform: translateY(-50%);
    background: rgba(255,255,255,.10);
    border-radius: 999px;
    pointer-events: none;
}

#page-progress-fill {
    width: 100%;
    height: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, #00e5ff, #0072ff);
    box-shadow: 0 0 12px rgba(0,229,255,.55);
    transition: height .55s cubic-bezier(.2,.7,.2,1);
}

.page-progress-dot {
    position: absolute;
    left: 50%;
    width: 6px;
    height: 6px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(255,255,255,.24);
    box-shadow: 0 0 0 4px rgba(255,255,255,0);
    transition: background .3s ease, box-shadow .3s ease, transform .3s ease;
    pointer-events: auto;
    cursor: pointer;
}

.page-progress-dot::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
}

.page-progress-dot:hover {
    background: #00e5ff;
    transform: translateX(-50%) scale(1.3);
}

.page-progress-dot.active {
    background: #00e5ff;
    box-shadow: 0 0 0 4px rgba(0,229,255,.10), 0 0 15px rgba(0,229,255,.65);
    transform: translateX(-50%) scale(1.15);
}

/* Make the scroll cue feel intentional. */
.scroll-indicator { opacity: .72; transition: opacity .3s ease, transform .3s ease; }
.scroll-indicator { cursor: pointer; user-select: none; }
.scroll-indicator:focus-visible { outline: 1px solid rgba(0,229,255,.65); outline-offset: 8px; border-radius: 8px; }
.scroll-indicator:hover { opacity: 1; transform: translateY(-2px); }

@media (max-width: 1100px) {
    #page-progress { right: 12px; height: 34vh; }
}

@media (max-width: 700px) {
    body::after { background-size: 55px 55px; opacity: .06; }
    body::before { background: radial-gradient(circle at 50% 42%, transparent 12%, rgba(0,0,0,.18) 70%, rgba(0,0,0,.42) 100%); }
    main > .section::before, footer.footer::before { inset: 10% 3% 5%; border-radius: 22px; }
    #page-progress { right: 7px; width: 1px; height: 26vh; }
    .page-progress-dot { width: 4px; height: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    main > .section .section-container,
    footer.footer .footer-container { transition: none; transform: none; opacity: 1; }
    #page-progress-fill { transition: none; }
}


/* Universal hamburger hide/show behavior — applies to desktop, tablet and mobile.
   The navigation does not open as an overlay; it slides completely to the left. */
.header.menu-open .nav-menu {
    transform: translateX(calc(-100vw - 120px));
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.header.menu-open .header-right,
.header.menu-open .lets-talk-btn {
    transform: translateX(calc(-100vw - 120px));
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.header.menu-open {
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.header.menu-open .burger-btn {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    background: rgba(5, 8, 14, 0.72);
    border-color: rgba(0, 229, 255, 0.28);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35), 0 0 24px rgba(0, 229, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header.menu-open .burger-btn:hover {
    transform: translateX(-50%) scale(1.05);
}

/* Footer spacing cleanup */
main { margin-bottom: 0 !important; padding-bottom: 0 !important; }
main > .section:last-child { margin-bottom: 0 !important; }
footer.footer {
    margin: 0 !important;
    border-top-width: 1px;
}
footer.footer::before {
    display: none !important;
    margin: 0 !important;
}
footer.footer .footer-container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* FINAL FOOTER ATTACHMENT: footer is part of the final full-screen section on desktop. */
@media (min-width: 769px) {
    main > .section:last-child {
        position: relative !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    main > .section:last-child::before,
    footer.footer::before {
        display: none !important;
    }

    main > .section:last-child > .section-container {
        flex: 1 1 auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        min-height: 0 !important;
        width: 100% !important;
        max-width: var(--max-width) !important;
        margin: 0 auto !important;
        padding: calc(var(--header-height) + 16px) 24px 20px !important;
        box-sizing: border-box !important;
    }

    .about-cta-section,
    .products-cta-section,
    .services-cta-section,
    .work-cta-section,
    .blog-cta-section,
    .contact-section {
        padding: 0 !important;
    }

    main > .section:last-child > footer.footer,
    footer.footer {
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        flex: 0 0 auto !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 18px 24px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        background-color: rgba(2, 5, 12, 0.88) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
        scroll-snap-align: none !important;
        scroll-snap-stop: normal !important;
        box-sizing: border-box !important;
        z-index: 10 !important;
    }

    main > .section:last-child > footer.footer .footer-container,
    footer.footer .footer-container {
        opacity: 1 !important;
        transform: none !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: var(--max-width) !important;
        display: grid !important;
        grid-template-columns: 1fr auto 1fr !important;
        align-items: center !important;
        gap: 20px !important;
        box-sizing: border-box !important;
    }
}

/* FINAL STICKY NAVBAR FIX — keep header attached to the viewport while sections scroll. */
.header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 10000 !important;
    transform: none;
}

.header.menu-open,
.header.menu-collapsed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10000 !important;
}

.header.menu-open .burger-btn,
.header.menu-collapsed .burger-btn {
    position: fixed !important;
    top: 16px !important;
    left: 50% !important;
    z-index: 10001 !important;
}



/* ========================================================================
   MOBILE LAYOUT — content-first flow, touch-friendly navigation
   ======================================================================== */
.mobile-talk-item { display: none; }
.mobile-services-cta { display: none; }

/* Desktop starts as a minimal transparent brand bar. */
@media (min-width: 769px) {
    .header.menu-collapsed {
        background: transparent;
        border-bottom-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .header.menu-collapsed .nav-menu,
    .header.menu-collapsed .lets-talk-btn {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(-28px);
    }

    .header.menu-collapsed .header-right {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .header.menu-collapsed .burger-btn {
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 76px;
        --mobile-gutter: 18px;
        --mobile-card: rgba(8, 16, 31, 0.76);
    }

    /* 1. Natural Document Flow & Scrolling */
    html {
        scroll-snap-type: none !important;
        scroll-padding-top: var(--header-height);
        overflow-x: hidden;
        overflow-y: auto !important;
        height: auto !important;
    }

    body {
        scroll-snap-type: none !important;
        overflow-x: hidden;
        overflow-y: auto !important;
        height: auto !important;
        background: #02050c;
    }

    body.menu-is-open {
        overflow: hidden !important;
    }

    #page-progress {
        display: none !important;
    }

    /* 2. Header & Mobile Navigation Drawer */
    .header {
        height: var(--header-height) !important;
        padding: 0 var(--mobile-gutter) !important;
        background: linear-gradient(180deg, rgba(4, 10, 24, 0.76), rgba(2, 6, 14, 0.62)) !important;
        backdrop-filter: blur(8px) saturate(120%) !important;
        -webkit-backdrop-filter: blur(8px) saturate(120%) !important;
        border-bottom: 1px solid rgba(0, 229, 255, 0.12) !important;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
        transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease !important;
    }

    .header.menu-open,
    body.menu-is-open .header {
        background: linear-gradient(160deg, #071426 0%, #02050c 62%) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
        border-bottom: 1px solid rgba(0, 229, 255, 0.28) !important;
    }

    .header-left {
        display: flex !important;
        align-items: center !important;
        gap: 0 !important;
        z-index: 10 !important;
    }

    .header-right {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0 !important;
        position: static !important;
        transform: none !important;
        will-change: auto !important;
        z-index: 10 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .header .logo,
    .header .header-right .logo {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        height: auto !important;
        z-index: 25 !important;
        pointer-events: auto !important;
    }

    .header .logo img,
    .header .header-right .logo img {
        display: block !important;
        margin: 0 auto !important;
        width: 120px !important;
        max-height: 36px !important;
        object-fit: contain !important;
    }

    .burger-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.16);
        background: rgba(4, 10, 22, 0.45);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #fff;
        cursor: pointer;
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
        transition: all 0.25s ease;
    }

    .burger-btn:hover {
        border-color: var(--cyan);
        color: var(--cyan);
    }

    .lets-talk-btn {
        display: none !important;
    }

    .mobile-contact-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1px solid rgba(0, 229, 255, 0.35);
        background: rgba(0, 229, 255, 0.08);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        color: var(--cyan);
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none;
        box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
        transition: all 0.25s ease;
        cursor: pointer;
    }

    .mobile-contact-btn svg {
        width: 20px;
        height: 20px;
        color: var(--cyan);
        stroke-width: 2;
    }

    .mobile-contact-btn:active {
        transform: scale(0.94);
        background: rgba(0, 229, 255, 0.2);
        box-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
    }

    .header.menu-open .burger-btn,
    .header.menu-collapsed .burger-btn {
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        box-shadow: none;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .header.menu-open .header-right {
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .nav-menu {
        display: flex !important;
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: min(86vw, 360px);
        height: 100dvh;
        padding: 88px 22px 36px;
        background: linear-gradient(160deg, #071426 0%, #02050c 62%);
        border-left: 1px solid rgba(0, 229, 255, 0.28);
        box-shadow: -20px 0 50px rgba(0, 0, 0, 0.6);
        z-index: 9999;
        transform: translateX(105%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform .36s cubic-bezier(.22, 1, .36, 1), opacity .22s ease, visibility 0s linear .36s;
    }

    .nav-menu.mobile-open,
    .header.menu-open .nav-menu.mobile-open {
        display: flex !important;
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition-delay: 0s;
    }

    .nav-menu ul {
        width: 100%;
        gap: 6px;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-menu.mobile-open li {
        width: 100%;
    }

    .nav-menu.mobile-open a {
        display: block;
        padding: 15px 12px;
        font-size: 14.5px;
        letter-spacing: 2px;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .nav-menu.mobile-open a.active::after { bottom: 6px; }
    .nav-menu.mobile-open .mobile-talk-item { display: block; margin-top: 20px; }
    .nav-menu.mobile-open .mobile-talk-link {
        display: block;
        text-align: center;
        padding: 14px 16px;
        border: 1px solid var(--cyan);
        border-radius: 999px;
        color: #04101a;
        background: var(--cyan);
        box-shadow: 0 0 24px rgba(0, 229, 255, 0.25);
        font-weight: 600;
    }

    /* 3. Universal Section Normal Heights & Breathing Space */
    main > .section,
    main > section.section,
    .section,
    .about-section,
    .services-section,
    .process-section,
    .contact-section,
    .product-showcase-section,
    .work-grid-section,
    .products-hero-section,
    .work-hero-section,
    .services-hero-section,
    .about-hero-section,
    .blog-hero-section,
    .blog-featured-section,
    .blog-all-section,
    .blog-cta-section {
        position: relative !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        box-sizing: border-box !important;
        padding: 56px var(--mobile-gutter) !important;
        scroll-snap-align: none !important;
        scroll-snap-stop: normal !important;
        overflow: visible !important;
    }

    main > .section:last-child {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 56px var(--mobile-gutter) 0 !important;
    }

    main > .section:last-child > .section-container {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        width: 100% !important;
    }

    /* Top Hero Sections: Atmospheric opening height without locking */
    #about-hero,
    .about-hero-section,
    #products-hero,
    .products-hero-section,
    #work-hero,
    .work-hero-section,
    #services-hero,
    .services-hero-section,
    #blog-hero,
    .blog-hero-section {
        min-height: min(100svh, 580px) !important;
        padding-top: calc(var(--header-height) + 24px) !important;
        padding-bottom: 44px !important;
        justify-content: center !important;
    }

    /* 4. Shared Typography & Layout Elements */
    .section-container {
        width: 100%;
        max-width: 540px;
        box-sizing: border-box;
    }

    .section-subtitle {
        font-size: 9.5px;
        letter-spacing: 2.5px;
        color: var(--cyan);
    }

    .section-title, .hero-title {
        font-size: clamp(24px, 6.8vw, 32px);
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .next-title {
        font-size: clamp(28px, 8.5vw, 42px);
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .section-desc, .hero-desc {
        font-size: 13.5px;
        line-height: 1.65;
        color: #a3adbb;
        max-width: 32rem;
    }

    .section-title br, .hero-title br { display: none; }

    /* Centered reading axis on mobile */
    .hero-container,
    .services-center-content,
    .process-container,
    .process-header,
    .contact-container,
    .products-hero-container,
    .work-hero-container,
    .services-hero-container,
    .about-hero-container,
    .team-header,
    .about-cta-container,
    .work-cta-container,
    .products-cta-container,
    .services-cta-container {
        text-align: center;
        align-items: center;
    }

    .subtitle-wrapper,
    .subtitle-center,
    .products-hero-subtitle,
    .work-hero-subtitle,
    .services-hero-subtitle,
    .about-hero-subtitle {
        justify-content: center;
        margin-bottom: 12px;
    }

    .hero-desc, .section-desc, .product-desc, .work-hero-desc,
    .about-hero-desc, .products-hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    /* 5. Home Landing Hero Section - Exact Device Viewport Height */
    #hero-sec,
    #hero-sec.next-section,
    .next-section {
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        max-height: none !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding-top: var(--header-height) !important;
        padding-bottom: 24px !important;
        padding-left: var(--mobile-gutter) !important;
        padding-right: var(--mobile-gutter) !important;
        box-sizing: border-box !important;
        position: relative !important;
        overflow: hidden !important;
    }

    #hero-sec .next-container {
        width: 100%;
        max-width: 540px;
        padding: 0 8px 100px;
        text-align: center;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        margin: auto 0 !important;
        position: static !important;
        z-index: 2;
        pointer-events: auto;
    }

    #hero-sec .next-title {
        transform: none !important;
        letter-spacing: clamp(2px, 1.5vw, 4px);
        margin: 0;
        position: relative;
        z-index: 2;
    }

    #hero-sec .scroll-indicator {
        position: absolute !important;
        bottom: 24px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        z-index: 10 !important;
        pointer-events: auto !important;
    }

    /* 6. Home About Section - Tight Height & Snug Canvas Visual */
    #about-sec,
    #about-sec.hero-section {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        padding: 32px var(--mobile-gutter) 24px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }

    #about-sec .hero-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
        width: 100% !important;
        max-width: 520px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    #about-sec .hero-content {
        padding: 22px 18px !important;
        background: linear-gradient(145deg, rgba(10, 26, 49, 0.72), rgba(4, 9, 20, 0.6)) !important;
        border: 1px solid rgba(0, 229, 255, 0.16) !important;
        border-radius: 18px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
        backdrop-filter: blur(6px) !important;
        -webkit-backdrop-filter: blur(6px) !important;
        text-align: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    #about-sec .subtitle-wrapper {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        margin-bottom: 12px !important;
    }

    #about-sec .section-subtitle {
        font-size: 10px !important;
        letter-spacing: 2.5px !important;
        color: var(--cyan) !important;
    }

    #about-sec .subtitle-line {
        width: 20px !important;
        height: 1px !important;
        background: var(--cyan) !important;
    }

    #about-sec .hero-title {
        font-size: clamp(20px, 6vw, 26px) !important;
        line-height: 1.25 !important;
        letter-spacing: -0.3px !important;
        margin: 0 0 10px !important;
        font-weight: 400 !important;
    }

    #about-sec .hero-desc {
        display: block !important;
        overflow: visible !important;
        font-size: 13.5px !important;
        line-height: 1.6 !important;
        color: #a6b4c8 !important;
        margin: 0 auto !important;
        max-width: 100% !important;
    }

    #about-sec .learn-more-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 16px !important;
        padding: 9px 18px !important;
        font-size: 11px !important;
        letter-spacing: 1.5px !important;
        font-weight: 600 !important;
        color: var(--cyan) !important;
        border: 1px solid rgba(0, 229, 255, 0.35) !important;
        border-radius: 999px !important;
        background: rgba(0, 229, 255, 0.07) !important;
        text-decoration: none !important;
        transition: all 0.25s ease !important;
    }

    #about-sec .learn-more-link::after {
        display: none !important;
    }

    #about-sec .learn-more-link:active {
        background: rgba(0, 229, 255, 0.16) !important;
        transform: scale(0.98) !important;
    }

    #about-sec .hero-visual {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 auto !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        position: relative !important;
        line-height: 0 !important;
    }

    #about-sec #cube-container {
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        position: relative !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto !important;
        border-radius: 18px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    #about-sec #cube-container canvas {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
    }

    /* 7. Home Services Section ("What We Offer") */
    #services-sec,
    #services-sec.services-section {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        padding: 32px var(--mobile-gutter) 24px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }

    #services-sec .services-container {
        width: 100% !important;
        max-width: 520px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        padding-top: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0 !important;
    }

    #services-sec .services-center-content {
        order: 1 !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 0 20px 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    #services-sec .subtitle-center {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        margin-bottom: 12px !important;
    }

    #services-sec .section-subtitle {
        font-size: 10px !important;
        letter-spacing: 2.5px !important;
        color: var(--cyan) !important;
    }

    #services-sec .subtitle-deco-line {
        width: 20px !important;
        height: 1px !important;
        background: var(--cyan) !important;
    }

    #services-sec .section-title {
        font-size: clamp(20px, 6vw, 26px) !important;
        line-height: 1.25 !important;
        letter-spacing: -0.3px !important;
        margin: 0 0 10px !important;
        font-weight: 400 !important;
    }

    #services-sec .section-desc {
        font-size: 13.5px !important;
        line-height: 1.6 !important;
        color: #a6b4c8 !important;
        margin: 0 auto !important;
        max-width: 100% !important;
    }

    #services-sec .services-center-content .explore-btn {
        display: none !important;
    }

    #services-sec .services-arc-wrapper {
        display: none !important;
    }

    #services-sec .services-pillars-grid {
        display: none !important;
    }

    #services-sec .mobile-service-cubes {
        order: 2 !important;
        --cube-depth: 65px;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: clamp(24px, 7vw, 34px) !important;
        width: 100% !important;
        max-width: 420px !important;
        padding: 0 clamp(12px, 3.5vw, 20px) !important;
        margin: 0 auto 20px !important;
        perspective: 900px;
        touch-action: pan-y;
        user-select: none;
        align-items: center;
        justify-content: center;
        box-sizing: border-box !important;
    }

    #services-sec .service-cube-scene {
        aspect-ratio: 1 / 1;
        width: 100%;
        height: auto;
        min-width: 0;
        perspective: 900px;
        cursor: grab;
        outline: none;
        border-radius: 16px;
    }

    #services-sec .service-cube-scene:active { cursor: grabbing; }

    #services-sec .service-cube {
        position: relative;
        width: 100%;
        height: 100%;
        transform-style: preserve-3d;
        transition: transform .6s cubic-bezier(.22, 1, .36, 1);
    }

    #services-sec .service-cube-face {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        aspect-ratio: 1 / 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 10px;
        overflow: hidden;
        border: 1px solid rgba(0, 229, 255, .32);
        border-radius: 16px;
        background: linear-gradient(145deg, rgba(12, 32, 61, .96), rgba(3, 9, 20, .98));
        box-shadow: inset 0 0 20px rgba(0, 229, 255, .06), 0 8px 20px rgba(0, 0, 0, 0.35);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        box-sizing: border-box;
        text-align: center;
    }

    #services-sec .service-cube-face--0 { transform: translateZ(var(--cube-depth)); }
    #services-sec .service-cube-face--1 { transform: rotateY(90deg) translateZ(var(--cube-depth)); }
    #services-sec .service-cube-face--2 { transform: rotateY(180deg) translateZ(var(--cube-depth)); }
    #services-sec .service-cube-face--3 { transform: rotateY(-90deg) translateZ(var(--cube-depth)); }

    #services-sec .service-cube-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        color: var(--cyan);
        filter: drop-shadow(0 0 6px rgba(0, 229, 255, .5));
    }

    #services-sec .service-cube-icon svg { width: 28px; height: 28px; }

    #services-sec .service-cube-face h3 {
        margin: 0;
        color: #fff;
        font-family: var(--font-ui);
        font-size: clamp(12px, 3.2vw, 13.5px);
        font-weight: 600;
        line-height: 1.25;
        text-align: center;
    }

    #services-sec .service-cube-hint {
        grid-column: 1 / -1;
        margin: 8px 0 0;
        color: var(--cyan);
        font-family: var(--font-tech);
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 2px;
        text-align: center;
    }

    #services-sec .mobile-services-cta {
        order: 3 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        margin: 0 auto !important;
        padding: 9px 18px !important;
        font-size: 11px !important;
        letter-spacing: 1.5px !important;
        font-weight: 600 !important;
        color: var(--cyan) !important;
        border: 1px solid rgba(0, 229, 255, 0.35) !important;
        border-radius: 999px !important;
        background: rgba(0, 229, 255, 0.07) !important;
        text-decoration: none !important;
        transition: all 0.25s ease !important;
    }

    #services-sec .mobile-services-cta:active {
        background: rgba(0, 229, 255, 0.16) !important;
        transform: scale(0.98) !important;
    }

    /* 8. Home Process Section */
    #process-sec .process-header {
        margin-bottom: 24px;
    }

    #process-sec .timeline-wrapper {
        width: 100%;
        margin-top: 16px;
        margin-bottom: 0;
        padding: 0;
    }

    #process-sec .timeline-steps {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    #process-sec .timeline-step {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 14px;
        padding: 16px;
        border-radius: 16px;
        background: linear-gradient(145deg, rgba(10, 26, 49, 0.72), rgba(4, 9, 20, 0.6)) !important;
        backdrop-filter: blur(6px) !important;
        -webkit-backdrop-filter: blur(6px) !important;
        border: 1px solid rgba(0, 229, 255, 0.16) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
        box-sizing: border-box;
        transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    }

    #process-sec .timeline-step:hover,
    #process-sec .timeline-step.active {
        border-color: rgba(0, 229, 255, 0.4) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 229, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    }

    #process-sec .step-badge {
        flex: 0 0 auto;
        margin-top: 2px;
    }

    #process-sec .step-node-outer { width: 48px; height: 48px; }
    #process-sec .step-node-inner { width: 36px; height: 36px; font-size: 13px; }

    #process-sec .step-info {
        flex: 1 1 auto;
        padding: 0;
        margin-top: 0;
    }

    #process-sec .step-text {
        font-size: 12.5px;
        line-height: 1.55;
        color: var(--text-muted);
        display: block;
        overflow: visible;
    }

    #process-sec .improvement-banner {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        margin-top: 24px;
        padding: 18px 16px;
        border-radius: 16px;
        background: linear-gradient(145deg, rgba(10, 26, 49, 0.72), rgba(4, 9, 20, 0.6)) !important;
        backdrop-filter: blur(6px) !important;
        -webkit-backdrop-filter: blur(6px) !important;
        border: 1px solid rgba(0, 229, 255, 0.16) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
        width: 100%;
        box-sizing: border-box;
    }

    /* 9. Home Contact Section */
    #contact .contact-container {
        width: 100%;
        gap: 24px;
        padding: 0;
    }

    #contact .contact-header {
        margin-bottom: 8px;
    }

    #contact .contact-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 12px;
        margin-bottom: 8px;
    }

    #contact .cta-hex-btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        min-height: 50px;
    }

    #contact .cta-play-btn {
        display: none;
    }

    #contact .assurances-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 440px !important;
        margin: 0 auto !important;
        padding: 14px !important;
        border-radius: 16px !important;
        background: rgba(255, 255, 255, 0.02) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        box-sizing: border-box !important;
    }

    #contact .assurance-card {
        display: flex !important;
        align-items: center !important;
        text-align: left !important;
        gap: 12px !important;
        padding: 10px 12px !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, 0.025) !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    #contact .assurance-icon {
        width: 34px !important;
        height: 34px !important;
        flex: 0 0 34px !important;
    }

    #contact .assurance-title {
        font-size: 11px !important;
        margin-bottom: 2px !important;
    }

    #contact .assurance-text {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }

    /* 10. About Page Founder Carousel & Pillars */
    .studio-pillars {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        width: 100%;
        padding: 18px 16px;
        background: var(--mobile-card);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 18px;
        box-sizing: border-box;
    }

    .studio-pillars .pillar-col {
        display: grid;
        grid-template-columns: 36px 1fr;
        column-gap: 12px;
        align-items: start;
        text-align: left;
        padding: 10px 0;
        border: 0;
        background: transparent;
    }

    .team-carousel-wrapper {
        position: relative;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .team-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: smooth !important;
        gap: 16px !important;
        padding: 10px 10px 18px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        scrollbar-width: none !important;
        touch-action: pan-x !important;
    }

    .team-grid::-webkit-scrollbar {
        display: none !important;
    }

    .team-card {
        flex: 0 0 min(285px, calc(100vw - 52px)) !important;
        width: min(285px, calc(100vw - 52px)) !important;
        max-width: 320px !important;
        scroll-snap-align: center !important;
        scroll-snap-stop: always !important;
        opacity: 1 !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 28px 20px !important;
        border-radius: 20px !important;
        background: var(--bg-card) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    .team-avatar {
        width: 76px !important;
        height: 76px !important;
        min-height: 76px !important;
        border-radius: 50% !important;
        margin: 0 auto 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: linear-gradient(135deg, var(--electric-blue), var(--cyan)) !important;
        box-shadow: 0 0 20px rgba(0, 229, 255, 0.3) !important;
    }

    .team-avatar span {
        font-family: var(--font-tech) !important;
        font-size: 20px !important;
        font-weight: 700 !important;
        color: #01040a !important;
    }

    .team-name {
        font-size: 17px !important;
        margin-top: 0 !important;
        color: var(--text-primary) !important;
    }

    .team-role {
        font-size: 10.5px !important;
        letter-spacing: 1.5px !important;
        color: var(--text-blue) !important;
        margin-top: 6px !important;
    }

    .team-bio {
        font-size: 13px !important;
        line-height: 1.6 !important;
        color: var(--text-muted) !important;
        margin-top: 12px !important;
    }

    .team-tags {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
        margin-top: 16px !important;
    }

    .team-carousel-indicators {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        margin-top: 14px !important;
        width: 100% !important;
    }

    .team-dot {
        width: 8px !important;
        height: 8px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.25) !important;
        border: none !important;
        padding: 0 !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }

    .team-dot.active {
        width: 24px !important;
        border-radius: 12px !important;
        background: var(--cyan) !important;
        box-shadow: 0 0 10px rgba(0, 229, 255, 0.6) !important;
    }

    /* 11. Products Showcase & Cards */
    .product-jump-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-top: 18px;
    }

    .jump-link {
        font-size: 10px;
        padding: 8px 14px;
        border-radius: 999px;
    }

    .product-showcase {
        display: flex;
        flex-direction: column;
        gap: 28px;
        width: 100%;
    }

    .product-visual {
        width: 100%;
        padding: 16px;
        background: radial-gradient(circle at 50% 25%, rgba(0, 229, 255, 0.08), transparent 65%);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 20px;
        box-sizing: border-box;
    }

    .dashboard-mockup {
        width: 100%;
        transform: none;
        min-width: 0;
    }

    .phone-mockup {
        max-width: 260px;
        margin: 0 auto;
    }

    .product-copy {
        text-align: left;
        width: 100%;
    }

    .product-copy .feature-list {
        width: 100%;
        text-align: left;
    }

    /* 12. Work Portfolio & Services Accordions */
    .work-filter-aside {
        width: 100%;
        max-width: 100%;
        margin: 0 0 14px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
        padding: 0;
    }

    /* Overflow indicator cue on the right edge */
    .work-filter-aside.show-right-hint::after {
        content: '';
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: rgba(0, 229, 255, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='13' height='13' stroke='%2300e5ff' stroke-width='2.5' fill='none'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center center;
        pointer-events: none;
        animation: pulseScrollHint 1.6s ease-in-out infinite;
        z-index: 10;
        opacity: 0.9;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        border: 1px solid rgba(0, 229, 255, 0.35);
        box-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
        transition: opacity 0.3s ease;
    }

    /* Overflow indicator cue on the left edge */
    .work-filter-aside.show-left-hint::before {
        content: '';
        position: absolute;
        left: 6px;
        top: 50%;
        transform: translateY(-50%);
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: rgba(0, 229, 255, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='13' height='13' stroke='%2300e5ff' stroke-width='2.5' fill='none'%3E%3Cpolyline points='15 18 9 12 15 6'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center center;
        pointer-events: none;
        animation: pulseScrollHintLeft 1.6s ease-in-out infinite;
        z-index: 10;
        opacity: 0.9;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        border: 1px solid rgba(0, 229, 255, 0.35);
        box-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
        transition: opacity 0.3s ease;
    }

    @keyframes pulseScrollHint {
        0%, 100% { opacity: 0.9; transform: translateY(-50%) scale(1); }
        50% { opacity: 0.45; transform: translateY(-50%) translateX(2px) scale(0.92); }
    }

    @keyframes pulseScrollHintLeft {
        0%, 100% { opacity: 0.9; transform: translateY(-50%) scale(1); }
        50% { opacity: 0.45; transform: translateY(-50%) translateX(-2px) scale(0.92); }
    }

    .work-filters {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        justify-content: flex-start !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 8px !important;
        padding: 5px 12px !important;
        border-radius: 40px !important;
        background: rgba(6, 16, 32, 0.72) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
        border: 1px solid rgba(0, 229, 255, 0.16) !important;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none !important;
        box-sizing: border-box !important;
        touch-action: pan-x;
        transition: mask-image 0.25s ease, -webkit-mask-image 0.25s ease;
    }

    .work-filters::-webkit-scrollbar {
        display: none !important;
    }

    /* Edge gradient fade masks showing overflow direction */
    .work-filters.scroll-has-right {
        mask-image: linear-gradient(to right, black calc(100% - 36px), transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black calc(100% - 36px), transparent 100%);
    }

    .work-filters.scroll-has-left {
        mask-image: linear-gradient(to right, transparent 0%, black 36px, black 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 36px, black 100%);
    }

    .work-filters.scroll-has-both {
        mask-image: linear-gradient(to right, transparent 0%, black 32px, black calc(100% - 32px), transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 32px, black calc(100% - 32px), transparent 100%);
    }

    .filter-btn {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        padding: 7px 15px !important;
        font-size: 9.5px !important;
        min-height: 34px !important;
    }

    .work-pages-viewport {
        overflow: hidden;
        width: 100%;
        padding: 8px 4px 16px;
    }

    .work-pages-track {
        display: flex;
        width: 100%;
        gap: clamp(24px, 4vw, 40px);
    }

    .work-page {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        gap: 16px !important;
    }

    .work-card {
        width: 100%;
        background: var(--mobile-card);
        border: 1px solid rgba(0, 229, 255, 0.18);
        border-radius: 18px;
        overflow: hidden;
        text-align: left;
    }

    .work-card-media {
        height: 155px !important;
    }

    .work-card-content {
        padding: 18px 20px 20px !important;
    }

    .work-meta-row {
        margin-bottom: 10px !important;
    }

    .work-card-title {
        font-size: 18px !important;
        margin-bottom: 6px !important;
    }

    .work-card-desc {
        font-size: 12px !important;
        line-height: 1.6 !important;
        -webkit-line-clamp: 3 !important;
        margin-bottom: 14px !important;
    }

    .work-card-tags {
        gap: 6px !important;
        margin-bottom: 16px !important;
    }

    .work-card-tags span {
        font-size: 9.5px !important;
        padding: 3px 8px !important;
    }

    .work-action-btn {
        padding: 10px 14px !important;
        font-size: 10px !important;
    }

    .accordion-item {
        background: linear-gradient(145deg, rgba(10, 26, 49, 0.72), rgba(4, 9, 20, 0.6)) !important;
        backdrop-filter: blur(6px) !important;
        -webkit-backdrop-filter: blur(6px) !important;
        border: 1px solid rgba(0, 229, 255, 0.16) !important;
        border-radius: 14px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    }

    .accordion-header {
        padding: 16px 16px !important;
        align-items: center !important;
        text-align: left !important;
    }

    .accordion-panel-inner {
        padding: 0 16px 18px 16px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: left !important;
        gap: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .accordion-desc {
        text-align: left !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .capability-list {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .capability-list li {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: left !important;
        padding: 9px 12px !important;
        background: rgba(0, 229, 255, 0.035) !important;
        border: 1px solid rgba(0, 229, 255, 0.12) !important;
        border-radius: 10px !important;
        font-size: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 13. Universal Mobile Clean Footer */
    footer.footer,
    main > .section:last-child > footer.footer,
    .footer {
        position: static !important;
        width: 100% !important;
        margin-top: 48px !important;
        padding: 32px 16px 36px !important;
        background: rgba(2, 5, 12, 0.95) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-sizing: border-box !important;
    }

    .footer-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 16px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .footer-left {
        order: 4 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .footer-left p {
        font-size: 11px !important;
        color: #718096 !important;
        text-align: center !important;
        margin: 0 !important;
    }

    .footer-center {
        order: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .footer-tagline {
        font-size: 12px !important;
        color: var(--text-muted) !important;
        text-align: center !important;
        margin: 0 !important;
    }

    .footer-right {
        order: 2 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 14px !important;
        width: 100% !important;
    }

    .footer-links {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 20px !important;
        flex-wrap: wrap !important;
    }

    .footer-links a {
        font-size: 12px !important;
    }

    .footer-socials {
        order: 3 !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 20px !important;
    }
}

/* Desktop Contact Section Centering */
@media (min-width: 769px) {
    #contact {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        min-height: 100dvh;
        height: 100dvh;
        max-height: 100dvh;
        padding-top: calc(var(--header-height) + 10px);
        padding-bottom: 0;
        box-sizing: border-box;
        overflow: hidden;
    }
}

#contact .contact-container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

#contact .contact-header {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: min(2.5vh, 20px);
}

#contact .contact-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: min(3vh, 24px);
    width: 100%;
}

#contact .assurances-grid {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Blog Page Styles
   Hero, Featured Bento Grid, Knowledge Archive, and Modal Dialog
   ========================================================================== */

/* 1. Blog Hero Section */
.blog-hero-section {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-hero-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 820px;
}

.blog-hero-subtitle {
    justify-content: center;
    margin-bottom: 20px;
}

.blog-hero-title {
    max-width: 760px;
    margin-bottom: 20px;
}

.blog-hero-desc {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px;
    text-align: center;
    line-height: 1.65;
}

.blog-hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding: 12px 28px;
    background: rgba(4, 12, 26, 0.65);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 40px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-number {
    font-family: var(--font-brand);
    font-size: 18px;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 0.5px;
}

.stat-label {
    font-family: var(--font-tech);
    font-size: 9.5px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.12);
}

/* 2. Featured Blogs Section (Bento Grid) */
.blog-featured-section {
    padding-top: calc(var(--header-height) + 12px);
    padding-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.blog-featured-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: calc(100dvh - var(--header-height) - 64px);
}

.blog-section-header {
    margin-bottom: clamp(10px, 1.8vh, 16px);
    text-align: left;
    flex-shrink: 0;
}

.blog-section-header .subtitle-wrapper {
    margin-bottom: 6px;
}

.blog-section-header .section-title {
    margin-bottom: 4px;
    font-size: clamp(20px, 2.4vw, 30px);
}

.blog-section-header .section-desc {
    max-width: 620px;
    margin: 0;
    font-size: clamp(12px, 1.1vw, 13px);
    line-height: 1.45;
}

/* Bento Grid */
.featured-bento-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(14px, 1.8vh, 20px);
    flex: 1 1 auto;
    min-height: 0;
}

.featured-card {
    position: relative;
    background: linear-gradient(135deg, rgba(8, 20, 42, 0.72) 0%, rgba(3, 9, 22, 0.85) 100%);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 18px;
    padding: clamp(16px, 2vh, 22px) clamp(18px, 2vw, 24px);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
    text-align: left;
}

.featured-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(0, 229, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.featured-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 255, 0.55);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 229, 255, 0.18);
}

.featured-card--main {
    position: relative;
    min-height: 0;
}

.featured-card--main::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 114, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.featured-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    z-index: 2;
}

.featured-spotlight-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-tech);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #fff;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.3) 0%, rgba(0, 114, 255, 0.3) 100%);
    border: 1px solid rgba(0, 229, 255, 0.5);
    padding: 4px 10px;
    border-radius: 12px;
}

.featured-category-pill {
    font-family: var(--font-tech);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
}

.featured-read-time {
    font-family: var(--font-tech);
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.featured-title {
    font-family: var(--font-brand);
    font-size: clamp(18px, 1.9vw, 24px);
    color: #fff;
    line-height: 1.35;
    margin-bottom: 12px;
    z-index: 2;
    transition: color 0.25s ease;
}

.featured-card:hover .featured-title {
    color: var(--cyan);
}

.featured-excerpt {
    font-family: var(--font-ui);
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 18px;
    z-index: 2;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    z-index: 2;
}

.featured-tag {
    font-family: var(--font-ui);
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3px 9px;
    border-radius: 6px;
}

.featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 2;
}

.featured-author-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-mini-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.35) 0%, rgba(0, 114, 255, 0.35) 100%);
    border: 1px solid rgba(0, 229, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-brand);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

.author-meta {
    display: flex;
    flex-direction: column;
}

.author-name-text {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.author-date-text {
    font-family: var(--font-ui);
    font-size: 10.5px;
    color: var(--text-muted);
}

.featured-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-tech);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 7px 14px;
    border-radius: 20px;
    transition: all 0.25s ease;
}

.featured-card:hover .featured-action-btn {
    background: var(--cyan);
    color: #020712;
    border-color: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
}

/* Secondary Featured Stack */
.featured-stack {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.4vh, 14px);
    min-height: 0;
}

.featured-card--side {
    flex: 1 1 auto;
    padding: clamp(12px, 1.6vh, 16px) clamp(16px, 1.8vw, 20px);
}

.featured-card--side .featured-title {
    font-size: clamp(15px, 1.4vw, 17.5px);
    margin-bottom: 8px;
}

.featured-card--side .featured-excerpt {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 12px;
    -webkit-line-clamp: 2;
}

.featured-card--side .featured-footer {
    padding-top: 10px;
}

/* 3. All Blogs Section (Controls, Search, Sort, Cards Grid) */
.blog-all-section {
    padding-top: calc(var(--header-height) + 12px);
    padding-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.blog-all-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: calc(100dvh - var(--header-height) - 64px);
}

.blog-controls-bar {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.2vh, 10px);
    margin-bottom: clamp(10px, 1.5vh, 14px);
    flex-shrink: 0;
}

.blog-search-wrapper {
    position: relative;
    width: 100%;
}

.blog-search-wrapper .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    transition: color 0.25s ease;
}

.blog-search-input {
    width: 100%;
    background: rgba(6, 16, 32, 0.75);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 30px;
    padding: 12px 42px 12px 46px;
    color: #fff;
    font-family: var(--font-ui);
    font-size: 13.5px;
    outline: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.blog-search-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
}

.blog-search-wrapper:focus-within .search-icon {
    color: var(--cyan);
}

.blog-search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    display: none;
    transition: color 0.2s ease;
}

.blog-search-clear:hover {
    color: var(--cyan);
}

.blog-search-clear.visible {
    display: block;
}

.blog-filters-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.blog-category-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px 0;
}

.blog-category-filter::-webkit-scrollbar {
    display: none;
}

.category-pill {
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-family: var(--font-tech);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.8px;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.category-pill:hover {
    color: #fff;
    border-color: rgba(0, 229, 255, 0.35);
    background: rgba(0, 229, 255, 0.08);
}

.category-pill.active {
    background: var(--cyan);
    color: #020712;
    border-color: var(--cyan);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

.blog-sort-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sort-label {
    font-family: var(--font-tech);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.blog-sort-select {
    background: rgba(6, 16, 32, 0.85);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 18px;
    padding: 5px 28px 5px 12px;
    color: #fff;
    font-family: var(--font-ui);
    font-size: 11.5px;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='12' height='12' stroke='%2300e5ff' stroke-width='2' fill='none'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.2s ease;
}

.blog-sort-select:focus {
    border-color: var(--cyan);
}

/* Grid Viewport */
.blog-grid-viewport {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 229, 255, 0.3) rgba(2, 6, 16, 0.5);
}

.blog-grid-viewport::-webkit-scrollbar {
    width: 5px;
}

.blog-grid-viewport::-webkit-scrollbar-track {
    background: rgba(2, 6, 16, 0.5);
}

.blog-grid-viewport::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.3);
    border-radius: 3px;
}

.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-bottom: 10px;
}

/* Individual Blog Card */
.blog-card {
    background: linear-gradient(135deg, rgba(8, 20, 42, 0.65) 0%, rgba(3, 9, 20, 0.78) 100%);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 16px;
    padding: 20px 22px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 255, 0.45);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 229, 255, 0.15);
}

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.blog-category-tag {
    font-family: var(--font-tech);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 3px 8px;
    border-radius: 8px;
}

.blog-card-time {
    font-family: var(--font-tech);
    font-size: 8.5px;
    color: var(--text-muted);
}

.blog-card-title {
    font-family: var(--font-brand);
    font-size: 15.5px;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 10px;
    transition: color 0.25s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--cyan);
}

.blog-card-excerpt {
    font-family: var(--font-ui);
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}

.blog-card-author-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-dot-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.2);
    border: 1px solid rgba(0, 229, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-brand);
    font-size: 9px;
    font-weight: 700;
    color: #fff;
}

.blog-card-author-name {
    font-family: var(--font-ui);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}

.blog-card-link-icon {
    font-size: 13px;
    color: var(--cyan);
    transition: transform 0.25s ease;
}

.blog-card:hover .blog-card-link-icon {
    transform: translate(2px, -2px);
}

/* Empty State */
.blog-empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 4vh, 40px) 20px;
    text-align: center;
}

.blog-empty-state.visible {
    display: flex;
}

.empty-state-icon {
    font-size: 36px;
    margin-bottom: 14px;
    opacity: 0.8;
}

.empty-state-title {
    font-family: var(--font-brand);
    font-size: 18px;
    color: #fff;
    margin-bottom: 8px;
}

.empty-state-desc {
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--text-muted);
    max-width: 420px;
    margin-bottom: 20px;
}

.empty-reset-btn {
    font-family: var(--font-tech);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #020712;
    background: var(--cyan);
    border: 1px solid var(--cyan);
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
    transition: all 0.25s ease;
}

.empty-reset-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 0 20px var(--cyan);
}

/* 4. Blog CTA Section */
.blog-cta-section {
    position: relative;
}

.blog-cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    justify-content: center;
}

.blog-cta-container .section-title {
    margin-bottom: 30px;
}

/* ==========================================================================
   Blog Article Detail Modal Dialog (<dialog id="blog-modal">)
   ========================================================================== */
.blog-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10005;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    color: #e2e8f0;
}

.blog-modal[open] {
    opacity: 1;
    pointer-events: auto;
}

.blog-modal::backdrop {
    background: rgba(1, 4, 12, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.blog-modal-container {
    width: min(840px, 92vw);
    max-height: min(88vh, 820px);
    background: linear-gradient(145deg, rgba(8, 20, 42, 0.96) 0%, rgba(3, 9, 20, 0.98) 100%);
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 45px rgba(0, 229, 255, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #e2e8f0;
}

.blog-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 26px;
    background: rgba(3, 8, 18, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.blog-modal-header-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-badge {
    font-family: var(--font-tech);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.35);
    padding: 4px 12px;
    border-radius: 12px;
}

.blog-read-time {
    font-family: var(--font-tech);
    font-size: 10px;
    color: var(--text-muted);
}

.blog-modal-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blog-modal-close-btn:hover {
    background: rgba(255, 85, 102, 0.2);
    border-color: #ff5566;
    color: #ff5566;
    transform: rotate(90deg);
}

/* Modal Body with smooth overflow scroll */
.blog-modal-body {
    padding: 28px 36px 36px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 229, 255, 0.4) rgba(2, 6, 16, 0.6);
    text-align: left;
    color: #cbd5e1;
}

.blog-modal-body::-webkit-scrollbar {
    width: 6px;
}

.blog-modal-body::-webkit-scrollbar-track {
    background: rgba(2, 6, 16, 0.6);
}

.blog-modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.4);
    border-radius: 3px;
}

.blog-modal-title {
    font-family: var(--font-brand);
    font-size: clamp(20px, 2.5vw, 28px);
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 16px;
}

.blog-modal-byline {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.4) 0%, rgba(0, 114, 255, 0.4) 100%);
    border: 1px solid rgba(0, 229, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-brand);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.byline-info {
    display: flex;
    flex-direction: column;
}

.byline-info .author-name {
    font-family: var(--font-ui);
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
}

.byline-info .publish-date {
    font-family: var(--font-ui);
    font-size: 11.5px;
    color: var(--text-muted);
}

/* Modal Structured Article Typography */
.blog-modal-content {
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.8;
    color: #cbd5e1;
}

.blog-modal-content h1,
.blog-modal-content h2,
.blog-modal-content h4 {
    font-family: var(--font-brand);
    color: #ffffff;
    letter-spacing: 0.3px;
}

.blog-modal-content h2 {
    font-size: 19px;
    margin: 28px 0 12px;
}

.blog-modal-content h3 {
    font-family: var(--font-brand);
    font-size: 16.5px;
    color: var(--cyan);
    margin: 26px 0 12px;
    letter-spacing: 0.4px;
}

.blog-modal-content p {
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.blog-modal-content p.lead {
    font-size: 16px;
    line-height: 1.75;
    color: #f1f5f9;
    font-weight: 400;
}

.blog-modal-content strong,
.blog-modal-content b {
    color: #ffffff;
    font-weight: 600;
}

.blog-modal-content em,
.blog-modal-content i {
    color: #e2e8f0;
}

.blog-modal-content ul,
.blog-modal-content ol {
    color: #cbd5e1;
    margin: 16px 0;
    padding-left: 22px;
}

.blog-modal-content li {
    color: #cbd5e1;
    margin-bottom: 8px;
    line-height: 1.7;
}

.blog-modal-content blockquote {
    margin: 24px 0;
    padding: 16px 22px;
    background: rgba(0, 229, 255, 0.08);
    border-left: 3px solid var(--cyan);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #f8fafc;
    font-size: 15px;
    line-height: 1.7;
}

.blog-modal-content .blog-callout-box {
    margin: 26px 0;
    padding: 22px 26px;
    background: rgba(6, 18, 38, 0.85);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.blog-callout-box h4 {
    font-family: var(--font-brand);
    font-size: 14.5px;
    color: var(--cyan);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.blog-callout-box ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.blog-callout-box li {
    font-size: 13.5px;
    line-height: 1.65;
    margin-bottom: 8px;
    color: #cbd5e1;
}

.blog-callout-box li strong {
    color: #ffffff;
}

.blog-modal-content pre {
    background: #020712;
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 12px;
    padding: 16px 20px;
    overflow-x: auto;
    font-family: monospace;
    font-size: 12.5px;
    line-height: 1.5;
    color: #38bdf8;
    margin: 20px 0;
}

.blog-modal-content code {
    background: rgba(0, 229, 255, 0.1);
    color: var(--cyan);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12.5px;
}

.blog-modal-content a {
    color: var(--cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition-fast);
}

.blog-modal-content a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px var(--cyan);
}

/* Fellowship Participants 2x2 Grid */
.fellowship-participants-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 22px 0 28px;
}

.fellowship-participant-card {
    background: rgba(8, 22, 46, 0.75);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.fellowship-participant-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 12px rgba(0, 229, 255, 0.2);
}

.fellowship-participant-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.fellowship-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.35), rgba(0, 114, 255, 0.35));
    border: 1px solid rgba(0, 229, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-brand);
    font-weight: 700;
    color: #fff;
    font-size: 13px;
    flex-shrink: 0;
}

.fellowship-name-col {
    min-width: 0;
}

.fellowship-name-col h4 {
    margin: 0 !important;
    color: #fff !important;
    font-family: var(--font-ui) !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fellowship-cohort-tag {
    font-size: 11px;
    color: var(--cyan);
    font-family: var(--font-tech);
    display: block;
    letter-spacing: 0.5px;
}

.fellowship-linkedin-btn {
    color: var(--cyan) !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none !important;
    padding: 6px 12px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(0, 229, 255, 0.3);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.fellowship-linkedin-btn:hover {
    background: var(--cyan) !important;
    color: #020712 !important;
    border-color: var(--cyan) !important;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
    text-shadow: none !important;
}

@media (max-width: 580px) {
    .fellowship-participants-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    .fellowship-participant-card {
        padding: 12px 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .fellowship-linkedin-btn {
        width: 100%;
        justify-content: center;
        padding: 5px 8px;
        font-size: 10.5px;
    }
}

/* Modal Footer */
.blog-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 26px;
    background: rgba(3, 8, 18, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.blog-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.blog-modal-tag,
.modal-tag {
    font-family: var(--font-ui);
    font-size: 11px;
    color: #e2e8f0;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.22);
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.blog-modal-done-btn {
    font-family: var(--font-tech);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #020712;
    background: var(--cyan);
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.blog-modal-done-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 0 14px var(--cyan);
}

/* ==========================================================================
   Blog Page Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
    .featured-bento-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .blog-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-hero-stats {
        gap: 16px;
        padding: 10px 18px;
    }
    .stat-number { font-size: 16px; }
    .stat-label { font-size: 8.5px; }

    .blog-section-header {
        text-align: center;
        align-items: center;
    }

    .blog-section-header .subtitle-wrapper {
        justify-content: center;
    }

    .blog-section-header .section-desc {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .featured-bento-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .featured-card {
        padding: 18px 20px;
    }

    .featured-title {
        font-size: 17px;
    }

    .featured-excerpt {
        font-size: 12.5px;
    }

    .blog-filters-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .blog-sort-wrapper {
        justify-content: flex-end;
    }

    .blog-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .blog-modal-container {
        width: 95vw;
        max-height: 90vh;
        border-radius: 16px;
    }

    .blog-modal-header {
        padding: 14px 18px;
    }

    .blog-modal-body {
        padding: 20px 20px 24px;
    }

    .blog-modal-title {
        font-size: 18px;
    }

    .blog-modal-content {
        font-size: 13.5px;
    }

    .blog-modal-footer {
        padding: 12px 18px;
    }
}

