/* ==========================================================================
   CSS VARIABLES & RESET
   ========================================================================== */
:root {
    /* Luxury Color Palette */
    --clr-dark: #0a0e17;
    --clr-darker: #05080e;
    --clr-gold: #c5a059;
    --clr-gold-light: #e6c587;
    --clr-white: #ffffff;
    --clr-light: #f5f5f5;
    --clr-blue-deep: #111a2c;
    --clr-text-muted: #a0a5b1;

    /* Gradients */
    --grad-bg: linear-gradient(135deg, var(--clr-darker) 0%, var(--clr-blue-deep) 100%);
    --grad-gold: linear-gradient(135deg, var(--clr-gold) 0%, #a37c35 100%);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;

    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Shadows & Glass */
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(17, 26, 44, 0.6);
    --glass-border: 1px solid rgba(197, 160, 89, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--grad-bg);
    background-attachment: fixed;
    color: var(--clr-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-gold { color: var(--clr-gold); }
.bg-darker { background-color: var(--clr-darker); }
.section-padding { padding: 5rem 0; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.w-100 { width: 100%; }

.subtitle {
    display: block;
    color: var(--clr-gold);
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}

.divider {
    height: 2px;
    width: 60px;
    background: var(--grad-gold);
    margin: 1rem auto 2rem;
}

.divider.left { margin: 1rem 0 2rem 0; }

/* ==========================================================================
   GLASSMORPHISM & COMPONENTS
   ========================================================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(197, 160, 89, 0.4);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--grad-gold);
    color: var(--clr-darker);
}

.btn-primary:hover {
    background: var(--clr-white);
    color: var(--clr-darker);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--clr-gold);
    border: 1px solid var(--clr-gold);
}

.btn-outline:hover {
    background: var(--clr-gold);
    color: var(--clr-darker);
}

.btn-text {
    color: var(--clr-gold);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-text:hover {
    color: var(--clr-white);
    gap: 12px;
}

/* ==========================================================================
   PRELOADER & BACKGROUND ANIMATION
   ========================================================================== */
.preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--clr-darker);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--clr-gold);
    margin-bottom: 20px;
    animation: pulse 1.5s infinite alternate;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; height: 100%;
    width: 0;
    background: var(--clr-gold);
    animation: loadBar 2s ease forwards;
}

@keyframes pulse { 0% { opacity: 0.6; } 100% { opacity: 1; text-shadow: 0 0 15px rgba(197,160,89,0.5); } }
@keyframes loadBar { 0% { width: 0; } 100% { width: 100%; } }

.bg-animation {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(197,160,89,0.05) 0%, transparent 70%);
}

.circle-1 { width: 800px; height: 800px; top: -200px; right: -200px; animation: float 15s infinite ease-in-out alternate; }
.circle-2 { width: 600px; height: 600px; bottom: -100px; left: -100px; animation: float 20s infinite ease-in-out alternate-reverse; }

@keyframes float { 0% { transform: translate(0, 0); } 100% { transform: translate(50px, 50px); } }

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--clr-white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i { color: var(--clr-gold); }

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

.nav-link {
    color: var(--clr-white);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: var(--clr-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--clr-gold); }

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px; height: 2px;
    margin: 5px auto;
    background-color: var(--clr-white);
    transition: all 0.3s ease-in-out;
}

/* ==========================================================================
   SPA VIEWS
   ========================================================================== */
.view-section {
    display: none;
    opacity: 0;
    animation: fadeInView 0.5s forwards;
}

.view-section.active-view {
    display: block;
}

@keyframes fadeInView {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Common Page Header */
.page-header {
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(10, 14, 23, 0.8), rgba(10, 14, 23, 0.9)), url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    margin-bottom: 2rem;
}

.page-header.mini {
    height: 30vh;
    min-height: 250px;
}

.page-header h1 {
    color: var(--clr-gold);
    margin-bottom: 1rem;
}

/* ==========================================================================
   HOME: HERO SECTION
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(5, 8, 14, 0.9) 0%, rgba(5, 8, 14, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--clr-light);
    margin: 1.5rem 0 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.floating-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-card {
    padding: 1.5rem;
    min-width: 160px;
    border-left: 3px solid var(--clr-gold);
}

.stat-card h3 {
    display: inline-block;
    font-size: 2.5rem;
    color: var(--clr-gold);
    margin: 0;
}

.stat-card span {
    font-size: 2rem;
    color: var(--clr-gold);
    font-family: var(--font-heading);
}

.stat-card p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--clr-text-muted);
}

/* ==========================================================================
   HOME: SERVICES, AMENITIES, VALUES
   ========================================================================== */
.services-grid, .values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 3rem 2rem;
    text-align: center;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.service-card i {
    font-size: 3rem;
    color: var(--clr-gold);
    margin-bottom: 1.5rem;
}

.service-card:hover {
    background: var(--glass-bg);
    border-radius: 12px;
    border-bottom-color: var(--clr-gold);
    transform: translateY(-10px);
}

.service-card p, .value-card p {
    color: var(--clr-text-muted);
}

.value-card {
    padding: 2.5rem;
    text-align: center;
}

/* Amenities */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.amenity-item {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.amenity-item i {
    color: var(--clr-gold);
    font-size: 1.5rem;
}

/* ==========================================================================
   ABOUT SPLIT SECTION
   ========================================================================== */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.img-wrapper img {
    width: 100%;
    display: block;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

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

.experience-badge {
    position: absolute;
    bottom: -20px; right: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 12px;
}

.experience-badge .years {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--clr-gold);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.about-text p {
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
}

.check-list {
    margin-bottom: 2rem;
}

.check-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   PROPERTIES GRID & CARDS
   ========================================================================== */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.property-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.property-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.badge {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--grad-gold);
    color: var(--clr-darker);
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
}

.property-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.property-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.location {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.location i { color: var(--clr-gold); }

.property-details {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price {
    color: var(--clr-gold);
    font-size: 1.5rem;
}

/* Filters */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--clr-white);
    padding: 8px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--clr-gold);
    border-color: var(--clr-gold);
    color: var(--clr-darker);
}

/* ==========================================================================
   SERVICES FULL GRID
   ========================================================================== */
.services-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-detail-card {
    padding: 2.5rem;
    text-align: center;
}

.icon-circle {
    width: 80px; height: 80px;
    background: rgba(197, 160, 89, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(197, 160, 89, 0.3);
    transition: var(--transition);
}

.icon-circle i {
    font-size: 2rem;
    color: var(--clr-gold);
}

.service-detail-card:hover .icon-circle {
    background: var(--clr-gold);
}

.service-detail-card:hover .icon-circle i {
    color: var(--clr-darker);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 2rem;
}

.info-item .icon {
    width: 50px; height: 50px;
    background: rgba(197, 160, 89, 0.1);
    color: var(--clr-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-item h4 { margin-bottom: 5px; }
.info-item p { color: var(--clr-text-muted); }

.map-inner {
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--clr-text-muted);
}

.contact-form-container {
    padding: 2.5rem;
}

.contact-form-container h3 {
    margin-bottom: 1.5rem;
    color: var(--clr-gold);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--clr-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--clr-white);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-gold);
    background: rgba(0, 0, 0, 0.5);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
    margin-top: 5px;
    accent-color: var(--clr-gold);
}

.checkbox-group label {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    line-height: 1.4;
    margin-bottom: 0;
}

.form-status {
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}
.form-status.success { color: #4caf50; display: block; }
.form-status.error { color: #f44336; display: block; }

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal-box {
    padding: 3rem;
}

.legal-box h3 {
    color: var(--clr-gold);
    margin: 2rem 0 1rem;
    font-family: var(--font-body);
}

.legal-box p {
    color: var(--clr-text-muted);
    margin-bottom: 1rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--clr-darker);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--clr-white);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 2px;
    background: var(--clr-gold);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-white);
}

.social-icons a:hover {
    background: var(--clr-gold);
    color: var(--clr-darker);
    transform: translateY(-3px);
}

.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--clr-text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--clr-gold); padding-left: 5px; }

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.footer-contact i { color: var(--clr-gold); margin-top: 4px; }

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: #030508;
}

.footer-bottom p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Floating WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background: #1ebe5d;
}

/* ==========================================================================
   ANIMATIONS & REVEAL
   ========================================================================== */
.fade-up { opacity: 0; transform: translateY(30px); }
.fade-in { opacity: 0; }
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

.delay-1 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; transition-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; transition-delay: 0.6s; }

/* Testimonial slider */
.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    text-align: center;
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: rgba(197, 160, 89, 0.2);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.client-avatar img {
    width: 60px; height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--clr-gold);
}

.client-details h4 { margin: 0; color: var(--clr-gold); }
.client-details span { font-size: 0.85rem; color: var(--clr-text-muted); }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .about-split, .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-content h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    
    .navbar {
        position: fixed;
        left: -100%;
        top: 70px;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--clr-darker);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    
    .navbar.active { left: 0; }
    
    .nav-list {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .nav-link { font-size: 1.2rem; }
    
    .hero-btns { flex-direction: column; }
    
    .floating-stats {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stat-card { text-align: center; border-left: none; border-top: 3px solid var(--clr-gold); }
}

@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.5rem; }
    .legal-box { padding: 1.5rem; }
}
