:root {
    /* Colors */
    --primary: #1b271b; /* Deep Obsidian Green */
    --primary-glow: rgba(27, 39, 27, 0.1);
    --secondary: #9c6644; /* Brighter Terracotta for pop on sage */
    --bg-dark: #8F9E7A; /* New Sage Green Background */
    --bg-glass: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(0, 0, 0, 0.08);
    --text-primary: #0a0f0a; /* Pure deep contrast */
    --text-muted: #334034;
    --white: #ffffff;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition-smooth: all 0.7s cubic-bezier(0.2, 1, 0.3, 1);
    --cursor-color: var(--secondary);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

/* --- Grain Texture Overlay --- */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.05;
    pointer-events: none;
    z-index: 9990;
    filter: contrast(120%) brightness(120%);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    z-index: 1000;
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: navbarSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
}

@keyframes navbarSlideIn {
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.navbar.scrolled {
    top: 10px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(40px);
    width: 95%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 2.5px;
}

.logo span { color: var(--secondary); font-weight: 400; }

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

.nav-links a {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

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

/* --- Hero Section & Slideshow --- */
.hero {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.slide-nav {
    pointer-events: auto;
}

.slide-dots {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 10px;
    z-index: 35;
    pointer-events: auto;
}

.slide-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    pointer-events: auto;
}

.slide-dots .dot.active {
    background: white;
    transform: scale(1.2);
    border-color: rgba(255,255,255,0.8);
}

.slide-dots .dot:hover {
    background: rgba(255,255,255,0.7);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
    z-index: 3;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s ease-out;
    transform: scale(1.1);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 30;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-nav:hover {
    background: rgba(255,255,255,0.4);
    transform: translateY(-50%) scale(1.1);
}

.slide-prev { left: 20px; }
.slide-next { right: 20px; }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 3;
}

.hero-content {
    max-width: 900px;
    z-index: 10;
    position: relative;
    pointer-events: none; /* Allow interaction with thumbnails below */
}

/* Make buttons interactive despite pointer-events: none on parent */
.hero-btns a { pointer-events: auto; }

.hero-subtitle {
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 700;
    display: block;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 30px;
    color: #ffffff;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.hero-desc {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto 40px;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* --- Thumbnail Slider --- */
.hero-thumbs-container {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    z-index: 20;
    overflow: hidden;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.hero-thumbs-strip {
    display: flex;
    gap: 20px;
    width: max-content;
    padding: 0 50px;
    cursor: grab;
}

.thumb {
    min-width: 180px;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.2);
    opacity: 0.8;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    flex-shrink: 0;
}

.thumb:hover {
    opacity: 0.8;
    transform: translateY(-8px);
}

.thumb.active {
    opacity: 1;
    border-color: var(--primary);
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--text-primary);
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--text-primary);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: white;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.8rem;
}

/* --- Sections --- */
.stats-container { padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px; }
.stat-item { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 700; color: var(--primary); display: block; }
.stat-label { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; }

.section-header { text-align: center; margin-bottom: 80px; }
.section-tag { 
    color: var(--secondary); 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 5px; 
    font-size: 0.75rem;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.section-tag::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 1px;
    background: var(--secondary);
}

.section-title { 
    font-family: var(--font-heading); 
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -1px;
    line-height: 1.1;
}

/* --- Property Card Upgrades --- */
.property-card {
    transition: var(--transition-smooth);
    overflow: hidden;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 40px 80px rgba(0,0,0,0.1) !important;
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-image img {
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-num {
    transition: var(--transition-smooth);
}

.property-card:hover .project-num {
    transform: scale(1.1) rotate(5deg);
}

.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.3);
    border-left: 4px solid var(--text-primary);
    border-radius: 0 20px 20px 0;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.review-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.reviewer-name {
    font-weight: 600;
    color: var(--primary);
    position: relative;
    z-index: 2;
}

.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.address-card { padding: 40px; }
.detail-item { margin-bottom: 30px; }
.detail-item h4 { color: var(--secondary); margin-bottom: 10px; }
.social-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 40px; }
.social-btn {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
}
.social-btn:hover { background: var(--text-primary); color: white; border-color: var(--text-primary); }

.footer { padding: 60px 0; border-top: 1px solid var(--glass-border); text-align: center; }
.footer-logo { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 20px; display: block; }

/* --- Floating Architectural Elements --- */
.arch-element {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
    border: 1px solid var(--text-primary);
    filter: blur(1px);
}

.arch-1 {
    width: 300px;
    height: 300px;
    top: 15%;
    right: -100px;
    border-radius: 50% 0 50% 0;
    animation: float-arch 15s infinite linear;
}

.arch-2 {
    width: 200px;
    height: 400px;
    bottom: 20%;
    left: -50px;
    transform: rotate(45deg);
    animation: float-arch 20s infinite linear reverse;
}

.arch-3 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    border: 2px solid var(--secondary);
    opacity: 0.1;
    animation: float-arch 12s infinite ease-in-out;
}

@keyframes float-arch {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, 50px) rotate(10deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

[data-reveal] { 
    opacity: 0; 
    transform: translateY(40px) scale(0.98); 
    transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1), transform 1s cubic-bezier(0.23, 1, 0.32, 1); 
}

[data-reveal].active { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
}

/* --- WhatsApp FAB --- */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.whatsapp-fab:hover {
    transform: scale(1.1) rotate(10deg);
}

.whatsapp-fab i {
    font-size: 35px;
    color: white;
}

.whatsapp-fab::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    z-index: -1;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

/* --- Responsive --- */
@media (max-width: 968px) {
    .contact-wrapper, .owner-card { grid-template-columns: 1fr; }
    .owner-card { padding: 40px 20px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 20px; }
    .nav-links { display: none; }
    .hero-thumbs-container { bottom: 20px; }
    .section-title { font-size: 2.2rem; }
    .hero-title { font-size: 2.5rem; }
    .slide-nav { width: 40px; height: 40px; font-size: 1.2rem; display: flex; }
    .slide-prev { left: 10px; }
    .slide-next { right: 10px; }
    .slide-dots { display: flex; bottom: 100px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat-number { font-size: 2rem; }
    .hero-thumbs-container { display: none; }
    .slide-nav { 
        width: 40px; 
        height: 40px; 
        font-size: 1.2rem; 
        opacity: 0.9;
        display: flex;
    }
    .slide-dots { 
        display: flex; 
        bottom: 100px; 
    }
    .slide-dots .dot { width: 10px; height: 10px; }
    .hero-title { font-size: 2rem; }
    .hero-desc { font-size: 1rem; }
}
