/* Fonts */
/* latin-ext */
@font-face {
    font-family: 'Epilogue';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/Epilogue-LatinExt.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Epilogue';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/Epilogue-Latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext 600 */
@font-face {
    font-family: 'Epilogue';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/Epilogue-LatinExt.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin 600 */
@font-face {
    font-family: 'Epilogue';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/Epilogue-Latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext 700 */
@font-face {
    font-family: 'Epilogue';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/Epilogue-LatinExt.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin 700 */
@font-face {
    font-family: 'Epilogue';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/Epilogue-Latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Colors */
    --color-white: #DDE5ED;
    --color-black: #0A0D13;
    --color-blue: #032CF6;

    /* Spacing */
    --spacing-unit: 40px;
    --spacing-1: var(--spacing-unit);
    /* 40px */
    --spacing-2: calc(var(--spacing-unit) * 2);
    /* 80px */
    --spacing-3: calc(var(--spacing-unit) * 3);
    /* 120px */
    --spacing-4: calc(var(--spacing-unit) * 4);
    /* 160px */

    /* Fonts */
    --font-main: 'Epilogue', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--color-black);
    color: var(--color-white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
    /* Force scrollbar to prevent layout shift */
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: var(--color-black);
    /* Ensure background is black */
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 var(--spacing-1);
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 600;
    /* Semibold */
}

.logo {
    font-weight: 700;
    color: #fff;
    /* White for difference mode */
    text-decoration: none;
    font-size: 24px;
    /* Removed text-transform: uppercase */
}

/* Header */
.header {
    padding: var(--spacing-1) 0;
    position: fixed;
    /* Sticky/Fixed */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    /* High z-index */
    mix-blend-mode: difference;
    /* Dynamic color change */
    color: #fff;
    /* Base color for difference mode */
    /* transition: transform 0.3s ease, opacity 0.3s ease;  <-- Moved to .header.loaded-transition */
}

.header.loaded-transition {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

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

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-1);
}

.nav-link {
    color: #fff;
    /* White for difference mode */
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.7;
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 102;
    /* Above mobile menu */
    padding: 0;
    position: relative;
}

.hamburger-btn span {
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

/* The third span is pseudo-element in some designs, but here we used 2 spans in HTML? 
   Wait, I added 2 spans in HTML. Let's adjust CSS to use ::after or just add a 3rd span in HTML?
   Actually, standard hamburger usually has 3 lines. 
   Let's check HTML again. I added 2 spans. 
   Let's stick to 2 spans for a simple cross, or add a middle one.
   Actually, let's use ::before/::after on the button or just 2 spans for a cross.
   If I want 3 lines, I should have added 3 spans.
   Let's assume I want 2 lines that form an X.
   Wait, standard is 3 lines. I'll update CSS to handle 2 spans as top/bottom and maybe a pseudo for middle?
   Or just use the 2 spans as top/bottom and they rotate to X.
   Let's try to make a nice animation with just 2 spans if possible, or use ::before/::after.
   Let's use the 2 spans.
   Span 1: Top line.
   Span 2: Bottom line.
   But usually we need 3 for a hamburger.
   I will stick to 2 spans and make them look like a menu (maybe with a gap).
   Actually, let's just use the 2 spans and maybe a pseudo element for the middle line if needed, 
   OR just update HTML to have 3 spans? 
   I can't update HTML easily now without another call.
   I'll use ::after on the button for the 3rd line.
*/
.hamburger-btn::after {
    content: '';
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Wait, flex space-between with 2 spans + ::after is tricky.
   Let's just use the 2 spans as top and bottom, and maybe the button background as middle? No.
   Let's just use the 2 spans.
   If not active:
   Span 1 at top.
   Span 2 at bottom.
   Maybe I can add a 3rd line via ::before on the button?
   Let's try:
   .hamburger-btn has 2 spans.
   Let's make it 3 lines using ::before.
*/
.hamburger-btn {
    position: relative;
}

.hamburger-btn span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.hamburger-btn span:nth-child(1) {
    top: 0;
}

.hamburger-btn span:nth-child(2) {
    top: 9px;
}

/* Middle */
/* Wait, I only have 2 spans. */
/* Let's use ::after for the 3rd. */
.hamburger-btn::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Active State */
.hamburger-btn.active span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active::after {
    bottom: 9px;
    transform: rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-black);
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 101;
    /* Below hamburger, above header */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-list {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.mobile-nav-link {
    color: var(--color-white);
    font-size: 32px;
    font-weight: 600;
    text-decoration: none;
}

/* Hero Section */
.hero {
    background-color: var(--color-black);
    color: var(--color-white);
    min-height: 100vh;
    /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--spacing-3);
    padding-bottom: var(--spacing-2);
    text-align: center;
}

.hero-text {
    font-size: 64px;
    /* Larger for impact */
    font-weight: 400;
    max-width: 1600px;
    /* Wider to spread text */
    margin: 0 auto;
    line-height: 1.2;
}

.hero-actions {
    margin-top: 80px;
    /* Push button lower */
}

.hero .btn-outline {
    border-color: var(--color-white);
    color: var(--color-white);
}

.hero .btn-outline:hover {
    background: var(--color-white);
    color: var(--color-black);
    transform: scale(1.05);
}

/* Services Section */
.services {
    background-color: var(--color-white);
    color: var(--color-black);
    padding: var(--spacing-2) 0;
    /* Removed border-radius */
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 64px;
    /* Larger text as requested */
    margin-bottom: var(--spacing-2);
    /* Increased spacing */
    max-width: 100%;
    /* Widened to reduce lines */
    line-height: 1.1;
    font-weight: 400;
    /* Regular as it acts like main text */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns */
    gap: 10px;
    font-size: 24px;
    font-weight: 400;
}

.service-item {
    padding: 0;
    /* Removed border-bottom */
}

.service-item::after {
    content: "";
    /* Removed comma */
}

/* Projects Section */
.projects {
    background-color: var(--color-white);
    /* Continues light theme */
    color: var(--color-black);
    padding: var(--spacing-1) 0 var(--spacing-3) 0;
    position: relative;
    z-index: 2;
}

.section-title-projects {
    font-size: 32px;
    margin-bottom: var(--spacing-2);
    border-top: 2px solid var(--color-black);
    /* Divider above */
    border-bottom: none;
    padding-top: var(--spacing-1);
    padding-bottom: 0;
    display: inline-block;
    width: 100%;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-1);
    /* Larger gap for projects */
    margin-bottom: var(--spacing-2);
}

.project-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Snappier */
    position: relative;
    /* Needed for z-index on hover */
}

.project-card.full-width {
    grid-column: 1 / -1;
    width: 100%;
}

.project-card:hover {
    transform: scale(1.04);
    /* Stronger pop */
    z-index: 10;
    /* Lift above others */
}

.project-card:hover .project-image img {
    transform: scale(1.02);
    /* Subtle inner zoom */
}

.project-image img {
    transition: transform 0.5s ease;
}

/* Scroll Reveal Animation */
/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* CSS-only animation for LCP elements (Hero) */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.animate-on-load {
    animation: fadeUp 0.8s cubic-bezier(0.5, 0, 0, 1) forwards;
}

/* Staggered Delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.project-image {
    background-color: #E5E5E5;
    /* Placeholder gray */
    width: 100%;
    /* Removed fixed aspect-ratio to allow variety */
    border-radius: 20px;
    /* Rounded corners */
    margin-bottom: 0;
    /* Removed gap completely */
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    /* Removes inline gap */
}

.project-title {
    font-size: 24px;
    margin-top: 0;
    /* Removed gap from top */
    margin-bottom: 5px;
    line-height: 1.2;
}

.project-desc {
    font-size: 16px;
    opacity: 0.7;
    line-height: 1.5;
    margin-bottom: 5px;
}

.project-activity {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.project-activity span {
    background-color: transparent;
    border: 1px solid rgba(10, 13, 19, 0.7);
    /* Outline matching description color */
    border-radius: 20px;
    /* Chip shape */
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-black);
    /* Black text */
    opacity: 1;
}

.projects-footer {
    text-align: center;
    padding-top: var(--spacing-1);
}

.process-heading {
    font-size: 48px;
    margin-bottom: var(--spacing-2);
    /* Divider above */
    border-bottom: none;
    text-align: center;
    padding-top: var(--spacing-1);
    padding-bottom: 0;
    display: inline-block;
    width: 100%;
    color: var(--color-white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 32px 96px;
    /* Larger button */
    border-radius: 100px;
    /* Pill shape */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Playful bounce */
    cursor: pointer;
    font-size: 26px;
}

.btn-outline {
    border: 2px solid var(--color-black);
    /* Thicker border */
    color: var(--color-black);
    background: transparent;
}


.btn-outline:hover {
    background: var(--color-black);
    color: var(--color-white);
    transform: scale(1.05);
    /* Playful scale without rotation */
}

.project-content .btn-outline {
    color: var(--color-white);
    border: 2px solid var(--color-white);
    background: transparent;
}

.project-content .btn-outline:hover {
    background: var(--color-white);
    color: var(--color-black);
    transform: scale(1.05);
    /* Playful scale without rotation */
}

/* Contact Section */
.contact {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: var(--spacing-4) 0;
    /* More padding */
    text-align: center;
    /* Removed border-radius */
    position: relative;
    z-index: 3;
}

.contact-container {
    max-width: 1600px;
    /* Matched to hero text width */
    margin: 0 auto;
}

.contact-text {
    font-size: 64px;
    /* Matched to hero text size */
    margin-bottom: var(--spacing-2);
    line-height: 1.1;
    /* Tighter line height for large text */
}

.contact-btn {
    border-color: var(--color-white);
    color: var(--color-white);
}

.contact-btn:hover {
    background: var(--color-white);
    color: var(--color-black);
    transform: scale(1.05);
    /* Playful scale without rotation */
}

/* Footer */
.footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: var(--spacing-2) 0;
    font-size: 16px;
    position: relative;
    z-index: 3;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    /* Text | Contact | Instagram */
    gap: var(--spacing-1);
    align-items: start;
}

.footer-text {
    max-width: 400px;
    opacity: 0.7;
    font-size: 18px;
    /* Slightly larger */
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 24px;
    /* Larger text */
    font-weight: 600;
}

.footer-info a,
.footer-social a {
    color: var(--color-white);
    text-decoration: none;
}

.footer-social {
    text-align: right;
    font-size: 24px;
    /* Larger text */
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.arrow-icon {
    width: 20px;
    /* Larger arrow */
    height: 20px;
    fill: none;
    /* SVG uses stroke */
    stroke: currentColor;
    transition: transform 0.3s;
}

.footer-social a:hover .arrow-icon {
    transform: translate(5px, -5px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    :root {
        --spacing-unit: 20px;
        /* Reduce spacing on mobile */
    }

    .header-container {
        /* flex-direction: column;  <-- Removed to keep logo and burger in row */
        /* gap: 20px; */
        display: flex;
        /* Ensure flex is active */
        align-items: center;
    }

    .nav {
        display: none;
        /* Hide desktop nav */
    }

    .hamburger-btn {
        display: flex !important;
        /* Force show hamburger */
    }

    /* Disable mix-blend-mode on mobile to ensure visibility */
    /* .header ruleset removed as user requested difference mode */

    /* When menu is open, reset mix-blend-mode so background is opaque */
    .header.menu-open {
        mix-blend-mode: normal;
    }

    .mobile-menu {
        display: flex;
        /* Ensure menu is flex on mobile */
    }

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

    .projects-grid {
        grid-template-columns: 1fr;
        /* Single column on mobile */
    }

    .project-card.full-width {
        grid-column: span 1;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-social {
        text-align: left;
        align-items: flex-start;
    }

    .footer-social a {
        justify-content: flex-start;
    }

    .hero-text,
    .section-title,
    .contact-text {
        font-size: 32px;
    }
}

/* Project Detail Page */
.project-detail-hero {
    background-color: var(--color-black);
    color: var(--color-white);
    height: 100vh;
    /* Full screen */
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Overlay for readability */
.project-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.project-detail-hero .container {
    position: relative;
    z-index: 2;
}

.project-hero-title {
    font-size: 80px;
    /* Larger title */
    font-weight: 600;
    text-align: center;
}

.project-info {
    background-color: #DDE5ED;
    color: var(--color-black);
    padding: var(--spacing-1) 0;
}

/* Fix for project card spacing on projekty.html */
.project-card .project-info {
    background-color: transparent;
    padding: 20px 0px;
}

.project-motto {
    text-align: center;
    margin-bottom: var(--spacing-2);
    margin-top: 40px;
}

.project-motto h2 {
    font-size: 48px;
    font-weight: 700;
}

.project-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 Columns */
    gap: var(--spacing-3);
}

.project-description {
    font-size: 20px;
    line-height: 1.6;
}

.project-description p {
    margin-bottom: var(--spacing-1);
}

.project-details-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Signature at bottom */
}

.project-details h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.project-details ul {
    list-style: none;
    padding-left: 0;
    font-size: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-details ul li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-details ul li::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0D13' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    opacity: 0.8;
}

.project-signature {
    text-align: right;
    font-size: 18px;
    opacity: 0.8;
    margin-top: var(--spacing-2);
}

/* Project Content Grid */
.project-content {
    background-color: var(--color-black);
    /* Continue light background */
    color: var(--color-white);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-1);
    margin-bottom: var(--spacing-3);
    margin-top: var(--spacing-2);
}

.content-block {
    /* Placeholder gray */
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    color: var(--color-white);
}

/* Zoomable Images */
/* Zoomable Images */
.content-block img,
.content-block iframe,
.content-block video {
    cursor: zoom-in;
    pointer-events: auto;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
}

.content-block iframe {
    cursor: default;
    /* No zoom for iframes */
}

.content-block.square {
    grid-column: span 2;
    aspect-ratio: 1 / 1;
}

.content-block.small {
    grid-column: span 1;
    aspect-ratio: 1 / 1;
}

.project-chapter {
    grid-column: 1 / -1;
    text-align: center;
    margin: var(--spacing-1) 0;
    color: var(--color-white);
}

.project-chapter h2 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 10px;
}

.project-chapter h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
}

.chapter-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 20px;
    opacity: 0.8;
    line-height: 1.6;
}

.content-block.wide {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
}

.content-block.portrait {
    grid-column: span 2;
    aspect-ratio: 9 / 16;
}

/* Text Block Styles */
.content-block.text-block {
    background-color: transparent;
    /* No background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-2);
    color: var(--color-white);
}

.content-block.text-block .text-content {
    width: 100%;
}

.content-block.text-block.text-left {
    align-items: flex-start;
    text-align: left;
}

.content-block.text-block.text-right {
    align-items: flex-end;
    text-align: right;
}

.content-block.text-block h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.content-block.text-block p {
    font-size: 24px;
    /* Larger text */
    line-height: 1.5;
}

.project-row {
    grid-column: 1 / -1;
    display: grid;
    gap: var(--spacing-1);
    margin-bottom: var(--spacing-1);
}

.project-row.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.project-row.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.project-row.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-landscape {
    aspect-ratio: 16 / 9;
}

.project-navigation {
    text-align: center;
    padding-top: var(--spacing-2);
    padding-bottom: var(--spacing-2);
    margin-bottom: var(--spacing-1);
    border-bottom: 1px solid var(--color-white);
}

@media (max-width: 768px) {
    .project-info-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-1);
    }

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

    .content-block.square,
    .content-block.small {
        grid-column: span 1;
        aspect-ratio: 1 / 1;
        /* Keep square on mobile or change if needed */
    }

    .content-block.text-block {
        aspect-ratio: auto;
        height: auto;
    }

    .project-row,
    .project-row.cols-2,
    .project-row.cols-3,
    .project-info-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-row.cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .project-details-column {
        flex-direction: column-reverse;
        gap: 40px;
    }

    .project-signature {
        text-align: left;
        margin-top: 0;
        margin-bottom: 20px;
    }

    .project-motto h2 {
        font-size: 32px;
    }

    .project-hero-title {
        font-size: 48px;
    }

    .content-block.wide {
        aspect-ratio: 16 / 9;
    }

    /* Mobile Optimizations */
    .btn {
        padding: 16px 32px;
        /* Smaller padding */
        font-size: 18px;
        /* Smaller font */
    }

    .hero-text {
        font-size: 52px;
        line-height: 1.1;
    }

    .section-title {
        font-size: 38px;
    }

    /* Hamburger Menu */
    .nav {
        display: none;
        /* Hide default nav on mobile */
    }

    .hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
        /* Above overlay */
        padding: 0;
    }

    .hamburger-btn span {
        width: 100%;
        height: 2px;
        background-color: #fff;
        /* White for difference mode */
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform-origin: center;
    }

    /* Hamburger Active State (X shape) */
    .hamburger-btn.active span:nth-child(1) {
        transform: rotate(45deg);
    }

    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.active span:nth-child(3) {
        transform: rotate(-45deg);
    }

    /* Mobile Menu Overlay */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-black);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .mobile-menu.active {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu ul {
        list-style: none;
        text-align: center;
    }

    .mobile-menu li {
        margin: 20px 0;
    }

    .mobile-menu a {
        color: var(--color-white);
        font-size: 32px;
        text-decoration: none;
        font-weight: 600;
    }
}



/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 13, 19, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

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

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--color-white);
    font-size: 40px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Process Page Styles */

.process-section {
    padding: 140px 0 100px;
    /* Increased top padding since hero is gone */
    background-color: var(--bg-color);
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 800px;
    margin: 0 auto;
}

.process-item {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.process-number {
    font-family: 'Epilogue', sans-serif;
    font-size: 64px;
    font-weight: 700;
    color: var(--color-white);
    opacity: 0.3;
    line-height: 1;
    min-width: 80px;
}

.process-content h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--color-white);
}

.process-content p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-white);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .process-item {
        flex-direction: column;
        gap: 20px;
    }

    .process-number {
        font-size: 48px;
    }

    .process-content h3 {
        font-size: 24px;
    }
}

/* Contact Form Styles */
.contact-form-section {
    padding: 120px 0 100px;
    /* Added top padding since hero is gone */
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 60px;
    border-radius: 20px;
    color: var(--color-black);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-heading {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--color-black);
    text-align: center;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-black);
}

.form-hint {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 12px;
    margin-top: -4px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px 0;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--color-black);
    font-family: 'Epilogue', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

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

.contact-form textarea {
    min-height: 100px;
    resize: vertical;
}

/* Custom Checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
    color: var(--color-black);
    font-weight: 400;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    transition: all 0.2s;
}

.checkbox-container:hover input~.checkmark {
    border-color: var(--color-black);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--color-black);
    border-color: var(--color-black);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--color-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Submit Button */
.contact-form button[type="submit"] {
    margin-top: 20px;
    width: 100%;
    cursor: pointer;
    background-color: var(--color-black);
    color: var(--color-white);
    border: 1px solid var(--color-black);
}

.contact-form button[type="submit"]:hover {
    background-color: transparent;
    color: var(--color-black);
}

@media (max-width: 768px) {
    .contact-form {
        padding: 40px 20px;
        margin: 0;
        /* border-radius and box-shadow inherited from desktop */
    }

    .form-heading {
        font-size: 36px;
    }
}

/* Form Message Styles */
.form-message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    display: none;
    /* Hidden by default */
}

.form-message.success {
    display: block;
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.form-message.error {
    display: block;
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid #dc3545;
}

/* Lightbox Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 40px;
    padding: 20px;
    cursor: pointer;
    z-index: 1002;
    transition: background 0.3s;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        padding: 10px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* Lightbox Animations */
.lightbox-content.slide-left {
    animation: slideLeft 0.1s ease-in forwards;
}

.lightbox-content.slide-right {
    animation: slideRight 0.1s ease-in forwards;
}

.lightbox-content.slide-from-right {
    animation: slideFromRight 0.2s ease-out forwards;
}

.lightbox-content.slide-from-left {
    animation: slideFromLeft 0.2s ease-out forwards;
}

@keyframes slideLeft {
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideRight {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}