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

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

body {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    line-height: 1.6;
    color: #333;
    background: #000;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.container {
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
}

.screen {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    padding: 2rem;
}

.content {
    max-width: 600px;
    width: 100%;
    text-align: center;
    z-index: 2;
    position: relative;
}

/* Screen 1: Welcome */
.screen-1 {
    background: #2a4f48;
    color: white;
}

.hero-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
    z-index: 5;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 1s forwards;
    z-index: 5;
}

.scroll-indicator {
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.5s forwards;
    z-index: 10;
}

.scroll-indicator span {
    font-size: 0.9rem;
    opacity: 0.8;
    display: block;
    margin-bottom: 0.5rem;
}

.arrow-down {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

/* Screen 2: About Us */
.screen-2 {
    background: #663399;
    color: white;
}

.section-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 600;
    margin-bottom: 2rem;
}

.section-text {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 3rem;
    line-height: 1.7;
    opacity: 0.95;
}

.stats {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Screen 3: Memories */
.screen-3 {
    background: #262952;
    color: white;
}

.memory-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.memory-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.memory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.memory-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.memory-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Screen 4: Adventures */
.screen-4 {
    background: #4e75c1;
    color: white;
}

.adventure-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.adventure-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.adventure-item:hover {
    transform: translateX(10px);
}

.adventure-icon {
    font-size: 2rem;
    min-width: 2rem;
}

.adventure-text {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Screen 5: Dreams */
.screen-5 {
    background: white;
    color: #333;
}

.dream-container {
    margin-top: 2rem;
    display: grid;
    gap: 2rem;
}

.dream-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.screen-5 .dream-item {
    background: white;
    color: black;
}

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

.dream-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #333;
}

.dream-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* Screen 6: Love Notes */
.screen-6 {
    background: #2a4f48;
    color: white;
}

.love-notes {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.note {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    position: relative;
    font-style: italic;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.note:hover {
    transform: rotate(1deg);
}

.note::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -10px;
    left: 20px;
    color: rgba(255, 255, 255, 0.3);
    font-family: "Playfair Display", serif;
}

.note p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-left: 2rem;
}

/* Screen 6-12: Image Galleries */
.image-gallery-two {
    margin-top: 2rem;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr 1fr;
}

.image-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.screen-5 .dream-item,
.screen-5 .image-item,
.screen-10 .image-item,
.screen-15 .timeline-item,
.screen-15 .image-item {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.screen-5 .dream-item h3,
.screen-5 .dream-item p,
.screen-5 .image-item p,
.screen-10 .image-item p,
.screen-15 .timeline-date,
.screen-15 .timeline-event,
.screen-15 .image-item p {
    color: #333;
}

.image-item:hover {
    transform: translateY(-5px);
}

.image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.image-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.3;
}

/* Screen 7: Images 3-4 */
.screen-7 {
    background: #663399;
    color: white;
}

/* Screen 8: Images 5-6 */
.screen-8 {
    background: #262952;
    color: white;
}

/* Screen 9: Images 7-8 */
.screen-9 {
    background: #4e75c1;
    color: white;
}

/* Screen 10: Images 9-10 */
.screen-10 {
    background: white;
    color: #333;
}

/* Screen 11: Images 11-12 */
.screen-11 {
    background: #2a4f48;
    color: white;
}

/* Screen 12: Images 13-14 */
.screen-12 {
    background: #663399;
    color: white;
}

/* Screen 13: Images 15-16 */
.screen-13 {
    background: #262952;
    color: white;
}

/* Screen 14: Images 17-18 */
.screen-14 {
    background: #4e75c1;
    color: white;
}

/* Screen 15: Future Plans */
.screen-15 {
    background: white;
    color: #333;
}

.timeline {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.timeline-item:hover {
    transform: translateY(-10px);
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.timeline-event {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.5;
}

/* Screen 16: Forever */
.screen-16 {
    background: #2a4f48;
    color: white;
}

.heart {
    font-size: 4rem;
    margin: 2rem 0;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.final-message {
    font-size: clamp(1rem, 3vw, 1.3rem);
    font-weight: 300;
    opacity: 0.9;
    margin-top: 2rem;
    font-style: italic;
}

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

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

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .screen {
        padding: 1.5rem;
    }

    .content {
        max-width: 100%;
    }

    .stats {
        flex-direction: column;
        gap: 1rem;
    }

    .adventure-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .timeline-item {
        padding: 1.5rem;
    }

    .note {
        padding: 1.5rem;
    }

    .note p {
        margin-left: 1rem;
    }

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

    .image-item {
        padding: 1rem;
    }

    .image-item img {
        height: 250px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .memory-card:active {
        transform: translateY(-5px);
    }

    .adventure-item:active {
        transform: translateX(10px);
    }

    .dream-item:active {
        transform: scale(1.05);
    }

    .timeline-item:active {
        transform: translateY(-10px);
    }
}

/* Smooth scroll for webkit browsers */
.container {
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar but keep functionality */
.container::-webkit-scrollbar {
    display: none;
}

.container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
