@import url('https://fonts.googleapis.com/css2?family=Estedad:wght@100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Montserrat", "Estedad", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background-color: #f9ebd1;
    color: #4d4339;
    direction: rtl;
}

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container img {
    width: auto;
    max-width: 100%;
    height: auto;
}

/* ── SVG logo animation ── */
@keyframes drawAndFill {
    0% {
        stroke-width: 3px;
        stroke-dashoffset: -970;
        fill: transparent;
    }

    70% {
        stroke-width: 3px;
        stroke-dashoffset: 0;
        fill: transparent;
    }

    90% {}

    100% {
        stroke-width: 0;
        fill: #4d4339;
    }
}

.svg_logo {
    height: 160px;
    width: auto;
}

.svg_logo path {
    fill: none;
    stroke: #4d4339;
    stroke-width: 2;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2037;
}

.svg_logo.in-view path {
    animation: drawAndFill 5s ease-in-out .1s forwards;
}

/* ── image-container01 ── */
@keyframes scrollBg {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.image-container01 {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.image-container01>img:first-child {
    display: block;
    position: relative;
    z-index: 1;
    max-width: 100%;
    height: auto;
}

.scroll-track {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    direction: ltr;
    z-index: 0;
    animation: scrollBg 15s linear infinite;
}

.scroll-track img {
    display: block;
    height: 65%;
    width: auto;
    max-width: none;
    flex-shrink: 0;
}

.top-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.top-grid .center-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.top-grid span {
    font-size: 18px;
}

.top-grid label {
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
}

.top-grid .time {
    border-top: 1px solid #4d4339;
    border-bottom: 1px solid #4d4339;
    padding-block: 5px;
    padding-inline: 20px;
    line-height: 1;
}

.section-title {
    width: 100%;
    display: block;
    text-align: center;
    background: #4d4339;
    color: #f9ebd1;
    font-size: 14px;
    padding-block: 5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
}

.svg-container {
    padding-block: 30px;
}

/* ── countdown ── */
.countdown {
    width: 100%;
    direction: ltr;
    padding: 30px 15px;
    color: #4d4339;
    text-align: center;
}

.countdown-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: baseline;
    font-weight: 800;
    font-size: clamp(40px, 12vw, 72px);
    line-height: 1;
    position: relative;
}

.countdown-row .cd-value {
    text-align: center;
}

.countdown-labels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 10px;
    font-size: clamp(11px, 2.4vw, 14px);
    letter-spacing: 1px;
}

.countdown-labels span {
    text-align: center;
}

/* ── calendar ── */
.calendar {
    width: 100%;
    direction: ltr;
    padding: 30px 20px;
    border-top: 1px solid #4d4339;
    border-bottom: 1px solid #4d4339;
    color: #4d4339;
    text-align: center;
}

.calendar-title {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 8px;
    margin-bottom: 8px;
}

.calendar-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 1px;
    background: #4d4339;
    margin: 8px auto 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 18px;
    margin-top: 24px;
    font-size: 16px;
}

.calendar-grid .day-name {
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.calendar-grid span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    margin: 0 auto;
}

.calendar-grid .highlight {
    border: 1px solid #4d4339;
    border-radius: 50%;
}

/* ── timeline ── */
.timeline {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-block: 40px;
    direction: ltr;
}

.timeline .milestone {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.timeline .milestone .date {
    font-size: 14px;
    letter-spacing: 3px;
    color: #4d4339;
}

.timeline .milestone .event {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 6px;
    color: #4d4339;
    line-height: 1;
}

.timeline .milestone:not(:last-child)::after {
    content: "";
    display: block;
    width: 1px;
    height: 180px;
    background: #4d4339;
    margin-block: 30px;
}

.inv1 {
    text-align: center;
    display: block;
    padding-inline: 15px;
    font-size: 20px;
}

.inv2 {
    display: flex;
    gap: 15px;
    padding-block: 20px;
    padding-inline: 15px;
    justify-content: center;
}

.inv2 div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.inv2 div:not(:last-child) {
    border-inline-end: 1px solid #d3c9bf;
    padding-inline-end: 15px;
}

.inv2 div span {
    font-size: 13px;
}

.inv2 div label {
    font-size: 16px;
    font-weight: 600;
}

.inv2 div svg {
    width: 38px;
    height: 38px;
    margin-bottom: 10px;
}

.flower-of-birth-month{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-block: 20px;
}

.flower-of-birth-month label{
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.flower-of-birth-month label:last-child{
    font-weight: 800;
}

.openmaps{
    display: block;
    margin-block: 20px;
    padding: 10px 20px;
    background-color: #4d4339;
    color: #f9ebd1;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
}

/* ── floating music toggle ── */
.music-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #4d4339;
    color: #f9ebd1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    transition: transform 0.2s ease, background 0.2s ease;
}

.music-toggle:hover {
    transform: scale(1.08);
}

.music-toggle.is-playing {
    animation: musicSpin 6s linear infinite;
}

.music-toggle .icon-play { display: none; }
.music-toggle .icon-pause { display: block; }
.music-toggle:not(.is-playing) .icon-play { display: block; }
.music-toggle:not(.is-playing) .icon-pause { display: none; }
.music-toggle:not(.is-playing) { animation: none; }

@keyframes musicSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.music-toggle:hover { animation-play-state: paused; }

/* ── fireworks overlay ── */
#fireworks {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: transparent;
}

/* ── floating particle background ── */
.bg-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.bg-particles .particle {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: #4d4339;
    will-change: transform, opacity;
    filter: blur(0.5px);
}

.container {
    position: relative;
    z-index: 1;
}


