/* ============================
   DEMO 5: EARTHY BOHO WEDDING
   ============================ */

   :root {
    --bg-color: #fcfaf8; /* Soft Sand */
    --text-primary: #3a322c; /* Deep Brown */
    --text-muted: #7c6b5d;
    --accent: #d46a53; /* Terracotta */
    --accent-hover: #b8543f;
    --olive: #6a7045;
    
    --font-heading: 'Quicksand', sans-serif;
    --font-body: 'Quicksand', sans-serif;
    --font-script: 'Dancing Script', cursive;
}

* {
    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.8;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: -0.5px;
}

.script-text {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--accent);
}

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

.accent { color: var(--accent) !important; }

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

/* ============================
   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 1s ease, visibility 1s;
}

.loader-flower {
    font-size: 3rem;
    color: var(--olive);
    margin-bottom: 10px;
    animation: sway 2s ease-in-out infinite alternate;
}

.loader-text {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--text-primary);
}

@keyframes sway {
    0% { transform: rotate(-15deg); }
    100% { transform: rotate(15deg); }
}

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

.navbar.scrolled {
    background: var(--bg-color);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(58,50,44,0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}
.logo i { color: var(--olive); font-size: 1.2rem; }

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

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

.btn-solid {
    background: var(--accent);
    color: #fff !important;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
}
.btn-solid:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 106, 83, 0.3);
}

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

.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;
    filter: sepia(30%) contrast(110%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(58,50,44,0.3) 0%, rgba(58,50,44,0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
}

.arch-frame {
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 200px 200px 0 0;
    padding: 80px 40px 60px;
    backdrop-filter: blur(2px);
}

.arch-frame h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin: 10px 0 20px;
    text-transform: uppercase;
}

.arch-frame p {
    font-size: 1.1rem;
    font-weight: 400;
}

.mt-3 { margin-top: 1.5rem; }

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

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

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

.intro-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.intro-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.intro-img-small {
    width: 250px;
    border-radius: 10px;
    border: 8px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: rotate(-3deg);
}

.arch-img {
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 250px 250px 0 0;
    box-shadow: 0 20px 40px rgba(58,50,44,0.1);
}
.arch-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================
   PORTFOLIO MASONRY
   ============================ */
.portfolio-section {
    padding: 100px 0;
    background: #f7f4ef;
}

.section-title h2 {
    font-size: 3.5rem;
    margin-bottom: 40px;
}

.portfolio-masonry {
    display: column;
    column-count: 3;
    column-gap: 20px;
}

.p-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.p-item img {
    width: 100%;
    display: block;
    transition: 0.5s ease;
    border-radius: 10px;
}

.p-item:hover img {
    transform: scale(1.03);
}

/* ============================
   FILM SECTION
   ============================ */
.film-section {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

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

.film-overlay {
    position: absolute;
    inset: 0;
    background: rgba(58, 50, 44, 0.5);
    z-index: 2;
}

.film-content {
    position: relative;
    z-index: 3;
    color: #fff;
}

.film-content h2 { font-size: 4rem; margin-bottom: 20px; }
.film-content p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 30px; }

.play-btn {
    width: 80px;
    height: 80px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}
.play-btn:hover { transform: scale(1.1); background: var(--accent-hover); }

/* ============================
   PRICING
   ============================ */
.info-section {
    padding: 120px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.price-card {
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    border: 1px solid #eae1d7;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.price-card.featured {
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212,106,83,0.1);
}

.price-card h3 { font-size: 2rem; margin-bottom: 10px; }
.price { font-family: var(--font-script); font-size: 2rem; color: var(--accent); margin-bottom: 20px; }
.price-card ul { list-style: none; color: var(--text-muted); }
.price-card ul li { margin-bottom: 10px; border-bottom: 1px dashed #eae1d7; padding-bottom: 10px; }

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

.contact-card {
    display: flex;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(58,50,44,0.05);
}

.contact-form {
    flex: 1;
    padding: 60px;
}

.contact-form h2 { font-size: 3rem; margin-bottom: 30px; }

.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    background: #fcfaf8;
    border: 1px solid #eae1d7;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
}

.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.contact-image {
    flex: 1;
}
.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================
   FOOTER
   ============================ */
.footer {
    padding: 60px 0 20px;
    background: var(--text-primary);
    color: #fff;
}
.footer .logo { margin-bottom: 10px; font-size: 2.5rem; }
.socials { margin: 20px 0; }
.socials a { font-size: 1.5rem; margin: 0 10px; color: #d6cfc7; }
.socials a:hover { color: var(--accent); }
.copyright { font-size: 0.9rem; color: #887a70; }

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

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    margin-top: 50px;
    border-radius: 10px;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}
.close-lightbox:hover { color: var(--accent); }

.back-to-master {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--text-primary);
    padding: 10px 15px;
    color: #fff;
    font-size: 0.8rem;
    border-radius: 20px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.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; }

/* Responsive */
@media (max-width: 992px) {
    .intro-grid { grid-template-columns: 1fr; }
    .contact-card { flex-direction: column; }
    .portfolio-masonry { column-count: 2; }
    .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; color: var(--text-primary); }
    .navbar { color: var(--text-primary); background: var(--bg-color); }
    .arch-frame { padding: 40px 20px; border-radius: 150px 150px 0 0; }
    .arch-frame h1 { font-size: 3rem; }
    .portfolio-masonry { column-count: 1; }
    .contact-form { padding: 30px; }
}
