/* ===== CSS Variables ===== */
:root {
    --color-bg: #0a0a0a;
    --color-bg-secondary: #111111;
    --color-text: #ffffff;
    --color-text-muted: #888888;
    --color-accent: #6366f1;
    --color-accent-hover: #818cf8;
    --font-primary: 'Space Grotesk', sans-serif;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    transition: background-color 0.3s var(--transition-smooth);
}

.nav.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
}

.logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s var(--transition-smooth);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-text);
    transition: width 0.3s var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.4) 0%,
        rgba(10, 10, 10, 0.6) 50%,
        rgba(10, 10, 10, 0.9) 100%
    );
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1s var(--transition-smooth);
}

.hero-logo {
    max-width: clamp(200px, 40vw, 400px);
    height: auto;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.2));
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s var(--transition-smooth);
}

.hero-cta:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
}

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

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--color-text-muted);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

/* ===== Collections Section ===== */
.collections {
    padding: 8rem 4rem;
    background-color: var(--color-bg);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 4rem;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.collection-card {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.card-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

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

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 0.9) 0%,
        rgba(10, 10, 10, 0.3) 40%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transition: background 0.3s var(--transition-smooth);
}

.collection-card:hover .card-overlay {
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(10, 10, 10, 0.5) 50%,
        rgba(10, 10, 10, 0.2) 100%
    );
}

.card-overlay h3 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    transform: translateY(10px);
    opacity: 0.9;
    transition: all 0.3s var(--transition-smooth);
}

.collection-card:hover .card-overlay h3 {
    transform: translateY(0);
    opacity: 1;
}

.card-overlay p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s var(--transition-smooth) 0.1s;
}

.collection-card:hover .card-overlay p {
    transform: translateY(0);
    opacity: 1;
}

/* ===== About Section ===== */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    background-color: var(--color-bg-secondary);
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 6rem;
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.about-video {
    position: relative;
    overflow: hidden;
}

.about-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Footer ===== */
.footer {
    padding: 4rem;
    background-color: var(--color-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    height: 30px;
    opacity: 0.6;
    transition: opacity 0.3s var(--transition-smooth);
}

.footer-logo:hover {
    opacity: 1;
}

.footer-content p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ===== Collection Page Styles ===== */
.collection-header {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.collection-header-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.collection-header-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.collection-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 1) 0%,
        rgba(10, 10, 10, 0.5) 50%,
        rgba(10, 10, 10, 0.3) 100%
    );
    z-index: -1;
}

.collection-header-content {
    padding: 4rem;
    z-index: 1;
}

.collection-header-content h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.collection-header-content p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
}

/* ===== Gallery Grid ===== */
.gallery {
    padding: 4rem;
    background-color: var(--color-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

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

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0);
    transition: background 0.3s var(--transition-smooth);
}

.gallery-item:hover::after {
    background: rgba(10, 10, 10, 0.2);
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--transition-smooth);
}

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

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

.lightbox-content img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: opacity 0.3s var(--transition-smooth);
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--color-text);
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background 0.3s var(--transition-smooth);
}

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

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ===== Back Link ===== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    transition: color 0.3s var(--transition-smooth);
}

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

.back-link svg {
    width: 16px;
    height: 16px;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0;
    }
}

/* ===== Fade In Animation for Elements ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .nav {
        padding: 1.5rem 2rem;
    }

    .collections {
        padding: 6rem 2rem;
    }

    .about {
        grid-template-columns: 1fr;
    }

    .about-content {
        padding: 4rem 2rem;
    }

    .about-video {
        height: 50vh;
    }

    .collection-header-content {
        padding: 2rem;
    }

    .gallery {
        padding: 2rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1.5rem;
    }

    .collections-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

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

@media (max-width: 480px) {
    .nav {
        padding: 1rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .hero-title {
        letter-spacing: 0.15em;
    }

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