/* --- CORE --- */
:root {
    --bg-cream: #F9F7F2;
    --bg-dark: #0A0A0A;
    --text-dark: #1C1B1B;
    --text-light: #F2F2F2;
    --gold: #C5A059;
    --gold-hover: #E6C885;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Manrope', sans-serif;
    --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scrollbar-width: none; }
body::-webkit-scrollbar { display: none; }
html.lenis { height: auto; } 
.lenis.lenis-smooth { scroll-behavior: auto; } 
* { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: var(--font-body); background-color: var(--bg-cream); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }
img { display: block; width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; color: var(--text-dark); }
.italic-serif { font-style: italic; font-family: var(--font-heading); }
.text-gold { color: var(--gold); }
.text-light { color: var(--text-light); }
.mb-2 { margin-bottom: 1rem; }

/* --- PRELOADER --- */
.preloader { 
    position: fixed; inset: 0; background: var(--bg-dark); 
    z-index: 10000; display: flex; justify-content: center; align-items: center; 
}
.preloader-content { display: flex; flex-direction: column; align-items: center; width: 200px; }
.loader-logo { width: 120px; margin-bottom: 2rem; opacity: 0; animation: fadeIn 1s ease forwards; }
.loader-line-wrapper { width: 100%; height: 2px; background: rgba(255,255,255,0.1); overflow: hidden; }
.loader-line { width: 0%; height: 100%; background: var(--gold); } 
@keyframes fadeIn { to { opacity: 1; } }

/* --- NAVBAR (STRICT ORIGINAL LOGIC) --- */
.navbar {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 1400px; 
    height: 70px; 
    z-index: 1000; transition: all 0.5s var(--easing);
    background: rgba(20, 20, 20, 0.2); 
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 50px; 
    padding: 0 3rem;
    display: flex; align-items: center; justify-content: center;
}
.navbar.scrolled-view { width: 70%; height: 55px; background: rgba(10, 10, 10, 0.85); top: 15px; }
.navbar.nav-hidden { transform: translate(-50%, -200%); }

.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo-img { height: 85px; transition: 0.3s; margin-top: 5px; cursor: pointer; } 
.navbar.scrolled-view .logo-img { height: 70px; margin-top: 0; } 

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-item { text-decoration: none; color: white; font-size: 0.9rem; font-weight: 500; transition: 0.3s; }
.nav-item:hover { color: var(--gold); }
.btn-nav { background: var(--gold); color: white; padding: 0.5rem 1.5rem; border-radius: 30px; text-decoration: none; font-size: 0.85rem; font-weight: 600; transition: 0.3s; }
.btn-nav:hover { background: var(--gold-hover); transform: translateY(-2px); }
.mobile-toggle { display: none; color: white; font-size: 1.5rem; z-index: 1001; cursor: pointer; }

/* --- HERO SECTION --- */
.hero { 
    position: relative; height: 100vh; 
    display: flex; align-items: center; justify-content: center; 
    background: var(--bg-dark);
}
.hero-wrapper { position: absolute; inset: 0; z-index: 0; }
.hero-bg { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }

/* --- SMOOTH TRANSITIONS (GLOBAL) --- */
.section-fade {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 200px;
    z-index: 3; pointer-events: none;
}
.fade-to-cream { 
    /* CONTROL 2: STOPS
       - 'transparent 0%' means it starts completely clear at the top.
       - 'var(--bg-cream) 100%' means it is fully solid at the bottom.
       - To delay the start, change 0% to 20%.
    */
    background: linear-gradient(to bottom, transparent 45%, var(--bg-cream) 98%); 
}

/* Fade into Dark Background */
.fade-to-dark { 
    background: linear-gradient(to bottom, transparent 0%, var(--bg-dark) 100%); 
}

.hero-content { position: relative; z-index: 2; max-width: 900px; width: 90%; text-align: center; }
.hero-title { font-size: clamp(3.5rem, 8vw, 6rem); line-height: 1.1; margin-bottom: 0.5rem; color: white; }
.hero-subtitle { font-size: 1.5rem; margin-bottom: 1.5rem; display: block; }
.hero-desc { font-size: 1.2rem; line-height: 1.6; color: rgba(255,255,255,0.9); max-width: 700px; margin: 0 auto 2.5rem auto; }
.hero-actions { display: flex; justify-content: center; gap: 1.5rem; }

.btn-hero-primary, .btn-hero-secondary {
    padding: 1rem 2.5rem; border-radius: 50px; text-decoration: none; font-weight: 600; transition: 0.3s; font-size: 1rem;
}
.btn-hero-primary { background: var(--gold); color: white; border: 1px solid var(--gold); }
.btn-hero-primary:hover { background: var(--gold-hover); border-color: var(--gold-hover); transform: translateY(-2px); }
.btn-hero-secondary { background: transparent; color: white; border: 1px solid white; }
.btn-hero-secondary:hover { background: white; color: var(--bg-dark); transform: translateY(-2px); }

/* --- ABOUT SECTION --- */
.about-section { padding: 8rem 0; background: var(--bg-cream); position: relative; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 4rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.8rem; font-weight: 700; display: block; margin-bottom: 1rem; }
.about-heading { font-size: 2.5rem; margin-bottom: 1.5rem; line-height: 1.2; }
.about-text p { color: #555; font-size: 1rem; }
.about-text strong { color: var(--text-dark); }
.founder-card { position: relative; overflow: hidden; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.founder-img { width: 100%; display: block; }
.founder-info { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); padding: 2rem 1.5rem 1.5rem 1.5rem; color: white; }
.founder-name { font-family: 'Mrs Saint Delafield', cursive; font-size: 2.5rem; color: var(--gold); display: block; line-height: 1; }
.founder-role { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.8; }

/* --- WHY US --- */
.why-section { padding: 8rem 0; background: var(--bg-dark); color: white; position: relative; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 4rem; }
.glow-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; padding: 3rem 2rem; text-align: center; transition: 0.4s var(--easing); position: relative; overflow: hidden;
}
.glow-card:hover { border-color: var(--gold); box-shadow: 0 0 30px rgba(197, 160, 89, 0.15), inset 0 0 20px rgba(197, 160, 89, 0.05); transform: translateY(-10px); }
.card-icon { font-size: 3rem; color: rgba(255,255,255,0.5); margin-bottom: 1.5rem; transition: 0.4s; }
.glow-card:hover .card-icon { color: var(--gold); transform: scale(1.1); text-shadow: 0 0 15px rgba(197, 160, 89, 0.5); }
.glow-card h3 { color: white; margin-bottom: 1rem; font-size: 1.3rem; }
.glow-card p { color: rgba(255,255,255,0.6); font-size: 0.95rem; line-height: 1.6; }

/* --- STORY SECTION --- */
.story-section { padding: 6rem 0; background: #fff; position: relative; }
.center { text-align: center; margin-bottom: 4rem; }
.section-title { font-size: 3rem; margin-bottom: 2rem; }
.content-wrapper { max-width: 800px; margin: 0 auto; }
.section-desc { font-size: 1.1rem; color: #555; }
.timeline-wrapper { position: relative; max-width: 1000px; margin: 4rem auto 0; }
.timeline-line { position: absolute; top: 0; left: 50%; width: 2px; height: 100%; background: rgba(0,0,0,0.05); transform: translateX(-50%); }
.line-inner { width: 100%; height: 0%; background: var(--gold); transition: height 0.1s linear; }
.timeline-row { display: flex; justify-content: space-between; margin-bottom: 6rem; position: relative; }
.timeline-row::after { content: ''; position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; background: #fff; border: 3px solid var(--gold); border-radius: 50%; transform: translate(-50%, -50%); z-index: 2; }
.row-left { flex-direction: row; }
.row-right { flex-direction: row-reverse; }
.timeline-content { width: 45%; padding: 1rem; display: flex; flex-direction: column; justify-content: center; }
.timeline-content h3 { font-size: 2rem; margin-bottom: 1rem; color: var(--text-dark); }
.timeline-content p { color: #555; margin-bottom: 1rem; }
.step-number { font-family: var(--font-heading); font-size: 3rem; color: rgba(0,0,0,0.08); line-height: 1; margin-bottom: -0.5rem; }
.story-specs { list-style: none; margin-top: 1rem; padding-left: 0; }
.story-specs li { font-size: 0.9rem; color: #666; border-bottom: 1px solid #eee; padding: 0.5rem 0; }
.timeline-img-wrapper { width: 45%; height: 350px; position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.timeline-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.timeline-row:hover .timeline-img-wrapper img { transform: scale(1.05); }

/* --- CONTACT --- */
.contact { background: var(--bg-dark); color: white; padding: 6rem 0 3rem 0; }
.contact-header { text-align: center; margin-bottom: 4rem; }
.lead-light { color: rgba(255,255,255,0.6); font-size: 1.1rem; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-bottom: 4rem; }
.contact-card {
    background: rgba(255,255,255,0.05); padding: 2.5rem; border-radius: 8px;
    text-align: center; text-decoration: none; border: 1px solid rgba(255,255,255,0.1); transition: 0.3s;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.contact-card:hover { background: rgba(255,255,255,0.1); border-color: var(--gold); transform: translateY(-5px); }
.contact-card i { font-size: 2rem; color: var(--gold); margin-bottom: 1rem; }
.contact-card h4 { margin-bottom: 0.5rem; font-size: 1.1rem; color: white !important; }
.contact-card span { font-size: 0.9rem; color: rgba(255,255,255,0.8) !important; font-weight: 300; }
.footer-bar { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 3rem; }
.footer-logo { width: 100px; margin-bottom: 1rem; opacity: 0.8; display: inline-block; }
.footer-bar p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
/* --- THEMED FLOATING WHATSAPP --- */
.float-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    /* CHANGE 1: Use Brand Gold instead of Green */
    background-color: var(--gold); 
    color: white; /* Icon color */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1); /* Subtle border for luxury feel */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s;
}

.float-wa:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: var(--gold-hover); /* Lighter gold on hover */
    /* CHANGE 2: Gold colored glow */
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.4); 
}

/* --- DEVELOPER SIGNATURE --- */
.developer-sig {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3); /* Subtle Text */
    font-family: var(--font-body);
}

.tech-logo {
    height: 40px; /* Small and elegant */
    width: auto;
    opacity: 0.5;
    transition: 0.3s ease;
    filter: grayscale(100%) brightness(200%); /* Ensures visibility on dark bg */
}

/* Hover Effect */
.developer-sig a:hover .tech-logo {
    opacity: 1;
    filter: none; /* Shows original brand colors on hover */
}

@media (max-width: 900px) {
    .float-wa {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}

/* --- RESPONSIVE MOBILE FIXES --- */
@media (max-width: 900px) {
    /* Navbar reset - STRICT OVERRIDE */
    .navbar { 
        position: fixed; top: 0; left: 0; right: 0; 
        transform: none; 
        width: 100%; max-width: 100%; border-radius: 0; border: none; 
        padding: 0 1.5rem; background: rgba(10,10,10,0.95);
        height: 70px;
    }
    
    .navbar.scrolled-view { top: 0; width: 100%; height: 70px; background: rgba(10,10,10,0.95); }
    .navbar.nav-hidden { transform: translateY(-100%); }
    
    /* ORIGINAL OVERLAY APPROACH RESTORED */
    .nav-links { 
        position: fixed; inset: 0; height: 100vh; width: 100vw;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        flex-direction: column; justify-content: center; align-items: center; 
        gap: 2.5rem; padding-top: 0;
        opacity: 0; visibility: hidden; pointer-events: none;
        transform: none; /* No sliding */
        transition: opacity 0.5s var(--easing), visibility 0.5s;
        z-index: 999;
    }
    .nav-links.nav-active { opacity: 1; visibility: visible; pointer-events: all; }
    
    .mobile-toggle { display: block; z-index: 1001; }
    
    /* Hero */
    .hero-title { font-size: 3rem; }
    .hero-desc { font-size: 1rem; padding: 0 1rem; }
    .hero-actions { flex-direction: column; }
    
    /* About */
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .founder-card { max-width: 400px; margin: 0 auto; }
    
    /* Timeline Mobile */
    .timeline-line { display: none; }
    .timeline-row, .timeline-row.row-right { flex-direction: column; align-items: center; gap: 2rem; }
    .timeline-row::after { display: none; }
    .timeline-content, .timeline-img-wrapper { width: 100%; text-align: left; }
    .timeline-img-wrapper { height: 250px; }
    
    /* Contact Mobile */
    .contact-card { width: 100%; max-width: 350px; margin: 0 auto; }
}