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

:root {
    --cream: #faf6f0;
    --cream-dark: #f0e8dc;
    --brown: #5c3d2e;
    --brown-light: #8b6a4f;
    --brown-dark: #3d2516;
    --gold: #c9a96e;
    --gold-light: #dfc89a;
    --gold-dark: #a07d3f;
    --beige: #e8ddd0;
    --text-dark: #3d2516;
    --text-mid: #6b4e3a;
    --text-light: #8b7a6b;
    --white: #ffffff;
    --shadow: 0 4px 24px rgba(60, 37, 22, 0.08);
    --shadow-lg: 0 12px 40px rgba(60, 37, 22, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Josefin Sans', sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--cream);
    z-index: 1;
}

.hero-ornament {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    border: 2px solid var(--gold-light);
    border-radius: 50%;
    opacity: 0.5;
}

.hero-ornament::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 1px solid var(--gold-light);
    border-radius: 50%;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    animation: fadeInUp 1.2s ease forwards;
}

.hero-subtitle {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2.8rem, 9vw, 4.5rem);
    font-weight: 400;
    color: var(--brown);
    line-height: 1.3;
    margin-bottom: 32px;
}

.hero-title .amp {
    display: block;
    font-size: 0.6em;
    color: var(--gold);
    margin: 4px 0;
}

.hero-date-box {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    border: 2px solid var(--gold);
    padding: 12px 32px;
    border-radius: 4px;
}

.date-label {
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--text-light);
    font-weight: 600;
}

.date-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--brown);
    line-height: 1;
    padding: 0 16px;
    border-left: 1px solid var(--gold-light);
    border-right: 1px solid var(--gold-light);
}

/* ========== SECTIONS ========== */
.section {
    position: relative;
    z-index: 1;
    padding: 80px 0;
}

.section-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2.8rem;
    text-align: center;
    color: var(--brown);
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 48px;
    font-weight: 300;
}

/* ========== TIMELINE ========== */
.timeline-section {
    background: var(--white);
    border-top: 1px solid var(--beige);
    border-bottom: 1px solid var(--beige);
}

.timeline {
    max-width: 500px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px dashed var(--beige);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-time {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gold-dark);
    min-width: 60px;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border: 1px solid var(--gold-light);
    border-radius: 50%;
    color: var(--gold);
    font-size: 1rem;
    flex-shrink: 0;
}

.timeline-detail h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.timeline-detail p {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 300;
}

/* ========== CALENDAR TOGGLE ========== */
.toggle-wrapper {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 32px 24px 0;
    background: var(--cream);
}

.toggle-container {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    border: 1px solid var(--beige);
}

.toggle-label {
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--text-light);
    transition: color 0.3s, font-weight 0.3s;
    user-select: none;
}

.toggle-label--active {
    color: var(--brown);
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: var(--beige);
    border: 2px solid var(--gold-light);
    border-radius: 13px;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
    flex-shrink: 0;
}

.toggle-switch.active {
    background: var(--gold-light);
    border-color: var(--gold);
}

.toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--gold);
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.toggle-switch.active .toggle-knob {
    transform: translateX(22px);
}

.child-date-hijri {
    font-size: 0.75rem;
    color: var(--gold-dark);
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    font-style: italic;
}

/* ========== COUNTER SECTION ========== */
.counter-section {
    background: var(--cream);
}

.counter-block {
    margin-bottom: 48px;
    text-align: center;
}

.counter-block:last-child {
    margin-bottom: 0;
}

.counter-label {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: var(--brown);
    margin-bottom: 20px;
}

.counter-values {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.counter-item {
    background: var(--white);
    border: 1px solid var(--beige);
    border-radius: 12px;
    padding: 16px 14px;
    min-width: 72px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.counter-item:hover {
    transform: translateY(-3px);
}

.counter-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--brown);
    line-height: 1;
    margin-bottom: 4px;
}

.counter-unit {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
}

.counter-item:nth-child(1) { border-top: 3px solid var(--gold); }
.counter-item:nth-child(2) { border-top: 3px solid var(--brown-light); }
.counter-item:nth-child(3) { border-top: 3px solid var(--gold-light); }
.counter-item:nth-child(4) { border-top: 3px solid #c4a882; }
.counter-item:nth-child(5) { border-top: 3px solid #b8967a; }
.counter-item:nth-child(6) { border-top: 3px solid var(--gold-dark); }

/* ========== CHILDREN SECTION ========== */
.children-section {
    background: var(--cream-dark);
}

.child-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--beige);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.child-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
}

.child-card:last-child {
    margin-bottom: 0;
}

.child-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--brown);
    margin-bottom: 4px;
}

.child-date {
    font-size: 0.8rem;
    color: var(--text-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.child-counter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.child-counter .counter-item {
    min-width: 60px;
    padding: 12px 10px;
}

.child-counter .counter-number {
    font-size: 1.8rem;
}

.child-counter .counter-unit {
    font-size: 0.6rem;
}

/* ========== MAP ========== */
.map-section {
    background: var(--white);
    border-top: 1px solid var(--beige);
}

.map-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--beige);
}

/* ========== FOOTER ========== */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 32px;
    background: var(--brown-dark);
    color: var(--cream);
}

.footer-wreath {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    position: relative;
}

.footer-wreath::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid var(--gold-light);
    border-radius: 50%;
}

.footer-text {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.footer-sub {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--beige);
    font-weight: 300;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-ornament {
        width: 260px;
        height: 260px;
    }

    .section {
        padding: 60px 0;
    }

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

    .counter-item {
        min-width: 60px;
        padding: 12px 10px;
    }

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

    .counter-unit {
        font-size: 0.6rem;
    }

    .counter-label {
        font-size: 1.6rem;
    }

    .child-card {
        padding: 24px 16px;
    }

    .child-counter .counter-item {
        min-width: 50px;
        padding: 10px 8px;
    }

    .child-counter .counter-number {
        font-size: 1.4rem;
    }

    .timeline-item {
        gap: 12px;
    }

    .hero-date-box {
        padding: 10px 20px;
        gap: 12px;
    }

    .date-number {
        font-size: 2rem;
        padding: 0 12px;
    }
}
