/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #fafafa;
    --text: #1a1a1a;
    --text-secondary: #666;
    --border: #e5e5e5;
    --hover: #f0f0f0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(10px);
}

.nav-brand a {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 48px;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 300;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ===== Albums Section ===== */
.albums-section {
    padding: 80px 48px 120px;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 64px;
}

.section-title {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-count {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== Albums Grid ===== */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.album-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
    background: var(--border);
}

.album-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.album-item:hover img {
    transform: scale(1.05);
}

.album-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

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

.album-info h3 {
    color: white;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
}

.album-info span {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

/* ===== Album Detail Modal ===== */
.album-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--bg);
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.album-modal.active {
    transform: translateY(0);
}

.modal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(10px);
}

.modal-back {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

.modal-title {
    font-size: 24px;
    font-weight: 300;
}

.modal-photos {
    padding: 48px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.modal-photo {
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
}

.modal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.modal-photo:hover img {
    transform: scale(1.03);
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

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

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 32px;
    cursor: pointer;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ===== About ===== */
.about-section {
    padding: 120px 48px;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.about-title {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 32px;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ===== Footer ===== */
.footer {
    padding: 48px;
    border-top: 1px solid var(--border);
}

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

.footer-brand {
    font-size: 16px;
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copy {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav {
        padding: 16px 24px;
    }
    
    .hero {
        padding: 120px 24px;
    }
    
    .albums-section {
        padding: 60px 24px 80px;
    }
    
    .albums-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-header {
        padding: 16px 24px;
    }
    
    .modal-photos {
        padding: 24px;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
