
/* Variables */
:root {
    --soft-text-color: #0a0a0ab4;
    --strong-text-color: #000000db;
    --text-color: #333;
    --background-color: #fff;
    --background-color-secondary: rgba(255, 255, 255, 0.6);

    --pading-mobile: 10px;
    --pading-desktop: 20px;
    --section-gap: 20px;

    --font-gotic: 'Grenze Gotisch', serif;
    --font-text: 'Montserrat', sans-serif;
} 

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

/* Fluid Images */
img {
    max-width: 100%;
    display:block;
    height: auto;
}

/* Scroll Snap */
html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}
section {
    scroll-snap-align: start;
    height: 100dvh;
}

body {
    margin: 0;
    font-family: sans-serif;
    background-color: var(--background-color);
}

/*  SECTIONS  */

/* NAV */
nav {
    font-family: var(--font-gotic);
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: none;
    background-color: transparent;
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index:1000;
    padding: 0 28px;
}
.nav-overlay {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen */
    width: 100%;
    height: 100dvh;
    background: linear-gradient(135deg, #0a0a0a, #1e1111);
    transition: 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.nav-overlay.active {
    right: 0;
}

/* The actual links inside the menu */
.nav-overlay a {
    font-family: var(--font-gotic);
    font-size: 4rem;
    color: #fff;
    text-decoration: none;
    margin: 30px 0;
    transition: 0.3s;
}

.nav-overlay a:hover {
    color: #d4af37;
    transform: scale(1.1);
}
.logo-link {
    text-decoration: none;
    color: inherit;
    border: none;
    outline: none;
    cursor:pointer;
    display: inline-block;
}
.logo {
    font-size: 4rem;
    font-weight: normal;
    color: var(--strong-text-color);
    display: block;
    text-align: left;
    line-height: 1;
    margin-left: -80px;
    text-decoration: none !important;
    border: none;
    outline: none !important;
}
.logo span {
    display: block;
    white-space: nowrap;
    text-decoration: none!important;
    border: none;
    outline: none !important;  
}
.logo span:first-child {
    display: block;
    margin-bottom: -15px;
}
.logo span:last-child {
    margin-left: 88px;
    display: block;
}
.first-letter {
    font-size: 6rem;
    float: left;
    line-height: 0.7;
    vertical-align: top;
    margin-right: -4px;
}



.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative; /* Essential for the spans to rotate correctly */
    z-index: 1001; /* Keep this above the overlay */
}

.menu-icon span {
    display: block;
    width: 32px;
    height: 4px;
    background-color: var(--soft-text-color);
    margin: 4px 0;
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
}

/* Position the three lines */
.menu-icon span:nth-child(1) { top: 8px; }
.menu-icon span:nth-child(2) { top: 18px; }
.menu-icon span:nth-child(3) { top: 28px; }

/* The X Transformation */
.menu-icon.open span:nth-child(1) { 
    transform: rotate(45deg); 
    top: 18px; 
    background-color: #fff; 
}
.menu-icon.open span:nth-child(2) { 
    opacity: 0; 
}
.menu-icon.open span:nth-child(3) { 
    transform: rotate(-45deg); 
    top: 18px; 
    background-color: #fff; 
}

/* ================= HERO SECTION (FULL IMAGE MASONRY) ================= */

.hero-gallery {
    position: relative;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    background-color: #fff;
}

.mosaic-container {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    padding: 4px; /* Outer breathing room */
}

.gallery-grid {
    /* MASONRY EFFECT: This fits images beside each other regardless of size */
    column-count: 4;
    column-gap: 4px; /* Space between columns */
    width: 100%;
    
    /* VERTICAL MOVEMENT */
    animation: scrollVerticalMosaic 90s linear infinite;
}

.gallery-grid img {
    width: 100%;
    /* SHOWS WHOLE IMAGE: height auto ensures no part of the drawing is cut off */
    height: auto; 
    display: block;
    margin-bottom: 4px; /* Space between images vertically */
    break-inside: avoid; /* Prevents an image from splitting between columns */
    border-radius: 4px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.05));
    background-color: #fff;
}

/* --- Fixed Text Overlay --- */
.hero-text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    text-align: center;
    width: 100%;
    pointer-events: none; /* Allows mouse interactions to pass through to images */
}

.hero-title, .hero-subtitle {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 12px 24px;
    display: inline-block;
    margin: 10px;
    border: 1px solid #eee;
}

.links-hero {
    margin-top: 20px;
    pointer-events: auto; /* Makes social links clickable */
}

.links-hero a {
    margin: 8 10px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- Seamless Vertical Animation --- */
@keyframes scrollVerticalMosaic {
    0% { transform: translateY(0); }
    100% { 
        /* Moves upward. If the loop jumps, adjust this % slightly 
           to match the total height of your duplicated content. */
        transform: translateY(-0%); 
    }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .gallery-grid {
        column-count: 2; /* 2 columns on tablets */
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        column-count: 1; /* 1 column on small phones for clarity */
        column-gap: 0;
    }
    .hero-title { font-size: 1.2rem; }
    .links-hero a { display: block; margin: 5px 0; }
}

/* --- Text Overlay --- */
.hero-text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 10;
}

/* Positions the links on the far left, below the main bar */
.links-hero {
    position: relative;
    left: auto;
    top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin-top: 10px;
    pointer-events: auto;
}
.links-hero a {
    text-decoration: none;
    color: #000;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .hero-title { font-size: 1.8rem; padding: 15px 0; }
    .hero-subtitle { position: relative; right: auto; top: auto; transform: none; display: block; margin-top: 10px; }
    .links-hero { position: relative; left: auto; top: auto; align-items: center; text-align: center; margin-top: 20px; }
}
.links-hero {
    margin: 15px auto 0 auto;
    width: fit-content;
    text-align: center;
}

/* --- The Vertical Animation --- */
@keyframes scrollVerticalMosaic {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); } /* Loops halfway through the duplicated content */
}

/* --- Mobile Fix: 2 Columns --- */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    .wide, .big { grid-column: span 2; }
}

    .hero-title {
        font-family: var(--font-text);
        font-size: 3rem;
        color: var(--strong-text-color);
        background-color: var(--background-color-secondary);
        width: 80vw;
        padding: 5px 15px;
        text-align: center;
        margin: 0 auto;
        border-radius: 2px 2px 2px 2px;
        z-index: 20;
        cursor: default;
    }
    .hero-subtitle {
        font-family: var(--font-text);
        font-size: 1.5rem;
        color:rgba(0, 0, 0, 0.80);
        background-color: var(--background-color-secondary);
        width: auto;
        padding: 5px 15px;
        text-align: center;
        margin: 0 auto;
        border-radius: 2px 2px 2px 2px;
        z-index: 20;
        cursor: default;
    }
    .links-hero a {
        display: flex;
        letter-spacing: 2px;
        text-shadow: #000000 1px 1px 2px;
        margin-top: 0.8px;
        z-index: 20;
        border-radius: 0% 0% 2px 2px;
        text-align: center;
        color: black;
        flex-direction: column;
        text-decoration: none;
        font-family: var(--font-text);
        background: var(--background-color-secondary);
    }
    .links-hero a:visited {
        color: var(--strong-text-color);
    }
    
    

    /* Projects Section----------------------------------------*/
    .projects {
        height: 100dvh;
        overflow: hidden;
        position :relative;
    }
    .projects-title {
        font-family: var(--font-gotic);
        font-size: 3.2rem;
        text-transform: capitalize;
        color: var(--soft-text-color);
        text-align: center;
        position: absolute;
        z-index: 10;
        background-color: var(--background-color-secondary);
        top: 9dvh;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100vw;
        letter-spacing: 6px;
        padding: 20px 20px;
    }
   .project-slider {
    overflow-x: auto;
    display: flex;
    scrollbar-width: none;
    height: 100dvh;
    width: 100%;
    position: relative;
    scroll-snap-type: x mandatory;
}
.gallery-rail {
    display: flex;
    flex-direction: row;
    height: 100dvh;
}

.gallery-rail img {
    height: 100dvh;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.image-gallery {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    height: 100dvh;
    scroll-behavior: smooth;
    display: flex;
}

.project-card {
    flex: 0 0 90vw; 
    height: 100dvh;
    scroll-snap-align: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 1vw;
}
.card-bg {
    width: 100%;
    height: 100dvh;
    top: 0;
    left: 0;
    position: absolute;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}
.card-content {
    position: absolute;
    z-index: 15;
    text-align: left;
    padding: 100px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    top: 17dvh;
    max-height: 80dvh;
    max-width: 80vw;
    background-color: var(--background-color-secondary);
    }
.card-title {
    font-family: var(--font-gotic);
    font-size: 3rem;
    font-weight: 600;
    color: var(--strong-text-color);
    margin-bottom: 20px;
}
.card-paragraph {
    font-family: var(--font-text);
    font-size: 1.8rem;
    color: var(--strong-text-color);
    line-height: 2.4rem;
    overflow: visible;
    word-wrap: break-word;
}
@media (max-width: 768px) {
    .card-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    .card-paragraph {
        font-size: 1rem;
        line-height: 1.6rem;
    }
    .card-content {
        padding: 40px 20px;
        top: 12dvh;
    }
}
.swipe-hint {
    position: absolute;
    bottom: 70px;
    z-index: 20;
    top: 90%;
    font-size: 4rem;
    color: var(--background-color-secondary);
    background:none;
    border:none;
    cursor: pointer;
    outline: none;
    pointer-events: auto;
    padding: 10px;
}
.swipe-hint.right {
    right: 20px;
    animation: nudgeRight 1.5s ease-in-out infinite;
}
.swipe-hint.left {
    left: 20px;
    animation: nudgeLeft 1.5s ease-in-out infinite;
}
@keyframes nudgeRight {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(-10px);
    }
}
@keyframes nudgeLeft {
    0%, 100% {                      
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(-10px);
    }
}

.faq {
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    padding: 120px 20px 0;
    position: relative;
    height:100dvh;
    overflow: hidden;
}

.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
    width: 100%;
    flex: 1;
    overflow-y: auto;
}

.faq-item {
    border-bottom: 1px solid var(--soft-text-color);
    margin-bottom: 20px;
}

.faq-question {
    font-family: var(--font-gotic);
    font-size: 1.8rem;
    background: none;
    border: none;
    color: var(--strong-text-color);
    text-align: left;
    width: 100%;
    padding: 15px 0;
    cursor: pointer;
}

.faq-answer {
    font-family: var(--font-text);
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-color);
    padding-bottom: 20px;
}
.section-title {
    font-family: var(--font-gotic);
    font-size: 3rem;
    text-transform: capitalize;
    color: var(--soft-text-color);
    text-align: center;
    margin-bottom: 40px;
}
@media (max-width: 768px) {
    .faq {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
        padding-bottom: 40px;
    }
    section#faq {
        height: auto;
        scroll-snap-align: start;
    }
}

/* FOOTER STYLES */
footer {
    margin-top: auto; /* Pushes footer to the bottom of the section */
    padding: 40px 0;
    border-top: 1px solid #eee;
    text-align: center;
}

.footer-content p {
    font-family: var(--font-text);
    font-size: 0.8rem;
    color: var(--soft-text-color);
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    font-family: var(--font-gotic);
    text-decoration: none;
    color: var(--strong-text-color);
    font-size: 1.2rem;
}