/* ======================================================
   PREMIUM WEDDING INVITATION — CSS
   Color Palette: Deep Olive, Champagne Gold, Soft Cream
   Fonts: Cormorant Garamond (heading), Montserrat (body), Great Vibes (script)
====================================================== */

:root {
    --dark: #2c2f27;
    --olive: #4a5240;
    --sage: #7b8c6f;
    --gold: #c4a265;
    --gold-light: #d4b87a;
    --cream: #faf8f4;
    --cream-dark: #f0ede6;
    --text: #3a3d34;
    --text-light: #6b6e63;

    --ff-heading: 'Cormorant Garamond', serif;
    --ff-body: 'Montserrat', sans-serif;
    --ff-script: 'Great Vibes', cursive;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--ff-body);
    color: var(--text);
    background-color: var(--cream);
    overflow-x: hidden;
    line-height: 1.8;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

/* --- UTILITIES --- */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-white { color: #fff !important; }
.container { max-width: 780px; margin: 0 auto; padding: 0 30px; }
.section { padding: 120px 0; position: relative; }

/* Section common styles */
.section-label {
    font-family: var(--ff-body);
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 10px;
}
.section-title {
    font-family: var(--ff-heading);
    font-size: 3rem;
    font-weight: 300;
    color: var(--dark);
    margin-bottom: 0;
    letter-spacing: 2px;
}
.section-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    max-width: 550px;
    margin: 0 auto 50px;
    line-height: 1.9;
}
.section-divider {
    width: 50px;
    height: 1px;
    background: var(--gold);
    margin: 25px auto 40px;
}
.section-divider.light { background: rgba(255,255,255,0.4); }

/* ==========================================
   PARTICLES CANVAS (Stars & Hearts)
========================================== */
#particles-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 10000;
}

/* ==========================================
   AUDIO CONTROL
========================================== */
.audio-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    color: var(--gold);
    border: 1px solid rgba(196, 162, 101, 0.3);
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    transition: all 0.4s var(--ease-out-expo);
}
.audio-control:hover {
    background: var(--gold);
    color: #fff;
    transform: scale(1.1);
}
.audio-control.playing {
    animation: audioPulse 2s ease-in-out infinite;
}
@keyframes audioPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(196, 162, 101, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(196, 162, 101, 0); }
}

/* ==========================================
   WELCOME COVER
========================================== */
.welcome-cover {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    transition: all 1.4s var(--ease-out-expo);
}
.welcome-cover.slide-up {
    transform: translateY(-100%);
    opacity: 0;
}

/* Floating circles on cover */
.cover-bg-elements { position: absolute; width: 100%; height: 100%; top: 0; left: 0; overflow: hidden; }
.floating-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(196, 162, 101, 0.12);
}
.c1 { width: 400px; height: 400px; top: -100px; right: -100px; animation: floatSlow 20s ease-in-out infinite; }
.c2 { width: 300px; height: 300px; bottom: -80px; left: -80px; animation: floatSlow 15s ease-in-out infinite reverse; }
.c3 { width: 200px; height: 200px; top: 50%; left: 50%; transform: translate(-50%,-50%); animation: floatSlow 25s ease-in-out infinite; border-color: rgba(196, 162, 101, 0.06); }
@keyframes floatSlow {
    0%, 100% { transform: translate(0,0) scale(1); }
    25% { transform: translate(20px, -20px) scale(1.05); }
    50% { transform: translate(-10px, 15px) scale(0.98); }
    75% { transform: translate(15px, 10px) scale(1.02); }
}

.welcome-content {
    position: relative;
    z-index: 2;
    padding: 60px 40px;
    max-width: 90%;
    width: 480px;
    animation: coverFadeIn 1.5s ease-out;
}
@keyframes coverFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.cover-ornament-top, .cover-ornament-bottom {
    font-size: 1.2rem;
    color: var(--gold);
    letter-spacing: 10px;
    opacity: 0.5;
}
.cover-ornament-top { margin-bottom: 30px; }
.cover-ornament-bottom { margin-top: 30px; }

.welcome-content .subtitle {
    font-family: var(--ff-body);
    text-transform: uppercase;
    letter-spacing: 8px;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 15px;
}
.welcome-content .title {
    margin-bottom: 25px;
}
.name-script {
    font-family: var(--ff-script);
    font-size: 4rem;
    color: var(--dark);
    display: block;
    line-height: 1.2;
}
.ampersand {
    font-family: var(--ff-heading);
    font-size: 2rem;
    color: var(--gold);
    display: block;
    margin: -5px 0;
    font-weight: 300;
}

/* Cover Countdown */
.cover-countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 20px 0;
}
.cover-time-item { text-align: center; }
.cover-time-val {
    font-family: var(--ff-heading);
    font-size: 1.6rem;
    font-weight: 400;
    display: block;
    color: var(--dark);
    min-width: 40px;
}
.cover-time-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
}
.cover-time-sep {
    font-family: var(--ff-heading);
    font-size: 1.4rem;
    color: var(--gold);
    opacity: 0.5;
    margin-top: -15px;
}
.cover-divider {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 25px auto;
    opacity: 0.5;
}

.guest-greet {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
}
.guest-name {
    font-family: var(--ff-heading);
    font-size: 1.6rem;
    font-weight: 300;
    font-style: italic;
    margin: 8px 0 35px;
    color: var(--dark);
}

/* Open Button */
.btn-open {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--ff-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}
.btn-open::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: var(--gold);
    transition: left 0.5s var(--ease-out-expo);
    z-index: -1;
}
.btn-open:hover {
    color: #fff;
}
.btn-open:hover::before {
    left: 0;
}
.btn-open-icon { font-size: 1rem; }

/* ==========================================
   MAIN CONTENT
========================================== */
.main-content { background: var(--cream); }

/* --- SCROLL REVEAL --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
}
.reveal.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}
.fade-left { transform: translateX(-60px); }
.fade-left.active { transform: translateX(0); }
.fade-right { transform: translateX(60px); }
.fade-right.active { transform: translateX(0); }
.fade-up { transform: translateY(60px); }
.fade-up.active { transform: translateY(0); }
.zoom-in { transform: scale(0.6); opacity: 0; }
.zoom-in.active { transform: scale(1); opacity: 1; }
.delay-200 { transition-delay: 0.2s; }

/* --- INTRO SECTION --- */
.intro-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 100%);
}
.ornament-line {
    width: 1px; height: 60px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
    margin: 30px auto;
}
.bismillah {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--dark);
    opacity: 0.7;
}
.quote {
    font-family: var(--ff-heading);
    font-style: italic;
    font-size: 1.4rem;
    line-height: 2.2;
    max-width: 600px;
    margin: 0 auto 25px;
    color: var(--text);
    font-weight: 300;
}
.quote-source {
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
}

/* --- COUPLE SECTION --- */
.couple-section {
    background: var(--cream);
}
.couple-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    margin-top: 60px;
    gap: 20px;
    flex-wrap: wrap;
}
.person {
    flex: 1;
    min-width: 260px;
    max-width: 340px;
    background: #fff;
    padding: 40px 25px 35px;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 15px 50px rgba(0,0,0,0.04);
    position: relative;
}
/* Subtle gold top accent line on each card */
.person::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 40px; height: 2px;
    background: var(--gold);
}
.person-photo-wrapper {
    position: relative;
    width: 160px;
    height: 220px;
    margin: 0 auto 25px;
}
.person-photo {
    width: 100%;
    height: 100%;
    border-radius: 80px 80px 0 0;
    background-size: cover;
    background-position: center top;
    position: relative;
    z-index: 2;
    background-color: var(--cream-dark);
}
/* Single elegant arch border */
.person-photo-wrapper::before {
    content: '';
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border: 1px solid var(--gold);
    border-radius: 86px 86px 0 0;
    z-index: 1;
    opacity: 0.4;
}
/* Remove second border for cleaner look */
.person-photo-wrapper::after { display: none; }

.groom-photo { background-image: url('assets/images/groom.png'); }
.bride-photo { background-image: url('assets/images/bride.png'); }

.person-name {
    font-family: var(--ff-script);
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.3;
}
.person-subtitle {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 8px;
    font-weight: 500;
}
.parents {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.7;
}
.and-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
}
.and-text {
    font-family: var(--ff-script);
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.35;
    line-height: 1;
}

/* --- EVENTS SECTION --- */
.events-section {
    background: var(--cream-dark);
}
.events-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
    align-items: center;
}
.event-card {
    width: 100%;
    max-width: 480px;
}
.event-card-inner {
    background: #fff;
    padding: 50px 35px;
    border-radius: 2px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 20px 60px rgba(0,0,0,0.03);
    transition: transform 0.6s var(--ease-out-expo);
}
.event-card-inner:hover {
    transform: translateY(-8px);
}
.event-icon-wrapper {
    width: 70px; height: 70px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}
.event-icon { font-size: 1.5rem; color: var(--gold); }
.event-title {
    font-family: var(--ff-heading);
    font-size: 2rem;
    font-weight: 400;
    color: var(--dark);
    margin-bottom: 5px;
}
.event-divider {
    width: 30px; height: 1px;
    background: var(--gold);
    margin: 20px auto;
}
.event-detail {
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: var(--text);
}
.event-detail p { margin-bottom: 5px; }
.event-detail i { color: var(--gold); margin-right: 10px; width: 16px; }
.event-location {
    margin-bottom: 30px;
    font-size: 0.85rem;
    color: var(--text-light);
}
.event-location > i { color: var(--gold); margin-bottom: 8px; }
.btn-map {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid var(--sage);
    color: var(--sage);
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.4s var(--ease-out-expo);
}
.btn-map:hover {
    background: var(--sage);
    color: #fff;
}

/* --- COUNTDOWN SECTION --- */
.countdown-section {
    background: var(--dark);
    overflow: hidden;
}
.countdown-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(44,47,39,0.95), rgba(74,82,64,0.9));
}
.countdown-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}
.time-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px 20px;
    min-width: 110px;
    text-align: center;
    backdrop-filter: blur(5px);
}
.time-val {
    display: block;
    font-family: var(--ff-heading);
    font-size: 3.5rem;
    font-weight: 300;
    color: #fff;
    line-height: 1;
    margin-bottom: 12px;
}
.time-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold-light);
}

/* --- RSVP SECTION --- */
.rsvp-section { background: var(--cream); }
.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}
.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 500;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #e8e5de;
    border-radius: 0;
    font-family: var(--ff-body);
    font-size: 0.95rem;
    font-weight: 300;
    background: #fff;
    color: var(--text);
    transition: all 0.4s ease;
    -webkit-appearance: none;
    appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(196, 162, 101, 0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--gold);
    color: #fff;
    border: none;
    font-family: var(--ff-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
}
.btn-submit:hover {
    background: var(--olive);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.btn-submit i { margin-left: 8px; }

/* --- GIFT SECTION --- */
.gift-section { background: var(--cream-dark); }
.bank-card {
    background: #fff;
    max-width: 420px;
    margin: 0 auto;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 20px 60px rgba(0,0,0,0.03);
}
.bank-card-accent {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.bank-logo {
    font-family: var(--ff-body);
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 5px;
    color: var(--text-light);
    margin-bottom: 25px;
}
.account-number {
    font-family: var(--ff-heading);
    font-size: 2rem;
    letter-spacing: 4px;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 400;
}
.account-name {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 30px;
}
.btn-copy {
    display: inline-block;
    padding: 12px 28px;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
    font-family: var(--ff-body);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
}
.btn-copy:hover {
    background: var(--gold);
    color: #fff;
}

/* --- MESSAGES SECTION --- */
.messages-container {
    margin-top: 50px;
    text-align: left;
    background: #fff;
    padding: 35px;
    border-radius: 2px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
}
.messages-title {
    font-family: var(--ff-heading);
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(196, 162, 101, 0.3);
    padding-bottom: 15px;
}
.messages-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}
.messages-list::-webkit-scrollbar {
    width: 6px;
}
.messages-list::-webkit-scrollbar-track {
    background: var(--cream);
}
.messages-list::-webkit-scrollbar-thumb {
    background: var(--gold-light);
    border-radius: 10px;
}
.message-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.message-item:last-child {
    border-bottom: none;
}
.msg-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}
.msg-name {
    font-family: var(--ff-body);
    font-weight: 600;
    color: var(--dark);
    font-size: 1rem;
}
.msg-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--cream-dark);
    color: var(--gold);
    font-weight: 500;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.msg-badge.absent {
    color: #999;
}
.msg-date {
    font-size: 0.75rem;
    color: var(--text-light);
}
.msg-content {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.6;
}
.msg-empty {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 20px 0;
}

/* --- FOOTER --- */
.footer {
    text-align: center;
    padding: 80px 30px;
    background: var(--dark);
    color: rgba(255,255,255,0.6);
}
.footer-ornament {
    color: var(--gold);
    letter-spacing: 10px;
    font-size: 0.8rem;
    margin-bottom: 30px;
    opacity: 0.5;
}
.footer-thanks {
    font-size: 0.85rem;
    max-width: 400px;
    margin: 0 auto 20px;
    line-height: 1.8;
    font-weight: 300;
}
.footer-names {
    font-family: var(--ff-script);
    font-size: 2.5rem;
    color: var(--gold-light);
    font-weight: 400;
    margin-bottom: 10px;
}
.footer-date {
    font-size: 0.75rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 768px) {
    .section { padding: 80px 0; }
    
    .name-script { font-size: 3rem; }
    .welcome-content { padding: 40px 20px; }
    
    .couple-wrapper { flex-direction: column; gap: 0; align-items: center; }
    .person { min-width: unset; max-width: 320px; width: 85%; }
    .and-symbol { margin: 5px 0; }
    .and-text { font-size: 3rem; }
    .person-photo-wrapper { width: 140px; height: 195px; }
    .person-name { font-size: 1.6rem; }
    
    .events-grid { gap: 20px; }
    .event-card-inner { padding: 35px 25px; }
    
    .countdown-wrapper { gap: 10px; }
    .time-box { min-width: 75px; padding: 20px 12px; }
    .time-val { font-size: 2.5rem; }
    
    .section-title { font-size: 2.2rem; }
    .quote { font-size: 1.1rem; }
    .bismillah { font-size: 1.5rem; }
    
    .rsvp-form { padding: 0 10px; }
    .bank-card { padding: 40px 25px; }
}
