/* ================================
   MGS GLOBAL - MONOLITHIC LUXURY
   ================================ */

:root {
    /* Colors */
    --black: #0a0a0a;
    --black-light: #141414;
    --gray-dark: #1a1a1a;
    --gray: #2a2a2a;
    --gray-mid: #666666;
    --gray-light: #999999;
    --white: #ffffff;
    --white-off: #f5f5f5;
    --accent: #e0e0e0;

    /* Typography */
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'Darker Grotesque', sans-serif;

    /* Spacing */
    --section-padding: clamp(80px, 12vw, 160px);
    --container-padding: clamp(20px, 5vw, 80px);

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ================================
   RESET & BASE
   ================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
    cursor: none;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ================================
   NOISE OVERLAY
   ================================ */

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ================================
   CUSTOM CURSOR
   ================================ */

.cursor {
    width: 8px;
    height: 8px;
    background: var(--black);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--black);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    opacity: 0.5;
}

body:has(a:hover) .cursor,
body:has(button:hover) .cursor {
    width: 16px;
    height: 16px;
    background: var(--white);
}

body:has(a:hover) .cursor-follower,
body:has(button:hover) .cursor-follower {
    width: 60px;
    height: 60px;
    border-color: var(--gray-light);
}

/* ================================
   NAVIGATION
   ================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px var(--container-padding);
    mix-blend-mode: difference;
}

.nav-logo img {
    height: 72px;
    filter: invert(1);
    transition: opacity 0.3s ease;
}

.nav-logo:hover img {
    opacity: 0.7;
}

.nav-links {
    display: flex;
    gap: 48px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.4s var(--ease-out-expo);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--white);
}

.lang {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.lang.active,
.lang:hover {
    opacity: 1;
}

.lang-divider {
    opacity: 0.3;
}

.nav-cta {
    padding: 12px 24px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--black);
    background: var(--white);
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
    display: inline-block; /* Added for anchor support */
    text-decoration: none; /* Added for anchor support */
    border: none;
    cursor: pointer; /* Keeps it behaving like a button if needed */
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s ease;
}

/* ================================
   HERO SECTION
   ================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px var(--container-padding) 80px;
    background: var(--black);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    transform: scale(1.1);
    animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
    to {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.3) 0%,
        rgba(10, 10, 10, 0.1) 40%,
        rgba(10, 10, 10, 0.6) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-light);
}

.label-line {
    width: 60px;
    height: 1px;
    background: var(--gray-mid);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 12vw, 9rem);
    font-weight: 400;
    line-height: 0.95;
    color: var(--white);
    margin-bottom: 40px;
}

.title-line {
    display: block;
    overflow: hidden;
}

.title-word {
    display: inline-block;
    animation: slideUp 1s var(--ease-out-expo) forwards;
    animation-delay: calc(var(--i, 0) * 0.1s);
}

.title-line:nth-child(1) .title-word { --i: 1; }
.title-line:nth-child(2) .title-word { --i: 2; }
.title-line:nth-child(3) .title-word { --i: 3; }

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.title-italic {
    font-style: italic;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    line-height: 1.6;
    color: var(--gray-light);
    max-width: 500px;
    opacity: 0;
    animation: fadeIn 1s var(--ease-out-expo) 0.6s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.hero-stats {
    position: absolute;
    right: var(--container-padding);
    bottom: 120px;
    display: flex;
    gap: 60px;
    z-index: 1;
}

.stat {
    text-align: right;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1;
}

.stat-unit {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--gray-light);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-mid);
    margin-top: 8px;
}

.hero-scroll {
    position: absolute;
    left: var(--container-padding);
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 1;
}

.hero-scroll span {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-mid);
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gray-mid), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 1;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.5;
        transform: scaleY(0.8);
    }
}

/* ================================
   MARQUEE
   ================================ */

.marquee {
    padding: 24px 0;
    background: var(--black);
    border-top: 1px solid var(--gray);
    border-bottom: 1px solid var(--gray);
    overflow: hidden;
}

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

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

.marquee span {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-mid);
    white-space: nowrap;
}

.marquee-dot {
    width: 4px;
    height: 4px;
    background: var(--gray-mid);
    border-radius: 50%;
}

/* ================================
   ABOUT SECTION
   ================================ */

.about {
    padding: var(--section-padding) var(--container-padding);
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 120px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-mid);
}

.label-num {
    color: var(--black);
}

.about-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--black);
}

.about-title em {
    font-style: italic;
}

.about-right {
    padding-top: 80px;
}

.about-text {
    margin-bottom: 40px;
}

.about-lead {
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--black);
    margin-bottom: 24px;
}

.about-text p {
    color: var(--gray-mid);
    margin-bottom: 16px;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--black);
    padding: 12px 0;
    border-bottom: 1px solid var(--black);
    transition: gap 0.3s var(--ease-out-expo);
}

.btn-link:hover {
    gap: 20px;
}

.btn-link svg {
    transition: transform 0.3s var(--ease-out-expo);
}

.btn-link:hover svg {
    transform: translate(4px, -4px);
}

.about-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.visual-card {
    position: relative;
    overflow: hidden;
    background: var(--gray-dark);
}

.visual-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

.visual-card:hover img {
    transform: scale(1.05);
}

.visual-card-1 {
    transform: translateY(40px);
}

.visual-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--white);
}

/* ================================
   PROJECTS SECTION
   ================================ */

.projects {
    padding: var(--section-padding) var(--container-padding);
    background: var(--white-off);
}

.projects-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.projects-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 1;
    color: var(--black);
}

.projects-title em {
    font-style: italic;
}

.projects-desc {
    font-size: 1.125rem;
    color: var(--gray-mid);
    max-width: 400px;
    align-self: end;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.project-card {
    position: relative;
    overflow: hidden;
    background: var(--black);
}

.project-featured {
    grid-column: span 2;
}

.project-link {
    display: block;
    position: relative;
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

.project-featured .project-image img {
    height: 600px;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0) 100%
    );
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
}

.project-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.project-category,
.project-year {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-light);
}

.project-name {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 8px;
    transition: transform 0.4s var(--ease-out-expo);
}

.project-card:hover .project-name {
    transform: translateX(16px);
}

.project-location {
    font-size: 0.875rem;
    color: var(--gray-light);
}

.project-arrow {
    position: absolute;
    right: 40px;
    bottom: 40px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.4s var(--ease-out-expo);
}

.project-card:hover .project-arrow {
    background: var(--white);
    color: var(--black);
    transform: rotate(-45deg);
}

.projects-cta {
    display: flex;
    justify-content: center;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 20px 40px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--black);
    border: 1px solid var(--black);
    transition: all 0.4s var(--ease-out-expo);
}

.btn-outline:hover {
    background: var(--black);
    color: var(--white);
    gap: 24px;
}

/* ================================
   SERVICES SECTION
   ================================ */

.services {
    position: relative;
    padding: var(--section-padding) 0;
    background: var(--black);
    overflow: hidden;
}

.services-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, var(--gray-dark) 0%, var(--black) 100%);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

.services-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    padding: 0 var(--container-padding);
}

.section-label-light {
    color: var(--gray-mid);
}

.section-label-light .label-num {
    color: var(--white);
}

.services-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--white);
}

.services-title em {
    font-style: italic;
    color: var(--gray-light);
}

.services-list {
    display: flex;
    flex-direction: column;
}

.service-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: start;
    padding: 40px 0;
    border-bottom: 1px solid var(--gray);
    transition: all 0.4s var(--ease-out-expo);
}

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

.service-item:hover {
    padding-left: 24px;
    background: rgba(255, 255, 255, 0.02);
}

.service-num {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--gray-mid);
}

.service-name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 12px;
    transition: transform 0.4s var(--ease-out-expo);
}

.service-item:hover .service-name {
    transform: translateX(8px);
}

.service-desc {
    font-size: 0.9375rem;
    color: var(--gray-mid);
    max-width: 400px;
}

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--gray-mid);
    transition: color 0.3s ease;
}

.service-item:hover .service-icon {
    color: var(--white);
}

/* ================================
   CLIENTS SECTION
   ================================ */

.clients {
    padding: var(--section-padding) var(--container-padding);
    background: var(--white);
    overflow: hidden;
}

.clients-header {
    text-align: center;
    margin-bottom: 40px;
}

.clients-header .section-label {
    justify-content: center;
}

.clients-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--black);
    margin-bottom: 32px;
}

.clients-title em {
    font-style: italic;
}

/* Controls */
.clients-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gray-mid);
    transition: all 0.3s ease;
}

.view-btn span {
    display: none;
}

@media (min-width: 480px) {
    .view-btn span {
        display: inline;
    }
}

.view-btn:hover {
    border-color: var(--black);
    color: var(--black);
}

.view-btn.active {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}

/* Views */
.clients-view {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
    flex-direction: column;
    display: flex;
}

.clients-view.active {
    height: auto;
    overflow: visible;
    opacity: 1;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.4s ease;
}

.client-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.client-logo img {
    max-height: 56px;
    max-width: 140px;
    object-fit: contain;
}

/* Marquee View */
.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--white), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--white), transparent);
}

.marquee-track {
    display: flex;
    gap: 80px;
    width: max-content;
    animation: marquee 40s linear infinite;
    padding-left: 80px; /* Slight offset */
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}

/* Grid View */
.clients-grid-static {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .clients-grid-static {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .clients-grid-static {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ================================
   CTA SECTION
   ================================ */

.cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
}

.cta-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--section-padding) var(--container-padding);
    background: var(--black);
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 32px;
}

.cta-title em {
    font-style: italic;
    color: var(--gray-light);
}

.cta-text {
    font-size: 1.125rem;
    color: var(--gray-mid);
    max-width: 400px;
    margin-bottom: 48px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 20px 40px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--black);
    background: var(--white);
    transition: all 0.4s var(--ease-out-expo);
    width: fit-content;
}

.btn-primary:hover {
    gap: 24px;
    background: var(--accent);
}

.cta-visual {
    position: relative;
    overflow: hidden;
}

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

.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

.cta-visual:hover .cta-image img {
    transform: scale(1.05);
}

/* ================================
   FOOTER
   ================================ */

.footer {
    position: relative;
    z-index: 10;
    background: var(--black);
    padding: 80px var(--container-padding) 40px;
    border-top: 1px solid var(--gray);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-logo {
    height: 80px;
    filter: invert(1);
    margin-bottom: 24px;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--gray-mid);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 24px;
}

.footer-col a,
.footer-col p {
    display: block;
    font-size: 0.9375rem;
    color: var(--gray-mid);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--gray);
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--gray-mid);
}

.footer-socials {
    display: flex;
    gap: 24px;
}

.footer-socials a {
    color: var(--gray-mid);
    transition: color 0.3s ease;
}

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

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 1200px) {
    .hero-stats {
        right: var(--container-padding);
        bottom: 100px;
        gap: 40px;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .nav-links,
    .nav-right {
        display: none;
    }

    /* Mobile Menu Open State */
    .nav.nav-open {
        background: transparent;
        mix-blend-mode: normal;
    }

    .nav.nav-open .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--black);
        align-items: center;
        justify-content: center;
        z-index: 0; /* Changed from -1 to 0 to be on the same level as nav content */
        gap: 32px;
        padding-bottom: 80px; /* Space for bottom nav/safe area */
    }

    /* Ensure menu toggle stays on top */
    .menu-toggle {
        display: flex;
        z-index: 1002; /* Higher than nav-links */
        position: relative; 
    }

    .nav.nav-open .nav-link {
        font-family: var(--font-display);
        font-size: 3rem;
        font-weight: 400;
        line-height: 1;
        opacity: 0;
        transform: translateY(20px);
        animation: menuFadeIn 0.5s ease forwards;
    }

    .nav.nav-open .nav-link:nth-child(1) { animation-delay: 0.1s; }
    .nav.nav-open .nav-link:nth-child(2) { animation-delay: 0.2s; }
    .nav.nav-open .nav-link:nth-child(3) { animation-delay: 0.3s; }
    .nav.nav-open .nav-link:nth-child(4) { animation-delay: 0.4s; }

    /* Hamburger Animation */
    .nav.nav-open .menu-toggle span:nth-child(1) {
        transform: translateY(4px) rotate(45deg);
    }

    .nav.nav-open .menu-toggle span:nth-child(2) {
        transform: translateY(-4px) rotate(-45deg);
    }

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

    .about-grid,
    .projects-header {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-right {
        padding-top: 0;
    }

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

    .project-featured {
        grid-column: span 1;
    }

    .services-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .services-bg {
        display: none;
    }

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

    .cta-visual {
        height: 400px;
    }

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

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }

    .hero-stats {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 60px;
        gap: 32px;
    }

    .stat {
        text-align: left;
    }

    .hero-scroll {
        display: none;
    }

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

    .visual-card-1 {
        transform: none;
    }

    .visual-card img {
        height: 300px;
    }

    .project-image img,
    .project-featured .project-image img {
        height: 350px;
    }

    .service-item {
        grid-template-columns: auto 1fr;
        gap: 24px;
    }

    .service-icon {
        display: none;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

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

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}
