:root {
    --bg-main: #FDF5E6; /* Cream/Beige */
    --accent-teal: #5F9EA0;
    --accent-teal-light: #89C4C5;
    --gold-honey: #FFC300;
    --text-dark: #4A3E3D;
    --text-brown: #8B4513; 
    
    --font-heading: 'Dancing Script', cursive;
    --font-name: 'Caveat', cursive;
    --font-body: 'Quicksand', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Floating Bees Animation */
.floating-bee {
    position: fixed;
    z-index: 1;
    font-size: 1.5rem;
    pointer-events: none;
    opacity: 0.6;
}

.bee-1 { top: 15%; left: 10%; animation: roam 12s infinite alternate ease-in-out; }
.bee-2 { top: 40%; right: 5%; animation: roam 15s infinite alternate-reverse ease-in-out; }
.bee-3 { bottom: 20%; left: 15%; animation: roam 18s infinite alternate ease-in-out; }
.bee-4 { top: 70%; right: 15%; font-size: 1.2rem; animation: floatUp 4s infinite alternate ease-in-out; }

@keyframes roam {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -50px) rotate(15deg); }
    100% { transform: translate(-20px, 20px) rotate(-10deg); }
}

@keyframes floatUp {
    0% { transform: translateY(0) scale(1); opacity: 0.4; }
    100% { transform: translateY(-30px) scale(1.2); opacity: 0.8; }
}

/* Music Controller */
.music-controller {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 100;
    cursor: pointer;
    border: 2px solid var(--gold-honey);
    transition: transform 0.3s;
}

.music-controller:hover {
    transform: scale(1.1);
}

.music-controller.playing .music-icon {
    animation: pulse 1s infinite alternate;
}

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

/* Sticky Nav */
.sticky-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(253, 245, 230, 0.95);
    backdrop-filter: blur(5px);
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sticky-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    gap: 15px;
}

.sticky-nav a {
    text-decoration: none;
    color: var(--accent-teal);
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.sticky-nav a:hover {
    color: var(--text-brown);
}

/* Main Container */
.invitation-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    padding-top: 50px; /* offset for nav */
    position: relative;
    z-index: 2;
}

.section {
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px dashed rgba(139, 69, 19, 0.2);
}

.scroll-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-anim.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    padding-top: 20px;
}

.hero-image img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.hero-text {
    margin-top: 25px;
}

.pre-title {
    font-size: 1.1rem;
    color: var(--accent-teal);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.baby-name {
    font-family: var(--font-name);
    font-size: 6rem;
    line-height: 1;
    color: var(--text-brown);
    margin-top: -10px;
    text-shadow: 2px 2px 0px rgba(255, 195, 0, 0.5);
    position: relative;
    display: inline-block;
}

/* Dripping honey effect */
.dripping-honey::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20%;
    width: 5px;
    height: 15px;
    background-color: var(--gold-honey);
    border-radius: 5px;
    animation: drip 2s infinite ease-in;
}

@keyframes drip {
    0% { height: 5px; opacity: 1; transform: translateY(0); }
    80% { height: 20px; opacity: 1; }
    100% { height: 25px; opacity: 0; transform: translateY(10px); }
}

/* Countdown */
.countdown-section {
    background-color: var(--accent-teal);
    color: white;
}

.countdown-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.time-box {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 10px;
    min-width: 65px;
}

.time-box span {
    font-size: 1.8rem;
    font-weight: 700;
}

.time-box p {
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-top: 5px;
}

.colon {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: -15px;
}

.timer-footer {
    margin-top: 15px;
    font-style: italic;
}

/* Parents & Texts */
.script-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--text-brown);
    margin-bottom: 10px;
}

.parents-names {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-teal);
}

.divider {
    margin: 20px 0;
}

.mini-pot {
    width: 40px;
    animation: floatUp 3s infinite alternate;
}

.welcome-msg {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-dark);
    padding: 0 20px;
}

/* Details */
.detail-card {
    background: var(--bg-main);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.mt-4 { margin-top: 20px; }
.mt-2 { margin-top: 10px; }

.icon-box {
    font-size: 2rem;
    margin-bottom: 10px;
}

.highlight-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-brown);
    margin: 5px 0;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-teal);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 0 var(--accent-teal-light);
    transition: all 0.2s;
    font-family: var(--font-body);
    font-size: 1rem;
}

.btn-primary:active {
    transform: translateY(4px);
    box-shadow: none;
}

/* Map Illustration */
.map-illustration {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.map-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    filter: brightness(0.9);
}

.floating-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    color: var(--text-brown);
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.floating-btn:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

/* Gifts */
.gifts-container {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    margin-top: 20px;
}

.gift-item {
    flex: 1;
    background: var(--bg-main);
    padding: 20px 10px;
    border-radius: 15px;
    border: 2px solid var(--gold-honey);
}

.gift-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Dresscode */
.dresscode-icon {
    font-size: 3rem;
    margin: 10px 0;
}

/* RSVP */
.rsvp-form {
    background: var(--bg-main);
    padding: 30px 20px;
    border-radius: 20px;
    margin-top: 20px;
    text-align: left;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input[type="text"],
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--accent-teal);
}

.radio-group p {
    font-weight: 700;
    margin-bottom: 10px;
}

.radio-group label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
}

.w-100 {
    width: 100%;
}

.success-message {
    background-color: #d1fae5;
    color: #065f46;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: 700;
}

.hidden {
    display: none;
}

/* Footer */
.footer {
    background-color: var(--text-brown);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.footer .script-title {
    color: var(--gold-honey);
    margin-top: 15px;
}

.footer-icon {
    width: 60px;
    filter: drop-shadow(0 0 10px rgba(255,195,0,0.5));
}

.float-anim {
    animation: floatUp 3s infinite alternate;
}

@media (max-width: 400px) {
    .baby-name { font-size: 4.5rem; }
    .timer .time-box { min-width: 55px; padding: 5px; }
}
