/* BirthdayHustle.com - Main Styles */
/* Design: Claymorphism + Playful + Vibrant */

:root {
    /* Color Palette */
    --color-primary: #E11D48;
    --color-primary-dark: #BE123C;
    --color-secondary: #FB7185;
    --color-cta: #2563EB;
    --color-cta-dark: #1D4ED8;
    --color-background: #FFF1F2;
    --color-text: #881337;
    --color-text-light: #9F1239;
    --color-white: #FFFFFF;
    --color-black: #1F2937;

    /* Accent Colors */
    --color-gold: #F59E0B;
    --color-purple: #8B5CF6;
    --color-teal: #14B8A6;
    --color-pink: #EC4899;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Typography */
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Nunito', sans-serif;

    /* Shadows - Claymorphism Style */
    --shadow-sm: 0 2px 4px rgba(225, 29, 72, 0.1);
    --shadow-md: 0 4px 12px rgba(225, 29, 72, 0.15), 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 8px 24px rgba(225, 29, 72, 0.2), 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 48px rgba(225, 29, 72, 0.25), 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-clay: 8px 8px 16px rgba(225, 29, 72, 0.2), -8px -8px 16px rgba(255, 255, 255, 0.9);

    /* Border Radius - Soft & Bubbly */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-medium: 250ms ease;
    --transition-slow: 400ms ease;
}

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

html {
    scroll-behavior: smooth;
}

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

/* 3D Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* Confetti Container */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0.8;
    animation: confetti-fall linear infinite;
}

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

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Navigation */
.navbar {
    position: fixed;
    top: var(--space-md);
    left: var(--space-md);
    right: var(--space-md);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(225, 29, 72, 0.1);
    transition: var(--transition-medium);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-xl);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    cursor: pointer;
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.logo-highlight {
    color: var(--color-primary);
    background: linear-gradient(135deg, var(--color-primary), var(--color-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    cursor: pointer;
}

.nav-link:hover {
    color: var(--color-primary);
    background: rgba(225, 29, 72, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: var(--space-sm);
}

/* CTA Button */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition-medium);
    text-decoration: none;
    white-space: nowrap;
}

.cta-btn.primary {
    background: linear-gradient(135deg, var(--color-cta), var(--color-purple));
    color: var(--color-white);
    box-shadow: var(--shadow-md), 0 4px 0 var(--color-cta-dark);
}

.cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 6px 0 var(--color-cta-dark);
}

.cta-btn.primary:active {
    transform: translateY(2px);
    box-shadow: var(--shadow-sm), 0 2px 0 var(--color-cta-dark);
}

.cta-btn.secondary {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.cta-btn.secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.cta-btn.large {
    font-size: 1.125rem;
    padding: var(--space-lg) var(--space-2xl);
}

.cta-btn.full-width {
    width: 100%;
    justify-content: center;
}

.nav-cta {
    background: linear-gradient(135deg, var(--color-primary), var(--color-pink));
    color: var(--color-white);
    padding: var(--space-sm) var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--space-4xl) var(--space-lg);
    overflow: hidden;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: linear-gradient(135deg, var(--color-gold), #FCD34D);
    color: var(--color-black);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

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

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

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-purple), var(--color-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: 3px solid rgba(225, 29, 72, 0.15);
    box-shadow: var(--shadow-lg);
    padding: var(--space-xl);
}

.hero-form {
    margin-bottom: var(--space-xl);
}

.form-row {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.input-group {
    flex: 1;
    text-align: left;
}

.input-group label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.input {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-body);
    font-size: 1rem;
    border: 3px solid rgba(225, 29, 72, 0.2);
    border-radius: var(--radius-md);
    background: var(--color-white);
    color: var(--color-text);
    transition: var(--transition-fast);
    cursor: pointer;
}

.input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
}

.input::placeholder {
    color: #9CA3AF;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    display: inline;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-weight: 600;
}

/* Floating Birthday Elements */
.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: float-element 6s ease-in-out infinite;
}

.balloon {
    width: 90px;
    height: 108px;
    /* Closer to 1:1.2 ratio for less egg-like shape */
}

/* Balloon Knot */
.balloon::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 8px;
    border-radius: 0 0 4px 4px;
    background: inherit;
    /* Use local var or inherit bg */
}

/* Balloon String - pseudo element on separate container or just simplified here */
/* For now, removing the string ::after from specific balloons and making generic knot */

.balloon-1 {
    top: 15%;
    left: 10%;
    background: radial-gradient(circle at 30% 30%, #ec4899, #be123c);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    animation-delay: 0s;
    box-shadow: inset -5px -5px 15px rgba(0, 0, 0, 0.2), 20px 20px 20px rgba(0, 0, 0, 0.1);
}

/* Remove old string style */
.balloon-1::after {
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.balloon-2 {
    top: 25%;
    right: 15%;
    background: radial-gradient(circle at 30% 30%, #a78bfa, #7c3aed);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    animation-delay: 1s;
    animation-duration: 7s;
    box-shadow: inset -5px -5px 15px rgba(0, 0, 0, 0.2), 20px 20px 20px rgba(0, 0, 0, 0.1);
}

.balloon-3 {
    bottom: 30%;
    left: 8%;
    width: 70px;
    height: 84px;
    background: radial-gradient(circle at 30% 30%, #fcd34d, #d97706);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    animation-delay: 2s;
    animation-duration: 5s;
    box-shadow: inset -5px -5px 15px rgba(0, 0, 0, 0.2), 20px 20px 20px rgba(0, 0, 0, 0.1);
}

.balloon-4 {
    top: 45%;
    left: 25%;
    width: 60px;
    height: 72px;
    background: radial-gradient(circle at 30% 30%, #60a5fa, #2563eb);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    animation-delay: 3s;
    animation-duration: 6s;
    box-shadow: inset -5px -5px 15px rgba(0, 0, 0, 0.2), 20px 20px 20px rgba(0, 0, 0, 0.1);
    z-index: -1;
    opacity: 0.8;
}

.balloon-5 {
    bottom: 15%;
    right: 25%;
    width: 100px;
    height: 120px;
    background: radial-gradient(circle at 30% 30%, #f472b6, #db2777);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    animation-delay: 0.5s;
    animation-duration: 7.5s;
    box-shadow: inset -5px -5px 15px rgba(0, 0, 0, 0.2), 20px 20px 20px rgba(0, 0, 0, 0.1);
}

.balloon-6 {
    top: 10%;
    right: 35%;
    width: 50px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, #34d399, #059669);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    animation-delay: 4s;
    animation-duration: 5.5s;
    box-shadow: inset -5px -5px 15px rgba(0, 0, 0, 0.2), 20px 20px 20px rgba(0, 0, 0, 0.1);
    opacity: 0.6;
}

.cake {
    bottom: 20%;
    right: 10%;
    width: 100px;
    height: 100px;
    animation-delay: 0.5s;
    animation-duration: 8s;
}

.cake::before {
    content: '🎂';
    font-size: 4rem;
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.2));
}

.gift-box {
    top: 60%;
    left: 15%;
    width: 80px;
    height: 80px;
    animation-delay: 1.5s;
    animation-duration: 6s;
}

.gift-box::before {
    content: '🎁';
    font-size: 3rem;
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.2));
}

@keyframes float-element {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    25% {
        transform: translateY(-20px) rotate(5deg);
    }

    50% {
        transform: translateY(-10px) rotate(-3deg);
    }

    75% {
        transform: translateY(-25px) rotate(3deg);
    }
}

/* Section Styles */
.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(225, 29, 72, 0.1);
    color: var(--color-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Categories Grid */
.categories-section {
    background: linear-gradient(180deg, var(--color-background) 0%, rgba(255, 241, 242, 0.5) 100%);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.category-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    border: 3px solid rgba(225, 29, 72, 0.1);
    box-shadow: var(--shadow-md);
    transition: var(--transition-medium);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.category-card.featured {
    background: linear-gradient(135deg, var(--color-primary), var(--color-pink));
    color: var(--color-white);
    border-color: transparent;
}

.category-card.featured h3,
.category-card.featured p {
    color: var(--color-white);
}

.category-card.featured .category-count {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

.category-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, var(--color-primary), var(--color-pink));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.category-card.featured .category-icon {
    background: rgba(255, 255, 255, 0.2);
}

.category-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.category-card p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.category-count {
    display: inline-block;
    background: rgba(225, 29, 72, 0.1);
    color: var(--color-primary);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

/* Freebies Carousel */
.freebies-section {
    background: var(--color-white);
}

.freebies-carousel {
    display: flex;
    gap: var(--space-lg);
    overflow-x: auto;
    padding: var(--space-md) 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.freebies-carousel::-webkit-scrollbar {
    display: none;
}

.freebie-card {
    flex: 0 0 300px;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 3px solid rgba(225, 29, 72, 0.1);
    box-shadow: var(--shadow-md);
    scroll-snap-align: start;
    transition: var(--transition-medium);
    cursor: pointer;
}

.freebie-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.freebie-image {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.freebie-image i,
.freebie-image svg {
    width: 48px;
    height: 48px;
    opacity: 0.9;
}

.freebie-content {
    padding: var(--space-lg);
}

.freebie-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(225, 29, 72, 0.1);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
}

.freebie-content h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.freebie-content p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.freebie-value {
    font-weight: 700;
    color: var(--color-teal);
    font-size: 0.875rem;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    border: 3px solid var(--color-primary);
    background: var(--color-white);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.carousel-dots {
    display: flex;
    gap: var(--space-sm);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: rgba(225, 29, 72, 0.2);
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-dot.active {
    background: var(--color-primary);
    width: 32px;
}

/* Famous Birthdays Section */
.famous-section {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.05) 0%, var(--color-background) 100%);
    overflow: hidden;
    /* Prevent horizontal scroll from cards */
}

.famous-interactive-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
    width: 100%;
}

.famous-controls {
    width: 100%;
    max-width: 800px;
    padding: var(--space-md) var(--space-lg);
}

.date-selector-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.date-selector-row h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.date-inputs-row {
    display: flex;
    gap: var(--space-sm);
}

.date-inputs-row .input {
    min-width: 140px;
    /* Ensure month names fit (September is longest) */
}

.famous-carousel {
    display: flex;
    gap: var(--space-lg);
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: var(--space-lg) var(--space-xs);
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: flex-start;
    max-width: 956px;
    /* 3 * 300px + 2 * 24px (gap) + 8px (padding) */
    width: 100%;
    margin: 0 auto;
}

.famous-carousel::-webkit-scrollbar {
    display: none;
}

.famous-card {
    flex: 0 0 300px;
    width: 300px;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 3px solid rgba(225, 29, 72, 0.1);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.famous-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(225, 29, 72, 0.3);
}

.famous-card:active {
    transform: scale(0.98);
}

/* Responsive Famous Header */
@media (max-width: 768px) {
    .date-selector-row {
        flex-direction: column;
        text-align: center;
    }

    .date-inputs-row {
        width: 100%;
        justify-content: center;
    }

    .famous-card {
        flex: 0 0 85vw;
        /* Fuller width on mobile */
    }
}

.famous-image,
.famous-initial {
    height: 80px;
    width: 80px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
    margin: var(--space-lg) auto var(--space-md);
    box-shadow: var(--shadow-md);
}

.famous-info {
    padding: 0 var(--space-lg) var(--space-lg);
    text-align: center;
}

.famous-info h4 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: var(--space-xs);
}

#discover-famous-btn {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.famous-profession {
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.famous-year {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

/* Loading & Error States */
.loading-state,
.error-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-2xl);
}

.loading-state p,
.error-state p {
    color: var(--color-text-light);
    font-size: 1rem;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(225, 29, 72, 0.2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    margin: 0 auto var(--space-md);
    animation: spin 1s linear infinite;
}

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

.error-state {
    background: rgba(225, 29, 72, 0.05);
    border-radius: var(--radius-lg);
}

/* Load More Button for Famous Birthdays */
#load-more-births {
    margin-top: var(--space-lg);
    grid-column: 1 / -1;
    justify-self: center;
}

/* History Timeline */
.history-section {
    background: var(--color-white);
}

.history-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    padding-left: var(--space-2xl);
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-purple));
    border-radius: var(--radius-full);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-xl);
    padding-left: var(--space-lg);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-2xl) - 8px);
    top: var(--space-md);
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    border: 4px solid var(--color-white);
    box-shadow: var(--shadow-md);
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.timeline-content {
    background: var(--color-background);
}

.timeline-content h4 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.timeline-content p {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Signup Section */
.signup-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-pink) 50%, var(--color-purple) 100%);
    position: relative;
    overflow: hidden;
}

.signup-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.signup-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-2xl);
    background: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 1;
}

.signup-content {
    padding-right: var(--space-xl);
}

.signup-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-pink));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-lg);
}

.signup-icon i,
.signup-icon svg {
    width: 40px;
    height: 40px;
}

.signup-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.signup-content>p {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.optional {
    font-weight: 400;
    color: var(--color-text-light);
    font-size: 0.75rem;
}

.form-footer {
    border-top: 1px solid rgba(225, 29, 72, 0.1);
    padding-top: var(--space-lg);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.checkbox-wrapper input {
    width: 20px;
    height: 20px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.form-disclaimer {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-align: center;
    margin-top: var(--space-md);
}

.form-disclaimer a {
    color: var(--color-primary);
    text-decoration: none;
}

.form-disclaimer a:hover {
    text-decoration: underline;
}

.signup-benefits {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.05), rgba(139, 92, 246, 0.05));
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.signup-benefits h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.benefits-list li i,
.benefits-list li svg {
    color: var(--color-teal);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Footer */
.footer {
    background: var(--color-text);
    color: var(--color-white);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: var(--space-md) 0;
    max-width: 300px;
}

.footer .logo-text {
    color: var(--color-white);
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: var(--transition-fast);
    cursor: pointer;
}

.social-link:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--color-white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-fast);
    cursor: pointer;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    max-width: 480px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition-medium);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: none;
    background: rgba(225, 29, 72, 0.1);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.success-animation {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-pink));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    margin: 0 auto var(--space-lg);
    animation: pulse-pop 0.6s ease;
}

.success-animation i,
.success-animation svg {
    width: 48px;
    height: 48px;
}

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

    50% {
        transform: scale(1.2);
    }

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

.modal h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.modal p {
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

/* Responsive */
@media (max-width: 1024px) {
    .famous-interactive {
        grid-template-columns: 1fr;
    }

    .date-selector {
        position: static;
    }

    .signup-wrapper {
        grid-template-columns: 1fr;
    }

    .signup-content {
        padding-right: 0;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: var(--space-lg);
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .form-row {
        flex-direction: column;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: var(--space-lg);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand p {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .history-timeline {
        padding-left: var(--space-lg);
    }

    .timeline-item::before {
        left: calc(-1 * var(--space-lg) - 8px);
    }
}

@media (max-width: 480px) {
    .navbar {
        top: var(--space-sm);
        left: var(--space-sm);
        right: var(--space-sm);
    }

    .hero {
        padding: var(--space-3xl) var(--space-md);
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .floating-elements {
        opacity: 0.5;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}