/* CSS Variables - Minecraft Theme with Modern Elegance */
:root {
    --mc-grass: #5cb85c;
    --mc-grass-light: #7ed957;
    --mc-grass-dark: #3c8527;
    --mc-emerald: #50c878;
    --mc-sky: #87ceeb;
    --mc-sky-light: #b8e4f9;
    --mc-dirt: #8b6f47;
    --mc-stone: #a0a0a0;
    --mc-dark: #2c3e50;
    --mc-accent: #ffb84d;
    --mc-pink: #ffb6c1;
    --mc-pink-dark: #ff91a4;
    --mc-lavender: #e6e6fa;
    --mc-cream: #faf8f5;
    --mc-white: #ffffff;
    --mc-text: #333333;
    --mc-text-light: #666666;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* ========== NAVIGATION ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: var(--mc-grass);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--mc-text);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--mc-dark);
    position: relative;
    transition: background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--mc-dark);
    left: 0;
    transition: transform 0.3s ease;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    top: 6px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--mc-text);
    background: var(--mc-cream);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    line-height: 1.3;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--mc-dark);
}

.script-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--mc-grass-dark);
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 90vh;
    background: var(--mc-cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-blob {
    width: 320px;
    height: 380px;
    position: relative;
    margin-bottom: 2rem;
}

.hero-blob::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, var(--mc-grass-light) 0%, var(--mc-emerald) 100%);
    border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
    animation: morphBlob 8s ease-in-out infinite;
}

.hero-blob img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
    position: relative;
    z-index: 1;
    animation: morphBlob 8s ease-in-out infinite;
}

@keyframes morphBlob {
    0%, 100% {
        border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
    }
    25% {
        border-radius: 50% 60% 40% 60% / 60% 40% 60% 40%;
    }
    50% {
        border-radius: 40% 60% 60% 40% / 40% 50% 50% 60%;
    }
    75% {
        border-radius: 60% 40% 50% 50% / 50% 40% 60% 50%;
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-invite {
    font-size: 1.1rem;
    color: var(--mc-text-light);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--mc-dark);
    margin-bottom: 0.5rem;
}

.name-highlight {
    color: var(--mc-grass);
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
}

.hero-subtitle {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: var(--mc-accent);
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-message {
    font-size: 1rem;
    max-width: 450px;
    margin: 1.5rem auto 2rem;
    color: var(--mc-text-light);
    line-height: 1.7;
}

.hero-message strong {
    color: var(--mc-grass-dark);
}

.hero-btn {
    display: block;
    margin: 0 auto;
}

.decorative-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
}

.deco-1 {
    width: 100px;
    height: 100px;
    background: #b8e6c1;
    top: 15%;
    right: 8%;
    animation: float 6s ease-in-out infinite;
}

.deco-2 {
    width: 60px;
    height: 60px;
    background: var(--mc-sky);
    bottom: 25%;
    left: 5%;
    animation: float 8s ease-in-out infinite 1s;
}

.deco-3 {
    width: 45px;
    height: 45px;
    background: var(--mc-accent);
    top: 35%;
    left: 12%;
    animation: float 7s ease-in-out infinite 0.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* ========== BUTTONS ========== */
.btn-primary {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--mc-grass) 0%, var(--mc-emerald) 100%);
    color: var(--mc-white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(92, 184, 92, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(92, 184, 92, 0.5);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========== COUNTDOWN SECTION ========== */
.countdown-section {
    position: relative;
    padding: 6rem 1rem;
    overflow: hidden;
}

.countdown-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.countdown-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.countdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(168, 213, 162, 0.9) 0%, rgba(197, 230, 192, 0.9) 100%);
    z-index: 1;
}

.countdown-container {
    position: relative;
    z-index: 2;
}

.countdown-wrapper {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.85);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    min-width: 100px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
}

.countdown-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #3c8527;
    line-height: 1;
}

.countdown-label {
    display: block;
    font-size: 0.9rem;
    color: #5a5a5a;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== DETAILS SECTION ========== */
.details-section {
    padding: 5rem 1rem;
    background: var(--mc-white);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.detail-card {
    background: var(--mc-cream);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--mc-grass-light);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.detail-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--mc-dark);
}

.detail-card p {
    color: var(--mc-text-light);
    margin-bottom: 0.25rem;
}

.detail-card p strong {
    color: var(--mc-dark);
}

.detail-note {
    font-size: 0.75rem;
    font-style: italic;
    margin-top: 0.5rem;
    color: #888;
    font-weight: 400;
}

/* ========== PARENT SECTIONS ========== */
.parent-section {
    padding: 5rem 1rem;
}

.mama-section {
    background: #e8e0d5;
}

.papa-section {
    background: #d4d4d4;
}

.parent-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.parent-content.reverse {
    flex-direction: row-reverse;
}

.quote-container {
    flex: 1;
    min-width: 300px;
}

.quote-icon {
    font-family: 'Dancing Script', cursive;
    font-size: 5rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: -1rem;
}

.quote-text {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.9;
    color: var(--mc-dark);
    margin-bottom: 1.5rem;
}

.quote-author {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    font-weight: 700;
    color: var(--mc-dark);
}

.quote-subtitle {
    font-size: 0.95rem;
    color: var(--mc-text-light);
}

.parent-image-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.blob-shape {
    width: 350px;
    height: 400px;
    position: relative;
}

.blob-shape::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
    animation: morphBlob 10s ease-in-out infinite;
}

.mama-blob::before {
    background: rgba(255, 255, 255, 0.5);
}

.papa-blob::before {
    background: rgba(255, 255, 255, 0.5);
}

.blob-shape img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
    position: relative;
    z-index: 1;
    animation: morphBlob 10s ease-in-out infinite;
    box-shadow: var(--shadow-lg);
}

/* ========== FAMILY SECTION ========== */
.family-section {
    padding: 5rem 1rem;
    background: var(--mc-cream);
}

.family-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.family-image-container {
    margin-bottom: 2rem;
}

.family-blob {
    width: 450px;
    height: 350px;
}

.family-blob::before {
    background: linear-gradient(135deg, #a8d5a2, #c5e6c0);
}

.family-quote {
    max-width: 600px;
}

.large-quote {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    font-style: normal;
    color: var(--mc-dark);
}

.family-quote .quote-author {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--mc-text-light);
}

/* ========== GALLERY SECTION ========== */
.gallery-section {
    padding: 5rem 1rem;
    background: #e8dfd5;
}

.gallery-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--mc-text-light);
    margin-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    background: var(--mc-white);
}

.gallery-item:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ========== RSVP SECTION ========== */
.rsvp-section {
    padding: 5rem 1rem;
    background: linear-gradient(135deg, #c5e6c0 0%, #d4e8d1 100%);
}

.rsvp-section .section-title {
    color: var(--mc-dark);
}

.rsvp-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--mc-text-light);
    margin-bottom: 2rem;
}

.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
    background: var(--mc-white);
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--mc-dark);
}

.required {
    color: #e74c3c;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    background: #fafafa;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--mc-grass);
    background: var(--mc-white);
    box-shadow: 0 0 0 3px rgba(92, 184, 92, 0.1);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.radio-label:hover {
    border-color: var(--mc-grass);
    background: var(--mc-white);
}

.radio-label input[type="radio"] {
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-label span {
    font-weight: 500;
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
}

#form-messages {
    max-width: 500px;
    margin: 1.5rem auto 0;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    font-weight: 600;
}

.error-alert {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #e74c3c;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    font-weight: 600;
}

.contact-info {
    text-align: center;
    margin-top: 2rem;
    color: var(--mc-text-light);
}

.facebook-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    background: #1877f2;
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.facebook-link:hover {
    background: #166fe5;
}

.facebook-link svg {
    width: 16px;
    height: 16px;
}

/* ========== FOOTER ========== */
.footer {
    background: #4a90a4;
    color: var(--mc-white);
    text-align: center;
    padding: 3rem 1rem;
}

.footer-message {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.footer-credits {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-copyright {
    font-size: 0.75rem;
    opacity: 0.5;
    margin-top: 1rem;
}

.heart-icon {
    color: #e74c3c;
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.6rem 1.25rem;
    }

    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 55%;
        max-width: 220px;
        height: 100vh;
        background: var(--mc-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 0.95rem;
    }

    .nav-logo {
        font-size: 0.55rem;
    }
}

@media (max-width: 992px) {
    .parent-content,
    .parent-content.reverse {
        flex-direction: column;
        text-align: center;
    }

    .quote-container {
        order: 2;
    }

    .parent-image-container {
        order: 1;
    }

    .blob-shape {
        width: 300px;
        height: 350px;
    }

    .family-blob {
        width: 350px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .name-highlight {
        font-size: 2.8rem;
    }

    .hero-blob {
        width: 260px;
        height: 310px;
    }

    .section-title {
        font-size: 2rem;
    }

    .script-title {
        font-size: 2.5rem;
    }

    .countdown-item {
        padding: 1.25rem 1.5rem;
        min-width: 80px;
    }

    .countdown-number {
        font-size: 2.2rem;
    }

    .blob-shape {
        width: 280px;
        height: 320px;
    }

    .family-blob {
        width: 300px;
        height: 260px;
    }

    .quote-text {
        font-size: 1rem;
    }

    .large-quote {
        font-size: 1.6rem;
    }


    .rsvp-form {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .name-highlight {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .hero-message {
        font-size: 1.15rem;
    }

    .hero-message strong {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .script-title {
        font-size: 2rem;
    }

    .countdown-wrapper {
        gap: 0.75rem;
    }

    .countdown-item {
        padding: 1rem;
        min-width: 70px;
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    .countdown-label {
        font-size: 0.75rem;
    }

    .blob-shape {
        width: 240px;
        height: 280px;
    }

    .family-blob {
        width: 260px;
        height: 220px;
    }

    .invitation-message {
        font-size: 1.1rem;
    }

    .parent-section,
    .details-section,
    .gallery-section,
    .rsvp-section,
    .family-section {
        padding: 3rem 1rem;
    }

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

}
