/* ==========================================================================
   VENUS PERSONAL WEBSITE DESIGN SYSTEM (Pink & Blue Palette)
   ========================================================================== */

:root {
    /* Color Palette */
    --pink-primary: #ff4b8b;
    --pink-light: #ff85b3;
    --pink-soft: #ffe4ee;
    --pink-glow: rgba(255, 75, 139, 0.4);

    --blue-primary: #4a6fa5;
    --blue-vivid: #3a86ff;
    --blue-light: #8ecae6;
    --blue-soft: #e0f2fe;
    --blue-glow: rgba(58, 134, 255, 0.4);

    --purple-accent: #9d4edd;
    
    --bg-dark: #0f1026;
    --bg-card: rgba(255, 255, 255, 0.12);
    --border-card: rgba(255, 255, 255, 0.25);
    
    --text-main: #ffffff;
    --text-muted: #d1d5db;
    --text-dim: #9ca3af;

    /* Typography */
    --font-heading: 'Fredoka', 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-accent: 'Sacramento', cursive;

    /* Transitions & Shadow */
    --transition-smooth: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fade: all 0.3s ease;
    --shadow-glow: 0 15px 35px rgba(255, 75, 139, 0.25), 0 5px 15px rgba(58, 134, 255, 0.2);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Background Glowing Orbs */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.65;
    animation: floatOrb 18s ease-in-out infinite alternate;
}

.globe-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--pink-primary), var(--purple-accent));
    top: -10%;
    left: -10%;
}

.globe-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--blue-vivid), var(--blue-light));
    bottom: -15%;
    right: -10%;
    animation-delay: -6s;
}

.globe-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--pink-light), var(--blue-primary));
    top: 40%;
    left: 60%;
    animation-delay: -12s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(60px, 80px) scale(1.15);
    }
    100% {
        transform: translate(-40px, 40px) scale(0.9);
    }
}

/* Star field layer */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    animation: twinkle var(--duration, 3s) infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* Layout Wrapper */
.main-wrapper {
    width: 100%;
    max-width: 540px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    z-index: 1;
}

/* Header Styles */
.header {
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--pink-light);
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--pink-light) 0%, var(--pink-primary) 40%, var(--blue-vivid) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Glassmorphic Card Container */
.card-container {
    width: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-card);
    border-radius: 28px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.card-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        60deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent
    );
    transform: rotate(30deg);
    pointer-events: none;
}

/* Card Views Switcher */
.card-view {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-view.active {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* View 1: Question Elements */
.avatar-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.avatar-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--pink-primary), var(--blue-vivid));
    filter: blur(15px);
    opacity: 0.7;
    animation: pulseGlow 3s infinite alternate;
}

.avatar-emoji {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 0.8; }
}

.question-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.question-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 1rem;
    width: 100%;
    justify-content: center;
}

.btn {
    border: none;
    outline: none;
    padding: 0.9rem 1.6rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-yes {
    background: linear-gradient(135deg, #ff4b8b, #ff758c);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 75, 139, 0.4);
    flex: 1.2;
}

.btn-yes:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 25px rgba(255, 75, 139, 0.6);
}

.btn-no {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    flex: 1;
}

.btn-no:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 20px rgba(58, 134, 255, 0.3);
}

.btn-reset {
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
}

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

.btn:active {
    transform: translateY(0) scale(0.98);
}

/* View 2 & 3: Celebration & Revelation */
.celebration-icon, .revelation-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: bounce 1.2s infinite ease-in-out;
}

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

.response-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.response-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.date-highlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, rgba(255, 75, 139, 0.3), rgba(58, 134, 255, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Big Date Card for NO view */
.big-date-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 117, 140, 0.5);
    border-radius: 20px;
    padding: 1.2rem 2.5rem;
    margin: 0.5rem 0 1.2rem 0;
    box-shadow: 0 10px 30px rgba(255, 75, 139, 0.3);
    transform: rotate(-2deg);
    transition: var(--transition-smooth);
}

.big-date-card:hover {
    transform: rotate(0deg) scale(1.05);
}

.date-month {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 3px;
    color: var(--blue-light);
    font-weight: 700;
}

.date-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #fff, var(--pink-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0.2rem 0;
}

.date-tag {
    font-size: 0.85rem;
    color: var(--pink-light);
    font-weight: 500;
}

.sub-response {
    font-size: 0.95rem;
    color: var(--text-dim);
}

/* Footer */
.footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* Dynamic Confetti & Hearts */
.confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    top: -20px;
    will-change: transform;
    animation: fall var(--fall-duration, 3s) linear forwards;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(105vh) rotate(720deg) scale(0.5);
        opacity: 0;
    }
}

/* Responsive adjust */
@media (max-width: 480px) {
    .title {
        font-size: 2.3rem;
    }
    .card-container {
        padding: 2rem 1.2rem;
    }
    .button-group {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
}
