:root {
    --bg-color: #0d0d0d;
    --text-color: #ffffff;
    --border-color: #ffffff;
    --font-title: 'Red Rose', serif;
    --font-subtitle: 'Hubballi', cursive;
    --col-1-width: 200px;

    --menu-offset: 10px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: white;

    color: var(--text-color);
    font-family: var(--font-title);
    overflow-x: hidden;
}

/* --- SECTION 1: Menu --- */
.menu-container {
    display: grid;

    grid-template-columns: var(--col-1-width) 1fr auto auto auto;
    border: 1px solid var(--border-color);
    position: fixed;
    top: var(--menu-offset);
    left: var(--menu-offset);
    right: var(--menu-offset);
    width: auto;
    z-index: 100;
    background-color: transparent;
    mix-blend-mode: difference;
    color: white;
    padding: 0;
    gap: 0;
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
    /* Smooth fade */
}

.menu-col {
    padding: 1rem 1rem;
    border-right: 1px solid white;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.1rem;
    transition: border-color 0.4s ease;
    /* Smooth border transition for cols */
}

.menu-col:last-child {
    border-right: none;
}

/* Column Specific Styles */
.col-1 {
    font-family: 'Red Rose', serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 1.5rem;
}

.col-2 {
    font-family: 'Hubballi', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    justify-content: flex-start;

}

.col-2 h1 {
    font-family: 'Hubballi', sans-serif;
    font-size: 1.1rem;
    font-weight: normal;
    margin: 0;
}

.col-3,
.col-4,
.col-5 {
    font-family: 'Hubballi', sans-serif;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
    white-space: nowrap;
}

.col-5 a {
    color: inherit;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.col-5 a:hover {
    opacity: 1;
}

.col-5 .active-lang {
    font-weight: bold;
    opacity: 1;
}

/* --- SECTION 2: Hero --- */
.hero-section {
    width: 100%;
    height: 100vh;
    background-image: url('assets/hero.jpg');

    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: calc(var(--menu-offset) + var(--col-1-width) + 1rem);
    position: relative;
    margin-top: 0;
    background-color: #0d0d0d;
    font-size: 4em;

}



.hero-content {
    background: rgba(0, 0, 0, 0.3);
    border-left: 0px solid white;
    mix-blend-mode: difference;
    z-index: 1;
}

.hero-content h2 {
    font-family: 'Red Rose', serif;
    font-weight: 400;
    font-size: clamp(3rem, 6vw, rem);
    line-height: 96%;
    text-align: left;
    text-transform: uppercase;
    max-width: 600px;

    margin-bottom: 1rem;
}

.hero-subtitle {
    font-family: 'Pinyon Script', cursive;
    font-size: 2.5rem;
    color: white;
    display: block;
    transform: rotate(-3deg);
    margin-top: -1.2rem;
    text-transform: lowercase;
    text-align: right;
    width: fit-content;
}

/* --- Services Section --- */
.services-section {
    padding-top: 15vh;
    padding-bottom: 15vh;
    padding-right: 5vw;
    padding-left: 0;
    background-color: transparent;
    color: black;
    position: relative;
    overflow: hidden;
    margin: 10vh 0;
}

.services-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.5;
}

.services-title {
    font-family: 'Red Rose', serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 400;
    margin: 0;
    position: absolute;
    top: 15vh;

    left: calc(var(--menu-offset) + var(--col-1-width) + 1.5rem);
    z-index: 1;
}





/* --- SECTION: Intro Text --- */
.intro-section {
    padding-left: calc(var(--menu-offset) + var(--col-1-width) + 1rem);
    padding-right: 5vw;
    padding-top: 15vh;
    padding-bottom: 15vh;
    position: relative;
    z-index: 10;
    background-color: white;
    color: black;
}

.liseret {
    width: 30px;
    height: 0px;
    background-color: #000000;
    margin-bottom: 2rem;
}

.intro-text p {
    color: #9E9E9E;
    text-transform: uppercase;
    margin: 0;
}



.intro-text {
    max-width: 70%;
    font-family: 'Red Rose', serif;
    font-size: clamp(1.8rem, 4.5vw, 3.8rem);
    line-height: 125%;
    text-align: left;
}

.intro-text strong {
    font-weight: 700;
    display: inline;
    margin-bottom: 0;
}

.intro-text .light-text {
    font-weight: 300;
}

/* --- SECTION 3: Projects --- */
.projects-section {
    padding: 5vh 5vw;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5vw;
    max-width: 1400px;
    margin: 0 auto;
    background-color: #ffffff;
    color: #000000;
}

.project-item {
    position: relative;
    margin-bottom: 1rem;
}

.project-item.offset-down {
    margin-top: 5rem;
}

.project-description {
    font-family: 'Hubballi', sans-serif;
    font-size: 1.1rem;
    max-width: 100%;
    margin-top: 1rem;
}

.project-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
    filter: grayscale(0%);
}

.project-item:hover .project-image img {
    transform: scale(1.05);
    filter: grayscale(100%);
}

.project-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: all 0.4s ease;
    mix-blend-mode: normal;
    z-index: 2;
}

.project-item:hover .project-title {
    opacity: 1;
}

.project-title h2 {
    font-family: 'red rose', sans-serif;
    font-size: 3rem;
    text-transform: uppercase;
    color: white;
    text-shadow: 0 0px 0px rgba(0, 0, 0, 0.5);
}

.presentation {
    padding-left: calc(var(--menu-offset) + var(--col-1-width) + 1.122rem);
    padding-right: 5vw;
    padding-top: 5vh;
    padding-bottom: 5vh;
    display: block;
    max-width: 100%;
    margin: 0;
    background-color: #ffffff;
    color: #000000;
}

.presentation-content {
    max-width: 70%;
    margin-top: 0;
    padding: 0;
    font-family: 'Red Rose', serif;

}


.presentation-content h2 {
    font-family: 'Red Rose', serif;
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: normal;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.presentation-content p {
    font-family: 'Hubballi', sans-serif;
    font-size: clamp(0.9rem, 1vw, 1.1rem);
    line-height: 150%;
    text-align: left;
    color: #000;
    letter-spacing: 1px;
}

/* Shared Animation Styles */
.intro-text .word,
.presentation-content h2 .word {
    transition: color 0.1s ease;
    color: #9E9E9E;
}

.intro-text .word.revealed,
.presentation-content h2 .word.revealed {
    color: #000000;
}


/* Responsive */
/* --- Responsive Design --- */

/* Tablet & Smaller Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
    .menu-container {
        /* Keep grid but adjust columns or sizes if needed. For now, just smaller padding */
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        background-color: rgba(13, 13, 13, 0.9);
        mix-blend-mode: normal;
        border: none;
        border-bottom: 1px solid white;
    }

    .menu-col {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
        /* Switch to 2 columns */
        gap: 3vw;
    }

    .hero-content h2 {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }
}

/* PC Only Scrolled Menu Effect */
@media (min-width: 1025px) {
    .menu-container.scrolled-menu {
        background-color: rgba(255, 255, 255, 0.8);
        mix-blend-mode: normal;
        border-color: black;
        color: black;
    }

    .menu-container.scrolled-menu .menu-col {
        border-right: 1px solid black;
    }

    .menu-container.scrolled-menu .menu-col:last-child {
        border-right: none;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .menu-container {
        display: flex;
        flex-wrap: wrap;
        position: fixed;
        height: auto;
        max-height: none;
        overflow-y: visible;
        background-color: rgba(13, 13, 13, 0.9);
    }

    .menu-col {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 1rem 0.5rem;
        text-align: center;
        justify-content: center;
        display: flex;
        align-items: center;
    }

    /* Row 1: 2 Columns */
    .col-1,
    .col-2 {
        width: 50%;
        font-size: 1.1rem;
        order: unset;
        /* Reset order if previously set */
    }

    .col-1 {
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }

    .col-2 {
        border-right: none;
    }

    /* Row 2: 3 Columns */
    .col-3,
    .col-4,
    .col-5 {
        width: 33.33%;
        font-size: 0.9rem;
        order: unset;
        border-bottom: none;
    }

    .col-3,
    .col-4 {
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }

    .col-5 {
        border-right: none;
    }

    .hero-section {
        /* Add padding top to account for stacked menu if fixed, or just normal flow */
        padding-top: 15vh;
        padding-left: 5vw;
        /* Reset padding-left which was calculated for desktop menu */
        background-position: 70% center;
        /* Adjust image center */
    }

    .hero-content {
        width: 100%;
    }

    .hero-content h2 {
        font-size: 2.5rem;
        max-width: 100%;
    }

    .hero-subtitle {
        font-size: 2rem;
        text-align: right;
        margin-right: 1rem;
    }

    /* Reset offsets for standard flow */
    .services-section {
        padding: 5vh 0;
    }

    .services-title {
        position: static !important;
        /* Force static to ignore top/left */
        width: 100%;
        text-align: left;
        margin-bottom: 2rem;
        padding-left: 5vw;
        /* Align with grid content */
        left: auto;
        top: auto;
    }

    .services-grid {
        grid-template-columns: 1fr !important;
        /* Back to 1 Column */
        margin: 2rem 0 0 0 !important;
        padding: 0 5vw;
        /* Restore breathing room */
        width: 100%;
        gap: 2rem;
    }

    .service-col {
        display: block;
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
    }

    .service-category {
        margin-bottom: 3rem;
        /* Restore spacing */
        /* Reduce huge margin since grid gap handles spacing */
    }

    .projects-section {
        grid-template-columns: 1fr;
        padding: 5vh 5vw;
        gap: 3rem;
    }

    .project-item.offset-down {
        margin-top: 0;
    }

    .presentation,
    .intro-section {
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .presentation-content,
    .intro-text {
        max-width: 100%;
    }

    .presentation-content p {
        font-size: 1.2rem;
        /* Increased from 0.9-1.1rem clamp for better readability */
    }

    .big-footer {
        margin: 0;
        padding: 10vh 5vw;
    }

    .footer-link {
        font-size: 3rem;
        /* Smaller for mobile */
    }
}

/* --- Link below Project 1 --- */
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
    font-family: 'Hubballi', sans-serif;
    text-transform: uppercase;
    color: black;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #C03048;
}

.project-link svg {
    transition: transform 0.3s ease;
}

.project-link:hover svg {
    transform: translate(2px, -2px);
}

/* --- Services Section --- */
.services-section {
    padding-top: 15vh;
    padding-bottom: 15vh;
    padding-right: 5vw;
    padding-left: 0;
    background-color: transparent;
    color: black;
    position: relative;
    overflow: hidden;
    margin-top: 10vh;
    margin-bottom: 0;
}

.services-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
    /* Prevent interaction */
}

.services-title {
    font-family: 'Red Rose', serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 400;
    margin: 0;
    position: absolute;
    top: 15vh;
    top: 15vh;
    left: calc(var(--menu-offset) + var(--col-1-width) + 1.122rem);
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5vw;
    width: auto;
    margin-left: calc(var(--menu-offset) + var(--col-1-width));
    padding-left: 1.122rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.service-category {
    margin-bottom: 3rem;
}

.service-category h3 {
    font-family: 'Red Rose', serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.service-category ul {
    list-style: none;
    padding: 0;
}

.service-category li {
    font-family: 'Hubballi', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    line-height: 1.2rem;
    color: #292929;
}

/* --- Footer --- */
.big-footer {
    padding: 15vh 5vw;
    background-color: white;
    color: black;
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pre-title {
    font-family: 'Hubballi', sans-serif;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    display: block;
}

.footer-link {
    font-family: 'Red Rose', serif;
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 1;
    color: black;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #C03048;
}

.footer-link:visited {
    color: #000;
}