:root {
    --bg-dark: #0a0a0a;
    --text-light: #f5f5f7;
    --accent: #ff4d6d;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, .message-text {
    font-family: 'Playfair Display', serif;
}

/* Background Effects */
.stars, .twinkling {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    display: block;
    z-index: -1;
}

.stars {
    background: #000 url('https://raw.githubusercontent.com/WebpageFX/starfield/master/stars.png') repeat top center;
}

.twinkling {
    background: transparent url('https://raw.githubusercontent.com/WebpageFX/starfield/master/twinkling.png') repeat top center;
    animation: move-twink-back 200s linear infinite;
}

@keyframes move-twink-back {
    from {background-position: 0 0;}
    to {background-position: -10000px 5000px;}
}

/* Sections */
.screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Hero Section */
.hero-content {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 2s ease forwards 0.5s;
    background: radial-gradient(circle, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 70%);
    padding: 2rem;
    border-radius: 50%;
}

.title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    margin-bottom: 1rem;
    font-style: italic;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.6;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.8rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}

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

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.message-text {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.6;
    font-style: italic;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Gallery Section */
.media-section {
    padding: 5rem 1rem;
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
    font-style: italic;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.gallery {
    column-count: 3;
    column-gap: 1.5rem;
}

@media (max-width: 900px) {
    .gallery {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .gallery {
        column-count: 1;
    }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.5s ease, filter 0.5s ease, box-shadow 0.5s ease;
}

.gallery-item:hover {
    transform: scale(1) translateY(-5px);
    z-index: 10;
    box-shadow: 0 15px 40px rgba(255, 77, 109, 0.2);
}

.gallery-item img, .gallery-item video {
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.5s ease;
}

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

/* Final Section */
.final-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}
.final-card p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.heart {
    width: 50px;
    height: 50px;
    background: var(--accent);
    position: relative;
    transform: rotate(-45deg);
    margin: 0 auto;
    animation: heartbeat 1.5s infinite;
    box-shadow: 0 0 20px var(--accent);
}

.heart::before,
.heart::after {
    content: "";
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 20px var(--accent);
}

.heart::before {
    top: -25px;
    left: 0;
}

.heart::after {
    top: 0;
    left: 25px;
}

@keyframes heartbeat {
    0% { transform: rotate(-45deg) scale(1); }
    14% { transform: rotate(-45deg) scale(1.3); }
    28% { transform: rotate(-45deg) scale(1); }
    42% { transform: rotate(-45deg) scale(1.3); }
    70% { transform: rotate(-45deg) scale(1); }
}
