/* 
 * Family Event: Elegant Night
 * Theme: Navy Blue, Gold, Beige, Elegant
 */

 :root {
    --navy-blue: #0A192F;
    --navy-light: #112240;
    --gold: #D4AF37;
    --gold-light: #F3E5AB;
    --beige: #FDFBF7;
    --white: #FFFFFF;
    --gray-text: #8892B0;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--navy-blue);
    color: var(--beige);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--white);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--gold);
    transition: var(--transition);
}

img {
    max-width: 100%;
}

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

.container-narrow { max-width: 900px; }
.container-medium { max-width: 1000px; }

.section-padding {
    padding: 100px 0;
}

.bg-darker {
    background-color: #060F1E;
}

.text-center { text-align: center; }

/* Sparkles full background */
#sparkle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(212, 175, 55, 0.6);
    animation: twinkle linear infinite;
}

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

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--navy-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease;
}

.loader-content {
    text-align: center;
}

.gold-ring {
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top-color: var(--gold);
    border-bottom-color: var(--gold);
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-content span {
    font-family: var(--font-heading);
    color: var(--gold);
    letter-spacing: 2px;
}

/* Typography & Dividers */
.gold-text { color: var(--gold); }

.gold-divider {
    height: 2px;
    width: 80px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 15px auto 20px;
}

.gold-divider.left {
    margin: 15px 0 20px 0;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.gold-divider-small {
    height: 1px;
    width: 150px;
    background: var(--gold);
    margin: 30px auto;
}

.subtitle {
    display: block;
    color: var(--gold);
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 2.5rem;
    letter-spacing: 1px;
}

.section-title p {
    color: var(--gray-text);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 2px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.btn-gold {
    background-color: var(--gold);
    color: var(--navy-blue) !important;
    border: 1px solid var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--gold) !important;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
}

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

.btn-outline-gold:hover {
    background-color: var(--gold);
    color: var(--navy-blue);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 0;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    padding: 15px 0;
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--white);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
}

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

.nav-btn {
    border: 1px solid var(--gold);
    padding: 8px 20px;
    border-radius: 3px;
    color: var(--gold) !important;
}

.nav-btn:hover {
    background-color: var(--gold);
    color: var(--navy-blue) !important;
}

.mobile-menu-btn {
    display: none;
    color: var(--gold);
    font-size: 2rem;
    cursor: pointer;
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(10, 25, 47, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    transition: var(--transition);
}

.mobile-nav.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--gold);
    font-size: 2.5rem;
    cursor: pointer;
}

.mobile-nav a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--white);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.mobile-nav .gold-link {
    color: var(--gold);
    margin-top: 20px;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    background-image: url('https://images.unsplash.com/photo-1543362906-acfc16c67564?q=80&w=2065&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(10, 25, 47, 0.6) 0%, rgba(10, 25, 47, 0.95) 100%);
    z-index: 1;
}

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

.hero-badge {
    display: inline-block;
    border: 1px solid var(--gold);
    padding: 5px 15px;
    border-radius: 30px;
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin: 0;
}

.hero-quote {
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: rgba(253, 251, 247, 0.8);
    max-width: 700px;
    margin: 0 auto 40px;
    font-style: italic;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

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

.mouse {
    height: 42px;
    width: 24px;
    border-radius: 14px;
    transform: none;
    border: 2px solid var(--gold);
    top: 170px;
}

.wheel {
    height: 5px;
    width: 2px;
    display: block;
    margin: 5px auto;
    background: var(--gold);
    position: relative;
    height: 4px;
    width: 4px;
    border: 2px solid var(--gold);
    -webkit-border-radius: 8px;
            border-radius: 8px;
}

.wheel {
  -webkit-animation: mouse-wheel 0.6s linear infinite;
  -moz-animation: mouse-wheel 0.6s linear infinite;
  animation: mouse-wheel 0.6s linear infinite;
}

@-webkit-keyframes mouse-wheel{
   0% { top: 1px; }
   25% { top: 2px; }
   50% { top: 3px; }
   75% { top: 2px; }
   100% { top: 1px; }
}

/* Info Cards */
.info-cards {
    display: flex;
    gap: 30px;
    margin-top: 50px;
}

.info-card {
    flex: 1;
    background: rgba(17, 34, 64, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 40px 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(17, 34, 64, 0.8);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.icon-wrap {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.info-text strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--gold-light);
    margin-bottom: 5px;
}

.info-text span {
    color: var(--gray-text);
}

/* Guests Grid */
.guests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.guest-card {
    text-align: center;
}

.guest-img {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    padding: 5px;
    position: relative;
    overflow: hidden;
}

.guest-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.placeholder-icon {
    font-size: 5rem;
    line-height: 134px; /* offset padding */
    color: var(--navy-light);
    background-color: #1a2942;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.guest-card h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.guest-card p {
    color: var(--gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Agenda Timeline */
.agenda-timeline {
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.agenda-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

.agenda-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.agenda-item::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--navy-blue);
    border: 2px solid var(--gold);
    box-shadow: 0 0 10px var(--gold);
}

.agenda-time {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.agenda-content {
    background: rgba(17, 34, 64, 0.6);
    padding: 25px;
    border-radius: 4px;
    border-left: 3px solid var(--gold);
    transition: var(--transition);
}

.agenda-content:hover {
    background: rgba(17, 34, 64, 0.9);
    transform: translateX(5px);
}

.agenda-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.agenda-content p {
    color: var(--gray-text);
    margin: 0;
}

/* Dress Code Section */
.dresscode-box {
    display: flex;
    background: rgba(17, 34, 64, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.dresscode-content {
    flex: 1;
    padding: 60px;
}

.dresscode-content h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.theme-title {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.dresscode-content .desc {
    color: var(--gray-text);
    margin-bottom: 30px;
}

.color-palette {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.color-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.dress-tips {
    list-style: none;
}

.dress-tips li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--beige);
}

.dress-tips li i {
    color: var(--gold);
    font-size: 1.5rem;
}

.dresscode-img {
    flex: 1;
    min-height: 400px;
}

.dresscode-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Memory Wall */
.memory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.memory-card {
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
    position: relative;
}

.memory-card.span-2 {
    grid-column: span 2;
}

.memory-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: sepia(0.3) brightness(0.8);
}

.memory-card:hover img {
    transform: scale(1.05);
    filter: sepia(0) brightness(1);
}

.memory-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
    pointer-events: none;
}

/* RSVP Section */
.RSVP-bg {
    background-image: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.95)), url('https://images.unsplash.com/photo-1517457373958-b7bdd4587205?q=80&w=2069&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.rsvp-card {
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
}

.rsvp-header {
    text-align: center;
    margin-bottom: 40px;
}

.rsvp-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.rsvp-form .form-group {
    margin-bottom: 25px;
}

.rsvp-form label {
    display: block;
    color: var(--gold);
    font-family: var(--font-heading);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.rsvp-form input, 
.rsvp-form select, 
.rsvp-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 4px;
    transition: var(--transition);
}

.rsvp-form input:focus, 
.rsvp-form select:focus, 
.rsvp-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.rsvp-form select option {
    background-color: var(--navy-blue);
    color: var(--white);
}

.contact-direct {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-direct p {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.wa-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #25D366; /* Whatsapp green fallback or just gold */
    font-weight: 500;
}

.wa-link:hover {
    color: var(--white);
}

/* Footer */
footer {
    background-color: #030810;
    padding: 60px 0 30px;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-content p {
    color: var(--gray-text);
    max-width: 500px;
    margin: 0 auto 30px;
}

.footer-socials {
    margin-bottom: 40px;
}

.footer-socials a {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    margin: 0 10px;
    font-size: 1.2rem;
}

.footer-socials a:hover {
    background-color: var(--gold);
    color: var(--navy-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    font-size: 0.85rem;
    color: var(--gray-text);
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 991px) {
    .info-cards { flex-direction: column; }
    .dresscode-box { flex-direction: column; }
    .dresscode-img { min-height: 300px; }
    .memory-card.span-2 { grid-column: span 1; }
    
    .hero h1 { font-size: 4rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    
    .hero h1 { font-size: 3rem; }
    .hero-buttons { flex-direction: column; }
    
    .rsvp-card { padding: 40px 20px; }
    .dresscode-content { padding: 40px 20px; }
}
