/* ========================================
   EB TECH — DESIGN SYSTEM
   Clean, editorial, high-end production feel
   ======================================== */

:root {
    --black: #0a0a0a;
    --dark: #111111;
    --dark-2: #161616;
    --dark-3: #1c1c1c;
    --dark-4: #242424;
    --mid: #3a3a3a;
    --gray: #777777;
    --light: #b0b0b0;
    --off-white: #e8e8e8;
    --white: #f5f5f5;

    --blue: #2850E0;
    --blue-soft: #3d66f0;
    --blue-dim: rgba(40, 80, 224, 0.08);
    --blue-border: rgba(40, 80, 224, 0.18);

    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;

    --ease: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);

    --container: 1240px;
    --gap: 24px;
}

[data-theme="light"] {
    --black: #f5f5f5;
    --dark: #e8e8e8;
    --dark-2: #e0e0e0;
    --dark-3: #d5d5d5;
    --dark-4: #cccccc;
    --mid: #a0a0a0;
    --gray: #666666;
    --light: #333333;
    --off-white: #1a1a1a;
    --white: #0a0a0a;
}

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--off-white);
    line-height: 1.65;
}

/* === LOADING SCREEN === */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s;
}

.loader.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-hex {
    width: 60px;
    height: 60px;
}

.loader-hex svg { width: 100%; height: 100%; }

.loader-hex-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: hexDraw 1.8s ease infinite;
}

.loader-hex-inner {
    animation-delay: 0.3s;
}

@keyframes hexDraw {
    0% { stroke-dashoffset: 200; opacity: 0.4; }
    50% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: -200; opacity: 0.4; }
}

.loader-text {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--off-white);
    opacity: 0.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { border: none; background: none; font: inherit; color: inherit; cursor: pointer; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gap);
}

/* === TYPOGRAPHY === */
.eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #7DA0FF;
    margin-bottom: 20px;
}

.heading-xl {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--white);
}

.heading-lg {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--white);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 15px 36px;
    background: var(--blue);
    color: #fff;
    border-radius: 4px;
    letter-spacing: 0.02em;
    transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s;
}

.btn:hover {
    background: var(--blue-soft);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(40, 80, 224, 0.25);
}

.btn--ghost {
    background: transparent;
    border: 1px solid var(--mid);
    color: var(--white);
}

.btn--ghost:hover {
    border-color: var(--light);
    background: rgba(255,255,255,0.04);
    box-shadow: none;
}

.btn--white {
    background: #fff;
    color: var(--black);
}

.btn--white:hover {
    background: var(--off-white);
    box-shadow: 0 12px 40px rgba(255,255,255,0.15);
}

.btn--full { width: 100%; }

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 var(--gap);
    transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom-color: rgba(255,255,255,0.06);
}

[data-theme="light"] .header.scrolled {
    background: rgba(245, 245, 245, 0.9);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 72px;
}

.logo {
    flex-shrink: 0;
    z-index: 101;
}

.logo img { height: 48px; }

/* Centered nav links */
.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--light);
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--blue);
    transition: width 0.3s var(--ease);
}

.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

.nav-socials {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-socials a {
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s var(--ease);
}

.nav-socials a svg {
    width: 16px;
    height: 16px;
}

.nav-socials a:hover {
    color: #fff;
    background: var(--blue);
    transform: translateY(-2px);
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--light);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.theme-toggle:hover {
    color: #fff;
    background: var(--blue);
    transform: translateY(-2px);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
}

[data-theme="light"] .sun-icon { display: none !important; }
[data-theme="light"] .moon-icon { display: block !important; }

[data-theme="light"] .logo img,
[data-theme="light"] .footer-logo img {
    filter: brightness(0) saturate(100%) invert(28%) sepia(87%) saturate(2250%) hue-rotate(219deg) brightness(90%) contrast(95%);
}

/* CTA button on right */
.nav-cta {
    margin-left: 20px;
    padding: 10px 24px;
    background: var(--blue);
    color: #fff;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.3s, transform 0.3s;
}

.nav-cta:hover {
    background: var(--blue-soft);
    transform: translateY(-1px);
    color: #fff;
}

.menu-toggle { display: none; width: 32px; height: 32px; position: relative; z-index: 101; }

.menu-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--white);
    transition: transform 0.3s var(--ease), opacity 0.3s;
}

.menu-toggle span:first-child { margin-bottom: 8px; }

.menu-toggle.active span:first-child { transform: translateY(4.75px) rotate(45deg); }
.menu-toggle.active span:last-child { transform: translateY(-4.75px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.mobile-nav.open { opacity: 1; visibility: visible; }

.mobile-nav nav { display: flex; flex-direction: column; align-items: center; gap: 28px; }

.mobile-nav a {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--white);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color 0.3s;
}

.mobile-nav.open a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav.open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav.open a:nth-child(2) { transition-delay: 0.1s; }
.mobile-nav.open a:nth-child(3) { transition-delay: 0.15s; }
.mobile-nav.open a:nth-child(4) { transition-delay: 0.2s; }

.mobile-nav a:hover { color: var(--blue); }

/* === HERO === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img,
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media img {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-media img.active {
    opacity: 1;
}

.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(10,10,10,0.6) 0%,
            rgba(10,10,10,0.35) 25%,
            rgba(10,10,10,0.55) 55%,
            rgba(10,10,10,0.95) 100%);
}

[data-theme="light"] .hero-media::after {
    background:
        linear-gradient(180deg,
            rgba(245,245,245,0.7) 0%,
            rgba(245,245,245,0.5) 25%,
            rgba(245,245,245,0.65) 55%,
            rgba(245,245,245,0.95) 100%);
}

/* Tech grid overlay on hero */
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.2;
}

/* Scan line sweep */
.hero-grid-overlay::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, transparent, rgba(40,80,224,0.08), transparent);
    animation: scanSweep 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes scanSweep {
    0% { top: -80px; }
    100% { top: 100%; }
}

.grid-line-h,
.grid-line-v {
    position: absolute;
    background: var(--blue);
}

.grid-line-h {
    height: 1px;
    left: 0;
    right: 0;
    animation: gridFadeIn 2s ease forwards;
}

.grid-line-v {
    width: 1px;
    top: 0;
    bottom: 0;
    animation: gridFadeIn 2s ease forwards;
}

.grid-node {
    position: absolute;
    width: 5px;
    height: 5px;
    background: var(--blue);
    border-radius: 50%;
    animation: nodePulse 3s ease infinite;
    box-shadow: 0 0 8px rgba(40, 80, 224, 0.6);
}

@keyframes gridFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes nodePulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(2); box-shadow: 0 0 16px rgba(40, 80, 224, 0.9); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gap);
    padding-bottom: 80px;
    width: 100%;
}

.hero-label {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.8s 0.3s var(--ease) forwards;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.hero-heading {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.45s var(--ease) forwards;
    text-shadow: 0 2px 40px rgba(0,0,0,0.6);
}

.hero-sub {
    font-size: 1.05rem;
    color: #d4d4d4;
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 36px;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.8s 0.6s var(--ease) forwards;
    text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}

.hero-actions {
    display: flex;
    gap: 12px;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.8s 0.75s var(--ease) forwards;
}

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

/* === MARQUEE === */
.marquee {
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 18px 0;
    overflow: hidden;
    background: var(--dark);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 32px;
    white-space: nowrap;
    animation: marqueeScroll 30s linear infinite;
}

.marquee-track span {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray);
    flex-shrink: 0;
}

.marquee-dot {
    width: 4px !important;
    height: 4px !important;
    background: var(--blue) !important;
    border-radius: 50%;
    display: inline-block;
    font-size: 0 !important;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* === DEDICATED SLIDESHOW === */
.dedicated-slideshow {
    width: 100%;
    height: 100vh; /* Full screen */
    min-height: 400px;
    position: relative;
    overflow: hidden;
    background: var(--black);
}

/* Gradient overlay */
.dedicated-slideshow::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10,10,10,0.8) 85%, var(--black) 100%);
    pointer-events: none;
    z-index: 2;
}

.slideshow-container {
    position: absolute;
    inset: 0;
}

.slideshow-container img.slideshow-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.slideshow-container img.slideshow-img.active {
    opacity: 1;
    z-index: 2;
}

/* Alternating zoom in and out */
.slideshow-container img.slideshow-img.active:nth-child(odd) {
    animation: zoomIn 8s ease forwards;
}

.slideshow-container img.slideshow-img.active:nth-child(even) {
    animation: zoomOut 8s ease forwards;
}

@keyframes zoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes zoomOut {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* === WHAT WE DO === */
.work {
    padding: 140px 0 0;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-bottom: 80px;
}

.split-left .heading-lg {
    position: sticky;
    top: 120px;
}

.split-right p {
    font-size: 1.05rem;
    color: var(--light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.work-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.work-gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.work-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-slow);
}

.work-gallery-item:hover img {
    transform: scale(1.05);
}

.work-gallery-caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    background: linear-gradient(180deg, transparent 50%, rgba(10,10,10,0.75) 100%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.work-gallery-item:hover .work-gallery-caption { opacity: 1; }

.work-gallery-caption span {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

/* === SERVICES === */
.services {
    padding: 140px 0;
}

.services-header {
    max-width: 600px;
    margin-bottom: 80px;
}

.services-header .heading-lg {
    margin-top: 0;
}

/* Core service feature blocks */
.services-core {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 80px;
}

.service-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--dark);
    border-radius: 0;
    overflow: hidden;
    min-height: 480px;
}

.service-feature--reverse { direction: rtl; }
.service-feature--reverse > * { direction: ltr; }

.service-feature-img {
    position: relative;
    overflow: hidden;
}

.service-feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-slow);
}

.service-feature:hover .service-feature-img img {
    transform: scale(1.04);
}

.service-feature-body {
    padding: 60px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-num {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.service-feature-body h3 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.service-feature-body p {
    font-size: 0.95rem;
    color: var(--light);
    line-height: 1.75;
    margin-bottom: 24px;
}

.service-feature-body ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
}

.service-feature-body li {
    font-size: 0.85rem;
    color: var(--off-white);
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}

.service-feature-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    background: var(--blue);
    border-radius: 1px;
}

/* Services grid (secondary) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.service-card {
    padding: 40px 36px;
    background: var(--dark);
    transition: background 0.3s var(--ease);
}

.service-card:hover {
    background: var(--dark-2);
}

.service-card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 24px;
    color: var(--blue);
}

.service-card-icon svg { width: 100%; height: 100%; }

.service-card h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.7;
}

/* === NUMBERS === */
.numbers {
    padding: 100px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 40px;
}

.number-value {
    font-family: var(--font-display);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    display: block;
    margin-bottom: 8px;
}

.number-value::after {
    content: '+';
    color: var(--blue);
}

.number-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* === ABOUT === */
.about {
    padding: 140px 0;
}

.about-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 2px;
}

.about-body .heading-lg { margin-bottom: 28px; }

.about-body p {
    font-size: 1rem;
    color: var(--light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-body p strong {
    color: var(--white);
    font-weight: 600;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.about-value h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

.about-value p {
    font-size: 0.88rem !important;
    color: var(--gray) !important;
    line-height: 1.65 !important;
}

/* === CTA === */
.cta {
    position: relative;
    padding: 160px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.cta-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,10,10,0.9) 0%, rgba(40,80,224,0.15) 100%);
}

[data-theme="light"] .cta-bg::after {
    background: linear-gradient(135deg, rgba(245,245,245,0.9) 0%, rgba(40,80,224,0.15) 100%);
}

.cta-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-inner .heading-xl { margin-bottom: 20px; }

.cta-inner p {
    font-size: 1.1rem;
    color: var(--light);
    margin-bottom: 36px;
}

/* === CONTACT === */
.contact {
    padding: 140px 0;
    background: var(--dark);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-left .heading-lg { margin-bottom: 16px; }

.contact-left > p {
    font-size: 1rem;
    color: var(--light);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-detail h4 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 8px;
}

.contact-detail p {
    font-size: 0.95rem;
    color: var(--light);
    line-height: 1.6;
}

.contact-detail a {
    color: var(--off-white);
    transition: color 0.3s;
}

.contact-detail a:hover { color: var(--blue); }

/* Form */
.form { display: flex; flex-direction: column; gap: 20px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 8px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--dark-3);
    border: 1px solid var(--dark-4);
    border-radius: 3px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s var(--ease);
    outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--blue);
}

.form-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23777' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.form-field select option {
    background: var(--dark-2);
}

.form-field textarea { resize: vertical; min-height: 120px; }

/* === FOOTER === */
.footer {
    padding: 80px 0 0;
    background: var(--black);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 60px;
}

.footer-logo { height: 53px; margin-bottom: 16px; }

.footer-brand p {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.6;
}

.footer-col { display: flex; flex-direction: column; }

.footer-col h5 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col a, .footer-col p {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom span {
    font-size: 0.8rem;
    color: var(--mid);
}

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

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--dark-3);
    color: var(--gray);
    transition: color 0.3s, background 0.3s, transform 0.3s;
}

.footer-socials a svg {
    width: 16px;
    height: 16px;
}

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

/* === CONTACT SOCIALS === */
.contact-socials {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.contact-socials h4 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 16px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--dark-3);
    border: 1px solid var(--dark-4);
    color: var(--light);
    transition: all 0.3s var(--ease);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(40, 80, 224, 0.3);
}

/* === SKIP LINK === */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    padding: 8px 16px;
    background: var(--blue);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 12px;
}

/* === SCROLL INDICATOR === */
.scroll-indicator {
    position: absolute;
    bottom: 28px;
    right: var(--gap);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-indicator span {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--blue);
    animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* === TRUSTED BY === */
.trusted {
    padding: 100px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.trusted-header {
    text-align: center;
    margin-bottom: 56px;
}

.trusted-sub {
    font-size: 1rem;
    color: var(--gray);
    max-width: 520px;
    margin: 16px auto 0;
    line-height: 1.7;
}

.trusted-header .eyebrow {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    text-transform: none;
    color: var(--white);
    margin-bottom: 12px;
}

.trusted-header .eyebrow::after {
    display: none;
}

.trusted-logos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px 16px;
}

.client-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: transparent;
}

.client-logo-card img {
    max-height: 110px;
    width: auto;
    object-fit: contain;
    transition: transform 0.4s var(--ease);
}

.client-logo-card:hover img {
    transform: scale(1.08);
    filter: drop-shadow(0 0 16px rgba(125, 160, 255, 0.5));
}

.client-logo-card span {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--mid);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
}

/* === TESTIMONIAL === */
.testimonial {
    padding: 100px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    text-align: left;
    padding: 48px 32px;
    background: var(--dark);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 4px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.testimonial-quote {
    width: 32px;
    height: 32px;
    color: var(--blue);
    opacity: 0.4;
    margin-bottom: 24px;
}

.testimonial-card blockquote p {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--off-white);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 32px;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-author strong {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--gray);
}

/* === BACK TO TOP (Progress Ring) === */
.to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-3);
    border: none;
    border-radius: 50%;
    color: var(--white);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s var(--ease), visibility 0.3s, transform 0.3s var(--ease);
    z-index: 50;
    cursor: pointer;
}

.to-top-ring {
    position: absolute;
    inset: 0;
    width: 44px;
    height: 44px;
}

.to-top-arrow {
    width: 16px;
    height: 16px;
    position: relative;
    z-index: 1;
}

.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

.to-top:hover {
    background: rgba(40,80,224,0.15);
}

/* === WHATSAPP BUTTON === */
.whatsapp-btn {
    position: fixed;
    bottom: 84px;
    right: 28px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    border-radius: 50%;
    color: #fff;
    z-index: 50;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
    animation: waFloat 3s ease-in-out infinite;
}

.whatsapp-btn svg {
    width: 28px;
    height: 28px;
}

.whatsapp-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
    color: #fff;
}

@keyframes waFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* === REVEAL ANIMATIONS === */

/* Base reveal — slides up */
.reveal {
    opacity: 0;
    transform: translateY(48px);
    transition:
        opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide from left */
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition:
        opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from right */
.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition:
        opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale in */
.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition:
        opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for cascading grid items */
.stagger-1 { transition-delay: 0s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.2s; }
.stagger-4 { transition-delay: 0.3s; }
.stagger-5 { transition-delay: 0.4s; }
.stagger-6 { transition-delay: 0.5s; }

/* Lazy-loaded image fade-in */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.8s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Image clip reveal — wipe in from bottom */
.img-reveal {
    overflow: hidden;
}

.img-reveal img {
    transform: scale(1.08);
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.img-reveal.visible img {
    transform: scale(1);
}

/* Service feature image zoom on scroll */
.service-feature-img img {
    transition: transform 0.7s var(--ease-slow), opacity 0.8s ease;
}

/* Heading line-by-line animation */
.hero-heading {
    overflow: hidden;
}

/* Smooth line drawing on eyebrow */
.eyebrow {
    position: relative;
}

.eyebrow::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.reveal.visible .eyebrow::after,
.reveal-left.visible .eyebrow::after,
.reveal-right.visible .eyebrow::after {
    transform: scaleX(1);
}

/* Number counter pop */
.number-item {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.numbers-grid.visible .number-item {
    opacity: 1;
    transform: translateY(0);
}

.numbers-grid.visible .number-item:nth-child(1) { transition-delay: 0s; }
.numbers-grid.visible .number-item:nth-child(2) { transition-delay: 0.12s; }
.numbers-grid.visible .number-item:nth-child(3) { transition-delay: 0.24s; }
.numbers-grid.visible .number-item:nth-child(4) { transition-delay: 0.36s; }

/* Service card hover lift */
.service-card {
    transition: background 0.3s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

/* Smooth link underline */
.contact-detail a {
    position: relative;
}

.contact-detail a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--blue);
    transition: width 0.3s var(--ease);
}

.contact-detail a:hover::after {
    width: 100%;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .split { grid-template-columns: 1fr; gap: 40px; }
    .split-left .heading-lg { position: static; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-layout { grid-template-columns: 1fr; gap: 48px; }
    .about-img { aspect-ratio: 16 / 9; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
    .contact-layout { grid-template-columns: 1fr; gap: 48px; }
    .service-feature { grid-template-columns: 1fr; min-height: auto; }
    .service-feature--reverse { direction: ltr; }
    .service-feature-img { aspect-ratio: 16 / 9; }
    .service-feature-body { padding: 40px 32px; }
    .trusted-logos { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-center { display: none; }
    .nav-cta { display: none; }
    .menu-toggle { display: block; }

    .hero-heading {
        font-size: clamp(2rem, 8.5vw, 3rem);
        word-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
    }

    .hero-content { padding-bottom: 120px; }

    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }

    .work-gallery { grid-template-columns: 1fr; }

    .services-grid { grid-template-columns: 1fr; }

    .numbers-grid { grid-template-columns: repeat(2, 1fr); }

    .about-values { grid-template-columns: 1fr; }

    .footer-top { grid-template-columns: 1fr; gap: 32px; }

    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

    .form-row { grid-template-columns: 1fr; }
    .scroll-indicator { display: none; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .testimonial-card { padding: 40px 24px; }
    .whatsapp-btn { width: 48px; height: 48px; bottom: 76px; right: 20px; }
    .whatsapp-btn svg { width: 24px; height: 24px; }
    .to-top { bottom: 20px; right: 20px; }
    .trusted-logos { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    :root { --gap: 16px; }

    .service-feature-body { padding: 32px 20px; }
    .service-feature-body ul { grid-template-columns: 1fr; }
    .service-card { padding: 32px 24px; }
    .hero-heading { font-size: clamp(1.8rem, 8vw, 2.5rem); }
    .whatsapp-btn { right: 16px; bottom: 72px; }
    .to-top { right: 16px; bottom: 16px; }
}
