/* =========================================
   CSS Variables & Reset
   ========================================= */
:root {
    --primary-bg: #030a1c;
    --secondary-bg: #091530;
    --gradient-bg: linear-gradient(180deg, #02050f 0%, #06112a 50%, #0a1835 100%);
    --text-light: #f5f5f5;
    --text-gold: #d4af37;
    --text-gold-light: #f3e5ab;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-script: 'Great Vibes', cursive;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--gradient-bg);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* =========================================
   Typography & Reusables
   ========================================= */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 10;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-gold);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--text-gold);
    box-shadow: 0 0 10px var(--text-gold);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
    padding: 2.5rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px 0 rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* =========================================
   Background Animations (Night Sky)
   ========================================= */
.night-sky-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle infinite ease-in-out;
}

.shooting-star {
    position: absolute;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    animation: shoot linear infinite;
    opacity: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes shoot {
    0% { transform: translate(0, 0) rotate(-45deg); opacity: 1; }
    100% { transform: translate(-500px, 500px) rotate(-45deg); opacity: 0; }
}

/* =========================================
   Floating Lanterns
   ========================================= */
.lantern {
    position: fixed;
    z-index: -1;
    pointer-events: none;
    bottom: -20vh;
    animation-timing-function: linear; /* Linear is smoother for continuous movement */
    animation-iteration-count: infinite;
    will-change: transform; /* Hardware acceleration */
}

@keyframes floatNatural1 {
    0% { transform: translate3d(0, 10vh, 0) rotate(-2deg); opacity: 0; }
    10% { opacity: 0.8; }
    30% { transform: translate3d(30px, -30vh, 0) rotate(3deg); }
    70% { transform: translate3d(-20px, -80vh, 0) rotate(-1deg); opacity: 0.8; }
    100% { transform: translate3d(15px, -130vh, 0) rotate(2deg); opacity: 0; }
}

@keyframes floatNatural2 {
    0% { transform: translate3d(0, 10vh, 0) rotate(2deg); opacity: 0; }
    15% { opacity: 0.8; }
    40% { transform: translate3d(-35px, -40vh, 0) rotate(-3deg); }
    80% { transform: translate3d(25px, -90vh, 0) rotate(1deg); opacity: 0.8; }
    100% { transform: translate3d(-15px, -130vh, 0) rotate(-2deg); opacity: 0; }
}

@keyframes floatNatural3 {
    0% { transform: translate3d(0, 10vh, 0) rotate(-1deg); opacity: 0; }
    10% { opacity: 0.7; }
    35% { transform: translate3d(20px, -35vh, 0) rotate(2deg); }
    75% { transform: translate3d(-30px, -85vh, 0) rotate(-2deg); opacity: 0.7; }
    100% { transform: translate3d(10px, -130vh, 0) rotate(1deg); opacity: 0; }
}

/* =========================================
   Navbar
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(2, 5, 15, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: var(--text-gold);
    font-size: 1.5rem;
    font-family: var(--font-heading);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-logo .heart {
    font-family: var(--font-script);
    font-size: 2rem;
    color: #e74c3c;
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-gold);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-gold);
    transition: 0.3s;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 2rem 60px; /* Added padding-top to prevent navbar overlap */
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 800px;
    width: 100%;
}

.tagline {
    color: var(--text-gold-light);
    font-family: var(--font-script);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(243, 229, 171, 0.3);
}

.main-heading {
    font-size: 4rem;
    color: var(--text-gold);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    letter-spacing: 4px;
}

.main-heading .weds {
    font-family: var(--font-script);
    font-size: 3rem;
    text-transform: lowercase;
    color: #fff;
    text-shadow: none;
}

.sub-heading {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.hero-meta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 1px;
    padding: 0.8rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.action-btn.small-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* Scroll Indicator */
.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.scroll-down:hover {
    opacity: 1;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-gold);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-gold);
    border-radius: 2px;
    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; }
}

/* =========================================
   Story / Invitation Section
   ========================================= */
.story {
    padding-top: 5rem;
}

.story-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 3rem;
}

.invitation-text p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.signature {
    font-family: var(--font-script);
    font-size: 3.5rem;
    color: var(--text-gold);
    margin-top: 3rem;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* =========================================
   Countdown Section
   ========================================= */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.time-box {
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.time-box .number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-gold);
    font-weight: 700;
}

.time-box .label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* =========================================
   Photo Gallery
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    padding: 10px;
    border-radius: 15px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: brightness(0.8) contrast(1.1);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.1);
}

/* =========================================
   Location Section
   ========================================= */
.location-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    padding: 2rem;
}

.location-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location-details h3 {
    color: var(--text-gold);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.location-details p {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.map-container {
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.location-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--text-gold);
    color: var(--primary-bg);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 2px solid var(--text-gold);
}

.action-btn:hover {
    background: #e6c855;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.action-btn.outline {
    background: transparent;
    color: var(--text-gold);
}

.action-btn.outline:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #e6c855;
}

.live-dot {
    width: 10px;
    height: 10px;
    background-color: #ff3b3b;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    box-shadow: 0 0 10px #ff3b3b;
    animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 59, 59, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); }
}

/* =========================================
   Footer & Music Toggle
   ========================================= */
footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
    font-family: var(--font-heading);
    color: rgba(255, 255, 255, 0.6);
}

.music-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    color: var(--text-gold);
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.music-toggle:hover {
    transform: scale(1.1);
    background: rgba(212, 175, 55, 0.1);
}

.music-toggle svg {
    width: 24px;
    height: 24px;
}

.music-tooltip {
    position: absolute;
    right: 70px; /* To the left of the button */
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-gold);
    color: var(--primary-bg);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 600;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.5s ease;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    pointer-events: none;
}

/* A small triangle pointing to the button */
.music-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 8px;
    border-style: solid;
    border-color: transparent transparent transparent var(--text-gold);
}

/* =========================================
   Animations & Reveals
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* =========================================
   Responsive Design (Mobile First adjustments)
   ========================================= */
@media (max-width: 992px) {
    .main-heading { font-size: 3rem; }
    .location-card { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; z-index: 101; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: var(--secondary-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .nav-links.active { right: 0; }
    
    .hero-meta-container { gap: 1rem; }
    .meta-row { flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
    .main-heading { font-size: 2.5rem; }
    .main-heading .weds { font-size: 2rem; }
    .tagline { font-size: 1.8rem; margin-top: 2rem; }
    .story-card { padding: 2rem 1.5rem; }
    .signature { font-size: 2.5rem; }
}

@media (max-width: 480px) {
    .main-heading { font-size: 2rem; letter-spacing: 2px; }
    .time-box { width: 90px; height: 90px; }
    .time-box .number { font-size: 1.8rem; }
    .gallery-item img { height: 300px; }
}
