@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,400..900&family=Montserrat:wght@400;600&display=swap');

:root {
    --bg-color: #df2b4a;
    --text-color: #fceecb;
    --font-serif: 'Bodoni Moda', serif;
    --font-sans: 'Montserrat', sans-serif;
}

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

body, html {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scroll Spacer */
.scroll-container {
    height: 1000vh; /* Extended scrolling */
    width: 100%;
    position: relative;
    top: 0;
    left: 0;
    z-index: -10; /* Ensure strictly behind */
    pointer-events: none;
}

.hero {
    position: fixed; /* Fixed view for scrollytelling */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Texture Pattern Overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* SVG Noise Filter */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.08; /* Subtle grain */
    mix-blend-mode: soft-light; /* Blend with red background */
    pointer-events: none;
}

/* Refined Arch Section with clean image */
.arch-container {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 600px;
    background-image: url('jj.png');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    border-radius: 200px 200px 0 0;
    z-index: 1;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

/* Red Overlay for Arch to ensure tone matching */
.arch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 40%, var(--bg-color) 110%);
    opacity: 0.2;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.top-line {
    position: absolute;
    top: 30%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15%;
}

.top-line span {
    font-size: 14px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    font-weight: 600;
}

.main-title {
    font-family: var(--font-serif);
    font-size: clamp(100px, 20vw, 300px);
    text-transform: uppercase;
    font-weight: 300;
    -webkit-text-stroke: 2px currentColor; /* Artificially thicken the font */
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    line-height: 1;
    margin-top: 5vh;
}

.o-char {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.star-icon {
    position: absolute;
    width: 0.25em;
    height: 0.25em;
    color: var(--text-color);
}

.subtitle {
    font-size: clamp(20px, 4vw, 60px);
    letter-spacing: 0.5em;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: -0.1em;
}

.scroll-indicator {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 0.2em;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

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

/* Mobile Adjustments */
@media (max-width: 768px) {
    .arch-container {
        width: 300px;
        height: 450px;
        border-radius: 150px 150px 0 0; /* Match scale */
        top: 45%; /* Adjust vertical position for mobile */
    }
    .top-line { 
        top: 15%; 
        padding: 0 5%;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .top-line span {
        font-size: 10px;
        letter-spacing: 0.2em;
    }
    .main-title { 
        font-size: 15vw; /* Responsive scaling */
        margin-top: 0;
    }
    .subtitle { 
        font-size: 4vw; 
        margin-top: 0;
        letter-spacing: 0.3em;
    }
    .scroll-indicator {
        font-size: 10px;
        bottom: 3vh;
    }
}

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

@keyframes archEntrance {
    from {
        opacity: 0;
        transform: translate(-50%, -40%); /* Start slightly lower */
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 0.8; }
}

.arch-container {
    /* Existing props... */
    animation: archEntrance 1.2s ease-out forwards;
}

.top-line span {
    opacity: 0; /* hidden initially */
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.main-title {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.4s forwards;
}

.subtitle {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.6s forwards;
}

.scroll-indicator {
    /* Keep existing positioning/styling... override opacity/animation */
    opacity: 0;
    /* Combine bounce (infinite) with delayed entrance */
    animation: bounce 2s infinite 2.5s, fadeIn 1s ease-out 2.5s forwards;
}

/* Scroll Animation Styles (Restored) */
.default-content {
    transition: opacity 0.8s ease;
    opacity: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.scroll-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    font-family: var(--font-serif);
    font-size: clamp(30px, 5vw, 60px);
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
    line-height: 1.2;
    padding: 0 20px;
    text-align: center;
    -webkit-text-stroke: 1px currentColor;
}

.scroll-message.visible {
    opacity: 1;
    pointer-events: auto;
}
