/* ==========================================================================
   CSS Variables & Base Styles
   ========================================================================== */
:root {
    --primary-color: #2c4c3b; /* Deep green */
    --secondary-color: #d4af37; /* Warm gold */
    --text-main: #2b3a32;
    --text-light: #5d6d64;
    --bg-main: #fcfbf9; /* Soft cream */
    --bg-light: #f4f3ec;
    --white: #ffffff;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    --border-radius: 12px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: var(--secondary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-center { text-align: center; }
.text-center h2::after { left: 50%; }
.hidden { display: none !important; }
.w-100 { width: 100%; }

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s ease-out;
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s ease-out;
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s ease-out;
}
.reveal-fade {
    opacity: 0;
    transition: opacity 1.5s ease-in;
}

.active.reveal-up,
.active.reveal-left,
.active.reveal-right,
.active.reveal-scale {
    opacity: 1;
    transform: translate(0) scale(1);
    transition-delay: var(--delay, 0s);
}
.active.reveal-fade {
    opacity: 1;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary, .btn-outline {
    display: inline-block;
    padding: 0.8rem 2.2rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background-color: #c19b2e;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* ==========================================================================
   Sections
   ========================================================================== */
section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -20%; left: 0; right: 0; bottom: -20%;
    background-image: url('images/hero.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: translateY(0);
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(44, 76, 59, 0.8) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 5.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    line-height: 1.1;
}

.hero-date {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mouse {
    width: 26px;
    height: 42px;
    border-radius: 15px;
    border: 2px solid white;
    position: relative;
    margin-bottom: 5px;
}

.wheel {
    width: 4px;
    height: 8px;
    border-radius: 2px;
    background: white;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* Glassmorphism Classes */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

/* Details Section */
.details-section::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.details-section .welcome-text {
    max-width: 700px;
    margin: var(--spacing-md) auto var(--spacing-lg);
    font-size: 1.25rem;
    color: var(--text-light);
}

.info-cards {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.card {
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.1);
}

.card h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--secondary-color);
}

.card p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Itinerary Section */
.itinerary-section {
    background-color: var(--bg-light);
    position: relative;
}

.timeline {
    max-width: 650px;
    margin: var(--spacing-lg) auto 0;
    list-style: none;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 30px;
    width: 2px;
    background: rgba(44, 76, 59, 0.1);
}

.timeline li {
    display: flex;
    margin-bottom: var(--spacing-md);
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border-left: 4px solid var(--secondary-color);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.timeline li:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.timeline .time {
    font-weight: 700;
    color: var(--primary-color);
    width: 140px;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.timeline .event-desc {
    font-size: 1.15rem;
    color: var(--text-main);
}

/* Gallery Section */
.grid-3x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: var(--spacing-lg);
}

.gallery-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-item:hover::after {
    opacity: 1;
}

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

/* RSVP Section */
.rsvp-section {
    position: relative;
}

.rsvp-section::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(44,76,59,0.05) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.rsvp-container {
    max-width: 600px;
}

.rsvp-section p.text-center {
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

.form-wrapper {
    padding: var(--spacing-lg);
    border-radius: 20px;
    margin-top: var(--spacing-lg);
}

/* Floating Labels */
.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.floating-label input {
    width: 100%;
    padding: 1.2rem 1rem 0.6rem;
    font-size: 1rem;
    border: none;
    border-bottom: 2px solid rgba(44, 76, 59, 0.2);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px 8px 0 0;
    font-family: var(--font-body);
    transition: var(--transition);
}

.floating-label input:focus {
    outline: none;
    border-bottom-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.9);
}

.floating-label label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
    transition: var(--transition);
    font-size: 1rem;
}

.floating-label input:focus ~ label,
.floating-label input:not(:placeholder-shown) ~ label {
    top: 10px;
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
}

.button-glow {
    position: relative;
    overflow: hidden;
}

.button-glow::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(30deg) translateY(-50%);
    animation: glow 3s infinite;
}

@keyframes glow {
    0% { transform: rotate(30deg) translateY(-50%) translateX(-100%); }
    100% { transform: rotate(30deg) translateY(-50%) translateX(100%); }
}

.form-success {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(232, 245, 233, 0.8);
    border-radius: var(--border-radius);
    color: #2e7d32;
    animation: slideUp 0.5s ease-out;
}

.success-icon {
    width: 60px; height: 60px;
    background: #4caf50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
    background: var(--primary-color);
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 3rem 0;
    font-size: 0.95rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 900px) {
    .grid-3x3 { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 4.5rem; }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 3.2rem; }
    .hero-date { font-size: 1.1rem; }
    h2 { font-size: 2.2rem; }
    .grid-3x3 { grid-template-columns: 1fr; }
    .timeline::before { left: 20px; }
    .timeline li {
        flex-direction: column;
        padding: 1.2rem;
        padding-left: 2rem;
    }
    .timeline .time {
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }
    .form-wrapper { padding: var(--spacing-md); }
}
