:root {
    --bg-color: #fbfbfd;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --card-bg: #ffffff;
    --card-border: #d2d2d7;
    --accent: #0071e3;
    --hero-dark: #08090f;
    --hero-dark2: #0d1120;
    --glow-blue: rgba(0, 113, 227, 0.6);
    --glow-violet: rgba(123, 47, 247, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.5;
}

/* --- LAPTOP LOADER ANIMATION (REALISTIC APPLE STYLE) --- */
#laptop-loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
    overflow: hidden;
}

/* Prevent body scroll while loader is visible */
body:has(#laptop-loader-container:not([style*="display: none"])) {
    overflow: hidden;
}

/* Ensure all images inside the loader scale correctly */
#laptop-loader-container img {
    object-fit: contain;
    max-width: 100%;
}

/* Instant Load Bypass: Prevents the "Reloading" flicker */
body.instant-load #laptop-loader-container {
    display: none !important;
}

body.instant-load #main-website {
    opacity: 1 !important;
    visibility: visible !important;
}

body.instant-load .fade-up-hero, 
body.instant-load .fade-in-nav, 
body.instant-load .fade-in-hero {
    opacity: 1 !important;
    transform: none !important;
}

/* Instant Load Bypass: Prevents the "Reloading" flicker */
body.instant-load #laptop-loader-container {
    display: none !important;
}

body.instant-load #main-website {
    opacity: 1 !important;
    visibility: visible !important;
}

body.instant-load .fade-up-hero, 
body.instant-load .fade-in-nav, 
body.instant-load .fade-in-hero {
    opacity: 1 !important;
    transform: none !important;
}

/* Tap-to-start overlay */
#tap-to-start {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

#tap-to-start span {
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: tapPulse 2s ease-in-out infinite;
}

.tap-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    position: relative;
    animation: tapPulse 2s ease-in-out infinite;
}

.tap-ring::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
}

@keyframes tapPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.06);
    }
}


.laptop-scene {
    position: relative;
    width: 800px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    transform-origin: center 80px;
    /* Pivots precisely on the laptop hinge (top edge of chassis) */
    transform: rotateX(65deg) rotateZ(0deg) scale(0.8);
}

@media (max-width: 600px) {
    #laptop-loader-container {
        width: 100vw;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    #laptop-loader-container > * {
        max-width: 100%;
    }
    /* Hide the 3D laptop on mobile */
    .laptop-scene {
        display: none !important;
    }
    /* Show mobile text loader instead */
    #mobile-loader {
        display: flex !important;
    }
}

/* --- MOBILE LOADER (text inside phone, hidden on desktop) --- */
#mobile-loader {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.mobile-phone {
    position: relative;
    width: 280px;
    height: 580px;
    background: #000;
    border: 12px solid #222;
    border-radius: 44px;
    box-shadow: 
        0 0 0 2px #555,
        0 20px 50px rgba(0,0,0,0.5),
        inset 0 0 10px rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: phonePopUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: translateY(50px) scale(0.9);
    opacity: 0;
}

@keyframes phonePopUp {
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.mp-vol-up, .mp-vol-down, .mp-power {
    position: absolute;
    background: #333;
    border-radius: 2px;
}
.mp-vol-up { top: 100px; left: -14px; width: 4px; height: 30px; }
.mp-vol-down { top: 140px; left: -14px; width: 4px; height: 30px; }
.mp-power { top: 120px; right: -14px; width: 4px; height: 40px; }

.mobile-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mp-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #222;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.mp-camera {
    width: 12px;
    height: 12px;
    background: #0a0a0a;
    border-radius: 50%;
    box-shadow: inset 0 0 2px rgba(255,255,255,0.2);
}

.mp-home-bar {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
}

.mobile-boot-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    z-index: 5;
}

.mobile-loader-logo {
    width: 80px;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transform: translateY(10px);
}

.mobile-loader-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #111;
    width: 0;
    background: linear-gradient(90deg, #ffbc00, #ff2a6d, #9c27b0, #05d5ff, #00e676);
    background-size: 16ch 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
}

.mobile-loader-bar {
    width: 160px;
    height: 4px;
    background: #e5e5ea;
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
}

.mobile-loader-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffbc00, #ff2a6d, #9c27b0, #05d5ff, #00e676);
    border-radius: 2px;
}

.mobile-loader-pct {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    font-variant-numeric: tabular-nums;
    opacity: 0;
}



.laptop-chassis {
    position: relative;
    width: 650px;
    /* Made slightly wider for realistic 16:10 aspect ratio */
    height: 440px;
    transform-style: preserve-3d;
}

/* BASE SECTIONS */
.laptop-base {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #d2d2d7 0%, #a3a3a8 100%);
    border-radius: 24px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    box-shadow:
        inset 0 -5px 15px rgba(255, 255, 255, 0.6),
        inset 0 2px 5px rgba(255, 255, 255, 0.9),
        0 25px 50px rgba(0, 0, 0, 0.8),
        0 4px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 15px;
    z-index: 1;
}

.keyboard-indent {
    width: 86%;
    height: 50%;
    background: #b5b5ba;
    border-radius: 8px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.keyboard-grid {
    width: 100%;
    height: 100%;
    /* Simplified keys texture */
    background: repeating-linear-gradient(0deg, transparent, transparent 15px, #1a1a1a 15px, #1a1a1a 30px),
        repeating-linear-gradient(90deg, transparent, transparent 15px, #1a1a1a 15px, #1a1a1a 30px);
    background-size: 32px 32px;
    border-radius: 5px;
    background-color: #2a2a2a;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 1);
}

.trackpad {
    width: 35%;
    height: 30%;
    background: linear-gradient(to bottom, #cacacd, #b8b8bd);
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 1px rgba(255, 255, 255, 0.5);
}

.lip-indent {
    width: 15%;
    height: 6px;
    background: #999;
    border-radius: 0 0 5px 5px;
    margin-top: 5px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* SCREEN LID */
.laptop-lid {
    position: absolute;
    bottom: 100%;
    /* Placed exactly above the base in 2D */
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: bottom center;
    /* Hinge is at the bottom of the lid / top edge of the base */
    transform-style: preserve-3d;
    transform: rotateX(-179.9deg);
    /* Folded tightly over the base */
    z-index: 2;
}

.lid-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lid-back {
    /* Outside top of laptop */
    background: linear-gradient(135deg, #e2e2e6, #a8a8aa);
    transform: rotateX(180deg) translateZ(1px);
    /* Cancels out the folded rotation so Logo is upright when closed */
    box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.8);
}

.lid-logo {
    width: 120px;
    height: auto;
    opacity: 0.8;
}

.lid-front {
    /* Inside screen facing user */
    background: #fff;
    border: 3px solid #333;
    /* Silver rim */
    box-shadow: inset 0 0 0 15px #0a0a0a;
    /* Black bezels */
    transform: translateZ(1px);
    flex-direction: column;
}

.camera-dot {
    position: absolute;
    top: 6px;
    width: 6px;
    height: 6px;
    background: #111;
    border-radius: 50%;
    border: 1px solid #333;
}

.screen-display {
    width: calc(100% - 30px);
    height: calc(100% - 45px);
    /* 15px top, 30 bottom? */
    background: #fff;
    margin-top: -10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.05) inset;
    overflow: hidden;
}

.boot-sequence {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0;
    /* Hidden initially, JS will fade it in */
}

.boot-logo {
    width: 140px;
    /* Increased size significantly */
    height: auto;
    /* Removed drop shadow since screen is white */
}

.boot-text {
    font-size: 1.3rem;
    font-weight: 700;
    /* Made slightly bolder to show off the gradient */
    letter-spacing: 0.5px;
    margin-bottom: 25px;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #111;
    /* Dark typing cursor */
    width: 0;
    /* JS animates to 16ch */

    /* Gradient matching logo colors */
    background: linear-gradient(90deg, #ffbc00, #ff2a6d, #9c27b0, #05d5ff, #00e676);
    background-size: 16ch 100%;
    /* Locks gradient size so it reveals organically while typing */
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.apple-boot-bar {
    width: 180px;
    height: 4px;
    background: #e5e5ea;
    /* Light gray inactive bar */
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.apple-boot-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--boot-progress, 0%);
    background: #111;
    /* Dark filling progress */
}

.boot-percentage {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    margin-top: -5px;
    font-variant-numeric: tabular-nums;
    /* Prevents text jumping while counting */
}

.macbook-text {
    position: absolute;
    bottom: 5px;
    color: #444;
    font-size: 0.7rem;
    letter-spacing: 1px;
    font-weight: 500;
}

/* --- MAIN WEBSITE --- */
#main-website {
    visibility: hidden;
    opacity: 0;
}

.fade-in-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 5%;
    background: rgba(225, 225, 228, 0.85);
    /* Clean Translucent Grey */
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.fade-in-nav,
nav {
    /* Apply these styles to both classes */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(225, 225, 228, 0.85);
    /* Clean Translucent Grey */
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-logo {
    height: 30px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    height: 100%;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 1000;
}

.nav-toggle-label span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links a:hover {
    color: var(--accent);
}

/* ─── Hero Section ─────────────────────────────────── */

/* Dark full-bleed hero wrapper outside the container */
.hero-outer {
    background: linear-gradient(135deg, var(--hero-dark) 0%, var(--hero-dark2) 60%, #0a0e1a 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle dot-grid overlay */
.hero-outer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 38px 38px;
    pointer-events: none;
    z-index: 0;
}

/* Coloured ambient glow blobs */
.hero-outer::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-blue) 0%, transparent 70%);
    top: -120px;
    right: -100px;
    pointer-events: none;
    z-index: 0;
    animation: blobPulse 6s ease-in-out infinite alternate;
}

@keyframes blobPulse {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.2) translate(-40px, 30px);
        opacity: 1;
    }
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100vh;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 1;
}

/* Left violet glow blob */
.hero-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-violet) 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
    pointer-events: none;
    animation: blobPulse 7s ease-in-out infinite alternate-reverse;
}

.hero-content {
    flex: 1;
    max-width: 620px;
    z-index: 10;
    position: relative;
    margin-top: 5rem; /* Pushes the hero text down */
}

/* Eyebrow label */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #05d5ff;
    background: rgba(5, 213, 255, 0.08);
    border: 1px solid rgba(5, 213, 255, 0.25);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    margin-bottom: 1.8rem;
}

.hero-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #05d5ff;
    box-shadow: 0 0 6px #05d5ff;
    animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

.hero-content h1 {
    font-size: 4.8rem;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.hero-content h1 .gradient-word {
    background: linear-gradient(90deg, #0071e3, #7b2ff7, #05d5ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientShift 4s linear infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.7;
    max-width: 520px;
}

/* Hero CTA buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, #0071e3, #7b2ff7);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 113, 227, 0.5), 0 4px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.01em;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 35px rgba(0, 113, 227, 0.7), 0 8px 25px rgba(0, 0, 0, 0.4);
}

.btn-ghost {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    transform: translateY(-2px);
}

/* Highlighted "Our Story" button — warm gold accent */
.btn-story {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(255, 200, 50, 0.08));
    color: #f5c842;
    text-decoration: none;
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.2), inset 0 0 12px rgba(212, 175, 55, 0.05);
    backdrop-filter: blur(10px);
}

.btn-story:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(255, 200, 50, 0.15));
    border-color: rgba(212, 175, 55, 0.9);
    color: #ffd700;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4), 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Stat badges below CTA */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat strong {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-stat span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-3d-wrapper {
    flex: 1.2;
    height: 90vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hero-canvas {
    width: 100%;
    height: 100%;
    outline: none;
}

/* Services */
.services-section {
    padding: 8rem 5%;
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-section h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 4rem;
    text-align: center;
    letter-spacing: -0.02em;
}

/* Beautiful Heading Animation Styles */
.beautiful-heading {
    text-align: center;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
    perspective: 1000px;
    line-height: 1.2;
}

.word-wrap, .word-wrap-accent {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    margin-right: 0.25em;
}

.word-wrap-accent {
    margin-right: 0;
}

.word-inner {
    display: inline-block;
    transform: translateY(110%) rotateZ(5deg);
    transform-origin: left bottom;
    will-change: transform;
}

.word-wrap-accent .word-inner {
    color: var(--accent); /* Usually the blue brand color */
    background: linear-gradient(135deg, var(--accent) 0%, #7b2ff7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .beautiful-heading {
        font-size: 2.2rem;
    }
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 3rem 2.5rem;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Who We Are Section */
.who-we-are-section {
    padding: 8rem 5%;
    background: #ffffff;
}

.who-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.who-content h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.who-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* About / Leadership Section */
.about-section {
    padding: 8rem 5%;
    background: #f4f4f7;
    /* Very subtle contrast from the pure white services section */
}

.about-section h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 4rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    text-align: center;
}

.team-card {
    transition: transform 0.4s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 3px solid #fff;
    pointer-events: none;
}

.team-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.team-card h4 {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Contact / Booking Section */
.contact-section {
    padding: 8rem 5%;
    background: #fbfbfd;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.contact-content h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.contact-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.calendly-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    background: #ffffff;
}

footer {
    padding: 4rem 5%;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: #e1e1e4;
    /* Solid grey matching the header's rgb(225,225,228) */
}

@media (max-width: 900px) {
    .nav-links {
        gap: 1.5rem;
    }

    .hero-section {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 6rem;
        height: auto;
        min-height: 100vh;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-eyebrow {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content {
        margin-top: 3rem;
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        margin: 0 auto 2rem;
    }

    .hero-3d-wrapper {
        width: 100%;
        height: 50vh;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .fade-in-nav {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 5%;
        height: 70px;
        align-items: center;
    }

    .nav-toggle-label {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 1rem 5%;
        gap: 1.5rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transform-origin: top;
        animation: menuOpen 0.3s ease-out forwards;
        overflow-x: auto;
        white-space: nowrap;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    @keyframes menuOpen {
        0% { transform: scaleY(0); opacity: 0; }
        100% { transform: scaleY(1); opacity: 1; }
    }

    .nav-toggle:checked ~ .nav-links {
        display: flex;
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .btn, .btn-ghost {
        width: 100%;
        text-align: center;
    }

    .nav-links {
        gap: 0.8rem;
    }

    .nav-links a {
        font-size: 0.7rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stat strong {
        font-size: 1.3rem;
    }

    .service-flip-card, .flip-card {
        height: 450px; /* More height for stacked text */
    }
}

/* ─── CEO Card Interaction ─────────────────────────── */
.ceo-card {
    cursor: pointer;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.ceo-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 113, 227, 0.15);
}

.ceo-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1.5px solid transparent;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.3), rgba(123, 47, 247, 0.3)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ceo-card:hover::after {
    opacity: 1;
}

.view-profile-hint {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s, transform 0.3s;
}

.ceo-card:hover .view-profile-hint {
    opacity: 1;
    transform: translateY(0);
}

/* ─── CEO Modal Overlay ────────────────────────────── */
#ceo-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

#ceo-modal-overlay.active {
    display: flex;
}

/* ─── Modal Card ───────────────────────────────────── */
#ceo-modal {
    background: linear-gradient(145deg, #ffffff, #f4f4f8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 28px;
    padding: 2.5rem;
    max-width: 560px;
    width: 100%;
    position: relative;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    overflow: hidden;
}

/* Decorative gradient blob inside modal */
#ceo-modal::before {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.07) 0%, transparent 70%);
    top: -80px;
    right: -80px;
    pointer-events: none;
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 1;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #000;
}

/* Header */
.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.modal-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.modal-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 4px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.modal-status-dot {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #30d158;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 8px rgba(48, 209, 88, 0.6);
}

.modal-header-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    letter-spacing: -0.02em;
}

.modal-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.modal-location {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* Sections */
.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 0.7rem;
}

.modal-bio {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
}

/* Skills pills */
.modal-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-skills span {
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.08), rgba(123, 47, 247, 0.08));
    border: 1px solid rgba(0, 113, 227, 0.2);
    color: #0056b3;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    letter-spacing: 0.01em;
}

/* Stats */
.modal-stats {
    display: flex;
    gap: 0;
    background: #f8f8fb;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.8rem;
}

.modal-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.5rem;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.modal-stat:last-child {
    border-right: none;
}

.modal-stat strong {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.modal-stat span {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Actions */
.modal-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-ghost-dark {
    display: inline-block;
    padding: 0.85rem 1.8rem;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
}

.btn-ghost-dark:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    #ceo-modal {
        padding: 1.8rem 1.4rem;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-header {
        flex-direction: column;
        text-align: center;
    }

    .modal-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-actions .btn,
    .modal-actions .btn-ghost-dark {
        text-align: center;
        width: 100%;
    }
}

/* --- RICH SERVICES SECTION --- */
.rich-services-bg {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

.rich-services-bg::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(123, 47, 247, 0.05) 0%, transparent 60%);
    filter: blur(60px);
    z-index: 0;
}

.rich-services-bg::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.05) 0%, transparent 60%);
    filter: blur(60px);
    z-index: 0;
}

.service-card {
    position: relative;
    z-index: 1;
    background: rgba(10, 25, 60, 0.85);
    /* Dark blue background */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Light border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem 2.5rem;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    isolation: isolate;
    cursor: default;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    transition: opacity 0.5s ease;
    opacity: 0;
}

.service-card h3 {
    font-size: 1.4rem;
    margin: 0;
    font-weight: 600;
    color: #ffffff;
    transition: color 0.3s ease;
    cursor: pointer;
}

/* Base state: Hidden content */
.service-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    margin-top: 0;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.service-tag {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1.5rem;
    font-weight: 600;
}

/* Click state: Reveal content */
.service-card.active .service-body {
    max-height: 500px;
    opacity: 1;
    margin-top: 1rem;
}

.service-card:hover,
.service-card.active {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 113, 227, 0.4), 0 10px 20px rgba(123, 47, 247, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.service-card:hover::before,
.service-card.active::before {
    opacity: 1;
}

@keyframes floatIcon {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-3px);
    }

    100% {
        transform: translateY(0px);
    }
}

.service-card:hover h3 {
    animation: floatIcon 3s ease-in-out infinite;
    background: linear-gradient(90deg, #0ce1ff, #a574f7);
    /* Brightened gradient for dark bg */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- OUR PROCESS PREMIUM CARDS --- */
.flip-card {
    background-color: transparent;
    perspective: 1500px;
    height: 340px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg) scale(1.02);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 28px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.flip-card-front {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.04),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.flip-card:hover .flip-card-front {
    border-color: rgba(0, 113, 227, 0.3);
}

.flip-card-front h3 {
    font-size: 1.6rem;
    margin-bottom: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1d1d1f 0%, #434346 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.flip-card-front .step-number {
    font-size: 4.5rem;
    font-weight: 900;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, rgba(0, 113, 227, 0.15) 0%, rgba(0, 113, 227, 0.02) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: -1rem;
    line-height: 1;
    z-index: 0;
}

.flip-card-back {
    background: linear-gradient(135deg, #08090f 0%, #1a1f35 100%);
    color: #ffffff;
    transform: rotateY(180deg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.flip-card-back::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 113, 227, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* --- PROFESSIONAL IPAD PRO 13" SLIDER --- */
.ipad-wrapper {
    max-width: 850px; /* Reduced from 1100px */
    margin: 4rem auto;
    perspective: 2000px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.ipad-pro-13 {
    position: relative;
    width: 100%;
    aspect-ratio: 1.41 / 1;
    background: #1c1c1e;
    border-radius: 42px;
    padding: 12px;
    box-shadow: 
        0 40px 80px -15px rgba(0,0,0,0.5),
        0 20px 40px -20px rgba(0,0,0,0.6),
        inset 0 0 0 1px rgba(255,255,255,0.08);
}

.ipad-bezel {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 32px;
    overflow: hidden;
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ipad-camera {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #080808;
    border-radius: 50%;
    border: 1px solid #1a1a1a;
}

.ipad-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #050505;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* iPad Status Bar Styling */
.ipad-status-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 28px;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 40;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-icon svg {
    opacity: 0.9;
}

.status-icon.cellular {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 10px;
}

.status-icon.cellular .bar {
    width: 3px;
    background: #fff;
    border-radius: 1px;
}

.bar-1 { height: 30%; }
.bar-2 { height: 50%; }
.bar-3 { height: 75%; }
.bar-4 { height: 100%; }

.status-battery {
    display: flex;
    align-items: center;
    gap: 4px;
}

.battery-icon {
    width: 18px;
    height: 9px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 2px;
    position: relative;
    padding: 1px;
}

.battery-icon::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 2px;
    width: 2px;
    height: 4px;
    background: rgba(255,255,255,0.4);
    border-radius: 0 1px 1px 0;
}

.battery-level {
    width: 100%;
    height: 100%;
    background: #34c759; /* Apple Green */
    border-radius: 1px;
}

.battery-bolt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    color: #fff;
    text-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.ipad-screen::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
    z-index: 20;
}

.slider-container {
    display: flex;
    height: calc(100% - 36px);
    margin-top: 36px;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem 10% 2rem 10%;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}

.service-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.slide-content {
    max-width: 650px; /* Adjusted for smaller iPad */
    width: 100%;
    text-align: center;
    z-index: 10;
}

.slide-eyebrow {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.slide-content h3 {
    font-size: 2.6rem; /* Scaled down */
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.15;
}

.slide-content p {
    font-size: 1.15rem; /* Scaled down */
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.slide-tags {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.slide-tags span {
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
}

.slider-nav {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 30;
}

.nav-dots {
    display: flex;
    gap: 0.8rem;
}

.dot {
    width: 5px;
    height: 5px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s ease;
}

.dot.active {
    background: #fff;
    transform: scale(1.4);
}

@media (max-width: 900px) {
    .ipad-wrapper { 
        max-width: 95%; 
        margin: 2rem auto;
    }
    .slide-content h3 { font-size: 1.7rem; margin-bottom: 0.6rem; line-height: 1.1; }
    .slide-content p { font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.5; }
    .slide-eyebrow { font-size: 0.6rem; margin-bottom: 0.6rem; }
    .service-slide { padding: 1.2rem 8% 1.5rem 8%; }
    .ipad-pro-13 { border-radius: 36px; padding: 10px; }
    .ipad-bezel { border-radius: 28px; }
    .ipad-screen { border-radius: 20px; }
}

@media (max-width: 480px) {
    .slide-content h3 { font-size: 1.15rem; margin-bottom: 0.4rem; letter-spacing: -0.5px; }
    .slide-content p { font-size: 0.72rem; line-height: 1.4; margin-bottom: 0.7rem; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; }
    .slide-eyebrow { font-size: 0.48rem; letter-spacing: 1px; margin-bottom: 0.5rem; padding: 0.35rem 0.9rem; }
    .slider-nav { bottom: 0.8rem; }
    .ipad-status-bar { padding: 0 1rem; height: 22px; font-size: 0.6rem; }
    .slider-container { height: calc(100% - 22px); margin-top: 22px; }
    .service-slide { padding: 0.8rem 7% 1.5rem 7%; }
    .slide-tags { gap: 0.4rem; flex-wrap: wrap; }
    .slide-tags span { padding: 0.25rem 0.6rem; font-size: 0.5rem; letter-spacing: 0; }
}

/* --- PARTNERS MARQUEE --- */
.partners-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100vw;
    max-width: 100%;
    margin-left: calc(-50vw + 50%); /* Full bleed effect */
    left: 0;
    margin-top: 3rem;
    padding: 3rem 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(0,0,0,0.02) 15%, rgba(0,0,0,0.02) 85%, rgba(255,255,255,0) 100%);
    mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}
.marquee-track {
    display: inline-block;
    animation: marqueeScroll 45s linear infinite;
}
.marquee-track:hover {
    animation-play-state: paused;
}
.marquee-item {
    display: inline-block;
    color: var(--text-primary);
    opacity: 0.15;
    margin: 0 4rem;
    transition: opacity 0.4s ease, transform 0.4s ease;
    cursor: default;
}
.marquee-item:hover {
    opacity: 1;
    transform: scale(1.05);
    background: linear-gradient(90deg, #0ce1ff, #a574f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* --- TESTIMONIAL SLIDER --- */
.testimonial-slider-container {
    position: relative;
    width: 100%;
    margin-top: 2rem;
    padding-bottom: 3rem;
}

.testimonial-slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.testimonial-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.testimonial-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
    box-sizing: border-box;
}

.client-card {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.04),
        0 1px 3px rgba(0,0,0,0.02),
        inset 0 0 0 1px rgba(255,255,255,0.5);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0, 113, 227, 0.08);
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #a574f7);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    opacity: 0.8;
}

.quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.client-quote {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #333;
    font-style: italic;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.client-info img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.client-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
}

.client-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #777;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.testimonial-dots {
    display: flex;
    gap: 0.8rem;
}

.testimonial-dots .dot {
    width: 8px;
    height: 8px;
    background: rgba(0,0,0,0.15);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dots .dot.active {
    background: var(--accent);
    transform: scale(1.4);
}

@media (max-width: 768px) {
    .client-card {
        padding: 2rem;
        border-radius: 20px;
    }
    .client-card::before {
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }
    .client-quote {
        font-size: 1.05rem;
    }
    .quote-header {
        margin-bottom: 1rem;
    }
}
/* Removed redundant query, integrated above */

/* --- STARTUP AUTOMATION STACK ANIMATION --- */
.stack-item {
    padding: 1rem;
    background: rgba(0,0,0,0.03);
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    animation: stackFlow 8s infinite;
}
.stack-arrow {
    text-align: center; 
    color: #ccc;
    transition: all 0.3s ease;
    animation: arrowFlow 8s infinite;
}

/* 11 Total DOM elements (6 items, 5 arrows). Stagger their delays. */
.automation-stack > *:nth-child(1) { animation-delay: 0s; }    /* Item 1 */
.automation-stack > *:nth-child(2) { animation-delay: 0.5s; }  /* Arrow 1 */
.automation-stack > *:nth-child(3) { animation-delay: 1s; }    /* Item 2 */
.automation-stack > *:nth-child(4) { animation-delay: 1.5s; }  /* Arrow 2 */
.automation-stack > *:nth-child(5) { animation-delay: 2s; }    /* Item 3 */
.automation-stack > *:nth-child(6) { animation-delay: 2.5s; }  /* Arrow 3 */
.automation-stack > *:nth-child(7) { animation-delay: 3s; }    /* Item 4 */
.automation-stack > *:nth-child(8) { animation-delay: 3.5s; }  /* Arrow 4 */
.automation-stack > *:nth-child(9) { animation-delay: 4s; }    /* Item 5 */
.automation-stack > *:nth-child(10) { animation-delay: 4.5s; } /* Arrow 5 */
.automation-stack > *:nth-child(11) { animation-delay: 5s; animation-name: finalFlow; } /* Final Item */

@keyframes stackFlow {
    0%, 100% {
        background: rgba(0,0,0,0.03);
        border-color: transparent;
        color: inherit;
        transform: translateX(0);
        box-shadow: none;
    }
    10%, 25% {
        background: rgba(0, 113, 227, 0.05);
        border-color: rgba(0, 113, 227, 0.3);
        color: #0071e3;
        font-weight: 600;
        transform: translateX(5px);
        box-shadow: 0 4px 15px rgba(0, 113, 227, 0.1);
    }
    40% {
        background: rgba(0,0,0,0.03);
        border-color: transparent;
        color: inherit;
        transform: translateX(0);
        box-shadow: none;
    }
}

@keyframes arrowFlow {
    0%, 100% {
        color: #ccc;
        transform: translateY(0);
    }
    10%, 25% {
        color: #0071e3;
        transform: translateY(4px) scale(1.2);
    }
    40% {
        color: #ccc;
        transform: translateY(0);
    }
}

@keyframes finalFlow {
    0%, 100% {
        background: rgba(255,255,255,0.8);
        border-color: rgba(0,0,0,0.08);
        color: inherit;
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    }
    5%, 35% {
        background: linear-gradient(135deg, rgba(0,113,227,0.1) 0%, rgba(123,47,247,0.15) 100%);
        border-color: rgba(123,47,247,0.4);
        color: #7b2ff7;
        font-weight: 700;
        transform: scale(1.03);
        box-shadow: 0 8px 25px rgba(123,47,247,0.2);
    }
    50% {
        background: rgba(255,255,255,0.8);
        border-color: rgba(0,0,0,0.08);
        color: inherit;
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    }
}
/* --- PORTFOLIO SECTION --- */
#portfolio {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.portfolio-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 32px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.portfolio-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 113, 227, 0.4);
}

.portfolio-image-wrap {
    position: relative;
    height: 240px;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.05);
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: all 0.6s ease;
    padding: 2rem;
    text-align: center;
}

.portfolio-card:hover .portfolio-placeholder {
    color: var(--accent);
    transform: scale(1.15);
    opacity: 0.15;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.portfolio-info p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto;
}

.portfolio-tags span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.4rem 1rem;
    background: rgba(0, 113, 227, 0.05);
    border: 1px solid rgba(0, 113, 227, 0.1);
    border-radius: 50px;
    color: var(--accent);
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .portfolio-image-wrap {
        height: 200px;
    }
}

/* --- OUR WORKS MODAL --- */
#works-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

#works-modal-overlay.active {
    display: flex;
}

#works-modal.folder-ui {
    background: transparent;
    border: none;
    padding: 0;
    max-width: 1000px;
    width: 100%;
    position: relative;
    box-shadow: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.folder-tab {
    align-self: flex-start;
    background: linear-gradient(145deg, rgba(235, 235, 240, 0.98), rgba(225, 225, 230, 0.95));
    padding: 12px 24px 12px 20px;
    border-radius: 16px 16px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: none;
    margin-bottom: -1px; /* overlap to blend borders */
    position: relative;
    z-index: 2;
    box-shadow: 
        0 -10px 20px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.folder-tab-content {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.folder-body {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 244, 248, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 0 24px 24px 24px;
    padding: 2.5rem 2rem;
    position: relative;
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    z-index: 1;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}

.folder-body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.04) 0%, transparent 60%);
    top: -200px;
    left: -200px;
    pointer-events: none;
}

@media (max-width: 768px) {
    #works-modal {
        padding: 2rem 1.5rem;
        border-radius: 24px;
        max-height: 95vh;
        overflow-y: auto;
    }
    
    #works-modal h2 {
        font-size: 1.6rem !important;
    }
}

/* --- PDF MODAL --- */
#pdf-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

#pdf-modal-overlay.active {
    display: flex;
}

#pdf-modal {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 1rem;
    max-width: 1200px;
    width: 100%;
    height: 90vh;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

#pdf-modal .modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.pdf-container {
    flex: 1;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 10px; /* space from close button if needed, but absolute is fine */
}
