:root {
    --bg-color: #050505;
    --text-color: #fcfcfc;
    --accent-color: #ffffff;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    overflow: hidden; /* Hide body scroll, handle scroll in main container */
}

/* Typography elements */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference; /* Ensures text is visible across different photo colors */
    pointer-events: none; /* Let background handle clicks for now, elements can have auto */
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: var(--font-sans);
    pointer-events: auto;
    cursor: pointer;
}

.logo span {
    color: #888;
}

.navbar nav {
    display: flex;
    gap: 3.5rem;
    pointer-events: auto;
}

.navbar nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.navbar nav a:hover {
    opacity: 0.5;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    pointer-events: auto;
}

.menu-icon .bar {
    width: 30px;
    height: 2px;
    background-color: var(--text-color);
    transition: 0.3s ease;
}

.menu-icon:hover .bar {
    width: 45px;
}

/* Main Container with Scroll Snapping */
.scroll-container {
    height: 100vh;
    width: 100vw;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    /* Hide scrollbar for cleaner look */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.scroll-container::-webkit-scrollbar {
    display: none;
}

/* Individual Slides */
.photo-slide {
    position: relative;
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    padding: 0 10vw;
    overflow: hidden;
}

/* Background Image with Ken Burns effect capability */
.photo-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.15);
    transition: transform 12s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Active subtle zoom out */
.photo-slide.active .photo-bg {
    transform: scale(1.02);
}

/* Overlay gradient for readability */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.25) 30%,
        rgba(0, 0, 0, 0.05) 100%
    );
    z-index: 2;
}

/* Content */
.content {
    position: relative;
    z-index: 3;
    max-width: 650px;
}

.category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.title {
    font-size: 6rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
    letter-spacing: -1px;
}

.description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    max-width: 450px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.7s;
}

/* Fade in animations when active */
.photo-slide.active .category,
.photo-slide.active .title,
.photo-slide.active .description {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    mix-blend-mode: difference;
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

.scroll-indicator span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.scroll-indicator .line {
    width: 1px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--text-color);
    animation: scrollLine 2.5s infinite ease-in-out;
}

@keyframes scrollLine {
    0% { top: -100%; }
    50% { top: 0%; }
    100% { top: 100%; }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .title { font-size: 4.5rem; }
    .navbar { padding: 2rem 3rem; }
}

@media (max-width: 768px) {
    .navbar { padding: 1.5rem 2rem; }
    .navbar nav { display: none; }
    .title { font-size: 3.5rem; }
    .photo-slide { padding: 0 2rem; }
    .overlay {
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.4) 40%,
            rgba(0, 0, 0, 0.1) 100%
        );
    }
    .content {
        align-self: flex-end;
        padding-bottom: 8rem;
    }
}
