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

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(180deg, #1e3a5f 0%, #2c4a70 100%);
    color: #a1c4e7;
    overflow-x: hidden;
    cursor: default;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(161, 196, 231, 0.4);
    border-radius: 50%;
    animation: drift linear infinite;
}

@keyframes drift {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(50px);
        opacity: 0;
    }
}

.mist {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(44, 74, 112, 0.3) 0%, transparent 70%);
    animation: mistMove 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes mistMove {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    50% { transform: translate(30px, -20px) scale(1.1); opacity: 0.5; }
}

section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    padding: 40px 20px;
}

.landing {
    flex-direction: column;
    text-align: center;
}

.landing h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: #7aa7c7;
    text-shadow: 0 0 30px rgba(122, 167, 199, 0.5);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInGlow 2s ease-out forwards;
    letter-spacing: 2px;
}

@keyframes fadeInGlow {
    to {
        opacity: 1;
    }
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #a1c4e7;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInGlow 2s ease-out 0.3s forwards;
    font-style: italic;
}

.timer-container {
    margin: 40px 0;
    opacity: 0;
    animation: fadeInGlow 2s ease-out 0.6s forwards;
}

.timer {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: #d4af37;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.timer-label {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: #7aa7c7;
    font-style: italic;
}

.orb {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #a1c4e7, #7aa7c7);
    box-shadow: 0 0 40px rgba(122, 167, 199, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite, fadeInGlow 2s ease-out 1s forwards;
    opacity: 0;
    font-size: 0.9rem;
    color: #1e3a5f;
    font-weight: bold;
    text-align: center;
    padding: 20px;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.orb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 60px rgba(122, 167, 199, 0.9), inset 0 0 30px rgba(255, 255, 255, 0.3);
}

.interactive {
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.secret-item {
    margin: 60px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.secret-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.secret-trigger {
    display: inline-block;
    padding: 15px 30px;
    background: rgba(122, 167, 199, 0.2);
    border: 2px solid #7aa7c7;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    color: #a1c4e7;
}

.secret-trigger:hover {
    background: rgba(122, 167, 199, 0.4);
    box-shadow: 0 0 20px rgba(122, 167, 199, 0.5);
    transform: scale(1.05);
}

.secret-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s ease;
    margin-top: 20px;
}

.secret-content.active {
    max-height: 500px;
}

.secret-text {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    line-height: 1.8;
    color: #a1c4e7;
    text-align: center;
    padding: 20px;
    background: rgba(30, 58, 95, 0.4);
    border-left: 3px solid #d4af37;
    border-radius: 5px;
}

.message-section {
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
}

.message-intro {
    font-size: clamp(1.3rem, 3vw, 2rem);
    color: #7aa7c7;
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.6;
}

.card {
    margin: 40px 0;
    padding: 30px;
    background: rgba(30, 58, 95, 0.3);
    border-left: 4px solid #7aa7c7;
    border-radius: 5px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.card.visible {
    opacity: 1;
    transform: translateX(0);
}

.card p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.9;
    color: #a1c4e7;
    margin-bottom: 15px;
}

.card .highlight {
    color: #d4af37;
}

.constellation {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.stars-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 40px 0;
}

.star {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #7aa7c7;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(122, 167, 199, 0.6);
    opacity: 0;
    animation: starFloat 4s ease-in-out infinite;
}

@keyframes starFloat {
    0%, 100% { 
        opacity: 0.4; 
        transform: translateY(0) scale(1); 
    }
    50% { 
        opacity: 0.8; 
        transform: translateY(-15px) scale(1.1); 
    }
}

.constellation-message {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #7aa7c7;
    text-align: center;
    margin-top: 40px;
    opacity: 0;
    animation: fadeInGlow 3s ease-out 2s forwards;
    max-width: 600px;
    line-height: 1.6;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10;
}

@keyframes pulseGlow {
    0%, 100% { text-shadow: 0 0 30px rgba(212, 175, 55, 0.6); }
    50% { text-shadow: 0 0 50px rgba(212, 175, 55, 0.9); }
}

.birthday-special {
    animation: pulseGlow 2s ease-in-out infinite !important;
    color: #d4af37 !important;
}

.valentine-link {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 20;
    text-decoration: none;
}

.valentine-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #b63a58, #e06b7f);
    color: #f7e7ee;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 24px rgba(182, 58, 88, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.valentine-button::before,
.valentine-button::after {
    content: "❤";
    font-size: 0.85rem;
    color: #ffd6de;
    opacity: 0.9;
}

.valentine-button::after {
    color: #ffeef2;
}

.valentine-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 30px rgba(224, 107, 127, 0.5);
}

.valentine-button {
    animation: heartPulse 2.6s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@media (max-width: 600px) {
    .valentine-link {
        top: 16px;
        right: 16px;
    }

    .valentine-button {
        font-size: 0.8rem;
        padding: 8px 14px;
    }
}
