:root {
    --terracotta: #E2725B;
    --mustard: #FFDB58;
    --olive: #808000;
    --beige: #F5F5DC;
    --white: #FFFFFF;
    --dark-text: #4A4A4A;
}

body {
    font-family: 'Playfair Display', serif;
    color: var(--dark-text);
    background-color: var(--white);
    overflow-x: hidden;
}

.script-font {
    font-family: 'Dancing Script', cursive;
}

.names-font {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.serif-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--terracotta);
}

.section-padding {
    padding: 5rem 0;
}

/* Music Control */
.music-control {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.btn-music-otono {
    background-color: var(--terracotta);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-music-otono:hover {
    transform: scale(1.1);
    background-color: var(--mustard);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1508020963102-c6c723be5764?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    /* Autumn forest placeholder */
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.relative-z {
    position: relative;
    z-index: 1;
}

.hero-image-frame {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 5px solid var(--mustard);
    overflow: hidden;
    margin: 2rem auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.date-font {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.location-font {
    font-size: 1.2rem;
    color: var(--mustard);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Falling Leaves Animation */
.leaves-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.leaf {
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23E2725B"><path d="M17,8C8,10,5.9,16.17,3.82,21.34L5.71,22l1-2.3A4.49,4.49,0,0,0,8,20C19,20,22,3,22,3,21,5,14,5.25,9,6.25S2,11.5,2,13.5a6.22,6.22,0,0,0,1.75,3.75C7,8,17,8,17,8Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translate(0, -10%) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translate(100px, 110vh) rotate(360deg);
        opacity: 0;
    }
}

/* Countdown */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.countdown-leaf {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--mustard);
    border-radius: 50% 50% 0 50%;
    /* Leaf shape */
    padding: 1.5rem;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: rotate(45deg);
}

.countdown-number,
.countdown-label {
    transform: rotate(-45deg);
    /* Counteract leaf rotation */
}

.countdown-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--mustard);
    line-height: 1;
}

.countdown-label {
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

/* Gallery */
.otono-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--terracotta);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--terracotta);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--mustard);
    border: 4px solid white;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid var(--terracotta);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--terracotta);
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid var(--terracotta);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--terracotta) transparent transparent;
}

.right::after {
    left: -10px;
}

.content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--terracotta);
}

.content h3 {
    color: var(--terracotta);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Cards */
.otono-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-top: 5px solid var(--terracotta);
}

.otono-card:hover {
    transform: translateY(-10px);
}

.icon-leaf {
    width: 60px;
    height: 60px;
    background-color: var(--beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--terracotta);
    font-size: 1.5rem;
}

.time-text {
    font-weight: 700;
    color: var(--olive);
}

/* Buttons */
.btn-otono {
    display: inline-block;
    padding: 10px 30px;
    background-color: var(--terracotta);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-otono:hover {
    background-color: var(--mustard);
    color: var(--dark-text);
    text-decoration: none;
}

.btn-otono-outline {
    display: inline-block;
    padding: 10px 30px;
    background-color: transparent;
    color: var(--terracotta);
    border: 2px solid var(--terracotta);
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-otono-outline:hover {
    background-color: var(--terracotta);
    color: white;
    text-decoration: none;
}

.btn-otono-light {
    display: inline-block;
    padding: 12px 40px;
    background-color: var(--mustard);
    color: var(--dark-text);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-otono-light:hover {
    background-color: white;
    color: var(--terracotta);
    text-decoration: none;
}

/* Footer Section */
.footer-section {
    background-color: var(--terracotta);
    background-image: url('https://www.transparenttextures.com/patterns/wood-pattern.png');
    /* Subtle texture */
}

/* Responsive */
@media (max-width: 768px) {
    .names-font {
        font-size: 3rem;
    }

    .countdown-container {
        gap: 1rem;
    }

    .countdown-leaf {
        width: 90px;
        height: 90px;
        padding: 1rem;
    }

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

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::before {
        left: 60px;
        border: medium solid var(--terracotta);
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--terracotta) transparent transparent;
    }

    .left::after,
    .right::after {
        left: 21px;
    }

    .right {
        left: 0%;
    }
}