:root {
    --primary: #f8cdda;      /* Soft Pink */
    --secondary: #e8a5b8;    /* Rose Gold */
    --light: #fffcf9;        /* Cream/White */
    --text-dark: #4a4a4a;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    cursor: none; /* Custom cursor */
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: var(--light);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.font-vibes { font-family: 'Great Vibes', cursive; font-size: 3rem; color: var(--primary); }
.font-poppins { font-family: 'Poppins', sans-serif; }
.py-20 { padding: 5rem 2rem; }
.text-center { text-align: center; }

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    position: fixed; top: 0; left: 0; transform: translate(-50%, -50%);
    border-radius: 50%; z-index: 9999; pointer-events: none;
}
.cursor-dot { width: 8px; height: 8px; background: var(--primary); }
.cursor-outline { width: 40px; height: 40px; border: 2px solid var(--secondary); transition: 0.1s ease-out; }

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 2rem;
}

/* Loading */
#loading {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: #1a1a2e;
}
.heart-beat { font-size: 4rem; animation: beat 1s infinite alternate; }
@keyframes beat { to { transform: scale(1.3); } }

/* Hero */
#hero { height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; text-align: center;}
#particles-js { position: fixed; inset: 0; z-index: 0; }
#fireworks-canvas { position: fixed; inset: 0; z-index: 1; pointer-events: none; }

/* Buttons */
.btn-glass {
    background: rgba(248, 205, 218, 0.2);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 12px 30px; border-radius: 30px;
    font-size: 1.2rem; font-weight: 600;
    margin-top: 20px; transition: 0.3s;
}
.btn-glass:hover { background: var(--primary); color: #1a1a2e; }

/* Grid Cards */
.cards-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; max-width: 1200px; margin: 0 auto; position: relative; z-index: 2;
}
.card-item { padding: 20px; text-align: center; transition: transform 0.3s; }
.card-item:hover { transform: translateY(-10px); }

/* Envelope Animation */
.envelope {
    position: relative; width: 300px; height: 200px; margin: 0 auto;
    background: var(--secondary); border-radius: 0 0 10px 10px; cursor: pointer;
}
.envelope-flap {
    position: absolute; top: 0; left: 0; border-left: 150px solid transparent;
    border-right: 150px solid transparent; border-top: 100px solid var(--primary);
    transform-origin: top; transition: transform 0.5s; z-index: 3;
}
.envelope-paper {
    position: absolute; top: 10px; left: 10px; right: 10px; bottom: 10px;
    background: #fff; color: var(--text-dark); padding: 20px; z-index: 2;
    transition: transform 0.5s; font-size: 0.9rem; overflow-y: auto;
}
.envelope-front {
    position: absolute; inset: 0; background: rgba(0,0,0,0.1); z-index: 4;
    display: flex; justify-content: center; align-items: center; font-size: 3rem;
    pointer-events: none; border-left: 150px solid rgba(255,255,255,0.1); border-right: 150px solid rgba(0,0,0,0.1); border-bottom: 100px solid rgba(0,0,0,0.1);
}
.envelope.open .envelope-flap { transform: rotateX(180deg); z-index: 1; }
.envelope.open .envelope-paper { transform: translateY(-100px); z-index: 5; height: 300px;}

/* Countdown */
.countdown-grid { display: flex; justify-content: center; gap: 20px; margin-top: 20px; font-size: 1.5rem; font-weight: bold;}
.cd-box { display: flex; flex-direction: column; background: var(--glass-bg); padding: 15px; border-radius: 10px; min-width: 80px;}
.cd-label { font-size: 0.8rem; font-weight: 300; }