/* ============================
   DEMO 9: CLASSIC & CANDID (Twogether Inspired)
   ============================ */

   :root {
    --bg-color: #ffffff; 
    --bg-light: #f9f9f9;
    --text-primary: #222222;
    --text-muted: #666666;
    --accent: #cfa052; /* Subtle Gold */
    --border: #dddddd;
    
    --font-heading: 'Libre Baskerville', 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;
    color: var(--text-primary);
}

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

.text-center { text-align: center; }
.mt-4 { margin-top: 3rem; }

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

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

.loader-fade .l-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 4px;
    color: var(--text-primary);
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

/* ============================
   NAVIGATION
   ============================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: 0.4s;
    background: transparent;
}

.navbar.scrolled {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
}

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

.logo {
    font-size: 1.8rem;
    letter-spacing: 1px;
}
.navbar:not(.scrolled) .logo { color: #fff; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}
.navbar:not(.scrolled) .nav-links a { color: #fff; }

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

.btn-outline {
    border: 1px solid var(--text-primary);
    padding: 10px 20px;
    border-radius: 3px;
}
.navbar:not(.scrolled) .btn-outline { border-color: #fff; }
.btn-outline:hover { background: var(--text-primary); color: #fff !important; }
.navbar:not(.scrolled) .btn-outline:hover { background: #fff; color: var(--text-primary) !important; }

.demo-badge {
    position: fixed;
    top: 80px;
    right: 0;
    background: var(--text-primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 5px 15px;
    border-radius: 20px 0 0 20px;
    z-index: 100;
    font-family: var(--font-body);
}

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

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

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

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

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

.hero-content p {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #fff;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

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

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.divider {
    width: 50px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto 30px;
}

.lead-text {
    font-size: 1.3rem;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.body-text {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

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

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.p-item {
    display: block;
    text-align: center;
}

.p-img {
    width: 100%;
    height: 450px;
    overflow: hidden;
    margin-bottom: 20px;
}

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

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

.p-text h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.p-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    font-family: var(--font-heading);
}

.btn-solid {
    background: var(--text-primary);
    color: #fff;
    padding: 15px 30px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 700;
    border-radius: 3px;
    display: inline-block;
}
.btn-solid:hover { background: var(--accent); }

/* ============================
   TESTIMONIALS
   ============================ */
.testimonial-section {
    padding: 100px 0;
    background: var(--bg-light);
    text-align: center;
}

.quote-icon {
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: 20px;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto 30px;
}

.quote-author {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--text-muted);
}

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

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.c-left h2 { font-size: 3rem; margin-bottom: 20px; }
.c-left p { color: var(--text-muted); margin-bottom: 40px; }

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}
.contact-info i { color: var(--accent); margin-right: 10px; }

.clean-form input, .clean-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    background: var(--bg-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
}
.clean-form input:focus, .clean-form textarea:focus {
    outline: none;
    border-color: var(--text-primary);
    background: #fff;
}

.btn-solid.block { width: 100%; border: none; cursor: pointer; }

/* ============================
   FOOTER
   ============================ */
.footer {
    background: #111;
    color: #fff;
    padding: 80px 0 30px;
}

.f-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
    margin-bottom: 30px;
}

.f-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
}

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

.f-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #888;
}

/* BACK TO MASTER */
.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: 1s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }

/* Responsive */
@media (max-width: 992px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .p-img { height: 500px; }
    .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .hero-content h1 { font-size: 3rem; }
    .section-title { font-size: 2.5rem; }
    .quote-text { font-size: 1.3rem; }
    .f-top { flex-direction: column; gap: 20px; }
    .f-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
