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

:root {
    --primary-gold: #f4d03f;
    --secondary-gold: #f7dc6f;
    --forest-green: #2d5016;
    --sage-green: #87a96b;
    --lavender: #b19cd9;
    --soft-purple: #d4a5d9;
    --cream: #fef9e7;
    --ivory: #fffef0;
    --dark-forest: #1a3009;
    --twilight-blue: #2c3e50;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background: linear-gradient(135deg, #1a3009 0%, #2d5016 50%, #1a3009 100%);
    color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Animated Starry Background */
.stars, .twinkling {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}

.stars {
    background: #000 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="20" cy="20" r="1" fill="white" opacity="0.8"/><circle cx="50" cy="30" r="0.5" fill="white" opacity="0.6"/><circle cx="80" cy="10" r="1" fill="white" opacity="0.7"/><circle cx="30" cy="60" r="0.5" fill="white" opacity="0.5"/><circle cx="70" cy="70" r="1" fill="white" opacity="0.8"/><circle cx="10" cy="80" r="0.5" fill="white" opacity="0.6"/><circle cx="90" cy="50" r="1" fill="white" opacity="0.7"/></svg>') repeat;
    z-index: 0;
}

.twinkling {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><circle cx="20" cy="20" r="1" fill="white" opacity="0.3"/><circle cx="50" cy="30" r="0.5" fill="white" opacity="0.2"/><circle cx="80" cy="10" r="1" fill="white" opacity="0.4"/><circle cx="30" cy="60" r="0.5" fill="white" opacity="0.3"/><circle cx="70" cy="70" r="1" fill="white" opacity="0.2"/><circle cx="10" cy="80" r="0.5" fill="white" opacity="0.4"/><circle cx="90" cy="50" r="1" fill="white" opacity="0.3"/></svg>') repeat;
    z-index: 0;
    animation: move-twink-back 200s linear infinite;
}

@keyframes move-twink-back {
    from { transform: translateX(0); }
    to { transform: translateX(-10000px); }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    z-index: 1;
    background: radial-gradient(ellipse at center, rgba(45, 80, 22, 0.3) 0%, rgba(26, 48, 9, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.5s ease-out;
}

.main-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: var(--primary-gold);
    text-shadow: 
        0 0 10px rgba(244, 208, 63, 0.5),
        0 0 20px rgba(244, 208, 63, 0.3),
        0 0 30px rgba(244, 208, 63, 0.2);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 
            0 0 10px rgba(244, 208, 63, 0.5),
            0 0 20px rgba(244, 208, 63, 0.3),
            0 0 30px rgba(244, 208, 63, 0.2);
    }
    to {
        text-shadow: 
            0 0 20px rgba(244, 208, 63, 0.8),
            0 0 30px rgba(244, 208, 63, 0.6),
            0 0 40px rgba(244, 208, 63, 0.4),
            0 0 50px rgba(244, 208, 63, 0.2);
    }
}

.subtitle {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--sage-green);
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: 0.2em;
}

.decorative-line {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    margin: 2rem auto;
    box-shadow: 0 0 10px var(--primary-gold);
}

.date {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--secondary-gold);
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* Floating Fairy Lights */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.fairy-light {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-gold), 0 0 20px var(--primary-gold);
    animation: float 6s ease-in-out infinite;
}

.fairy-light:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.fairy-light:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.fairy-light:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-30px) translateX(20px);
        opacity: 1;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sections */
section {
    position: relative;
    z-index: 1;
    padding: 4rem 0;
}

section h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(244, 208, 63, 0.3);
}

/* Invitation Section */
.invitation {
    background: rgba(26, 48, 9, 0.5);
    backdrop-filter: blur(5px);
}

.invitation-text {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.8;
    color: var(--ivory);
}

.invitation-text:last-of-type {
    margin-bottom: 0;
}

/* Details Section */
.details {
    padding: 5rem 0;
}

.details .container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.detail-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(244, 208, 63, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex: 0 1 280px;
    min-width: 280px;
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(244, 208, 63, 0.3);
    border-color: rgba(244, 208, 63, 0.5);
}

.detail-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(244, 208, 63, 0.5));
}

.detail-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.detail-card p {
    font-size: 1.1rem;
    color: var(--ivory);
    margin-bottom: 0.5rem;
}

.detail-card .time,
.detail-card .address,
.detail-card .dress-note {
    font-size: 0.95rem;
    color: var(--sage-green);
    font-style: italic;
}

/* Activities Section */
.activities {
    background: rgba(26, 48, 9, 0.5);
    backdrop-filter: blur(5px);
}

.activities-intro {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--ivory);
}

/* Tournaments Section */
.tournaments {
    padding: 5rem 0;
}

.tournaments-text {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--ivory);
}

/* Schedule Section */
.schedule {
    background: rgba(26, 48, 9, 0.5);
    backdrop-filter: blur(5px);
    padding: 5rem 0;
}

.schedule-list {
    max-width: 800px;
    margin: 0 auto;
}

.schedule-day-heading {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--primary-gold);
    text-align: center;
    margin: 3rem 0 2rem 0;
    text-shadow: 0 0 10px rgba(244, 208, 63, 0.3);
}

.schedule-day-heading:first-child {
    margin-top: 0;
}

.schedule-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(244, 208, 63, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.schedule-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(244, 208, 63, 0.4);
    transform: translateX(5px);
}

.schedule-time {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-gold);
    text-align: right;
    padding-right: 1rem;
    border-right: 2px solid rgba(244, 208, 63, 0.3);
}

.schedule-event {
    font-size: 1.1rem;
    color: var(--ivory);
    line-height: 1.6;
}

.schedule-event em {
    color: var(--sage-green);
    font-size: 0.95rem;
}

/* Trophy Icon and Tooltip */
.trophy-icon {
    display: inline-block;
    cursor: help;
    position: relative;
    font-size: 1rem;
    vertical-align: middle;
    filter: drop-shadow(0 0 3px rgba(244, 208, 63, 0.5));
    transition: transform 0.2s ease;
}

.trophy-icon:hover {
    transform: scale(1.2);
}

.trophy-icon::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(26, 48, 9, 0.95);
    backdrop-filter: blur(10px);
    color: var(--ivory);
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: normal;
    width: 280px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(244, 208, 63, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 20px rgba(244, 208, 63, 0.2);
    z-index: 1000;
    text-align: center;
}

.trophy-icon::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    border: 6px solid transparent;
    border-top-color: rgba(244, 208, 63, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1001;
}

.trophy-icon:hover::before,
.trophy-icon:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.trophy-icon:hover::after {
    transform: translateX(-50%) translateY(1px);
    border-top-color: rgba(26, 48, 9, 0.95);
}

/* Arrangements Section */
.arrangements {
    padding: 5rem 0;
}

.arrangements-content {
    max-width: 800px;
    margin: 0 auto;
}

.arrangement-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(244, 208, 63, 0.2);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--ivory);
}

.arrangement-item strong {
    color: var(--primary-gold);
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* RSVP Section */
.rsvp {
    background: rgba(26, 48, 9, 0.5);
    backdrop-filter: blur(5px);
    padding: 5rem 0;
    text-align: center;
}

.rsvp-text {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--ivory);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.rsvp-button-container {
    margin: 2rem 0;
}

.rsvp-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-forest);
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 
        0 4px 15px rgba(244, 208, 63, 0.4),
        0 0 20px rgba(244, 208, 63, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.rsvp-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.rsvp-button:hover::before {
    left: 100%;
}

.rsvp-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 6px 25px rgba(244, 208, 63, 0.6),
        0 0 30px rgba(244, 208, 63, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: var(--dark-forest);
}

.rsvp-button:active {
    transform: translateY(-1px) scale(1.02);
}

.rsvp-note {
    font-size: 1.1rem;
    color: var(--sage-green);
    font-style: italic;
    margin-top: 2rem;
}

.rsvp-note a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(244, 208, 63, 0.3);
}

.rsvp-note a:hover {
    color: var(--secondary-gold);
    text-shadow: 0 0 10px rgba(244, 208, 63, 0.6);
    text-decoration: underline;
}

/* Footer */
footer {
    position: relative;
    z-index: 1;
    background: rgba(26, 48, 9, 0.8);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(244, 208, 63, 0.2);
}

footer p {
    color: var(--sage-green);
    font-size: 0.9rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .details .container {
        grid-template-columns: 1fr;
    }
    
    .schedule-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .schedule-time {
        text-align: left;
        padding-right: 0;
        padding-bottom: 0.5rem;
        border-right: none;
        border-bottom: 2px solid rgba(244, 208, 63, 0.3);
    }
    
    section {
        padding: 3rem 0;
    }
    
    .info-icon {
        top: 1rem;
        right: 1rem;
        font-size: 1rem;
    }
    
    .info-icon::before {
        width: 240px;
        font-size: 0.85rem;
        padding: 0.8rem 1.2rem;
        right: 0;
    }
    
    .trophy-icon::before {
        width: 240px;
        font-size: 0.85rem;
        padding: 0.8rem 1.2rem;
    }
}

