:root {
    --bg-color: #fff0f5; /* Soft lavender blush */
    --primary: #ffb6c1; /* Baby pink */
    --secondary: #e6e6fa; /* Lavender */
    --accent: #ffdac1; /* Pastel peach */
    --text-main: #4a4a4a;
    --white: rgba(255, 255, 255, 0.85);
    --glass-bg: rgba(255, 255, 255, 0.35);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(255, 182, 193, 0.2);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(255,182,193,0.3) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(230,230,250,0.3) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(255,218,193,0.3) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(255,240,245,0.3) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    overflow-x: hidden;
}

h1, h2, h3, .title, .sticky-note {
    font-family: 'Caveat', cursive;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease;
}

.loader-content {
    text-align: center;
}

.spinner {
    font-size: 3rem;
    animation: spin 2s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Utilities */
.hidden { display: none !important; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.text-center { text-align: center; }
.text-white { color: #fff; }
.text-sm { font-size: 0.9rem; }
.italic { font-style: italic; }

/* Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
}

.glass-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.4);
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 182, 193, 0.6);
}

/* Sections */
.section {
    min-height: 70vh;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 20px;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

/* Music Toggle */
#music-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

/* Hero */
#hero {
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 600px;
    z-index: 10;
}

.title {
    font-size: 4.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.petal {
    position: absolute;
    font-size: 1.5rem;
    user-select: none;
    animation: fall linear infinite;
}

@keyframes fall {
    0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* Apology */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1000px;
    width: 100%;
    margin-bottom: 3rem;
}

.apology-card {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.teddy-container {
    margin-top: 2rem;
}

.teddy-container img {
    max-width: 200px;
    border-radius: 20px;
}

.animated-bob {
    animation: bob 3s ease-in-out infinite;
}

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

/* Aurora */
#aurora {
    background: #0a0a2a;
    position: relative;
    overflow: hidden;
}

#aurora-canvas {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

.aurora-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255,255,255,0.2);
}

.aurora-content p {
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Motivation */
.notebook {
    max-width: 600px;
    width: 100%;
    background: #fffdf2;
    border-left: 2px solid #ffb6c1;
    padding: 2rem 3rem;
    position: relative;
    border-radius: 10px 24px 24px 10px;
}

.notebook::before {
    content: '';
    position: absolute;
    left: 20px; top: 0; bottom: 0;
    width: 2px; background: #ffb6c1;
    opacity: 0.5;
}

.notebook-lines {
    list-style: none;
}

.notebook-lines li {
    font-family: 'Caveat', cursive;
    font-size: 1.6rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    color: #4a4a4a;
}

.study-items {
    margin-top: 2rem;
}

.study-items img {
    max-width: 180px;
    border-radius: 20px;
}

/* Smile Corner */
.interactive-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

#dynamic-message {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    color: var(--primary);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    width: 100%;
}

/* Birthday Countdown */
.countdown-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.6);
    padding: 15px 25px;
    border-radius: 15px;
    min-width: 100px;
}

.time-box span:first-child {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

.time-box .label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Notes Wall */
.notes-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 500px;
    margin: 0 auto;
}

.sticky-note {
    position: absolute;
    width: 200px;
    height: 200px;
    padding: 20px;
    background: #ffffcc;
    box-shadow: 2px 4px 10px rgba(0,0,0,0.1);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s;
}

.sticky-note:hover {
    z-index: 10 !important;
    transform: scale(1.1) !important;
}

.note-1 { background: #ffebf0; top: 10%; left: 5%; transform: rotate(-5deg); z-index: 1; }
.note-2 { background: #e6f7ff; top: 50%; left: 15%; transform: rotate(3deg); z-index: 2; }
.note-3 { background: #fff0e6; top: 20%; left: 40%; transform: rotate(-2deg); z-index: 3; }
.note-4 { background: #f0f5ff; top: 60%; left: 50%; transform: rotate(4deg); z-index: 4; }
.note-5 { background: #f9f0ff; top: 15%; left: 70%; transform: rotate(5deg); z-index: 5; }
.note-6 { background: #e6ffed; top: 55%; left: 75%; transform: rotate(-4deg); z-index: 6; }

@media (max-width: 768px) {
    .notes-container {
        height: auto;
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    .sticky-note {
        position: relative;
        top: auto !important;
        left: auto !important;
        transform: none !important;
    }
}

/* Final */
.final-content {
    max-width: 700px;
    text-align: center;
}

.final-msg {
    font-family: 'Caveat', cursive;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .section-title { font-size: 2.5rem; }
    .title { font-size: 3rem; }
    .notebook { padding: 1.5rem; }
    .time-box span:first-child { font-size: 2rem; }
}
