:root {
    --ink: #1a1a1a;
    --paper: #fdfbf7;
    --accent: #d4621f;
    --sage: #8b9d83;
    --shadow: rgba(0, 0, 0, 0.08);
    --serif: 'Cormorant Garamond', serif;
    --sans: 'DM Sans', sans-serif;
}

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

body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Image Protection */
img {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

/* Disable text selection on image containers */
.gallery-item,
.collection-card,
.lightbox-content {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: var(--paper);
    box-shadow: 0 2px 10px var(--shadow);
}

nav.transparent {
    background: linear-gradient(to bottom, var(--paper) 0%, transparent 100%);
    box-shadow: none;
}

.logo {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}

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

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

.nav-link:hover {
    color: var(--accent);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
}

.back-link::before {
    content: '←';
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--sage) 0%, var(--accent) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grain" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><rect width="100" height="100" fill="%23000"/><g opacity="0.15"><circle cx="10" cy="10" r="1" fill="%23fff"/><circle cx="50" cy="40" r="1" fill="%23fff"/><circle cx="80" cy="70" r="1" fill="%23fff"/><circle cx="30" cy="80" r="1" fill="%23fff"/><circle cx="70" cy="20" r="1" fill="%23fff"/></g></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.4;
    mix-blend-mode: overlay;
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1.2s ease-out;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 300;
    color: var(--paper);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 0.95;
}

.hero .subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--paper);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--paper);
    color: var(--ink);
    text-decoration: none;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 2px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-indicator::after {
    content: '↓';
    font-size: 2rem;
    color: var(--paper);
    opacity: 0.7;
}

/* Collections Container */
.collections-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.page-title {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease-out;
}

.page-description {
    font-size: 1.125rem;
    color: #666;
    max-width: 600px;
    margin-bottom: 4rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

/* Collections Grid */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.collection-card {
    position: relative;
    height: 450px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    animation: fadeInUp 0.8s ease-out backwards;
    text-decoration: none;
}

.collection-card:nth-child(1) { animation-delay: 0.2s; }
.collection-card:nth-child(2) { animation-delay: 0.3s; }
.collection-card:nth-child(3) { animation-delay: 0.4s; }
.collection-card:nth-child(4) { animation-delay: 0.5s; }
.collection-card:nth-child(5) { animation-delay: 0.6s; }
.collection-card:nth-child(6) { animation-delay: 0.7s; }

.collection-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.collection-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.collection-card:hover .collection-image {
    transform: scale(1.1);
}

.collection-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transition: background 0.4s ease;
}

.collection-card:hover .collection-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.collection-count {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.collection-title {
    font-family: var(--serif);
    font-size: 2.5rem;
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.collection-description {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.05s, opacity 0.4s ease 0.05s;
}

.collection-card:hover .collection-count,
.collection-card:hover .collection-description {
    transform: translateY(0);
    opacity: 1;
}

.view-arrow {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.collection-card:hover .view-arrow {
    opacity: 1;
    transform: scale(1);
}

/* Gallery Container */
.gallery-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.gallery-header {
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

.breadcrumb {
    font-size: 0.875rem;
    color: #999;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.gallery-title {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.gallery-description {
    font-size: 1.125rem;
    color: #666;
    max-width: 600px;
    line-height: 1.8;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

.gallery-grid.masonry {
    grid-auto-rows: 250px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    background: #f5f5f5;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    animation: fadeInUp 0.6s ease-out backwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.15s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
.gallery-item:nth-child(4) { animation-delay: 0.25s; }
.gallery-item:nth-child(5) { animation-delay: 0.3s; }
.gallery-item:nth-child(6) { animation-delay: 0.35s; }
.gallery-item:nth-child(7) { animation-delay: 0.4s; }
.gallery-item:nth-child(8) { animation-delay: 0.45s; }
.gallery-item:nth-child(9) { animation-delay: 0.5s; }
.gallery-item:nth-child(10) { animation-delay: 0.55s; }
.gallery-item:nth-child(11) { animation-delay: 0.6s; }
.gallery-item:nth-child(12) { animation-delay: 0.65s; }

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item:nth-child(3n+1) { grid-row: span 2; }
.gallery-item:nth-child(5n) { grid-column: span 2; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

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

.photo-title {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: white;
    font-weight: 600;
    margin-bottom: 0.25rem;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-info {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.05s;
}

.photo-description {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
    margin-top: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.05s;
}

.gallery-item:hover .photo-title,
.gallery-item:hover .photo-info,
.gallery-item:hover .photo-description {
    transform: translateY(0);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -3rem;
    right: 0;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-info {
    color: white;
    margin-top: 1.5rem;
    text-align: center;
}

.lightbox-info h3 {
    font-family: var(--serif);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.lightbox-info p {
    font-size: 0.875rem;
    opacity: 0.7;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
    border-radius: 4px;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
}

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

/* Footer */
footer {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--ink);
    color: var(--paper);
    margin-top: 4rem;
}

footer p {
    font-family: var(--serif);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

footer .credits {
    font-size: 0.875rem;
    opacity: 0.6;
    letter-spacing: 0.05em;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Responsive */
@media (max-width: 768px) {
    .collections-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .collection-card {
        height: 400px;
    }

    .collection-title {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-grid.masonry {
        grid-auto-rows: 300px;
    }

    .gallery-item:nth-child(n) {
        grid-row: span 1;
        grid-column: span 1;
    }

    .lightbox-nav {
        padding: 0.75rem 1rem;
        font-size: 1.5rem;
    }

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