/* Local Fonts */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('assets/fonts/CormorantGaramond-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/CormorantGaramond-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/CormorantGaramond-SemiBold.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('assets/fonts/Inter-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/Inter-Regular.ttf') format('truetype');
}

:root {
    /* Light Mode Variables (Default) */
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --accent-color: #555555;
    --secondary-text: #4b5563;
    --header-bg: rgba(255, 255, 255, 0.98);
    --section-bg: #f9f9f9;
    --card-shadow: rgba(0, 0, 0, 0.05);
    --overlay-bg: rgba(255, 255, 255, 0.8);
    --lightbox-bg: rgba(255, 255, 255, 0.98);
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Dark Mode Variables */
        --bg-color: #121212;
        --text-color: #e0e0e0;
        --accent-color: #a0a0a0;
        --secondary-text: #d1d5db;
        --header-bg: rgba(18, 18, 18, 0.98);
        --section-bg: #1e1e1e;
        --card-shadow: rgba(0, 0, 0, 0.3);
        --overlay-bg: rgba(0, 0, 0, 0.8);
        --lightbox-bg: rgba(18, 18, 18, 0.98);
        --hamburger-color: #e0e0e0;
    }
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    z-index: 9999;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--card-shadow);
    transition: background-color 0.3s ease;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.logo a {
    color: var(--text-color) !important;
}

.logo-img {
    height: 40px;
    width: auto;
    filter: invert(1) brightness(2);
    transition: filter 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    .logo-img {
        filter: none;
    }
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--accent-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10001;
    color: var(--hamburger-color);
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(0.65rem);
}

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

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

/* Mobile Navigation */
@media (max-width: 850px) {
    .hamburger {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: var(--header-bg);
        backdrop-filter: blur(10px);
        box-shadow: -2px 0 10px var(--card-shadow);
        transition: right 0.3s ease;
        z-index: 10000;
        padding-top: 80px;
    }

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

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 2rem;
    }

    .main-nav li {
        border-bottom: 1px solid rgba(128, 128, 128, 0.1);
    }

    .main-nav a {
        display: block;
        padding: 1rem 0;
        font-size: 1rem;
    }
}

/* Hero */
.hero {
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    color: var(--accent-color);
    letter-spacing: 0.05em;
}

/* Gallery */
.gallery-section {
    padding: 4rem;
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 2rem 1rem;
        /* 32px oben/unten, 16px links/rechts */
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 400;
}

/* Filter Buttons */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--text-color);
    background: transparent;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.filter-btn.active {
    background: var(--text-color);
    color: var(--bg-color);
}

/* About Page Styles */
.about-page-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 120px 2rem 4rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@media (min-width: 1024px) {
    .about-page-container {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 5rem;
        padding-top: 160px;
    }

    .about-visuals {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        flex: 0 0 40%;
        align-items: center;
        position: sticky;
        top: 120px;
        height: calc(100vh - 120px);
        justify-content: center;
        overflow: hidden;
        order: 1;
    }

    .about-text-card {
        flex: 1;
        padding: 0;
        order: 2;
    }
}

.about-visuals {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    align-items: center;
}

.visual-card {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 300px;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px var(--card-shadow);
    transition: transform 0.5s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.about-text-card {
    flex: 1;
    padding: 0;
}

.about-text-card h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 2rem;
    margin-top: 0;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.text-content p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-bottom: 1.8rem;
    line-height: 1.8;
    font-weight: 300;
    text-align: justify;
}

/* About Section on Home */
.about-section {
    padding: 6rem 4rem;
    background-color: var(--section-bg);
    text-align: center;
    transition: background-color 0.3s ease;
}

.about-content {
    max-width: 600px;
    margin: 0 auto;
}

.about-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Contact */
.contact-section {
    padding: 6rem 4rem;
    text-align: center;
}

.contact-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.email-link {
    font-size: 1.2rem;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 2px;
    transition: opacity 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.email-link:hover {
    opacity: 0.6;
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--accent-color);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--lightbox-bg);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    box-shadow: 0 10px 30px var(--card-shadow);
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--text-color);
    padding: 20px 0;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--text-color);
    font-size: 40px;
    font-weight: 100;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: var(--accent-color);
}

/* Lightbox Carousel */
.lightbox-carousel {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.lightbox-carousel-track {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-slide.active {
    opacity: 1;
    z-index: 1;
}

.lightbox-slide img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 10px 30px var(--card-shadow);
}

.lightbox-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: #fff;
    font-size: 3rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s;
    border-radius: 4px;
    backdrop-filter: blur(5px);
    line-height: 1;
}

.lightbox-carousel-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #000;
}

.lightbox-carousel-btn.prev {
    left: 1rem;
}

.lightbox-carousel-btn.next {
    right: 1rem;
}

.lightbox-carousel-indicators {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.lightbox-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(128, 128, 128, 0.3);
    border: 1px solid var(--text-color);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.lightbox-indicator.active {
    background: var(--text-color);
    transform: scale(1.3);
}



/* Scroll Reveal Animation Section */
.scroll-reveal-section {
    padding: 6rem 4rem;
    background-color: var(--section-bg);
    overflow: hidden;
}

.scroll-reveal-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    min-height: 400px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.scroll-reveal-image {
    position: relative;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 1.2s ease;
}

.scroll-reveal-section.active .scroll-reveal-image {
    transform: translateX(0);
    opacity: 1;
}

.scroll-reveal-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px var(--card-shadow);
}

.scroll-reveal-text {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1.2s ease 0.6s, transform 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.6s;
}

.scroll-reveal-section.active .scroll-reveal-text {
    opacity: 1;
    transform: scale(1);
}

.scroll-reveal-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.scroll-reveal-text p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--secondary-text);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .scroll-reveal-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .scroll-reveal-section.active .scroll-reveal-image {
        transform: translateX(0);
    }

    .scroll-reveal-text {
        transition-delay: 0.4s;
    }
}

.insights-intro {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 3rem;
}

/* Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 700px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 10px 30px var(--card-shadow);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.carousel-button:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #000;
}

.carousel-button.prev {
    left: 1rem;
}

.carousel-button.next {
    right: 1rem;
}

.carousel-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

@media (prefers-color-scheme: dark) {
    .carousel-counter {
        background: rgba(18, 18, 18, 0.9);
    }
}

/* Old indicator styles - kept for compatibility but hidden */
.carousel-indicators {
    display: none;
}

.indicator {
    display: none;
}


/* Animated Scroll Section */
.animated-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

.animated-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.animated-image-wrapper {
    position: relative;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 1s ease-out, opacity 1s ease-out;
}

.animated-section.visible .animated-image-wrapper {
    transform: translateX(0);
    opacity: 1;
}

.animated-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px var(--card-shadow);
}

.animated-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out 0.5s, transform 1s ease-out 0.5s;
}

.animated-section.visible .animated-text {
    opacity: 1;
    transform: translateY(0);
}

.animated-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.animated-text p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--secondary-text);
}

@media (max-width: 768px) {
    .animated-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .animated-image-wrapper {
        transform: translateX(0);
        opacity: 1;
    }

    .animated-section.visible .animated-image-wrapper {
        transform: scale(1.05);
    }
}

/* In Progress Page */
.inprogress-page-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 120px 2rem 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    animation: fadeIn 1s ease-out forwards;
}

.inprogress-visuals {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.inprogress-content {
    width: 100%;
    text-align: center;
}

.inprogress-content h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.inprogress-content p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.work-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 30px var(--card-shadow);
    border-radius: 4px;
    overflow: hidden;
}

.inprogress-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.inprogress-image:hover {
    transform: scale(1.02);
}

@media (min-width: 1024px) {
    .inprogress-page-container {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
        padding-top: 160px;
    }

    .inprogress-visuals {
        flex: 1;
        justify-content: flex-end;
        order: 1;
    }

    .inprogress-content {
        flex: 1;
        text-align: left;
        order: 2;
    }

    .work-container {
        margin: 0;
    }
}