/* ================================
   ANDREAS LORENZ PHOTOGRAPHY
   ================================ */

:root {
    --color-bg: #0a0a0a;
    --color-bg-card: #111111;
    --color-text: #ffffff;
    --color-text-secondary: #888888;
    --color-text-muted: #555555;
    --color-accent: #ffffff;
    --color-border: #222222;
    --color-overlay: rgba(0, 0, 0, 0.9);

    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --color-bg: #ffffff;
    --color-bg-card: #f5f5f5;
    --color-text: #0a0a0a;
    --color-text-secondary: #666666;
    --color-text-muted: #999999;
    --color-accent: #0a0a0a;
    --color-border: #e0e0e0;
    --color-overlay: rgba(255, 255, 255, 0.95);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

/* ================================
   HEADER
   ================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-bg);
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.logo-first {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.logo-last {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    border-color: var(--color-text-secondary);
}

.menu-bar {
    width: 14px;
    height: 1.5px;
    background-color: var(--color-text-secondary);
    transition: all 0.3s ease;
}

.menu-toggle:hover .menu-bar {
    background-color: var(--color-text);
}

.menu-toggle.active .menu-bar:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-toggle.active .menu-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-bar:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

.theme-toggle {
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: transparent;
    color: var(--color-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    color: var(--color-text);
    border-color: var(--color-text-secondary);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
[data-theme="light"] .theme-toggle .sun-icon { display: block; }
[data-theme="light"] .theme-toggle .moon-icon { display: none; }

/* ================================
   MENU OVERLAY
   ================================ */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: var(--color-overlay);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-nav {
    text-align: center;
}

.menu-links {
    list-style: none;
    margin-bottom: 2rem;
}

.menu-links li {
    margin-bottom: 1rem;
}

.menu-link {
    font-family: var(--font-display);
    font-size: 2.5rem;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
    display: inline-block;
}

.menu-link:hover {
    color: var(--color-text);
}

.menu-about-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    display: inline-block;
}

.menu-about-link:hover {
    color: var(--color-text);
}

/* ================================
   MAIN CONTENT
   ================================ */
.main-content {
    padding-top: 5rem;
}

/* ================================
   COLLECTIONS GRID
   ================================ */
.collections-section {
    padding: 2rem;
}

.collections-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.collection-card {
    position: relative;
    width: 100%;
    aspect-ratio: 21/9;
    overflow: hidden;
    cursor: pointer;
    background: var(--color-bg-card);
    border: 4px solid #000;
    box-shadow: 0 0 0 1px var(--color-border);
}

.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-smooth);
}

.collection-card:hover img {
    transform: scale(1.02);
}

.collection-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.collection-name {
    font-family: var(--font-display);
    font-size: 3rem;
    color: #fff;
    letter-spacing: 0.02em;
}

/* ================================
   ALBUM VIEW
   ================================ */
.album-view {
    display: none;
    padding: 1rem 2rem 2rem;
    min-height: calc(100vh - 5rem);
}

.album-view.active {
    display: block;
}

.album-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: var(--color-text);
}

.back-btn svg {
    width: 18px;
    height: 18px;
}

.album-title {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.02em;
}

/* Gallery */
.gallery {
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    height: 60vh;
}

.gallery-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav:hover {
    color: var(--color-text);
    border-color: var(--color-text-secondary);
}

.gallery-nav svg {
    width: 22px;
    height: 22px;
}

.gallery-prev {
    left: 0;
}

.gallery-next {
    right: 0;
}

.gallery-caption {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    min-height: 1.5em;
}

.gallery-date {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
    min-height: 1.2em;
}

/* Filmstrip */
.filmstrip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}

/* Center items when they don't fill the row; collapse when they overflow
   so scrolling still works (items never get clipped on the left) */
.filmstrip::before,
.filmstrip::after {
    content: '';
    flex: 1;
}

.filmstrip::-webkit-scrollbar {
    height: 6px;
}

.filmstrip::-webkit-scrollbar-track {
    background: transparent;
}

.filmstrip::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}

.filmstrip-item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    border: 3px solid #000;
    box-shadow: 0 0 0 1px var(--color-border);
}

.filmstrip-item:hover {
    opacity: 0.8;
}

.filmstrip-item.active {
    opacity: 1;
    border-color: var(--color-text);
}

.filmstrip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================================
   ABOUT SECTION
   ================================ */
.about-section {
    padding: 6rem 2rem;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

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

.about-name {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.about-role {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.about-bio {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.about-bio .quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.about-bio .quote-author {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ================================
   FOOTER
   ================================ */
.footer {
    padding: 4rem 2rem;
    text-align: center;
}

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

.contact-link {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    padding: 1rem 2rem;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 2rem;
}

.contact-link:hover {
    color: var(--color-text);
    border-color: var(--color-text-secondary);
}

.copyright {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.usage-notice {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ================================
   LIGHTBOX
   ================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--color-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    border-color: var(--color-text);
}

.lightbox-close svg {
    width: 20px;
    height: 20px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    border-color: var(--color-text);
}

.lightbox-nav svg {
    width: 22px;
    height: 22px;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
}

#lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-caption {
    text-align: center;
    margin-top: 1rem;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {
    .header {
        padding: 1rem 1.25rem;
    }

    .main-content {
        padding-top: 4rem;
    }

    .collections-section {
        padding: 1.25rem;
    }

    .collections-section {
        padding: 1.25rem;
    }

    .collections-grid {
        gap: 1.5rem;
    }

    .collection-card {
        aspect-ratio: 3/4;
    }

    .collection-info {
        padding: 2rem;
    }

    .collection-name {
        font-size: 2.5rem;
    }

    .album-view {
        padding: 1rem 1.25rem;
    }

    .gallery-main {
        height: 50vh;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
    }

    .gallery-nav svg {
        width: 18px;
        height: 18px;
    }

    .filmstrip-item {
        width: 60px;
        height: 60px;
    }

    .about-section {
        padding: 4rem 1.25rem;
    }

    .footer {
        padding: 3rem 1.25rem;
    }

    .menu-link {
        font-size: 2rem;
    }

    .lightbox-prev { left: 0.75rem; }
    .lightbox-next { right: 0.75rem; }
}
