:root {
    --bg-color: #0F0F0F;
    --text-color: #FAFAFA;
    --text-light: #888888;
    --accent-color: #FFFFFF;
    --border-color: #333333;
    --font-main: 'Space Grotesk', sans-serif;
    --transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

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

/* NOISE OVERLAY */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background: #000;
    filter: url(#noiseFilter);
}

/* LAYOUT CONSTANTS */
section {
    padding: 120px 5%;
    position: relative;
    z-index: 2;
}

h2.section-title {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 300;
    letter-spacing: -2px;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.h-line {
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
    margin: 2rem 0;
}

/* HEADER */
.main-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 2rem 5%;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 60px; /* Increased size for better visibility */
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.brand-logo:hover {
    opacity: 0.7;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    display: inline-block;
}

.nav-links a:hover {
    color: var(--text-light);
    transform: translateY(-2px);
}

.primary-cta {
    padding: 10px 20px;
    border: 1px solid var(--text-color);
    border-radius: 2rem;
}
.primary-cta:hover {
    background-color: var(--text-color);
    color: var(--bg-color) !important;
}

/* HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 0;
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: blurFadeIn 2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(15,15,15,0.7) 0%, rgba(15,15,15,1) 90%);
    z-index: 1;
}

@keyframes blurFadeIn {
    0% { filter: blur(20px); opacity: 0; transform: scale(1.05); }
    100% { filter: blur(0px); opacity: 1; transform: scale(1); }
}

.hero-content {
    margin-bottom: 50px;
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3.5rem, 12vw, 10rem);
    line-height: 0.9;
    font-weight: 600;
    letter-spacing: -4px;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-light);
    max-width: 600px;
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 2rem;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--text-color);
    color: var(--bg-color);
}
.btn-secondary {
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.magnetic-btn span {
    position: relative;
    z-index: 2;
}

.hero-image-large {
    height: 60vh; /* Actually this gets pushed to bottom */
    width: 100%;
    overflow: hidden;
    border-radius: 2rem 2rem 0 0;
    position: relative;
    z-index: 2;
}

/* IMAGES & GREYSCALE HOVER */
.parallax-container {
    overflow: hidden;
    position: relative;
}

.portfolio-img {
    width: 110%;
    height: 110%;
    object-fit: cover;
    will-change: transform, filter;
}

.greyscale-hover {
    filter: grayscale(100%);
    transition: filter 0.8s ease, transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.parallax-container:hover .greyscale-hover,
.gallery-item:hover .greyscale-hover,
.greyscale-hover.colored {
    filter: grayscale(0%) !important;
    transform: scale(1.03) !important;
}

/* ABOUT SECTION */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: end;
}
.about-text p {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-light);
}

/* PROPOSITIONS SECTION */
.propositions-grid {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.prop-card {
    display: grid;
    grid-template-columns: 100px 1fr 1.5fr;
    gap: 2rem;
    align-items: start;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.prop-num {
    font-size: 1.2rem;
    color: var(--text-light);
}

.prop-card h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    line-height: 1.2;
    padding-right: 2rem;
}

.prop-img-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 2rem;
}

/* PORTFOLIO PIPELINE */
.portfolio-gallery {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}

.gallery-row {
    display: grid;
    gap: 2rem;
}
.gallery-row.split {
    grid-template-columns: 1fr 1fr;
}

.portfolio-item .image-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 2rem;
}
.portfolio-item.large .image-wrapper {
    aspect-ratio: 21/9;
}

.portfolio-info {
    padding-top: 1.5rem;
}

.project-desc {
    font-size: 1.25rem;
    font-weight: 400;
}
.project-cat {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.view-all-container {
    text-align: center;
    margin-top: 4rem;
}

.view-all {
    font-size: 2rem;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 2px solid var(--text-color);
    padding-bottom: 5px;
    display: inline-block;
}

/* EXPANDED GALLERY GRID */
.expanded-gallery {
    display: none;
    padding-top: 5rem;
    width: 100%;
}

.expanded-gallery.active {
    display: block;
}

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

.gallery-item {
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 2rem;
    background-color: var(--border-color);
}

.gallery-item img {
    width: 110%; /* slight overflow for scale effect */
    height: 110%;
    object-fit: cover;
}

.close-gallery-container {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.close-gallery-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 15px 40px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    z-index: 1;
}

.close-gallery-btn span {
    position: relative;
    z-index: 2;
}

.close-gallery-btn::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--text-color);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
}

.close-gallery-btn:hover {
    color: var(--bg-color); /* invert color effectively */
}

.close-gallery-btn:hover::before {
    transform: translateY(-100%);
}

/* FOOTER */
.footer {
    background-color: #050505;
    padding: 150px 5% 50px;
    border-top: 1px solid var(--border-color);
}

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

.cta-title {
    font-size: clamp(4rem, 8vw, 8rem);
    line-height: 0.9;
    font-weight: 300;
    margin-bottom: 2rem;
}

.big-contact-link {
    font-size: clamp(2rem, 4vw, 3rem);
    text-decoration: none;
    color: var(--bg-color);
    background-color: var(--text-color);
    padding: 1rem 3rem;
    border-radius: 4rem;
    display: inline-block;
}

.footer-details {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    justify-content: flex-end;
}

.footer-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    font-size: 0.8rem;
}

.footer-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 300;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--text-light);
    transform: translateY(-2px);
}

/* GSAP PREP: Classes are used by JS for element selection, no static CSS needed. */

@media (max-width: 1024px) {
    .prop-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .prop-num { display: none; }
    .footer-container {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .gallery-row.split { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; gap: 1rem; }
    .nav-links { display: none; }

    /* HERO FIX: remove top padding so text drops lower via flex-end */
    .hero { padding-top: 0; }
    .hero-content {
        padding-left: 5%;
        padding-right: 5%;
        margin-bottom: 24px;
    }
    .hero-image-large {
        height: 38vh;
        border-radius: 1.5rem 1.5rem 0 0;
    }
    .hero-title {
        font-size: clamp(2.8rem, 10vw, 5rem);
        letter-spacing: -2px;
        margin-bottom: 1.25rem;
    }

/* ===== HAMBURGER MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1002;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-color);
    transition: transform 0.4s cubic-bezier(0.19,1,0.22,1), opacity 0.3s;
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-nav-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.mobile-nav-links li { overflow: hidden; }
.mobile-nav-links a {
    font-size: clamp(2.2rem, 9vw, 4rem);
    font-weight: 700;
    letter-spacing: -1px;
    text-decoration: none;
    color: var(--text-color);
    text-transform: uppercase;
    display: inline-block;
    transition: color 0.3s, transform 0.3s;
}
.mobile-nav-links a:hover { color: var(--text-light); transform: translateX(8px); }

@media (max-width: 768px) { .hamburger { display: flex; } }

/* ===== CUSTOM CURSOR ===== */
.cursor-dot {
    position: fixed;
    width: 8px; height: 8px;
    background: var(--text-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}
.cursor-ring {
    position: fixed;
    width: 38px; height: 38px;
    border: 1.5px solid rgba(255,255,255,0.45);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
    transition: width 0.35s ease, height 0.35s ease, border-color 0.35s ease;
}
.cursor-ring.expanded { width: 80px; height: 80px; border-color: rgba(255,255,255,0.9); }
@media (max-width: 768px) { .cursor-dot, .cursor-ring { display: none; } }

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lb-img-wrap { max-width: 90vw; max-height: 85vh; }
.lb-img-wrap img {
    max-width: 100%; max-height: 85vh;
    object-fit: contain;
    border-radius: 0.5rem;
    display: block;
}
.lb-close, .lb-prev, .lb-next {
    position: fixed;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-color);
    cursor: pointer;
    font-family: var(--font-main);
    transition: background 0.2s;
}
.lb-close {
    top: 1.5rem; right: 1.5rem;
    width: 48px; height: 48px;
    border-radius: 50%; font-size: 1.1rem;
}
.lb-prev, .lb-next {
    top: 50%; transform: translateY(-50%);
    padding: 1rem 1.25rem; font-size: 1.2rem;
}
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.18); }
@media (max-width: 768px) {
    .lb-prev { left: 0.5rem; } .lb-next { right: 0.5rem; }
}


    .hero-description { margin-bottom: 2rem; }
    .hero-actions { gap: 0.75rem; }
    .btn { padding: 0.85rem 1.5rem; font-size: 0.8rem; }

    /* Sections */
    section { padding: 80px 5%; }
    .about-text p { font-size: 1.15rem; }
    .prop-card { gap: 0.75rem; }
    .footer { padding: 80px 5% 40px; }
    .footer-link { font-size: 1.1rem; }
    .cta-title { font-size: clamp(2.8rem, 10vw, 5rem); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
