:root {
    --bg-color: #FFFAF0;
    /* Floral White */
    --text-color: #3E2723;
    /* Dark Brown */
    --accent-color: #FFD700;
    /* Gold */
    --secondary-accent: #DAA520;
    /* Goldenrod */
    --white: #FFFFFF;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    margin: 0;
    background-image: radial-gradient(#FFD700 0.5px, transparent 0.5px), radial-gradient(#FFD700 0.5px, #FFFAF0 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    background-attachment: fixed;
}

/* --- Typography --- */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.big-font {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary-accent);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 10px;
}

.medium-font {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-accent);
    position: relative;
    display: inline-block;
}

.medium-font::after {
    content: '👑';
    display: block;
    font-size: 1.5rem;
    margin-top: 5px;
}

.text-uppercase-spaced {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 600;
}

/* --- Layout --- */
.section-padding {
    padding: 6rem 1rem;
    position: relative;
    background: rgba(255, 250, 240, 0.95);
    /* Semi-transparent background for readability */
}

/* --- Royal Card --- */
.royal-card {
    background: var(--white);
    padding: 3rem 2rem;
    border: 1px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(62, 39, 35, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    margin-bottom: 20px;
}

/* Double border effect */
.royal-card::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid var(--secondary-accent);
    pointer-events: none;
}

.royal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(62, 39, 35, 0.2);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    background: linear-gradient(135deg, #FFFAF0 0%, #FFF8E1 100%);
    overflow: hidden;
}

.hero-border {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid var(--accent-color);
    z-index: 1;
}

.hero-border::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid var(--secondary-accent);
}

.hero-image-container {
    width: 250px;
    height: 250px;
    margin: 2rem auto;
    border-radius: 50%;
    border: 5px solid var(--accent-color);
    overflow: hidden;
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.5);
    position: relative;
    z-index: 2;
}

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

/* Crown Animation */
.crown-icon {
    font-size: 3rem;
    color: var(--accent-color);
    animation: float 3s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* --- Buttons --- */
.btn-royal {
    background-color: var(--secondary-accent);
    color: var(--white);
    border: none;
    padding: 12px 40px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-royal::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-royal:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
    transform: scale(1.05);
    text-decoration: none;
    box-shadow: 0 0 15px rgba(218, 165, 32, 0.6);
}

/* --- Royal Timeline (Royal Scroll) --- */
.royal-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

/* The Royal Line - Gold Gradient */
.royal-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(to bottom, #DAA520, #FFD700, #DAA520);
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(218, 165, 32, 0.6);
    border-radius: 2px;
}

.timeline-step {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
    clear: both;
}

/* Alternating sides */
.timeline-step:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-step:nth-child(even) {
    left: 50%;
    text-align: left;
}

/* The Marker - Crown */
.timeline-step::after {
    content: '👑';
    position: absolute;
    top: 30px;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 2;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.4);
}

.timeline-step:nth-child(odd)::after {
    right: -20px;
}

.timeline-step:nth-child(even)::after {
    left: -20px;
}

/* The Card - Parchment Style */
.step-content {
    background: #FFF8E1;
    /* Parchment */
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #DAA520;
    box-shadow: 5px 5px 15px rgba(62, 39, 35, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.step-content:hover {
    transform: scale(1.02);
    background: #FFFAF0;
}

/* Decorative corners for parchment */
.step-content::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 1px dashed #DAA520;
    border-radius: 8px;
    pointer-events: none;
}

.step-time {
    display: inline-block;
    background: var(--secondary-accent);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.step-icon {
    display: none;
    /* Hide standard icon in this layout */
}

.step-info h3 {
    margin: 10px 0 5px;
    font-size: 1.4rem;
    color: var(--text-color);
}

.step-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #5D4037;
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .royal-timeline::before {
        left: 20px;
    }

    .timeline-step {
        width: 100%;
        padding-left: 50px;
        padding-right: 10px;
        text-align: left !important;
    }

    .timeline-step:nth-child(odd),
    .timeline-step:nth-child(even) {
        left: 0;
    }

    .timeline-step:nth-child(odd)::after,
    .timeline-step:nth-child(even)::after {
        left: 0;
        right: auto;
    }
}

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

.countdown-item {
    text-align: center;
}

.countdown-number {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--secondary-accent);
    background: var(--white);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto 10px;
    position: relative;
}

/* Coin effect */
.countdown-number::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border: 1px dashed var(--secondary-accent);
    border-radius: 50%;
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-color);
    letter-spacing: 2px;
    font-weight: 700;
}

/* --- Music Button --- */
.music-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.btn-music-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--accent-color);
    color: var(--secondary-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-music-circle:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: rotate(360deg);
}

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

.gallery-item-royal {
    border: 4px solid var(--accent-color);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Inner border */
.gallery-item-royal::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid var(--white);
    pointer-events: none;
    z-index: 1;
}

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

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

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

    .hero-image-container {
        width: 200px;
        height: 200px;
    }

    .hero-border {
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .royal-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

}