/* ============================
   DEMO 4: LUXURY DESTINATION WEDDING
   ============================ */

   :root {
    --bg-color: #ffffff;
    --bg-alt: #fdfdfc;
    --text-primary: #0a192f; /* Deep Navy */
    --text-muted: #5a6b80;
    --accent: #c5a880; /* Elegant Gold */
    --border: #e8e4dc;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Lato', 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.7;
    overflow-x: hidden;
}

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

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

.highlight {
    color: var(--accent);
}

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

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

.loader-ring {
    width: 50px;
    height: 50px;
    border: 1px solid var(--border);
    border-top: 1px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.loader-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 4px;
    color: var(--text-primary);
    text-transform: uppercase;
}

/* ============================
   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;
    color: #fff;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    color: var(--text-primary);
    padding: 15px 5%;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.logo {
    font-size: 2.2rem;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

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

.btn-solid {
    background: var(--accent);
    color: #fff !important;
    padding: 10px 25px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    transition: 0.3s;
}
.btn-solid:hover {
    background: var(--text-primary);
}

.demo-badge {
    position: absolute;
    top: 0;
    right: 5%;
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    padding: 5px 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* ============================
   HERO / HOME
   ============================ */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 25, 47, 0.4) 0%, rgba(10, 25, 47, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
}

.hero-content h3 {
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--accent);
}

.hero-content h1 {
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 30px;
}

.hero-content p {
    font-size: 1.2rem;
    font-style: italic;
}

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

/* ============================
   DESTINATIONS
   ============================ */
.destinations-section {
    padding: 120px 0;
    background: var(--bg-alt);
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 60px;
}

.dest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.dest-card {
    position: relative;
    height: 450px;
    overflow: hidden;
    cursor: pointer;
}

.dest-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s ease;
}

.dest-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10,25,47,0.7) 0%, rgba(0,0,0,0) 100%);
    opacity: 0.5;
    transition: 0.4s;
}

.dest-card:hover img { transform: scale(1.05); }
.dest-card:hover::after { opacity: 0.8; }

.dest-label {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 2rem;
    z-index: 2;
}

/* ============================
   PORTFOLIO ELEGANT GRID
   ============================ */
.portfolio-section {
    padding: 120px 0;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.portfolio-header h2 { font-size: 3.5rem; }

.view-all {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: bold;
}
.view-all i { margin-left: 5px; }

.elegant-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 15px;
}

.e-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.e-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.e-item:hover img { transform: scale(1.05); }

.e-item.large {
    grid-column: span 2;
    grid-row: span 2;
}
.e-item:not(.large) {
    grid-column: span 1;
    grid-row: span 1;
}

/* ============================
   FILM
   ============================ */
.film-section {
    padding: 100px 0;
    background: var(--bg-alt);
}

.film-card {
    display: flex;
    align-items: center;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.film-image {
    flex: 1;
    position: relative;
    height: 500px;
}
.film-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: #fff;
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}
.play-button:hover { transform: translate(-50%, -50%) scale(1.1); color: var(--text-primary); }

.film-text {
    flex: 1;
    padding: 0 80px;
}
.film-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.film-text p { color: var(--text-muted); font-size: 1.1rem; }

/* ============================
   ABOUT
   ============================ */
.about-section {
    padding: 120px 0;
}

.about-wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-content { flex: 1; }
.about-content h2 { font-size: 3.5rem; margin-bottom: 30px; }
.about-content p { color: var(--text-muted); margin-bottom: 20px; font-size: 1.1rem; }
.signature { max-width: 150px; margin-top: 30px; opacity: 0.7; }

.about-portrait { flex: 1; }
.about-portrait img { width: 100%; border-radius: 200px 200px 0 0; }

/* ============================
   CONTACT
   ============================ */
.contact-section {
    padding: 120px 0;
    background: var(--text-primary); /* Navy Background */
    color: #fff;
}

.contact-box {
    display: flex;
    gap: 60px;
}

.contact-text { flex: 1; }
.contact-text h2 { font-size: 4rem; color: var(--accent); margin-bottom: 20px; }
.contact-text p { color: #b0bcdc; margin-bottom: 40px; font-size: 1.1rem; }
.direct-contact { font-family: var(--font-heading); font-size: 1.5rem; line-height: 1.8; color: #fff !important; }

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

/* ============================
   FOOTER
   ============================ */
.footer {
    padding: 80px 0 40px;
    background: var(--bg-alt);
}
.footer-logo { font-size: 3rem; margin-bottom: 20px; color: var(--text-primary); }
.socials { margin-bottom: 40px; }
.socials a {
    margin: 0 15px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-muted);
}
.socials a:hover { color: var(--accent); }
.copyright { font-size: 0.9rem; color: #aaa; }

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

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    margin-top: 50px;
    box-shadow: 0 10px 40px 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(--text-primary);
    padding: 10px 15px;
    color: #fff;
    font-size: 0.8rem;
    border-radius: 3px;
    z-index: 1000;
}
.back-to-master:hover { background: var(--accent); }

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

/* Responsive */
@media (max-width: 992px) {
    .dest-grid { grid-template-columns: 1fr; }
    .film-card, .about-wrapper, .contact-box { flex-direction: column; }
    .film-text { padding: 40px; text-align: center; }
    .hero-content h1 { font-size: 4rem; }
    .elegant-grid { grid-template-columns: repeat(2, 1fr); }
    .e-item.large { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; color: var(--text-primary); }
    .navbar { color: var(--text-primary); background: #fff; }
    .input-row { flex-direction: column; gap: 0; }
}
