:root {
    --bg-color: #2b0505; /* Deep Royal Wine */
    --gold-start: #bf953f;
    --gold-mid: #fcf6ba;
    --gold-end: #aa771c;
    --glass-bg: rgba(43, 5, 5, 0.65);
    --glass-border: rgba(255, 215, 0, 0.3);
}

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

body {
    background-color: var(--bg-color);
    font-family: "Cinzel", serif;
    overflow: hidden;
    color: #fff;
}

/* --- GRAIN TEXTURE --- */
.grain-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 900;
    opacity: 0.4;
}

/* --- TEXT GOLD FOIL EFFECT --- */
.gold-foil {
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0px 2px 10px rgba(0,0,0,0.3);
}

.gold-foil-anim {
    background: linear-gradient(-45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7);
    background-size: 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* --- APP & SLIDES --- */
.app {
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.slide {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.bg-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1);
    transition: transform 12s ease-out;
}

.slide.active .bg-layer { transform: scale(1.15); }

/* Gradient Overlay */
.overlay-gradient {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(43,5,5,0.4) 0%, rgba(20,0,0,0.9) 100%);
    z-index: -1;
}

/* --- SIDEBAR --- */
.sidebar-strip {
    position: fixed;
    right: 0; top: 0;
    width: 45px; height: 100vh;
    background: linear-gradient(180deg, #460808, #2b0000);
    border-left: 2px solid #aa771c;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 800;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}

.marquee-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    animation: sidebar-scroll 20s linear infinite;
}

.sidebar-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: #fcf6ba;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

@keyframes sidebar-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* --- SECTION 1 STYLING --- */
.content {
    z-index: 10;
    text-align: center;
    margin-top: -3rem;
    padding-right: 45px; /* offset sidebar */
}

.namaste-icon {
    width: 80px;
    filter: drop-shadow(0 0 10px rgba(255,215,0,0.6));
    margin-bottom: -2rem;
}

.script-title {
    font-family: 'Amita', cursive;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.monogram-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.monogram-circle {
    width: 250px;
    height: 250px;
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(2px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.1);
    position: relative;
}

.monogram-circle::before {
    content: '';
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 50%;
}

.big-letter {
    font-family: 'Great Vibes', cursive;
    font-size: 6rem;
}

.separator {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: #fff;
    margin: 10px 0;
    letter-spacing: 3px;
}

/* --- SECTION 2 STYLING --- */
.invite-card {
    position: relative;
    z-index: 5;
    width: 90%;
    max-width: 600px;
    padding: 3px; /* for gold border gradient */
    background: linear-gradient(135deg, #bf953f, #aa771c);
    border-radius: 20px;
    margin-right: 45px; /* sidebar offset */
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.card-border {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 18px;
    padding: 40px 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}

.invite-header {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0.9;
}

.couple-names {
    font-family: 'Great Vibes', cursive;
    font-size: 4.5rem;
    line-height: 1.2;
    margin: 0;
}

.date-container {
    width: 100%;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding: 15px 0;
    position: relative;
}

.ornament-divider {
    position: absolute;
    top: -10px; left: 50%;
    transform: translateX(-50%);
    background: #3e0a0a;
    padding: 0 10px;
    color: #aa771c;
}

.date-row {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 15px;
    font-family: 'Playfair Display', serif;
}

.month, .year { font-size: 1.5rem; letter-spacing: 2px; }
.date-num { font-size: 3.5rem; font-weight: 700; color: #fcf6ba; }
.day-time { margin-top: 10px; font-size: 1.1rem; letter-spacing: 1px; color: #ddd; }

/* Venue Box */
.venue-box {
    margin-top: 0;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    width: 100%;
}

.icon-circle {
    min-width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #aa771c, #bf953f);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #2b0505;
}

.venue-details h3 {
    font-size: 0.8rem;
    color: #aa771c;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.venue-details h4{
    font-size: 1rem;
}

.venue-details p {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #eee;
}

.btn-map {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.7rem;
    color: #fcf6ba;
    text-decoration: none;
    border-bottom: 1px dotted #aa771c;
}

/* Florals */
.floral-corner {
    position: absolute;
    width: 180px;
    z-index: 6;
    pointer-events: none;
    filter: drop-shadow(5px 10px 10px rgba(0,0,0,0.6));
}
.top-left-corner { top: -40px; left: -20px; transform: rotate(180deg); }
.bottom-right-corner {
    width: 100px !important; 
    bottom: 17rem; 
    right: 25px;
    transform: rotateY(195deg); 
}

/* --- LOADER --- */
#loader-wrapper {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #2b0505;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-content { position: relative; width: 120px; height: 120px; }
.loader-img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 2; }

.loader-ring {
    position: absolute;
    top: -10px; left: -10px; width: 140px; height: 140px;
    border: 2px solid transparent;
    border-top-color: #aa771c;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.loading-text {
    margin-top: 25px;
    color: #aa771c;
    font-family: 'Cinzel', serif;
    letter-spacing: 4px;
    font-size: 0.9rem;
    animation: fadeText 2s infinite;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes fadeText { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* --- MUSIC BUTTON --- */
.music-btn {
    position: fixed;
    bottom: 25px;
    right: 65px; /* Left of sidebar */
    z-index: 900;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: 1px solid #aa771c;
    color: #aa771c;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.music-btn:hover { background: #aa771c; color: #2b0505; transform: scale(1.1); }

/* --- ANIMATIONS --- */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.slide.active .reveal-text { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Scroll Indicator */
/* Update this existing class in your CSS */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 48%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    cursor: pointer; /* Add this line */
    z-index: 20;     /* Ensure this is high enough to be clicked */
}
.mouse {
    width: 24px; height: 40px; border: 2px solid #fff; border-radius: 12px;
    position: relative;
}
.wheel {
    width: 4px; height: 4px; background: #fff; border-radius: 50%;
    position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}
.arrow-scroll span {
    display: block; width: 10px; height: 10px;
    border-bottom: 2px solid #fff; border-right: 2px solid #fff;
    transform: rotate(45deg); margin: -5px; animation: scrollArrow 2s infinite;
}

@keyframes scrollWheel { 0% { top: 6px; opacity: 1; } 100% { top: 25px; opacity: 0; } }
@keyframes scrollArrow { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }

.desktop-hide{
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: #460808;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.desktop-hide span{
    font-size: 3rem;
}

/* --- CONTACT SECTION STYLING (PREMIUM) --- */

/* The Header "Contact Person" */
.card-border h5 {
    font-family: "Cinzel", serif;
    font-size: 0.8rem;
    color: white; /* Gold */
    text-transform: uppercase;
    letter-spacing: 3px;
     margin-top: 0;
    margin-bottom: 0;
    display: inline-block;
    border-bottom: 1px solid rgba(170, 119, 28, 0.3);
    padding-bottom: 5px;
}

/* The List Container */
.contact-person {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on very small screens */
    justify-content: center;
    gap: 12px;
    width: 100%;
}

/* Individual Links (Buttons) */
.contact-person a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    
    /* Shape & Size */
    padding: 8px 18px;
    border-radius: 50px; /* Pill shape */
    
    /* Text Styles */
    text-decoration: none;
    font-family: "Playfair Display", serif;
    font-size: 0.95rem;
    color: #f0f0f0; /* Off-white text */
    
    /* Royal Border & Background */
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(170, 119, 28, 0.5); /* Gold border */
    transition: all 0.3s ease;
}

/* Add Phone Icon automatically via CSS */
.contact-person a::before {
    content: "\f095"; /* FontAwesome Phone Icon code */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.8rem;
    color: #aa771c; /* Gold Icon */
    transition: color 0.3s ease;
}

/* Hover Effect - Turns Gold */
.contact-person a:hover {
    background: #aa771c;
    color: #2b0505; /* Deep Wine Text */
    border-color: #aa771c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.contact-person a:hover::before {
    color: #2b0505; /* Icon turns dark on hover */
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .desktop-hide{display: none !important;}
    .sidebar-strip { width: 35px; }
    .content, .invite-card { margin-right: 35px; padding-right: 0; }
    .big-letter { font-size: 4rem; width: 5rem; }
    .monogram-circle { width: 230px; height: 240px; }
    .couple-names { font-size: 3rem; }
    .date-num { font-size: 2.5rem; }
    .music-btn { right: 50px; bottom: 20px; width: 40px; height: 40px; }
    .floral-corner { width: 120px; }
}