@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,600&display=swap');

:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --accent-color: #111111;
    --secondary-color: #f5f5f5;
    --gray-light: #e5e5e5;
    --gray-dark: #666666;
    
    --font-main: 'Inter', sans-serif;
    --padding-global: 0 5vw;
}

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

html {
    scroll-behavior: initial; /* Handled by Lenis */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.loader-text {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5vw;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: transform 0.3s ease;
}

.navbar.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo-img {
    height: 75px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a {
    transition: opacity 0.3s ease;
}
.nav-links a:hover {
    opacity: 0.6;
}

.nav-contact {
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 0.1rem;
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-bg-canvas-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#hero-scroll-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.hero-content {
    position: relative;
    padding: var(--padding-global);
    padding-bottom: 4rem;
    z-index: 10;
}

.hero-title-container {
    overflow: hidden;
    margin-bottom: 4vh;
}

.hero-title {
    font-size: clamp(4rem, 12vw, 12rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: var(--text-color);
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
}

.hero-subheadline {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 500;
    color: var(--gray-dark);
    max-width: 600px;
    line-height: 1.4;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 1.2rem 2.5rem;
    border-radius: 3rem;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s ease, background 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-4px);
    background-color: #333333;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-dark);
}

/* LOGO MARQUEE */
.logo-marquee {
    overflow: hidden;
    white-space: nowrap;
    background: #fad6ff;
    padding: 30px 0;
    display: flex;
    width: 100%;
}

.marquee-track {
    display: flex;
    align-items: center;
    justify-content: space-around;
    min-width: 100%;
    animation: scroll 20s linear infinite;
    gap: 80px;
    padding-right: 80px;
    mix-blend-mode: multiply; /* Applied here to blend with parent background, bypassing the stacking context issue */
}

.marquee-track img {
    height: 55px; /* Increased by ~10% from 50px */
    object-fit: contain;
}

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

/* STATEMENT SECTION */
.statement-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 0;
    background-color: #fdf5d3; /* Light yellow backdrop */
}

.statement-video-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.statement-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.statement-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay to make text readable */
    z-index: 2;
}

/* Sound Toggle */
.sound-toggle-wrapper {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(0,0,0,0.5);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    backdrop-filter: blur(5px);
}

.sound-label {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ANIMATED GALLERY SECTION */
/* SCATTERED CONSTELLATION GALLERY SECTION */
.animated-gallery {
    /* Large height allows room for the scrolling rotation */
    height: 250vh; 
    background-color: var(--bg-color);
    position: relative;
}

.scatter-sticky {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.scatter-container {
    position: absolute;
    top: 50%;
    left: 50%;
    /* 100vmin ensures the container is a perfect square that fits fully inside the screen without clipping */
    width: 100vmin;
    height: 100vmin;
    transform: translate(-50%, -50%);
    transform-origin: center center;
}

.scatter-item {
    position: absolute;
    /* Reduced base sizing, using vmin so it scales proportionally */
    width: 14vmin;
    cursor: pointer;
    z-index: 10;
    /* For smooth hover interactions */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.scatter-item img,
.scatter-item video {
    width: 100%;
    height: auto;
    object-fit: contain; /* or cover depending on preference, screenshot showed native ratios */
    pointer-events: none; /* Let the wrapper handle clicks */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #fff;
    padding: 0.5rem; /* Polaroids vibe */
}

.scatter-item:hover {
    z-index: 20;
    filter: brightness(1.1);
}

/* Lightbox Overlay */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(253, 245, 211, 0.95); /* Light yellow from statement */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

/* Cloned Active Item */
.scatter-item.lightbox-active {
    /* JS will animate its position fixed */
    z-index: 9999 !important;
    cursor: default;
}

.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #ffb6c1; /* matching the pink */
}

input:checked + .slider:before {
    transform: translateX(14px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.statement-container {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1300px;
}

.statement-text {
    font-size: clamp(1.5rem, 3vw, 3.5rem);
    font-weight: 900;
    color: #fdf5d3; /* Warm off-white/yellowish color */
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.cursive-highlight {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    text-transform: lowercase;
    color: #ffb6c1; /* Light pink */
    font-size: 1.1em;
    font-weight: 600;
    display: inline-block;
    margin: 0 0.1em;
}

/* TYPOGRAPHY GLOBALS */
.section-heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.section-subheading {
    font-size: 1.25rem;
    color: var(--gray-dark);
    margin-top: 1rem;
    max-width: 400px;
}

.huge-heading {
    font-size: clamp(5rem, 12vw, 15rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
}

/* INTRO SECTION */
.intro {
    padding: 10rem 0;
    background-color: var(--bg-color);
}

.intro-grid {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 6rem;
    align-items: center;
}

.intro-left {
    overflow: hidden;
    border-radius: 1rem;
    aspect-ratio: 4 / 5;
}

.intro-image {
    width: 100%;
    height: 130%;
    object-fit: cover;
}

.intro-right h2 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.fade-in-text {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--gray-dark);
    max-width: 600px;
}

/* CUSTOM CURSOR */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
}

.cursor-dot,
.cursor-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.cursor-dot {
    width: 4px;
    height: 4px;
    background-color: #00ff88; /* Neon green dot */
}

.cursor-circle {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(0, 0, 0, 0.3); /* Fine grey circle */
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

/* Hide default cursor globally */
body, a, button, .scatter-item, .service-row {
    cursor: none !important;
}

/* Hover state for links */
.custom-cursor.hovering .cursor-circle {
    width: 50px;
    height: 50px;
    border-color: #00ff88;
    background-color: rgba(0, 255, 136, 0.1);
}

/* MINIMAL SERVICES */
.minimal-services {
    position: relative;
    padding: 10rem 0;
    background-color: #fdf5d3; /* Restored yellow background */
    display: flex;
    justify-content: center;
    overflow: hidden; 
}

.services-list {
    position: relative;
    z-index: 10;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.service-row {
    display: flex;
    justify-content: center;
    padding: 3.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    transition: background-color 0.4s ease;
    /* Initial state for GSAP text reveal */
    opacity: 0;
    transform: translateY(40px);
}

.service-row:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.service-title-wrapper {
    display: flex;
    align-items: center; /* Center horizontally with the text */
    gap: 1.5rem; /* Space between number and title */
}

.service-number {
    font-family: "Courier New", Courier, monospace; /* Technical look */
    font-size: 1rem;
    color: var(--gray-dark);
    font-weight: 500;
    margin-top: 0.5rem; /* Optical adjustment to baseline */
}

.service-title {
    font-size: 5rem; /* Very large text like the reference */
    font-weight: 500;
    letter-spacing: -0.03em;
    margin: 0;
    color: #000;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
}

/* Responsive adjust */
@media (max-width: 768px) {
    .service-title { font-size: 3rem; }
    .service-row { padding: 2.5rem 0; }
}

.service-row:hover .service-title {
    transform: scale(1.03);
}

/* PORTFOLIO */
.portfolio {
    padding: 10rem 0;
    background-color: var(--bg-color);
}

.text-center {
    text-align: center;
}
.mb-4 {
    margin-bottom: 4rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio-item {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.portfolio-img-wrap {
    overflow: hidden;
    border-radius: 1rem;
    aspect-ratio: 3 / 4;
}

.portfolio-img-wrap img,
.portfolio-img-wrap video {
    width: 100%;
    height: 120%;
    object-fit: cover;
}

.p-item-2 {
    margin-top: 4rem;
}
.p-item-3 {
    margin-top: 8rem;
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* PROCESS */
.process {
    padding: 8rem 0;
    background-color: var(--text-color);
    color: var(--bg-color);
}

.process .section-heading {
    margin-bottom: 6rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.step {
    border-top: 2px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
}

.step-num {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    display: block;
    margin-bottom: 2rem;
}

.step-content h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.step-content p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    line-height: 1.6;
}

/* CONTACT */
.contact {
    padding: 10rem 0;
    background-color: var(--bg-color);
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.contact-form-wrapper {
    flex: 1;
    max-width: 600px;
}

.contact-sub {
    font-size: 1.25rem;
    color: var(--gray-dark);
    margin-bottom: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.5rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--gray-light);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--text-color);
}

.contact-form textarea {
    resize: vertical;
}

.form-submit {
    align-self: flex-start;
    margin-top: 2rem;
}

/* FOOTER */
.footer {
    padding: 4rem 0;
    background-color: var(--secondary-color);
    border-top: 1px solid var(--gray-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 4rem;
}

.footer-col h4 {
    font-size: 0.85rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.footer-col p,
.footer-link {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--gray-dark);
}

.footer-link:hover {
    color: var(--text-color);
}

.ai-disclosure p {
    color: var(--gray-dark);
    line-height: 1.6;
    font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }
    .sticky-grid {
        grid-template-columns: 1fr;
    }
    .sticky-content-inner {
        position: relative;
        top: 0;
        margin-bottom: 3rem;
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .p-item-3 {
        margin-top: 0;
    }
    .process-steps {
        grid-template-columns: 1fr 1fr;
    }
    .contact-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-ctas {
        align-items: flex-start;
    }
    .hero-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .p-item-2 {
        margin-top: 0;
    }
    .process-steps {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* NEW PORTFOLIO GRID STYLES */
.new-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 2rem;
}

.portfolio-item-new {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    cursor: none !important;
}

.portfolio-item-new .portfolio-img-wrap {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.portfolio-item-new .parallax-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item-new:hover .parallax-img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.portfolio-item-new:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item-new .portfolio-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

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

@media (max-width: 600px) {
    .new-portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* BLOG SECTION */
.blog-section {
    padding: 8rem 0;
    background-color: var(--secondary-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    background: var(--bg-color);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: none !important;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.blog-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-excerpt {
    color: var(--gray-dark);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.read-more {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

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

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

/* REELS GRID FOR PROJECTS */
.reels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    margin-top: 4rem;
}

.reel-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.reel-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

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

