/* ========================================
   NEXOVA DIGITAL — v3 Enhanced
   ======================================== */

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

:root {
    --black: #000;
    --white: #fff;
    --gray-1: #999;
    --gray-2: #555;
    --gray-3: #222;
    --gray-4: #111;
    --accent: #8B5CF6;
    --accent-dim: rgba(139, 92, 246, 0.12);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --surface: #111;
    --border: #222;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-1);
    background: var(--black);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; font: inherit; }

::selection { background: var(--accent); color: var(--white); }

/* ========================================
   Page Transition Overlay
   ======================================== */

.page-transition {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    background: var(--black);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.page-transition.entering {
    opacity: 1;
    pointer-events: all;
}

.page-transition.leaving {
    opacity: 0;
}

/* ========================================
   Loading Screen
   ======================================== */

.loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.6s ease;
}

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

.loader__inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader__logo-img {
    height: 100px;
    width: auto;
    margin-bottom: 40px;
    opacity: 0;
    transform: scale(0.9);
    animation: loaderFadeIn 0.6s ease 0.2s forwards;
}

.loader__bar {
    width: 160px;
    height: 2px;
    background: var(--gray-3);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
    opacity: 0;
    animation: loaderFadeIn 0.4s ease 0.5s forwards;
}

.loader__progress {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 2px;
    animation: loaderProgress 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

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

@keyframes loaderProgress {
    0% { width: 0%; }
    60% { width: 70%; }
    100% { width: 100%; }
}

/* ========================================
   Navigation
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9996;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 48px;
    transition: background 0.4s, border-color 0.4s;
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--gray-3);
}

.nav__logo {
    display: flex;
    align-items: center;
}

.nav__logo-img {
    height: 38px;
    width: auto;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav__links a {
    font-size: 0.875rem;
    color: var(--gray-1);
    transition: color 0.2s;
}

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

.nav__cta {
    color: var(--white) !important;
    background: var(--gray-3);
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s !important;
}

.nav__cta:hover {
    background: var(--gray-2) !important;
    transform: translateY(-1px);
}

.nav__menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: 101;
}

.nav__menu span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--white);
    transition: transform 0.3s, opacity 0.3s;
}

.nav__menu.active span:first-child { transform: rotate(45deg) translate(3px, 3px); }
.nav__menu.active span:last-child { transform: rotate(-45deg) translate(3px, -3px); }

/* Nav Mega Dropdown */
.nav__dropdown {
    position: relative;
}

.nav__link--has-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    color: var(--gray-1);
    transition: color 0.2s;
    cursor: pointer;
}

.nav__link--has-dropdown:hover { color: var(--white); }

.nav__link--has-dropdown svg {
    transition: transform 0.3s;
}

.nav__dropdown:hover .nav__link--has-dropdown svg,
.nav__dropdown.open .nav__link--has-dropdown svg {
    transform: rotate(180deg);
}

.nav__mega {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    background: var(--gray-4);
    border: 1px solid var(--gray-3);
    border-radius: 14px;
    padding: 28px;
    min-width: 580px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 9997;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.nav__dropdown:hover .nav__mega,
.nav__dropdown.open .nav__mega {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(16px);
}

.nav__mega-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 24px;
}

.nav__mega-col:not(:last-child) {
    border-right: 1px solid var(--gray-3);
    margin-right: 24px;
}

.nav__mega-col h4 {
    font-size: 0.688rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-2);
    margin-bottom: 8px;
}

.nav__mega-col a {
    font-size: 0.875rem;
    color: var(--gray-1);
    padding: 6px 0;
    transition: color 0.2s;
}

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

.nav__mega-col--highlight {
    padding-right: 0;
}

.nav__mega-col--highlight p {
    font-size: 0.813rem;
    color: var(--gray-1);
    line-height: 1.5;
    margin-bottom: 12px;
}

.nav__mega-cta {
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--accent) !important;
}

@media (max-width: 900px) {
    .nav__mega {
        min-width: 400px;
    }
    .nav__link--has-dropdown svg { display: inline; }
}

/* ========================================
   Hero + Animated Background
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 18s ease-in-out infinite;
}

.hero__orb--1 {
    width: 700px;
    height: 700px;
    background: var(--accent);
    top: -250px;
    right: -150px;
    opacity: 0.45;
    animation-delay: 0s;
}

.hero__orb--2 {
    width: 500px;
    height: 500px;
    background: #3b82f6;
    bottom: -150px;
    left: -150px;
    opacity: 0.4;
    animation-delay: -6s;
}

.hero__orb--3 {
    width: 350px;
    height: 350px;
    background: #ec4899;
    top: 40%;
    left: 45%;
    opacity: 0.25;
    animation-delay: -12s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero__grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 30%, transparent 70%);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 120px 48px 80px;
}

.hero__title {
    font-family: var(--font-body);
    font-size: clamp(2.75rem, 5.5vw, 5rem);
    font-weight: 500;
    line-height: 1.1;
    color: var(--white);
    letter-spacing: -0.035em;
    margin-bottom: 28px;
}

.hero__title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}

.hero__sub {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--gray-1);
    max-width: 520px;
    line-height: 1.75;
    margin-bottom: 36px;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white);
    background: var(--accent);
    padding: 14px 28px;
    border-radius: 8px;
    border: 1px solid var(--accent);
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.hero__cta:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.25);
}

.hero__cta--outline {
    background: transparent;
    border-color: var(--gray-2);
    color: var(--white);
}

.hero__cta--outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--white);
    box-shadow: none;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__cta svg {
    transition: transform 0.3s;
}

.hero__cta:hover svg {
    transform: translate(2px, 2px);
}

/* Hero Scroll Indicator */
.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: fadeInUp 1s ease 1.5s both;
}

.hero__scroll span {
    font-size: 0.688rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray-2);
}

.hero__scroll-mouse {
    width: 24px;
    height: 38px;
    border: 1.5px solid var(--gray-2);
    border-radius: 12px;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero__scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    margin-top: 8px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.3; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(16px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Custom Cursor */
.cursor, .cursor-dot { display: none; }

@media (hover: hover) and (pointer: fine) {
    .cursor {
        display: block;
        position: fixed;
        width: 40px;
        height: 40px;
        border: 1.5px solid rgba(139, 92, 246, 0.5);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                    height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                    border-color 0.3s,
                    opacity 0.3s;
        opacity: 0;
    }

    .cursor.visible { opacity: 1; }

    .cursor.hovering {
        width: 60px;
        height: 60px;
        border-color: rgba(139, 92, 246, 0.8);
        background: rgba(139, 92, 246, 0.05);
    }

    .cursor-dot {
        display: block;
        position: fixed;
        width: 5px;
        height: 5px;
        background: var(--accent);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        opacity: 0;
        transition: opacity 0.3s;
    }

    .cursor-dot.visible { opacity: 1; }
}

/* ========================================
   Highlights (Why Us)
   ======================================== */

.highlights {
    padding: 80px 48px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.highlights__item {
    padding: 32px 28px;
    background: var(--gray-4);
    border: 1px solid var(--gray-3);
    border-radius: 14px;
    transition: border-color 0.3s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.highlights__item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.highlights__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: 10px;
    color: var(--accent);
    margin-bottom: 20px;
}

.highlights__item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 6px;
}

.highlights__item p {
    font-size: 0.813rem;
    color: var(--gray-1);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .highlights { padding: 60px 24px; }
    .highlights__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .highlights__grid { grid-template-columns: 1fr; }
}

/* ========================================
   Clients Logo Strip
   ======================================== */

.clients {
    padding: 48px 48px;
    border-top: 1px solid var(--gray-3);
    border-bottom: 1px solid var(--gray-3);
    overflow: hidden;
}

.clients__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-2);
    text-align: center;
    margin-bottom: 28px;
}

.clients__track {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}

.clients__logos {
    display: flex;
    align-items: center;
    gap: 48px;
    animation: scrollLogos 30s linear infinite;
    width: max-content;
}

.clients__logo {
    height: 28px;
    width: auto;
    color: var(--white);
    opacity: 0.3;
    flex-shrink: 0;
    transition: opacity 0.3s;
}

.clients__logo--wide {
    height: 28px;
}

.clients__logo:hover {
    opacity: 0.7;
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   Work Section
   ======================================== */

.work {
    padding: 100px 48px 120px;
    max-width: 1200px;
    margin: 0 auto;
}

.work__item {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 140px;
}

.work__item:last-child { margin-bottom: 0; }

.work__item--reverse { grid-template-columns: 1fr 1.2fr; }
.work__item--reverse .work__img { order: 2; }
.work__item--reverse .work__info { order: 1; }

.work__img {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--gray-3);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s;
}

.work__img img {
    width: 100%;
    aspect-ratio: 8/5;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work__item:hover .work__img {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.08);
}

.work__item:hover .work__img img {
    transform: scale(1.03);
}

.work__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

.work__title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 500;
    color: var(--white);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.work__desc {
    font-size: 0.938rem;
    color: var(--gray-1);
    line-height: 1.75;
    margin-bottom: 20px;
}

.work__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.work__tags span {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 100px;
    background: var(--accent-dim);
    color: var(--accent);
    font-weight: 500;
}

/* ========================================
   Services
   ======================================== */

.services {
    padding: 120px 48px;
    max-width: 1000px;
    margin: 0 auto;
    border-top: 1px solid var(--gray-3);
}

.services__heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-2);
    margin-bottom: 56px;
}

.services__list { display: flex; flex-direction: column; }

.services__item {
    display: grid;
    grid-template-columns: 48px 40px 1fr;
    gap: 20px;
    padding: 36px 0;
    border-bottom: 1px solid var(--gray-3);
    align-items: start;
    transition: background 0.3s;
    text-decoration: none;
    color: inherit;
}

.services__item:first-child { border-top: 1px solid var(--gray-3); }

.services__item:hover {
    background: rgba(255,255,255,0.02);
}

.services__num {
    font-size: 0.75rem;
    color: var(--gray-2);
    padding-top: 4px;
    font-variant-numeric: tabular-nums;
}

.services__icon {
    padding-top: 2px;
    color: var(--gray-2);
}

.services__icon svg {
    width: 20px;
    height: 20px;
}

.services__content h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.services__content p {
    font-size: 0.938rem;
    color: var(--gray-1);
    line-height: 1.75;
    max-width: 540px;
}

/* ========================================
   Tech Stack
   ======================================== */

.stack {
    padding: 80px 48px;
    border-top: 1px solid var(--gray-3);
    max-width: 1000px;
    margin: 0 auto;
}

.stack__heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-2);
    margin-bottom: 36px;
}

.stack__scroller {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.stack__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: var(--gray-4);
    border: 1px solid var(--gray-3);
    border-radius: 10px;
    transition: border-color 0.3s, transform 0.3s;
}

.stack__item:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.stack__item img,
.stack__item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--accent);
}

.stack__item span {
    font-size: 0.875rem;
    color: var(--white);
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .stack { padding: 60px 24px; }
    .stack__scroller { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    .stack__scroller { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================
   About
   ======================================== */

.about {
    padding: 120px 48px;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: start;
    border-top: 1px solid var(--gray-3);
}

.about__lede {
    font-size: 1.25rem;
    color: var(--white);
    line-height: 1.65;
    margin-bottom: 20px;
}

.about__content p {
    font-size: 0.938rem;
    color: var(--gray-1);
    line-height: 1.8;
    margin-bottom: 14px;
}

.about__numbers {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding-top: 8px;
}

.about__stat-num {
    font-size: 3rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.04em;
    line-height: 1;
    display: inline;
}

.about__stat-suffix {
    font-size: 2rem;
    font-weight: 500;
    color: var(--accent);
}

.about__stat-label {
    display: block;
    margin-top: 4px;
    font-size: 0.813rem;
    color: var(--gray-1);
}

/* ========================================
   Contact
   ======================================== */

.contact {
    padding: 140px 48px 160px;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    border-top: 1px solid var(--gray-3);
}

.contact__heading {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 500;
    color: var(--white);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.contact__sub {
    font-size: 0.938rem;
    color: var(--gray-1);
    line-height: 1.75;
    margin-bottom: 36px;
}

.contact__email {
    display: inline-block;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    color: var(--white);
    font-weight: 500;
    letter-spacing: -0.02em;
    position: relative;
    transition: color 0.3s;
    margin-bottom: 40px;
}

.contact__email::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact__email:hover {
    color: var(--accent);
}

.contact__email:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.contact__detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.813rem;
    color: var(--gray-2);
}

.contact__detail svg { color: var(--gray-2); flex-shrink: 0; }

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: 24px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--gray-3);
    font-size: 0.75rem;
    color: var(--gray-2);
}

.footer__links { display: flex; gap: 24px; }
.footer__links a { color: var(--gray-2); transition: color 0.2s; }
.footer__links a:hover { color: var(--white); }

/* ========================================
   Scroll Animations
   ======================================== */

[data-animate] {
    opacity: 0;
}

[data-animate="fade"] {
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(20px);
}

[data-animate="slide-up"] {
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].in-view {
    opacity: 1;
    transform: none;
}

/* ========================================
   Responsive — Tablet
   ======================================== */

@media (max-width: 900px) {
    .nav { padding: 16px 24px; }
    .hero__content { padding: 100px 24px 60px; }

    .work { padding: 60px 24px 80px; }
    .work__item,
    .work__item--reverse { grid-template-columns: 1fr; gap: 28px; }
    .work__item--reverse .work__img,
    .work__item--reverse .work__info { order: unset; }
    .work__item { margin-bottom: 80px; }

    .services { padding: 80px 24px; }
    .services__item { grid-template-columns: 40px 1fr; }
    .services__icon { display: none; }

    .stack { padding: 60px 24px; }
    .stack__heading { margin-left: 0; }

    .about { padding: 80px 24px; grid-template-columns: 1fr; gap: 48px; }
    .about__numbers { flex-direction: row; gap: 48px; }

    .contact { padding: 80px 24px 120px; }
    .footer { padding: 20px 24px; }
    .clients { padding: 36px 24px; }
}

/* ========================================
   Responsive — Mobile
   ======================================== */

@media (max-width: 640px) {
    .nav__links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: #000;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 32px 40px;
        gap: 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
        overflow-y: auto;
        z-index: 9990;
    }

    .nav__links.active { opacity: 1; pointer-events: all; }

    .nav__links > a,
    .nav__links > .nav__dropdown > .nav__link--has-dropdown {
        font-size: 1.5rem;
        color: var(--white);
        padding: 18px 0;
        display: block;
        width: 100%;
        border-bottom: 1px solid var(--gray-3);
    }

    .nav__links .nav__cta {
        margin-top: 32px;
        text-align: center;
        width: 100%;
        display: block;
        padding: 18px;
        border-radius: 10px;
        border-bottom: none;
        font-size: 1.125rem;
    }

    .nav__menu { display: flex; z-index: 9995; position: relative; }

    /* On mobile, hide the dropdown entirely */
    .nav__dropdown .nav__mega { display: none !important; }
    .nav__link--has-dropdown svg { display: none; }

    .hero__title { font-size: clamp(2rem, 9vw, 3.25rem); }
    .hero__scroll { display: none; }

    .about__numbers { flex-direction: column; gap: 24px; }
    .contact__heading { font-size: 1.75rem; }
    .footer { flex-direction: column; gap: 12px; text-align: center; }
}

/* ========================================
   Page Header (News page)
   ======================================== */

.page-header {
    padding: 180px 48px 80px;
    max-width: 900px;
    margin: 0 auto;
}

.page-header__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    color: var(--white);
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.page-header__sub {
    font-size: 1.063rem;
    color: var(--gray-1);
    line-height: 1.7;
    max-width: 500px;
}

/* ========================================
   News — Featured Article
   ======================================== */

.news-featured {
    padding: 0 48px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-featured__link {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 32px;
    background: var(--gray-4);
    border: 1px solid var(--gray-3);
    border-radius: 16px;
    transition: border-color 0.3s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-featured__link:hover {
    border-color: var(--gray-2);
    transform: translateY(-4px);
}

.news-featured__img {
    border-radius: 10px;
    overflow: hidden;
}

.news-featured__img img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-featured__link:hover .news-featured__img img {
    transform: scale(1.03);
}

.news-featured__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.news-featured__meta time {
    font-size: 0.75rem;
    color: var(--gray-2);
}

.news__tag {
    font-size: 0.688rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 4px 10px;
    border-radius: 4px;
}

.news-featured__title {
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 500;
    color: var(--white);
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.news-featured__excerpt {
    font-size: 0.875rem;
    color: var(--gray-1);
    line-height: 1.7;
    margin-bottom: 20px;
}

.news__read-more {
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--accent);
    transition: opacity 0.2s;
}

.news-featured__link:hover .news__read-more {
    opacity: 0.8;
}

/* ========================================
   News — Card Grid
   ======================================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 48px 120px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card a {
    display: block;
    height: 100%;
    background: var(--gray-4);
    border: 1px solid var(--gray-3);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card a:hover {
    border-color: var(--gray-2);
    transform: translateY(-4px);
}

.news-card__img {
    overflow: hidden;
}

.news-card__img img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card a:hover .news-card__img img {
    transform: scale(1.04);
}

.news-card__content {
    padding: 24px;
}

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

.news-card__meta time {
    font-size: 0.75rem;
    color: var(--gray-2);
}

.news-card__title {
    font-size: 1.063rem;
    font-weight: 500;
    color: var(--white);
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.news-card__excerpt {
    font-size: 0.813rem;
    color: var(--gray-1);
    line-height: 1.65;
}

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

.about-story {
    padding: 0 48px 100px;
    max-width: 1100px;
    margin: 0 auto;
}

.about-story__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 56px;
    align-items: start;
}

.about-story__text h2 {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

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

.about-story__img img {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--gray-3);
}

/* Values */
.about-values {
    padding: 80px 48px;
    max-width: 1100px;
    margin: 0 auto;
    border-top: 1px solid var(--gray-3);
}

.about-values h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.about-values__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.about-values__item {
    padding: 28px;
    background: var(--gray-4);
    border: 1px solid var(--gray-3);
    border-radius: 12px;
}

.about-values__item h3 {
    font-size: 1.063rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 8px;
}

.about-values__item p {
    font-size: 0.875rem;
    color: var(--gray-1);
    line-height: 1.7;
}

/* Team */
.about-team {
    padding: 80px 48px;
    max-width: 1100px;
    margin: 0 auto;
    border-top: 1px solid var(--gray-3);
}

.about-team h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.about-team__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.about-team__member {
    text-align: center;
}

.about-team__photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 2px solid var(--gray-3);
}

.about-team__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-team__member h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 4px;
}

.about-team__role {
    display: block;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 10px;
}

.about-team__member p {
    font-size: 0.813rem;
    color: var(--gray-1);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

/* Culture */
.about-culture {
    padding: 80px 48px;
    max-width: 1100px;
    margin: 0 auto;
    border-top: 1px solid var(--gray-3);
}

.about-culture h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.about-culture__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.about-culture__grid img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--gray-3);
}

.about-culture__perks {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
}

.about-culture__perk {
    padding: 20px;
    background: var(--gray-4);
    border: 1px solid var(--gray-3);
    border-radius: 10px;
}

.about-culture__perk strong {
    display: block;
    font-size: 0.875rem;
    color: var(--white);
    margin-bottom: 4px;
}

.about-culture__perk p {
    font-size: 0.75rem;
    color: var(--gray-1);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .about-story { padding: 0 24px 60px; }
    .about-story__grid { grid-template-columns: 1fr; gap: 32px; }
    .about-values { padding: 60px 24px; }
    .about-team { padding: 60px 24px; }
    .about-team__grid { grid-template-columns: 1fr 1fr; }
    .about-culture { padding: 60px 24px; }
    .about-culture__grid { grid-template-columns: 1fr 1fr; }
    .about-culture__perks { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .about-values__grid { grid-template-columns: 1fr; }
    .about-team__grid { grid-template-columns: 1fr; }
    .about-culture__grid { grid-template-columns: 1fr; }
    .about-culture__perks { grid-template-columns: 1fr; }
}

/* ========================================
   Portfolio Page
   ======================================== */

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 0 48px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-card {
    background: var(--gray-4);
    border: 1px solid var(--gray-3);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover {
    border-color: var(--gray-2);
    transform: translateY(-4px);
}

.portfolio-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
}

.portfolio-card__img {
    overflow: hidden;
}

.portfolio-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3/2;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card--featured .portfolio-card__img img {
    aspect-ratio: auto;
    min-height: 280px;
}

.portfolio-card:hover .portfolio-card__img img {
    transform: scale(1.04);
}

.portfolio-card__content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.75rem;
    color: var(--gray-2);
}

.portfolio-card__content h2 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    line-height: 1.3;
}

.portfolio-card__content p {
    font-size: 0.875rem;
    color: var(--gray-1);
    line-height: 1.65;
    margin-bottom: 16px;
}

.portfolio-cta {
    text-align: center;
    padding: 80px 48px 120px;
    max-width: 600px;
    margin: 0 auto;
}

.portfolio-cta h2 {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 8px;
}

.portfolio-cta p {
    font-size: 0.938rem;
    color: var(--gray-1);
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .portfolio-grid { padding: 0 24px 60px; }
    .portfolio-card--featured { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-cta { padding: 60px 24px 80px; }
}

/* ========================================
   Service Pages
   ======================================== */

.service-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.service-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--black) 10%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.3) 100%);
    display: flex;
    align-items: flex-end;
    padding: 48px;
}

.service-hero__content {
    max-width: 700px;
}

.service-hero__label {
    font-size: 0.688rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

.service-hero__content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    color: var(--white);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 12px;
}

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

.service-body {
    padding: 80px 48px 120px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-body__grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    align-items: start;
}

.service-body__main h2 {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.service-body__main h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-top: 36px;
    margin-bottom: 12px;
}

.service-body__main p {
    font-size: 0.938rem;
    color: var(--gray-1);
    line-height: 1.8;
    margin-bottom: 16px;
}

.service-body__main ul,
.service-body__main ol {
    margin: 12px 0 20px 20px;
    color: var(--gray-1);
    font-size: 0.938rem;
    line-height: 1.8;
}

.service-body__main li {
    margin-bottom: 10px;
}

.service-body__main strong {
    color: var(--white);
    font-weight: 500;
}

.service-sidebar-card {
    padding: 24px;
    background: var(--gray-4);
    border: 1px solid var(--gray-3);
    border-radius: 12px;
    margin-bottom: 16px;
}

.service-sidebar-card h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-2);
    margin-bottom: 12px;
}

.service-sidebar-card p {
    font-size: 0.875rem;
    color: var(--gray-1);
    line-height: 1.6;
    margin-bottom: 6px;
}

.service-sidebar-card p strong {
    color: var(--white);
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.service-tags span {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--accent-dim);
    border-radius: 100px;
    color: var(--accent);
    font-weight: 500;
}

.service-sidebar-cta {
    display: block;
    text-align: center;
    padding: 14px;
    background: var(--accent);
    color: var(--white) !important;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
}

.service-sidebar-cta:hover {
    background: #7c3aed;
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .service-hero { height: 300px; }
    .service-hero__overlay { padding: 24px; }
    .service-body { padding: 48px 24px 80px; }
    .service-body__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* News page responsive */
@media (max-width: 900px) {
    .page-header { padding: 140px 24px 60px; }
    .news-featured { padding: 0 24px 60px; }
    .news-featured__link { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
    .news-grid { grid-template-columns: 1fr 1fr; padding: 0 24px 80px; }
}

@media (max-width: 640px) {
    .news-grid { grid-template-columns: 1fr; }
    .page-header__title { font-size: 2rem; }
}

/* ========================================
   Article Modal
   ======================================== */

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal__container {
    position: relative;
    width: 90%;
    max-width: 720px;
    max-height: 85vh;
    background: var(--gray-4);
    border: 1px solid var(--gray-3);
    border-radius: 16px;
    overflow-y: auto;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--gray-3) transparent;
}

.modal.active .modal__container {
    transform: translateY(0) scale(1);
}

.modal__close {
    position: sticky;
    top: 16px;
    float: right;
    margin: 16px 16px 0 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--gray-3);
    border-radius: 50%;
    color: var(--white);
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
}

.modal__close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.modal__hero {
    width: 100%;
    aspect-ratio: 16 / 8;
    overflow: hidden;
}

.modal__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal__body {
    padding: 36px 40px 48px;
}

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

.modal__meta time {
    font-size: 0.75rem;
    color: var(--gray-2);
}

.modal__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--white);
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}

.modal__text {
    font-size: 0.938rem;
    color: var(--gray-1);
    line-height: 1.8;
}

.modal__text p {
    margin-bottom: 16px;
}

.modal__text h4 {
    font-size: 1.063rem;
    font-weight: 600;
    color: var(--white);
    margin-top: 28px;
    margin-bottom: 12px;
}

.modal__text ul {
    margin: 12px 0 16px 20px;
}

.modal__text li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.modal__text strong {
    color: var(--white);
    font-weight: 500;
}

/* Modal responsive */
@media (max-width: 640px) {
    .modal__container {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal__body {
        padding: 24px 20px 36px;
    }
}

/* ========================================
   Reduced Motion
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    [data-animate] { opacity: 1; transform: none; }
    .word__inner { transform: none; }
    .hero__orb { animation: none; }
    .clients__logos { animation: none; }
    html { scroll-behavior: auto; }
}

/* Safe areas */
@supports (padding: env(safe-area-inset-top)) {
    .nav { padding-top: calc(20px + env(safe-area-inset-top)); }
    .footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}

/* ========================================
   Theme Toggle Button
   ======================================== */

.theme-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-4);
    border: 1px solid var(--gray-3);
    color: var(--gray-1);
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
    margin-left: -8px;
}

.theme-toggle:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
    transform: rotate(15deg);
}

.theme-toggle__icon { display: none; }
.theme-toggle__icon--dark { display: block; }
.theme-toggle__icon--light { display: none; }

/* ========================================
   Light Mode
   ======================================== */

[data-theme="light"] {
    --black: #ffffff;
    --white: #111111;
    --gray-1: #555555;
    --gray-2: #888888;
    --gray-3: #e2e2e2;
    --gray-4: #f5f5f5;
    --accent: #7c3aed;
    --accent-dim: rgba(124, 58, 237, 0.08);
}

[data-theme="light"] body {
    background: #ffffff;
    color: #555;
}

/* Nav */
[data-theme="light"] .nav {
    background: transparent;
    border-bottom-color: transparent;
}

[data-theme="light"] .nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: #eee;
}

[data-theme="light"] .nav__links a {
    color: #555;
}

[data-theme="light"] .nav__links a:hover {
    color: #111;
}

[data-theme="light"] .nav__cta {
    background: #111 !important;
    color: #fff !important;
}

[data-theme="light"] .nav__cta:hover {
    background: #333 !important;
}

[data-theme="light"] .nav__menu span {
    background: #111;
}

[data-theme="light"] .nav__logo-img {
    content: url('../images/infrex-dark.png');
}

[data-theme="light"] .nav__mega {
    background: #fff;
    border-color: #e0e0e0;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .nav__mega-col:not(:last-child) {
    border-right-color: #eee;
}

[data-theme="light"] .nav__mega-col h4 {
    color: #999;
}

[data-theme="light"] .nav__mega-col a {
    color: #555;
}

[data-theme="light"] .nav__mega-col a:hover {
    color: #111;
}

[data-theme="light"] .nav__mega-col--highlight p {
    color: #666;
}

/* Hero */
[data-theme="light"] .hero__orb--1 {
    opacity: 0.08;
}

[data-theme="light"] .hero__orb--2 {
    opacity: 0.06;
}

[data-theme="light"] .hero__orb--3 {
    opacity: 0.04;
}

[data-theme="light"] .hero__grid-overlay {
    background-image:
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
}

[data-theme="light"] .hero__scroll span {
    color: #aaa;
}

[data-theme="light"] .hero__scroll-mouse {
    border-color: #ccc;
}

/* Clients */
[data-theme="light"] .clients {
    border-top-color: #eee;
    border-bottom-color: #eee;
}

[data-theme="light"] .clients__logo {
    color: #333;
    opacity: 0.4;
}

[data-theme="light"] .clients__logo:hover {
    opacity: 0.8;
}

/* Work */
[data-theme="light"] .work__img {
    border-color: #e0e0e0;
}

[data-theme="light"] .work__tags span {
    background: rgba(124, 58, 237, 0.06);
}

/* Services */
[data-theme="light"] .services {
    border-top-color: #eee;
}

[data-theme="light"] .services__item {
    border-bottom-color: #eee;
}

[data-theme="light"] .services__item:first-child {
    border-top-color: #eee;
}

[data-theme="light"] .services__item:hover {
    background: rgba(0,0,0,0.015);
}

/* Stack */
[data-theme="light"] .stack {
    border-top-color: #eee;
}

[data-theme="light"] .stack__item {
    background: #fff;
    border-color: #e0e0e0;
}

[data-theme="light"] .stack__item:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.06);
}

[data-theme="light"] .stack__item svg {
    color: var(--accent);
}

/* About */
[data-theme="light"] .about {
    border-top-color: #eee;
}

/* Contact */
[data-theme="light"] .contact {
    border-top-color: #eee;
}

[data-theme="light"] .contact__email:hover {
    color: var(--accent);
}

/* Footer */
[data-theme="light"] .footer {
    border-top-color: #eee;
}

/* Highlights */
[data-theme="light"] .highlights__item {
    background: #fff;
    border-color: #e0e0e0;
}

[data-theme="light"] .highlights__item:hover {
    border-color: var(--accent);
}

/* Custom Cursor - hide in light mode for cleaner look */
[data-theme="light"] .cursor,
[data-theme="light"] .cursor-dot {
    display: none !important;
}

/* Page Header (News, Portfolio) */
[data-theme="light"] .news-featured__link {
    background: #fff;
    border-color: #e0e0e0;
}

[data-theme="light"] .news-featured__link:hover {
    border-color: #ccc;
}

[data-theme="light"] .news-card a {
    background: #fff;
    border-color: #e0e0e0;
}

[data-theme="light"] .news-card a:hover {
    border-color: #ccc;
}

/* Portfolio */
[data-theme="light"] .portfolio-card {
    background: #fff;
    border-color: #e0e0e0;
}

[data-theme="light"] .portfolio-card:hover {
    border-color: #ccc;
}

/* Service pages */
[data-theme="light"] .service-sidebar-card {
    background: #fff;
    border-color: #e0e0e0;
}

[data-theme="light"] .service-tags span {
    background: rgba(124, 58, 237, 0.06);
}

/* About page */
[data-theme="light"] .about-values__item {
    background: #fff;
    border-color: #e0e0e0;
}

[data-theme="light"] .about-team {
    border-top-color: #eee;
}

[data-theme="light"] .about-team__photo {
    border-color: #e0e0e0;
}

[data-theme="light"] .about-culture {
    border-top-color: #eee;
}

[data-theme="light"] .about-culture__perk {
    background: #fff;
    border-color: #e0e0e0;
}

[data-theme="light"] .about-culture__grid img {
    border-color: #e0e0e0;
}

/* Modal */
[data-theme="light"] .modal__backdrop {
    background: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .modal__container {
    background: #fff;
    border-color: #e0e0e0;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .modal__close {
    background: rgba(0, 0, 0, 0.7);
}

/* Theme toggle in light mode */
[data-theme="light"] .theme-toggle {
    background: transparent;
    border-color: transparent;
    color: #555;
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(124, 58, 237, 0.06);
    color: var(--accent);
}

[data-theme="light"] .theme-toggle__icon--dark { display: none; }
[data-theme="light"] .theme-toggle__icon--light { display: block; }

/* Mobile nav light mode */
@media (max-width: 640px) {
    [data-theme="light"] .nav__links {
        background: #fff;
    }

    [data-theme="light"] .nav__links > a,
    [data-theme="light"] .nav__links > .nav__dropdown > .nav__link--has-dropdown {
        color: #111;
        border-bottom-color: #eee;
    }

    [data-theme="light"] .nav__links .nav__cta {
        background: #111 !important;
        color: #fff !important;
    }
}

/* Loader in light mode */
[data-theme="light"] .loader {
    background: #fff;
}

[data-theme="light"] .loader__bar {
    background: #e0e0e0;
}

[data-theme="light"] .page-transition {
    background: #fff;
}
