:root {
    --primary: #ff0055;
    --primary-dim: #ff005533;
    --secondary: #ffcc00;
    /* Gold */
    --accent: #ff6b6b;
    --bg: #050507;
    --bg-gradient: radial-gradient(circle at top left, #ff005522, transparent 40%), #050507;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.05);
    --text: #f0f0f0;
    --text-muted: #aaaaaa;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-romantic: 'Pacifico', cursive;
}

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

body {
    background: var(--bg-gradient);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #fff;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 8px;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid {
    display: grid;
    gap: 2rem;
}

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

.romantic-font {
    font-family: var(--font-romantic);
}

.gradient-text {
    background: linear-gradient(135deg, #ff0055, #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hidden {
    display: none !important;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

nav .logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav .logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Cards & Glassmorphism */
.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    border-color: var(--primary-dim);
}

/* Inputs & Buttons */
input,
textarea,
select {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: #fff;
    text-align: center;
    font-size: 1.1rem;
    outline: none;
    transition: 0.3s;
}

input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.btn {
    background: linear-gradient(135deg, #ff0055, #ff477e);
    color: white;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(255, 0, 85, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 0, 85, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

/* Love Calculator Specifics */
.calculator-box {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.vs-badge {
    font-size: 2rem;
    margin: 0.5rem 0;
    color: var(--primary);
    font-family: var(--font-romantic);
    position: relative;
    animation: pulse 2s infinite;
}

.result-display {
    text-align: center;
    /* display: none; Removed to allow toggling via .hidden class */
    margin-top: 2rem;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0 auto 1rem;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 30px var(--primary-dim);
}

/* Tab Navigation */
.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
    border: 1px solid transparent;
    background: transparent;
    color: #fff;
}

.tab-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    opacity: 1;
    background: var(--primary-dim);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: bold;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.3);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.3);
    }

    70% {
        transform: scale(1);
    }
}

.heart-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.heart {
    position: absolute;
    color: rgba(255, 0, 85, 0.15);
    animation: float-up linear infinite;
    user-select: none;
}

@keyframes float-up {
    to {
        transform: translateY(-100vh) rotate(360deg);
    }
}

/* Countdown */
.countdown-container {
    display: inline-flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.countdown-item span {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #ffcc00, #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-heading);
}

.countdown-item small {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.4rem;
    letter-spacing: 1px;
}

/* Quote Box */
.quote-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#daily-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: #f0f0f0;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

#quote-author {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    /* Mobile menu simplified for now */
    .calculator-box {
        padding: 1.5rem;
    }
}