/* ===== CSS Variables ===== */
:root {
    --color-rose-gold: #b8956e;
    --color-rose-gold-light: #d4a574;
    --color-rose-gold-dark: #9a7b5a;
    --color-cream: #faf8f5;
    --color-cream-dark: #f5f0e8;
    --color-text: #3d3d3d;
    --color-text-light: #6b6b6b;
    --color-navy: #1e3a5f;
    --color-white: #ffffff;
    
    --font-display: 'Great Vibes', cursive;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Josefin Sans', sans-serif;
    
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-cream);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--transition-smooth), 
                transform 0.8s var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-1 {
    transition-delay: 0.2s;
}

.reveal.delay-2 {
    transition-delay: 0.4s;
}

.reveal.delay-3 {
    transition-delay: 0.6s;
}

/* ===== Floral Background ===== */
.floral-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/floral-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* ===== Cover Section ===== */
.cover-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--color-white);
}

.cover-content {
    text-align: center;
    z-index: 1;
    padding: 2rem;
}

.getting-married {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    font-style: italic;
    color: var(--color-rose-gold);
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.couple-names {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 400;
    color: var(--color-rose-gold-dark);
    line-height: 1.2;
    margin-bottom: 2rem;
}

.couple-names .ampersand {
    display: block;
    font-size: 0.5em;
    color: var(--color-rose-gold-light);
    margin: 0.2em 0;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-top: 3rem;
}

.scroll-indicator span {
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-rose-gold);
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--color-rose-gold);
    border-bottom: 2px solid var(--color-rose-gold);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(10px) rotate(45deg);
    }
    60% {
        transform: translateY(5px) rotate(45deg);
    }
}

/* ===== Welcome Section ===== */
.welcome-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--color-white);
    padding: 4rem 2rem;
}

.welcome-content {
    text-align: center;
    z-index: 1;
    max-width: 600px;
}

.couple-photo-container {
    margin-bottom: 2.5rem;
}

.photo-frame {
    position: relative;
    display: inline-block;
    padding: 12px;
    background: linear-gradient(135deg, var(--color-rose-gold-light) 0%, var(--color-rose-gold) 50%, var(--color-rose-gold-dark) 100%);
    border-radius: 50%;
    box-shadow: 0 25px 50px -12px rgba(184, 149, 110, 0.35);
}

.photo-frame::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
}

.couple-photo {
    width: 340px;
    height: 340px;
    object-fit: cover;
    object-position: center 25%;
    border-radius: 50%;
    display: block;
}

.welcome-text h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--color-rose-gold-dark);
    margin-bottom: 1rem;
}

.welcome-text p {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--color-text-light);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    font-style: italic;
    opacity: 0.8;
}

.decorative-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-rose-gold), transparent);
    margin: 2rem auto 0;
}

/* ===== Events Section ===== */
.events-section {
    min-height: 100vh;
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-cream-dark) 100%);
}

.events-header {
    text-align: center;
    margin-bottom: 4rem;
}

.events-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--color-rose-gold-dark);
    margin-bottom: 0.5rem;
}

.events-subtitle {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-text-light);
    font-style: italic;
}

.events-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* ===== Event Card ===== */
.event-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 40px -10px rgba(184, 149, 110, 0.2);
    border: 1px solid rgba(184, 149, 110, 0.15);
    transition: transform 0.4s var(--transition-smooth), 
                box-shadow 0.4s var(--transition-smooth);
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px -15px rgba(184, 149, 110, 0.35);
}

.ceremony-card {
    background: linear-gradient(145deg, var(--color-white) 0%, rgba(184, 149, 110, 0.08) 100%);
    border: 2px solid var(--color-rose-gold-light);
}

.event-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem;
    color: var(--color-rose-gold);
}

.event-icon svg {
    width: 100%;
    height: 100%;
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.event-date .day {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--color-rose-gold-dark);
    line-height: 1;
}

.event-date .month {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.event-date .year {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.event-date .weekday {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-rose-gold);
    font-weight: 400;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.event-name {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-rose-gold-dark);
    margin-bottom: 1.5rem;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-text-light);
}

.detail-icon {
    font-size: 1.1rem;
}

.dress-code {
    margin-top: 0.5rem;
}

.dress-code span:last-child {
    color: var(--color-rose-gold-dark);
    font-weight: 500;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--color-rose-gold-light) 0%, var(--color-rose-gold) 100%);
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 30px;
    transition: all 0.3s var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(184, 149, 110, 0.3);
}

.map-link:hover {
    background: linear-gradient(135deg, var(--color-rose-gold) 0%, var(--color-rose-gold-dark) 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(184, 149, 110, 0.4);
}

.map-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s var(--transition-smooth);
}

.map-link:hover svg {
    transform: translate(2px, -2px);
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 4rem 2rem 2rem;
    margin-top: 3rem;
}

.footer-content {
    position: relative;
}

.footer-content::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--color-rose-gold);
}

.footer-names {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-rose-gold-dark);
    margin-bottom: 0.5rem;
}

.footer-date {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-text-light);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ===== Love Quote ===== */
.love-quote {
    margin-top: 2.5rem;
    padding: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.love-quote p {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.8;
}

.quote-addition {
    display: block;
    margin-top: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-rose-gold);
    font-style: normal;
}

/* ===== Countdown Timer ===== */
.countdown-section {
    margin-top: 2.5rem;
}

.countdown-label {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.countdown-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--color-rose-gold-dark);
    line-height: 1;
}

.countdown-unit {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

.countdown-separator {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-rose-gold-light);
    margin-bottom: 1.2rem;
}

/* ===== Floating Petals ===== */
.petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1000;
}

.petal {
    position: absolute;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--color-rose-gold-light) 0%, rgba(212, 165, 116, 0.5) 100%);
    border-radius: 50% 0 50% 50%;
    pointer-events: none;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .couple-photo {
        width: 280px;
        height: 280px;
    }
    
    .events-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .event-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .cover-content {
        padding: 1.5rem;
    }
    
    .couple-photo {
        width: 240px;
        height: 240px;
    }
    
    .photo-frame {
        padding: 8px;
    }
    
    .event-date .day {
        font-size: 2.8rem;
    }
    
    .event-name {
        font-size: 1.7rem;
    }
    
    .countdown-item {
        min-width: 50px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-separator {
        font-size: 1.5rem;
    }
    
    .love-quote {
        padding: 1.5rem 1rem;
    }
    
    .love-quote p {
        font-size: 1.05rem;
    }
}

/* ===== Smooth Scrollbar (Webkit) ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--color-rose-gold-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-rose-gold);
}

