/* =========================================
   VARIABLES & SETUP
========================================= */
:root {
    /* Colors */
    --c-bg-main: #0A0D14;
    --c-bg-card: #121826;
    --c-bg-card-hover: #1A2235;
    
    --c-text-main: #F3F4F6;
    --c-text-muted: #9CA3AF;
    
    --c-champagne: #D5CDA5;
    --c-champagne-light: #E5D3B3;
    --c-champagne-dark: #A99C77;
    
    --c-border: rgba(213, 205, 165, 0.15);
    
    /* Gradients */
    --g-champagne: linear-gradient(135deg, #A99C77 0%, #D5CDA5 50%, #F5ECCC 100%);
    
    /* Typography */
    --f-heading: 'Cormorant Garamond', serif;
    --f-body: 'Outfit', sans-serif;
    
    /* UI */
    --t-fast: 0.3s ease;
    --t-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --radius: 8px;
    --radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

/* =========================================
   TYPOGRAPHY & UTILITIES
========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-heading);
    font-weight: 500;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--t-fast);
}

ul {
    list-style: none;
}

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

.section {
    padding: 100px 0;
}

.p-0 { padding: 0; }
.pt-0 { padding-top: 0; }
.pb-5 { padding-bottom: 3rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.pt-5 { padding-top: 3rem; }
.mb-4 { margin-bottom: 2rem; }
.w-100 { width: 100%; }

.text-center { text-align: center; }
.align-center { display: flex; align-items: center; justify-content: center; }
.justify-center { justify-content: center; }

.champagne-text {
    color: var(--c-champagne);
}

.italic {
    font-style: italic;
}

/* =========================================
   BUTTONS
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--t-fast);
    border: 1px solid transparent;
}

.btn-champagne {
    background: var(--c-champagne);
    color: #0A0D14;
    font-weight: 600;
}

.btn-champagne:hover {
    background: var(--c-champagne-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(213, 205, 165, 0.15);
}

.btn-outline-champagne {
    background: transparent;
    color: var(--c-champagne);
    border-color: var(--c-champagne);
}

.btn-outline-champagne:hover {
    background: rgba(213, 205, 165, 0.1);
}

/* =========================================
   PRELOADER
========================================= */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--c-bg-main);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader {
    display: flex;
    gap: 8px;
}

.line {
    width: 2px;
    height: 30px;
    background: var(--c-champagne);
    animation: grow 1s ease-in-out infinite alternate;
}

.line-1 { animation-delay: 0s; }
.line-2 { animation-delay: 0.2s; }
.line-3 { animation-delay: 0.4s; }

@keyframes grow {
    0% { transform: scaleY(0.3); opacity: 0.5; }
    100% { transform: scaleY(1); opacity: 1; }
}

/* =========================================
   NAVIGATION
========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--t-fast);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(10, 13, 20, 0.85);
    backdrop-filter: blur(10px);
    border-bottom-color: rgba(255,255,255,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-family: var(--f-heading);
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.logo-icon {
    color: var(--c-champagne);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: var(--c-text-main);
    opacity: 0.8;
}

.nav-item:hover {
    opacity: 1;
    color: var(--c-champagne);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.mobile-toggle .bar {
    width: 30px;
    height: 1px;
    background: var(--c-champagne);
    transition: var(--t-fast);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--c-bg-main);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--t-fast);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    transform: translateY(20px);
    transition: var(--t-slow);
}

.mobile-menu.active .mobile-menu-content {
    transform: translateY(0);
}

.mobile-nav-item {
    font-family: var(--f-heading);
    font-size: 2.5rem;
    color: var(--c-text-main);
}

.mobile-nav-item:hover {
    color: var(--c-champagne);
    font-style: italic;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1551818255-e6e10975bc17?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10,13,20,0.95) 0%, rgba(10,13,20,0.7) 50%, rgba(10,13,20,0.4) 100%);
}

.hero-container {
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 700px;
}

.hero-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--c-champagne);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-title {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--c-text-muted);
    font-weight: 300;
    margin-bottom: 3rem;
}

.hero-details {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.detail-item i {
    color: var(--c-champagne);
    font-size: 1.2rem;
    margin-top: 0.3rem;
}

.detail-text {
    display: flex;
    flex-direction: column;
}

.detail-text strong {
    font-weight: 500;
    font-size: 1.1rem;
}

.detail-text span {
    font-size: 0.9rem;
    color: var(--c-text-muted);
}

.detail-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.1);
}

/* =========================================
   SECTION HEADINGS
========================================= */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--c-champagne);
    margin-bottom: 1rem;
    position: relative;
}

.section-label.align-center {
    display: flex;
    justify-content: center;
}

.section-label::before, .section-label::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background: var(--c-champagne);
    vertical-align: middle;
}

.section-label::before { margin-right: 15px; }
.section-label::after { margin-left: 15px; }
.section-label.align-center::before { margin-right: 15px; }
.section-label.align-center::after { margin-left: 15px; }


/* For left-aligned labels */
.about .section-label::before,
.venue-rsvp .section-label::before,
.dress-code-card .section-label::before,
.timeline-container .section-label::before {
    display: none;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

/* =========================================
   ABOUT PURPOSE
========================================= */
.about {
    background-color: var(--c-bg-main);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.rounded-img {
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

.img-fluid {
    width: 100%;
    height: auto;
    display: block;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 140px;
    height: 140px;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.experience-badge span {
    font-family: var(--f-heading);
    font-size: 2.5rem;
    color: var(--c-champagne);
    line-height: 1;
}

.experience-badge p {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--c-text-muted);
    margin-top: 0.5rem;
}

.section-desc {
    color: var(--c-text-muted);
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
}

.value-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.value-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--c-champagne);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-champagne);
    flex-shrink: 0;
}

.value-info h4 {
    font-family: var(--f-body);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.value-info p {
    color: var(--c-text-muted);
    font-size: 0.95rem;
}

/* =========================================
   OPPORTUNITIES
========================================= */
.dark-section {
    background-color: #080A0F;
    border-top: 1px solid rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.opportunity-card {
    background: var(--c-bg-card);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--t-slow);
}

.opportunity-card:hover {
    background: var(--c-bg-card-hover);
    transform: translateY(-5px);
    border-color: rgba(213, 205, 165, 0.2);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: rgba(213, 205, 165, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--c-champagne);
}

.opportunity-card h3 {
    font-family: var(--f-body);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.opportunity-card p {
    color: var(--c-text-muted);
    font-size: 0.95rem;
}

.logo-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    opacity: 0.5;
}

.guest-logo {
    font-family: var(--f-heading);
    font-size: 1.5rem;
    text-align: center;
    line-height: 1.1;
    color: var(--c-text-main);
}

/* =========================================
   TIMELINE & DRESS CODE
========================================= */
.info-section {
    background: var(--c-bg-main);
}

.info-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
}

/* Timeline */
.timeline-wrapper {
    margin-top: 3rem;
    position: relative;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 1px;
    height: calc(100% - 10px);
    background: rgba(255,255,255,0.1);
}

.timeline-block {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3rem;
}

.timeline-block:last-child {
    margin-bottom: 0;
}

.time-marker {
    position: absolute;
    top: 5px;
    left: 0;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--c-bg-main);
    border: 2px solid var(--c-champagne);
}

.time {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--c-champagne);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-family: var(--f-body);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--c-text-muted);
    font-size: 0.95rem;
}

/* Dress Code */
.dress-code-card {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 4rem 3rem;
    text-align: center;
    position: sticky;
    top: 100px;
}

.dress-code-card .section-title {
    font-size: 2.8rem;
    margin-bottom: 2rem;
}

.attire-icon {
    font-size: 3rem;
    color: var(--c-champagne);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.dress-code-card h3 {
    font-family: var(--f-body);
    font-size: 1.3rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.attire-details p {
    color: var(--c-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.attire-details strong {
    color: var(--c-text-main);
    font-weight: 500;
}

.attire-note {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.attire-note p {
    font-size: 0.85rem;
    color: var(--c-text-muted);
    opacity: 0.7;
}

/* =========================================
   GALLERY TICKER
========================================= */
.gallery {
    background: var(--c-bg-main);
    overflow: hidden;
}

.gallery-ticker {
    display: flex;
    width: 100%;
}

.ticker-track {
    display: flex;
    gap: 1rem;
    animation: scroll-left 40s linear infinite;
    padding: 0 0.5rem;
}

.ticker-track img {
    height: 350px;
    width: 500px;
    object-fit: cover;
    border-radius: var(--radius);
    filter: grayscale(80%) brightness(0.8);
    transition: var(--t-slow);
}

.ticker-track img:hover {
    filter: grayscale(0%) brightness(1);
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-500px * 5 + -1rem * 5)); } /* width * elements + gap * elements */
}

/* =========================================
   VENUE & RSVP
========================================= */
.venue-rsvp {
    background: #080A0F;
}

.venue-rsvp-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.venue-desc {
    color: var(--c-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.venue-details-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.venue-details-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.venue-details-list i {
    color: var(--c-champagne);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.venue-details-list strong {
    display: block;
    font-family: var(--f-body);
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.venue-details-list span {
    color: var(--c-text-muted);
    font-size: 0.95rem;
}

.map-visual {
    background: var(--c-bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    color: var(--c-champagne);
    cursor: pointer;
    transition: var(--t-fast);
}

.map-visual:hover {
    background: var(--c-bg-card-hover);
    border-color: rgba(213, 205, 165, 0.3);
}

/* RSVP Form */
.rsvp-card {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.rsvp-header {
    margin-bottom: 2.5rem;
}

.rsvp-header h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.rsvp-header p {
    color: var(--c-text-muted);
    font-size: 0.95rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--c-text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--c-text-main);
    padding: 0.8rem 1rem;
    border-radius: 4px;
    font-family: var(--f-body);
    font-size: 1rem;
    transition: var(--t-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--c-champagne);
    background: rgba(0,0,0,0.5);
}

.small-text {
    font-size: 0.8rem;
    color: var(--c-text-muted);
}

/* =========================================
   SPONSORS & FOOTER
========================================= */
.sponsors {
    background: #080A0F;
}

.sponsors-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.sponsor-brand {
    font-family: var(--f-body);
    font-weight: 300;
    letter-spacing: 3px;
    color: var(--c-text-muted);
    font-size: 1.1rem;
}

.sponsor-divider {
    width: 4px;
    height: 4px;
    background: var(--c-champagne);
    border-radius: 50%;
}

.footer {
    background: var(--c-bg-main);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-logo {
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--c-text-muted);
    font-style: italic;
    font-family: var(--f-heading);
    font-size: 1.2rem;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--c-text-muted);
    margin: 0 0.5rem;
}

.footer-socials a:hover {
    background: var(--c-champagne);
    color: #000;
    border-color: var(--c-champagne);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--c-text-muted);
    font-size: 0.85rem;
}

.footer-links a {
    margin-left: 2rem;
}

.footer-links a:hover {
    color: var(--c-champagne);
}

/* =========================================
   MEDIA QUERIES
========================================= */
@media (max-width: 1024px) {
    .about-grid, .info-grid, .venue-rsvp-grid {
        gap: 3rem;
    }
    .hero-title {
        font-size: 4.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .detail-divider {
        display: none;
    }
    .about-grid, .info-grid, .venue-rsvp-grid, .form-row {
        grid-template-columns: 1fr;
    }
    .experience-badge {
        width: 100px;
        height: 100px;
        right: 0;
        bottom: -20px;
    }
    .experience-badge span {
        font-size: 1.8rem;
    }
    .dress-code-card {
        padding: 3rem 2rem;
    }
    .rsvp-card {
        padding: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
    .footer-links a {
        margin: 0 1rem;
    }
}
