/* ============================
   DEMO 15: MODERN LUXURY (KNOTTING BELLS INSPIRED)
   ============================ */

   :root {
    --bg-white: #ffffff;
    --bg-light: #fafafa;
    --text-dark: #222222;
    --text-gray: #666666;
    --accent: #d4c4b7; /* Subtle beige/blush */
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    color: var(--text-gray);
    font-family: var(--font-sans);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, .logo, .serif-title {
    font-family: var(--font-serif);
    color: var(--text-dark);
    font-weight: 400;
}

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

.text-center { text-align: center; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 4rem; }

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 5%;
}

.container-fluid {
    width: 100%;
    padding: 0 2%;
}

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

.loader-logo {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--text-dark);
    letter-spacing: 2px;
    animation: fadePulse 1.5s infinite alternate;
}

@keyframes fadePulse { 0% { opacity: 0.2; } 100% { opacity: 1; } }

/* ============================
   NAVIGATION
   ============================ */
.navbar {
    position: absolute; /* Clean, no sticky unless wanted */
    top: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 1000;
    transition: 0.4s;
}
.navbar.scrolled {
    position: fixed;
    background: rgba(255, 255, 255, 0.98);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.navbar.scrolled .logo, .navbar.scrolled .nav-links a { color: var(--text-dark); }
.navbar.scrolled .btn-solid { background: var(--text-dark); color: #fff !important; border-color: var(--text-dark); }

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.logo {
    font-size: 1.8rem;
    color: #fff;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: #fff;
}
.nav-links a:hover { opacity: 0.7; }

.btn-solid {
    background: #fff;
    color: var(--text-dark) !important;
    padding: 10px 25px;
    border: 1px solid #fff;
    transition: 0.3s;
}
.btn-solid:hover { background: transparent; color: #fff !important; }

.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: #fff; }
.navbar.scrolled .menu-toggle { color: var(--text-dark); }

.demo-badge {
    position: fixed;
    top: 100px;
    right: 0;
    background: var(--text-dark);
    color: #fff;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 5px 15px;
    z-index: 100;
}

/* ============================
   HERO
   ============================ */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Text at bottom */
    padding-bottom: 100px;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7); /* dark enough for text */
}

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

.hero-content h1 {
    font-size: 4rem;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    font-family: var(--font-serif);
    font-style: italic;
    color: #eee;
}

.fade-in { opacity: 0; animation: fadeIn 2s forwards; }
.fade-up { opacity: 0; transform: translateY(30px); animation: fadeUp 1s forwards cubic-bezier(0.2, 0.8, 0.2, 1); }
.delay-1 { animation-delay: 0.5s; }

@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

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

.serif-title { font-size: 3rem; line-height: 1.2; }

.divider {
    width: 60px;
    height: 2px;
    background: var(--text-dark);
    margin: 30px auto;
}

.body-text {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* ============================
   PORTFOLIO GRID (MASONRY/FLEX)
   ============================ */
.portfolio-section {
    padding: 0 0 100px 0;
}

.kb-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.kb-item {
    flex: 1 1 calc(33.333% - 15px);
    position: relative;
    overflow: hidden;
    height: 400px;
    cursor: pointer;
}
.kb-item.large {
    flex: 1 1 calc(66.666% - 15px);
}

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

.kb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.5s ease;
}

.kb-item:hover img { transform: scale(1.05); }
.kb-item:hover .kb-overlay { opacity: 1; }

.kb-overlay h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: 0.5s ease;
}
.kb-overlay span {
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #fff;
    padding-bottom: 3px;
    transform: translateY(20px);
    transition: 0.5s ease 0.1s;
}

.kb-item:hover .kb-overlay h3,
.kb-item:hover .kb-overlay span {
    transform: translateY(0);
}

.btn-outline {
    display: inline-block;
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
    padding: 15px 35px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: 0.3s;
}
.btn-outline:hover { background: var(--text-dark); color: #fff; }

/* ============================
   BANNER SECTION
   ============================ */
.banner-section {
    padding: 50px 2%;
}

.banner-img {
    position: relative;
    height: 500px;
    width: 100%;
}
.banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}
.banner-text {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.banner-text h2 {
    font-size: 3.5rem;
    color: #fff;
    font-style: italic;
}

/* ============================
   CONTACT
   ============================ */
.contact-section {
    padding: 120px 0;
    background: var(--bg-light);
}

.contact-flex {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}
.c-left { flex: 1; }
.c-right { flex: 1.2; }

.c-left .serif-title { margin-bottom: 20px; font-size: 3.5rem; }

.contact-info p {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}
.contact-info strong { font-weight: 700; }

.clean-form {
    background: #fff;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.form-row {
    display: flex;
    gap: 20px;
}

.clean-form input, .clean-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
    margin-bottom: 25px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: 0.3s;
}
.clean-form input:focus, .clean-form textarea:focus {
    outline: none;
    border-color: var(--text-dark);
}

.btn-solid.dark { background: var(--text-dark); color: #fff !important; border: none; }
.btn-solid.dark:hover { background: var(--text-gray); }
.btn-solid.full { width: 100%; padding: 18px; font-size: 0.9rem; }

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

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

.f-socials a {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-left: 20px;
}
.f-socials a:hover { color: var(--accent); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-bottom a { font-weight: 700; color: var(--text-dark); }

.back-to-master {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--text-dark);
    padding: 10px 15px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 1000;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.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); }

/* Responsive */
@media (max-width: 992px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .kb-item, .kb-item.large { flex: 1 1 calc(50% - 15px); }
    .contact-flex { flex-direction: column; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 3rem; }
    .kb-item, .kb-item.large { flex: 1 1 100%; height: 300px; }
    .serif-title { font-size: 2.5rem; }
    .form-row { flex-direction: column; gap: 0; }
    .footer-top { flex-direction: column; gap: 20px; text-align: center; }
    .f-socials a { margin: 0 10px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
