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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    background: #000300;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body.loaded {
    opacity: 1;
}

/* Video Background */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    background: #000300;
    /* darken the video without affecting transparency of children */
    filter: brightness(55%);
    opacity: 1;
    transition: opacity 0.5s ease;
}

.video-bg.loaded {
    opacity: 1;
}

/* Film Grain Overlay */
.film-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('film/texture.png');
    background-size: cover;
    background-repeat: repeat;
    background-position: center;
    pointer-events: none;
    z-index: -1;
    opacity: 0.7;
}


@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 6%;
    left: 6%;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    z-index: 30;
}

.nav-item {
    color: #FEC307;
    font-family: 'Arial';
    font-size: 1.5rem;
    font-weight: 100;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: -0.04em;
    transition: opacity 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.8);
}

.nav-item:hover {
    opacity: 0.7;
}

.nav-item.active {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

/* Scroll Snap Sections */
.scroll-section {
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Main Content */
.main-content {
    position: relative;
    text-align: center;
    width: 85%;
    max-width: 900px;
    z-index: 10;
}

.logo {
    max-width: 700px;
    width: 100%;
    height: auto;
    margin-bottom: 1.5em;
    filter: drop-shadow(0 0 15px rgba(254, 195, 7, 0.4));
}

/* About Text Section */
.about-content {
    max-width: 800px;
    width: 85%;
    text-align: left;
}

.text-group {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease;
    margin-bottom: 4rem;
}

.text-group:last-child {
    margin-bottom: 0;
}

.text-group.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.about-text {
    color: #FEC307;
    text-align: center;
    font-family: 'Arial';
    font-size: 1.5rem;
    font-weight: 100;
    font-style: normal;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* About Progress Bar */
.about-progress-bar {
    position: fixed;
    right: 6%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.about-progress-bar.visible {
    opacity: 1;
    pointer-events: auto;
}

.progress-line {
    position: absolute;
    width: 2px;
    height: calc(100% - 40px);
    background: rgba(254, 195, 7, 0.3);
    top: 20px;
}

.progress-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(254, 195, 7, 0.3);
    border: 2px solid rgba(254, 195, 7, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    position: relative;
    z-index: 1;
    transform: scale(1);
}

.progress-circle:hover:not(.active) {
    transform: scale(1.3);
    background: rgba(254, 195, 7, 0.6);
    border-color: rgba(254, 195, 7, 0.6);
}

.progress-circle.active {
    background: #FEC307;
    border-color: #FEC307;
    box-shadow: 0 0 10px rgba(254, 195, 7, 0.5);
    transform: scale(1.5);
    animation: circlePulse 0.6s ease-out;
}

@keyframes circlePulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.5);
    }
}

.progress-circle.completed {
    background: rgba(254, 195, 7, 0.5);
    border-color: rgba(254, 195, 7, 0.5);
}

/* Subtitle Container */
.subtitle-container {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 900px;
    text-align: center;
    z-index: 10;
    height: 2em;
    overflow: hidden;
}

.subtitle {
    color: #FEC307;
    font-family: 'Arial';
    font-size: 1.5rem;
    font-style: italic;
    letter-spacing: -0.04em;
    line-height: 1.8;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.9);
    opacity: 0;
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.subtitle-1 {
    animation: cycleSubtitles 15s infinite;
}

.subtitle-2 {
    animation: cycleSubtitles 15s infinite 3s;
}

.subtitle-3 {
    animation: cycleSubtitles 15s infinite 6s;
}

.subtitle-4 {
    animation: cycleSubtitles 15s infinite 9s;
}

.subtitle-5 {
    animation: cycleSubtitles 15s infinite 12s;
}

@keyframes cycleSubtitles {
    0%, 15% {
        opacity: 0;
    }
    15%, 20% {
        opacity: 1;
    }
    20%, 100% {
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        left: 5%;
        gap: 1em;
    }
    
    .nav-item {
        font-size: 0.9rem;
    }
    
    .logo {
        max-width: 300px;
        margin-bottom: 1em;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .main-content {
        width: 90%;
    }
    
    .about-content {
        width: 90%;
    }
    
    .about-text {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 250px;
    }
    
    .subtitle {
        font-size: 0.85rem;
    }
    
    .about-text {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
}