/* --- 1. CORE VARIABLES --- */
:root {
    --bg: #F2F2F0;
    --surface: #ffffff;
    --text: #0a0a0a;
    --text-light: #666666;
    --line: rgba(0, 0, 0, 0.08);

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

    --container: 1400px;
    --ease-out: cubic-bezier(0.165, 0.84, 0.44, 1);

    --accent: #ff964f;
}

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

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

html,
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 0px;
}

/* --- ANCHOR SCROLL OFFSET (compensates for fixed nav ~70px) --- */
#services,
#works,
#about,
#contact {
    scroll-margin-top: 80px;
}

/* --- 2. UTILITIES --- */
.u-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 5vw;
    position: relative;
}

.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.04;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");

}

/* Magnetic Button */
.magnetic-wrap {
    display: inline-block;
    position: relative;
}

.u-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: #111;
    color: #fff;
    border-radius: 60px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: transform 0.3s ease;
    overflow: hidden;
    position: relative;
}

.u-btn span {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.u-btn::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: top 0.3s var(--ease-out);
    border-radius: 50%;
    z-index: 1;
}

.u-btn:hover::before {
    top: 0;
    border-radius: 0;
}



/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 10000;
    overflow: hidden;
}

.preloader-images-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.preloader-img {
    position: absolute;
    opacity: 0;
    transform: scale(0.5);
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    display: block;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
}

.preloader-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0) 40%, rgba(255, 150, 79, 0.8) 50%, rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
    z-index: 2;
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Nav */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(244, 244, 242, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);

    /* Initial State: Hidden */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.5s ease;
}

.nav.visible,
.nav.frozen {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    opacity: 1;
    /* Always visible within the nav */
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: 99;
    /* Just below the nav */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.5s var(--ease-out);
}

.menu-overlay.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.menu-link {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    text-transform: uppercase;
    transition: color 0.3s ease;
    cursor: pointer;
}

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

/* --- HERO --- */
.hero {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Verification: Center horizontally */
    padding: 0;
    /* Remove padding to center vertically */
    position: relative;
    /* Added for masonry background */
}

.hero-title {
    /* Updated to match Logo Style */
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 8rem);
    /* Reduced further to ensure fit */
    /* Increased max size for impact */
    font-style: normal;
    letter-spacing: -0.04em;
    line-height: .9;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 50px;
    color: #ff964f;
    /* Accent color */
    transform-origin: left top;
    will-change: transform;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Soft shadow for lift */

    position: relative;
    z-index: 2;
    /* Ensure on top of masonry */

    /* Centering & Single Line */
    text-align: center;
    white-space: nowrap;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    /* Ensuring perfect vertical centering */
}

/* Gallery Layout */
.gallery-header {
    padding-top: 120px;
    /* Clear navbar + breathing room */
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.back-btn {
    display: inline-block;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

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

/* Gallery Header Title Overlay */
.gallery-header .hero-title {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 20px;
    width: 100%;
    font-size: clamp(3rem, 6vw, 5rem);
    /* Larger, more presence */
    font-family: var(--font-body);
    /* Clean sans-serif */
    font-weight: 400;
    /* Regular weight */
    text-transform: capitalize;
    letter-spacing: -0.03em;
    color: var(--text);
    text-shadow: none;
    mix-blend-mode: normal;
    line-height: 1.1;
}

.gallery-header .hero-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 500px;
    line-height: 1.6;
    margin: 0;
    opacity: 1;
    /* Ensure visible */
}

.word-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.char-wrap {
    display: inline-block;
    transform: translateY(110%);
}

.hero-sub {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-desc {
    max-width: 400px;
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text-light);
    opacity: 0;
}

.hero-img-container {
    width: 100%;
    height: 65vh;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    opacity: 0;
    transform: scale(0.95);
}

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

/* --- MASONRY HERO BACKGROUND --- */
.hero-masonry {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Bring it forward, but behind content */
    display: flex;
    gap: 20px;
    padding: 0 20px;
    overflow: hidden;
    opacity: 0.5;
    /* Reduced for text visibility */
    filter: brightness(0.7) contrast(1.2);
    /* Colored, Darker, Higher Contrast */
    pointer-events: none;
}

/* FADE OVERLAY BOTTOM ONLY */
.hero-masonry::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(10, 10, 10, 0) 0%,
            rgba(10, 10, 10, 0) 85%,
            var(--bg) 100%);
    z-index: 2;
    /* Needs to sit on top of images but under the text layer */
    pointer-events: none;
}

.masonry-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.masonry-img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    aspect-ratio: 9/16;
    /* Default vertical aspect */
}


/* --- BRAND CAROUSEL (NEW) --- */
.brand-section {
    padding: 36px 0;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    overflow: hidden;
}

.marquee-container {
    position: relative;
}

.marquee-container::before {
    display: none;
}

.marquee-track {
    display: flex;
    gap: 80px;
    width: fit-content;
    animation: scroll 30s linear infinite;
}

.brand-item {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ccc;
    white-space: nowrap;
    transition: color 0.3s;
}

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

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-container {
    width: 100vw;
    overflow: hidden;
    position: relative;
}

.marquee-text-track {
    display: flex;
    width: max-content;
    white-space: nowrap;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    animation: scroll 20s linear infinite;

}


.marquee-text-track span {
    padding-right: 0;
}

/* --- SERVICES --- */
.services {
    padding: 70px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
}

.section-label {
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.service-card {
    padding: 70px 40px;
    border-right: 1px solid var(--line);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.service-card:last-child {
    border-right: none;
}

.service-card:hover {
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    transform: translateY(-10px);
    z-index: 2;
}

.service-num {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 1.1;
    margin-top: auto;
}

.service-hover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: all 0.5s var(--ease-out);
    z-index: 0;
    transform: scale(1.1);
}

.service-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* darken image so text is visible */
    opacity: 0;
    transition: all 0.5s var(--ease-out);
    z-index: 1;
}

.service-card:hover .service-hover-img,
.service-card:hover .service-hover-overlay {
    opacity: 1;
    transform: scale(1);
}

.service-num,
.service-card h3 {
    position: relative;
    z-index: 2;
    transition: color 0.4s ease;
}

.service-card:hover .service-num,
.service-card:hover h3 {
    color: #fff;
}

.service-icon-svg {
    width: 54px;
    height: 54px;
    margin-bottom: 30px;
    stroke: var(--text);
    stroke-width: 1.2;
    fill: none;
    transition: transform 0.4s ease, stroke 0.4s ease;
    position: relative;
    z-index: 2;
}

.service-card:hover .service-icon-svg {
    transform: scale(1.1) rotate(-5deg);
    stroke-width: 1.5;
    stroke: var(--accent);
}

/* --- STACKED VIDEO CARDS (UPDATED) --- */
.fs-video-section {
    background-color: var(--bg);
    padding-bottom: 10vh;
    position: relative;
}

.fs-stack-container {
    width: 100%;
    position: relative;
}

.fs-card {
    position: sticky;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Centered */
    background-color: var(--bg);
    padding: 0;

    box-sizing: border-box;
}

.fs-card:nth-child(1) {
    top: 0px;
    z-index: 1;
}

.fs-card:nth-child(2) {
    top: 0px;
    z-index: 2;
}

.fs-card:nth-child(3) {
    top: 0px;
    z-index: 3;
}

/* Updated Video Wrap to be bigger and cleaner */
.fs-card-video-wrap {
    width: 90vw;
    max-width: 1600px;
    height: 85vh;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform-origin: center top;
    will-change: transform;
}

.fs-card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 0.7s ease-out;
}

.fs-card:hover .fs-card-bg {
    transform: scale(1);
}

/* --- PHOTOS (UPDATED TO CAROUSEL) --- */
.photo-section {
    padding: 70px 0;
    background: #fff;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

/* New Carousel Container */
.photo-carousel {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    padding: 50px 5vw;
    /* Padding for scroll area */
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}

/* Hide Scrollbar */
.photo-carousel::-webkit-scrollbar {
    display: none;
}

.photo-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    flex-shrink: 0;
    /* Prevent squishing */
    width: 400px;
    height: 600px;
    /* Fixed size for carousel */
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

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

/* --- "AMBIENT CINEMA" LIGHTBOX --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    /* Fallback */
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* 1. Ambient Background (The Blur) */
.lb-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    filter: blur(40px) brightness(0.4);
    transform: scale(1.2);
    z-index: 1;
    transition: opacity 0.5s ease;
}

/* 2. Floating Close Button (Top Right) */
.lightbox-close-wrap {
    position: absolute;
    top: 40px;
    right: 40px;
    z-index: 10005;
}

.lightbox-close-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox-close-btn:hover {
    background: #fff;
    color: #000;
    transform: scale(1.1);
}

/* Prev / Next nav buttons */
.lb-prev,
.lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10005;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
    /* prevent lightbox backdrop-click from firing */
    pointer-events: all;
}

.lb-prev {
    left: 24px;
}

.lb-next {
    right: 24px;
}

.lb-prev:hover,
.lb-next:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    transform: translateY(-50%) scale(1.08);
}

.lb-prev:active,
.lb-next:active {
    transform: translateY(-50%) scale(0.95);
}

/* Image counter badge (bottom-centre) */
.lb-counter {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10005;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 30px;
    white-space: nowrap;
    pointer-events: none;
}

/* Mobile adjustments for nav buttons */
@media (max-width: 768px) {

    .lb-prev,
    .lb-next {
        width: 44px;
        height: 44px;
    }

    .lb-prev {
        left: 12px;
    }

    .lb-next {
        right: 12px;
    }

    .lb-counter {
        bottom: 20px;
        font-size: 0.75rem;
    }
}

/* 3. Main Content Container */
.lb-container {
    width: 80%;
    height: 70%;
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.96);
}

.lb-container img,
.lb-container video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    outline: none;
}

/* 4. Minimalist Floating UI */
.lb-ui-header {
    position: absolute;
    top: 40px;
    left: 5vw;
    z-index: 10005;
    color: #fff;
}

.lb-ui-footer {
    position: absolute;
    bottom: 40px;
    left: 5vw;
    width: 90vw;
    z-index: 10005;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 20px;
}

.lb-cat {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(10px);
}

.lb-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 4rem);
    font-weight: 500;
    line-height: 1;
    opacity: 0;
    transform: translateY(15px);
}

.lb-meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transform: translateY(10px);
}

.lb-meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
}

.lb-meta-val {
    font-size: 0.95rem;
    color: #fff;
}

/* --- ABOUT & FOOTER --- */
.about-section {
    padding: 80px 0;
    background: var(--bg);
    position: relative;
    z-index: 10;
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: start;
}

.big-text {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    line-height: 1.2;
    font-family: var(--font-display);
    font-weight: 500;
}

.bio-text {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-top: 20px;
}

/* removed old footer style to prevent background conflict */

.footer-cta {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 9rem);
    color: transparent;
    -webkit-text-stroke: 1px var(--text);
    text-decoration: none;
    line-height: 0.9;
    margin-bottom: 80px;
    display: block;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 100%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    transition: background-size 0.8s var(--ease-out);
    cursor: pointer;
}

.footer-cta:hover {
    background-size: 100% 100%;
}

/* --- CONTACT SECTION ENHANCEMENTS --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    margin-top: 60px;
    text-align: left;
}

.contact-form-wrapper {
    background: #fff;
    padding: 50px;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 18px 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    outline: none;
    transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom-color: var(--text);
}

.input-group textarea {
    resize: vertical;
}

.form-submit-btn {
    margin-top: 20px;
    align-self: flex-start;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 40px;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}

.contact-item span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.contact-item a {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent);
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-form-wrapper {
        padding: 30px;
    }
}

@media (max-width: 900px) {
    .service-grid {
        grid-template-columns: 1fr;
        border-top: 1px solid var(--line);
    }

    .service-card {
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding: 50px 20px;
        min-height: auto;
    }

    .photo-item {
        width: 300px;
        height: 450px;
    }

    /* Adjust carousel item size for mobile */
    .photo-carousel {
        padding: 30px 20px;
    }

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

    .footer-cta {
        -webkit-text-stroke: 0px;
        color: var(--text);
    }

    .fs-card-video-wrap {
        height: 60vh;
        width: 95%;
    }

    .fs-card:nth-child(2) {
        top: 20px;
    }

    .fs-card:nth-child(3) {
        top: 40px;
    }

    .lb-container {
        width: 100%;
        height: 50%;
    }

    .lb-ui-footer {
        flex-wrap: wrap;
        gap: 20px;
    }
}

/* --- WORK SHOWCASE (ZIG-ZAG) --- */
.work-section {
    padding: 70px 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.work-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* Row Container */
.work-row {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 80vh;
    text-decoration: none;
    color: inherit;
    gap: 5%;
}

/* Image Container */
.work-visual {
    width: 60%;
    height: 80vh;
    border-radius: 4px;
    overflow: hidden;
    position: relative;

}

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

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

/* Detail Container */
.work-detail {
    width: 35%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

/* Alternating Layout */
.work-row:nth-child(even) {
    flex-direction: row-reverse;
}

.work-row:nth-child(even) .work-detail {
    align-items: flex-end;
    text-align: right;
}

/* Typography */
.work-title {
    font-family: var(--font-display);
    font-size: 5rem;
    /* Big title */
    color: var(--text);
    font-weight: 500;
    line-height: 0.9;
    margin-top: 10px;
    transition: color 0.3s;
}

.work-row:hover .work-title {
    color: var(--accent);
}

.work-cat {
    font-size: 1.1rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Mobile */
@media (max-width: 900px) {
    .work-grid {
        gap: 60px;
    }

    .work-row {
        flex-direction: column !important;
        /* Stack vertically */
        min-height: auto;
        gap: 20px;
    }

    .work-visual {
        width: 100%;
        height: 60vh;
    }

    .work-detail {
        width: 100%;
        align-items: flex-start !important;
        text-align: left !important;
    }

    .work-title {
        font-size: 3rem;
    }
}

/* --- LOGO MARQUEE (NEW) --- */
.logo-section {
    padding: 48px 0;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    overflow: hidden;
}

.logo-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.logo-track {
    display: flex;
    gap: 80px;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    /* Fixed height for logos */
    flex-shrink: 0;
}

.logo-item img {
    height: 100%;
    width: auto;
    object-fit: contain;
    max-width: 200px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* --- 3. GALLERY STYLES --- */
.gallery-header {
    padding: 120px 0 50px;
    border-bottom: 1px solid var(--line);
}

.gallery-grid {
    column-count: 3;
    column-gap: 20px;
    padding: 20px 0;
}

@media (max-width: 1024px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        column-count: 1;
    }
}

.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 20px;
    break-inside: avoid;
    width: 100%;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

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

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.back-btn:hover {
    opacity: 1;
}

/* --- FOOTER (Orange Theme) --- */
.footer-dark {
    background-color: var(--accent);
    color: var(--text);
    padding: 50px 0 30px;
    font-family: var(--font-body);
    overflow-x: hidden;
    width: 100%;
}

.contact-grid-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.contact-left {
    display: flex;
    flex-direction: column;
}

.contact-heading-new {
    font-family: var(--font-display);
    font-size: clamp(3rem, 5.5vw, 6rem);
    line-height: 0.9;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 30px;
}

.contact-info-new {
    margin-bottom: 40px;
}

.contact-icons-row-new {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.contact-icons-row-new a {
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    width: 50px;
    height: 50px;
    border: 2px solid var(--text);
    border-radius: 50%;
}

.contact-icons-row-new a svg {
    width: 22px;
    height: 22px;
}

.contact-icons-row-new a:hover {
    opacity: 0.7;
    transform: translateY(-3px);
}

.contact-form-new {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 20px;
}

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

.form-group-new {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.form-group-new label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
    font-weight: 700;
    font-family: var(--font-body);
}

.form-group-new input,
.form-group-new textarea,
.form-group-new select {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--text);
    border-radius: 0;
    padding: 16px 0;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 500;
    outline: none;
    transition: border-color 0.3s ease, border-width 0.3s ease;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group-new input::placeholder,
.form-group-new textarea::placeholder {
    color: rgba(10, 10, 10, 0.5);
    font-weight: 400;
}

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

.form-group-new input:focus,
.form-group-new textarea:focus,
.form-group-new select:focus {
    border-bottom-color: var(--text);
    border-bottom-width: 3px;
}

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

.select-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    stroke: var(--text);
}

.submit-btn-new {
    background: var(--text);
    color: #fff;
    border: none;
    padding: 20px 40px;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-body);
    /* Changed from display to body for clarity */
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    align-self: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 20px;
    white-space: nowrap;
}

.submit-btn-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.footer-bottom-new {
    margin-top: 30px;
    padding: 20px 5vw 0;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .contact-grid-new {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .form-row-new {
        grid-template-columns: 1fr;
    }
}

/* --- SCROLL TO TOP --- */
.scroll-top-btn {
    width: 60px;
    height: 60px;
    background-color: #111;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    background-color: transparent;
    color: #111;
    border: 2px solid #111;
}

@media (max-width: 768px) {
    .scroll-top-btn {
        width: 50px;
        height: 50px;
    }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVENESS
   ============================================ */

/* --- TABLET (max-width: 1024px) --- */
@media (max-width: 1024px) {

    /* Hero: reduce masonry to 3 columns */
    .hero-masonry {
        gap: 12px;
        padding: 0 12px;
    }

    .masonry-col:last-child {
        display: none;
    }

    /* Services */
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card:nth-child(2) {
        border-right: none;
    }

    .service-card:last-child {
        border-right: none;
        border-top: 1px solid var(--line);
        grid-column: 1 / -1;
    }

    /* Work title */
    .work-title {
        font-size: 3.5rem;
    }

    /* Gallery */
    .gallery-header {
        padding: 100px 0 40px;
    }
}

/* --- MOBILE (max-width: 768px) --- */
@media (max-width: 768px) {

    /* ---- NAV ---- */
    .nav {
        padding: 1rem 4vw;
    }

    .logo {
        font-size: 1rem;
    }

    /* Make the menu button smaller / touch-friendly */
    .menu-btn.u-btn {
        padding: 8px 18px !important;
        font-size: 0.8rem;
    }

    /* ---- HERO ---- */
    .hero {
        min-height: 100dvh;
        justify-content: center;
        padding: 80px 0 60px;
        /* top clears nav, bottom adds breath */
    }

    .hero-content {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100% !important;
        padding: 0 6vw;
    }

    .hero-title {
        white-space: normal !important;
        font-size: clamp(2.8rem, 11vw, 5.5rem);
        /* fits each word on one line without crowding */
        letter-spacing: -0.03em;
        line-height: 1.05;
        /* airy gap between JUGAL and SHAH. */
        text-align: center;
        width: 100%;
        padding: 0;
        margin: 0 auto;
    }

    /* Reduce masonry to 2 cols, softer opacity */
    /* gap === padding so left-bezel, column-gap, right-bezel are all equal */
    .hero-masonry {
        gap: 12px;
        padding: 0 12px;
        opacity: 0.5;
        /* less busy behind the title */
        filter: brightness(0.6) contrast(1.1);
    }

    /* vertical gap between images = horizontal column gap */
    .masonry-col {
        gap: 12px;
    }

    .masonry-col:nth-child(3),
    .masonry-col:last-child {
        display: none;
    }

    /* ---- MARQUEE ---- */
    .marquee-text-track {
        font-size: 1.2rem;
    }

    /* ---- SERVICES ---- */
    .services {
        padding: 50px 0;
    }

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

    .service-card {
        border-right: none !important;
        border-bottom: 1px solid var(--line);
        padding: 45px 24px;
        min-height: auto;
    }

    .service-card:last-child {
        border-bottom: none;
        grid-column: auto;
    }

    .service-card h3 {
        font-size: 1.8rem;
    }

    /* ---- WORKS ---- */
    .work-section {
        padding: 50px 0;
    }

    .work-grid {
        gap: 50px;
    }

    .work-row {
        flex-direction: column !important;
        min-height: auto;
        gap: 16px;
    }

    .work-visual {
        width: 100%;
        height: 55vw;
        min-height: 220px;
    }

    .work-detail {
        width: 100%;
        align-items: flex-start !important;
        text-align: left !important;
    }

    .work-title {
        font-size: 2.5rem;
    }

    /* ---- LOGO MARQUEE ---- */
    .logo-section {
        padding: 36px 0;
    }

    .logo-item {
        height: 55px;
    }

    /* ---- ABOUT ---- */
    .about-section {
        padding: 55px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .big-text {
        font-size: clamp(1.6rem, 5.5vw, 2.5rem);
    }

    /* ---- GALLERY PAGES HEADER ---- */
    .gallery-header {
        padding: 80px 6vw 36px;
        /* top clears nav, sides give breathing room */
    }

    /* Back link — more space below it before the title hits */
    .gallery-header .back-btn {
        font-size: 0.85rem;
        margin-bottom: 24px;
        opacity: 0.65;
    }

    /* Page title */
    .gallery-header .hero-title {
        font-size: clamp(2.4rem, 9vw, 3.8rem);
        line-height: 1.05;
        margin-bottom: 14px;
        white-space: normal;
        width: 100%;
    }

    /* Description */
    .gallery-header .hero-desc {
        font-size: 0.95rem;
        line-height: 1.65;
        max-width: 100%;
    }

    /* ---- GALLERY GRID ---- */
    .gallery-grid {
        column-count: 2;
        column-gap: 12px;
    }

    .gallery-item {
        margin-bottom: 12px;
    }

    /* ---- LIGHTBOX ---- */
    .lb-container {
        width: 95%;
        height: 55%;
    }

    .lightbox-close-wrap {
        top: 16px;
        right: 16px;
    }

    .lightbox-close-btn {
        width: 44px;
        height: 44px;
    }

    .lb-ui-header {
        top: 20px;
        left: 4vw;
    }

    .lb-title {
        font-size: clamp(1.4rem, 5vw, 2.5rem);
    }

    .lb-ui-footer {
        bottom: 16px;
        left: 4vw;
        width: 92vw;
        flex-wrap: wrap;
        gap: 14px;
        padding-top: 14px;
    }

    /* ---- FOOTER (index) ---- */
    .footer-dark {
        padding: 50px 0 30px;
    }

    .contact-heading-new {
        font-size: clamp(2.2rem, 9vw, 4rem);
        margin-bottom: 30px;
    }

    .footer-bottom-new {
        margin-top: 24px;
        justify-content: center;
        gap: 16px;
        text-align: center;
    }

    /* ---- SECTION HEADER ---- */
    .section-header {
        margin-bottom: 40px;
    }
}

/* --- SMALL MOBILE (max-width: 480px) --- */
@media (max-width: 480px) {

    /* NAV */
    .nav {
        padding: 0.85rem 5vw;
    }

    /* HERO: keep 2-col masonry on very small screens */
    .hero {
        padding: 70px 0 50px;
    }

    /* Keep gap === padding for equal gutters on very small screens too */
    .hero-masonry {
        gap: 8px;
        padding: 0 8px;
        opacity: 0.5;
    }

    .masonry-col {
        gap: 8px;
    }

    /* Ensure col 2 stays visible */
    .masonry-col:nth-child(2) {
        display: flex;
    }

    .hero-title {
        font-size: clamp(2.4rem, 12vw, 4rem);
        /* slightly smaller on 320-390px screens */
        line-height: 1.08;
    }

    /* MARQUEE */
    .marquee-text-track {
        font-size: 1rem;
    }

    /* WORK */
    .work-title {
        font-size: 2rem;
    }

    .work-visual {
        height: 65vw;
    }

    /* ABOUT */
    .big-text {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    /* GALLERY */
    .gallery-grid {
        column-count: 1;
    }

    .gallery-header {
        padding: 75px 6vw 28px;
        /* consistent side padding, tighter on tiny screens */
    }

    .gallery-header .back-btn {
        margin-bottom: 20px;
    }

    .gallery-header .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
        margin-bottom: 12px;
    }

    /* CONTACT ICONS */
    .contact-icons-row-new {
        gap: 14px;
    }

    .contact-icons-row-new a {
        width: 44px;
        height: 44px;
    }

    /* LIGHTBOX */
    .lb-container {
        width: 100%;
        height: 50%;
    }

    /* FOOTER BOTTOM */
    .footer-bottom-new {
        padding: 0 5vw;
        font-size: 0.8rem;
    }
}