/* ============================
   DEMO 8: MODERN LUXURY INDIAN WEDDING
   Inspired by ramitbatra.com
   ============================ */

   :root {
    --bg-color: #faf5ea; /* Warm Cream */
    --text-primary: #0d0d0d;
    --text-muted: #4a4a4a;
    --accent: #ff6017; /* Vibrant Orange */
    --navy: #031457;
    --border: #e8dfcc;
    
    --font-heading: 'Instrument Serif', serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.accent { color: var(--accent); }
.mt-5 { margin-top: 3rem; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}
.text-center { text-align: center; }

/* Global Image Styles */
.rounded-img {
    border-radius: 12px;
    width: 100%;
    object-fit: cover;
}

.hover-zoom { transition: 0.5s ease; }
.hover-zoom:hover { transform: scale(1.02); }

/* ============================
   PRELOADER
   ============================ */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

.loader-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: italic;
    color: var(--text-primary);
}

/* ============================
   NAVIGATION
   ============================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: 0.4s;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(250, 245, 234, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 15px 5%;
}

.logo {
    font-size: 2.5rem;
    font-style: italic;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:hover:not(.btn-primary) { color: var(--accent); }

.btn-primary {
    background: var(--accent);
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid var(--accent);
    transition: 0.3s;
    display: inline-block;
}
.btn-primary:hover {
    background: transparent;
    color: var(--text-primary) !important;
}

.btn-primary.outline {
    background: transparent;
    color: var(--text-primary) !important;
    border-color: var(--text-primary);
}
.btn-primary.outline:hover {
    background: var(--accent);
    color: #fff !important;
    border-color: var(--accent);
}

.demo-badge {
    position: absolute;
    top: 0;
    right: 5%;
    background: var(--navy);
    color: #fff;
    font-size: 0.7rem;
    padding: 5px 15px;
    border-radius: 0 0 10px 10px;
    font-weight: 600;
}

.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* ============================
   HERO / HOME
   ============================ */
.hero {
    padding-top: 150px;
    padding-bottom: 80px;
}

.hero-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
}

.tagline {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 6rem;
    letter-spacing: -2px;
    margin-bottom: 30px;
}
.hero-text h1 i { color: var(--accent); }

.sub-hero {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.hero-gallery {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.hg-left, .hg-right {
    flex: 1;
}
.hg-left img { height: 600px; }
.hg-right img { height: 500px; margin-top: 100px; } /* Offset layout */

.fade-up-hero { opacity: 0; transform: translateY(30px); transition: 1s ease; }
.fade-up-hero.active { opacity: 1; transform: translateY(0); }

/* ============================
   INTRO SECTION
   ============================ */
.intro-section {
    padding: 120px 0;
}

.intro-content h2 {
    font-size: 5rem;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.ig-text p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--text-muted);
}

.btn-text {
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 5px;
}
.btn-text i { margin-left: 5px; transition: 0.3s; }
.btn-text:hover i { transform: translateX(5px); }

/* ============================
   WEDDINGS / PORTFOLIO
   ============================ */
.portfolio-section {
    padding: 100px 0;
    background: #fff;
    border-radius: 40px;
    margin: 0 2%;
}

.section-head { margin-bottom: 60px; text-align: center; }
.section-head h2 { font-size: 4rem; }

.wedding-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.wedding-card {
    position: relative;
    cursor: pointer;
}

.wc-img {
    border-radius: 16px;
    overflow: hidden;
    height: 70vh;
}
.wc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s ease;
}
.wedding-card:hover .wc-img img { transform: scale(1.05); }

.wc-info {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: rgba(250, 245, 234, 0.95);
    padding: 30px 40px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}
.wedding-card:hover .wc-info { transform: translateY(-10px); }

.wc-info h3 { font-size: 2rem; margin-bottom: 5px; }
.wc-info p { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }

/* ============================
   FILMS
   ============================ */
.films-section {
    padding: 150px 0;
}

.films-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.f-text h2 { font-size: 5rem; margin-bottom: 20px; line-height: 0.9; }
.f-text p { font-size: 1.1rem; color: var(--text-muted); }

.video-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.video-container img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    filter: brightness(0.8);
}
.play-button {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100px; height: 100px;
    background: rgba(255, 96, 23, 0.9); /* Accent */
    color: #fff;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3s;
}
.play-button:hover { background: #fff; color: var(--accent); transform: translate(-50%, -50%) scale(1.1); }

/* ============================
   CONTACT
   ============================ */
.contact-section {
    padding: 100px 0 150px;
}

.contact-box {
    background: var(--navy);
    color: #fff;
    padding: 80px;
    border-radius: 24px;
    text-align: center;
}

.contact-box h2 { font-size: 4rem; margin-bottom: 20px; }
.contact-box p { font-size: 1.1rem; margin-bottom: 50px; opacity: 0.8; }

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.contact-form input, .contact-form textarea {
    width: 100%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
}
.contact-form textarea { margin-bottom: 20px; }
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--accent); background: rgba(255,255,255,0.15);
}

.btn-primary.block { width: 100%; font-size: 1.1rem; padding: 18px; }

/* ============================
   FOOTER
   ============================ */
.footer {
    padding: 60px 0 30px;
    background: #fff;
    border-top: 1px solid var(--border);
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.f-left h2 { font-size: 3rem; margin-bottom: 10px; }
.f-left p { color: var(--text-muted); font-size: 0.9rem; }

.f-right { display: flex; gap: 30px; }
.f-right a { font-weight: 500; font-size: 1rem; }
.f-right a:hover { color: var(--accent); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 30px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================
   LIGHTBOX & EXTRAS
   ============================ */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
    background-color: rgba(250, 245, 234, 0.95);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    margin-top: 50px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--text-primary);
    font-size: 40px;
    cursor: pointer;
}

.back-to-master {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--navy);
    padding: 10px 15px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    z-index: 1000;
}
.back-to-master:hover { background: var(--accent); }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(40px); transition: 1s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 992px) {
    .hero-gallery { flex-direction: column; }
    .hg-right img { margin-top: 0; }
    .intro-grid { grid-template-columns: 1fr; }
    .films-grid { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 4.5rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .hero-text h1 { font-size: 3.5rem; }
    .intro-content h2 { font-size: 3rem; }
    .wc-info { bottom: 20px; left: 20px; right: 20px; padding: 20px; }
    .contact-box { padding: 40px 20px; }
    .form-row { flex-direction: column; gap: 0; }
    .footer-flex { flex-direction: column; gap: 30px; text-align: center; }
}
