:root {
    /* Color Palette */
    --primary-bg: #F8F8F8; /* Off-white for general backgrounds */
    --secondary-bg: #FFFFFF; /* Pure white for cards/elements */
    --dark-bg: #1A202C; /* Deep Charcoal/Navy for header, footer, dark text */
    --accent-gold: #D4AF37; /* Subtle Gold/Bronze for highlights */
    --text-dark: #333333; /* Very dark gray for main text */
    --text-medium: #4A5568; /* Medium gray for body text */
    --text-light: #718096; /* Light gray for descriptions */
    --border-color: #E2E8F0; /* Light gray for subtle borders */

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing & Sizing */
    --header-height: 80px;
    --padding-section: 80px;
    --max-width-container: 1200px;

    /* Transitions & Shadows */
    --transition-speed: 0.3s ease-in-out;
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.07);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-medium);
    background-color: var(--primary-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-padding-top: var(--header-height); /* For smooth scrolling to anchor links */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Soften edges for elegance */
}

a {
    text-decoration: none;
    color: var(--dark-bg);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--accent-gold);
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: var(--max-width-container);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--padding-section) 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8em;
    color: var(--dark-bg);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    text-align: center; /* Default to center for main titles */
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
    border-radius: 2px;
}

.section-title.text-left::after {
    left: 0;
    transform: translateX(0);
}

.section-description {
    font-size: 1.2em;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.lead-text {
    font-size: 1.3em;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--secondary-bg);
}

.bg-gradient {
    background: linear-gradient(135deg, var(--dark-bg) 0%, rgba(26, 32, 44, 0.9) 100%);
    color: var(--primary-bg);
}

.bg-gradient .section-title,
.bg-gradient .section-description,
.bg-gradient .lead-text {
    color: var(--primary-bg);
}

.bg-gradient .section-title::after {
    background-color: var(--accent-gold);
}

.icon-gold {
    color: var(--accent-gold);
    margin-right: 10px;
}

/* Header */
.main-header {
    background-color: var(--dark-bg);
    color: var(--primary-bg);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color var(--transition-speed), padding var(--transition-speed);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header.sticky {
    padding: 10px 0;
    background-color: rgba(26, 32, 44, 0.95); /* Slightly transparent when sticky */
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8em;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.logo:hover {
    color: var(--primary-bg);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--primary-bg);
    font-weight: 500;
    font-size: 1.05em;
    position: relative;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: width var(--transition-speed);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-bg);
    margin: 5px 0;
    transition: all var(--transition-speed);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--primary-bg);
    background-image: url('images/image_7.jpg'); /* High-res image for hero */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    padding-top: var(--header-height); /* Ensure content isn't under header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.7) 0%, rgba(212, 175, 55, 0.4) 100%); /* Subtle overlay with gold hint */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.7em;
    font-weight: 300;
    margin-bottom: 40px;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.2);
}

/* Grid Layouts */
.grid-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.grid-two-cols.reversed {
    grid-template-columns: 1fr 1fr;
}

.grid-two-cols.reversed > *:first-child {
    order: 2;
}

.grid-two-cols.reversed > *:last-child {
    order: 1;
}


/* About Section */
.about-image img {
    box-shadow: var(--shadow-medium);
    transition: transform var(--transition-speed);
}

.about-image img:hover {
    transform: translateY(-5px);
}

.about-content .section-title {
    text-align: left;
}

.about-content .section-title::after {
    left: 0;
    transform: translateX(0);
}

/* Properties Section */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.property-card {
    background-color: var(--secondary-bg);
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.property-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    transition: transform 0.5s ease-out;
}

.property-card:hover img {
    transform: scale(1.05);
}

.property-card .card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.property-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5em;
    color: var(--dark-bg);
    margin-bottom: 10px;
    font-weight: 600;
}

.property-card p {
    font-size: 0.95em;
    color: var(--text-light);
    margin-bottom: 15px;
    flex-grow: 1;
}

.property-card .price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2em;
    color: var(--accent-gold);
    margin-right: 15px;
}

.property-card .location {
    font-size: 0.9em;
    color: var(--text-medium);
}

.property-card .location i {
    color: var(--accent-gold);
    margin-right: 5px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--secondary-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border-top: 5px solid var(--accent-gold);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.service-card i {
    font-size: 3.5em;
    color: var(--accent-gold);
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6em;
    color: var(--dark-bg);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    font-size: 1em;
    color: var(--text-light);
    line-height: 1.7;
}

/* Why Choose Us Section */
.why-us-content .section-title {
    text-align: left;
    color: var(--primary-bg);
}

.why-us-content .section-title::after {
    left: 0;
    transform: translateX(0);
    background-color: var(--accent-gold);
}

.feature-list {
    margin-top: 30px;
    padding-left: 0;
}

.feature-list li {
    font-size: 1.15em;
    color: var(--primary-bg);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-weight: 400;
}

.feature-list li i {
    color: var(--accent-gold);
    margin-right: 15px;
    font-size: 1.3em;
}

.why-us-image img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-speed);
}

.why-us-image img:hover {
    transform: translateY(-5px);
}

/* Testimonials Section */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: var(--secondary-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow-light);
    text-align: center;
    position: relative;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px; /* Ensure cards have similar height */
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-card::before {
    content: '\201C'; /* Left double quotation mark */
    font-family: var(--font-heading);
    font-size: 4em;
    color: rgba(212, 175, 55, 0.2);
    position: absolute;
    top: 5px;
    left: 20px;
    line-height: 1;
}

.testimonial-card .quote {
    font-size: 1.15em;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 20px;
    z-index: 1;
    position: relative;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--accent-gold);
    font-size: 1em;
}

/* Contact Info Section */
.contact-details {
    margin-top: 40px;
    font-size: 1.2em;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.contact-details p {
    display: flex;
    align-items: center;
    font-weight: 500;
}

/* Footer */
.main-footer {
    background-color: var(--dark-bg);
    color: var(--primary-bg);
    padding: 60px 0 20px;
    font-size: 0.95em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3,
.footer-links h3,
.footer-social h3 {
    font-family: var(--font-heading);
    font-size: 1.4em;
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-about p {
    color: var(--text-light);
    line-height: 1.7;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--primary-bg);
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a {
    color: var(--primary-bg);
    font-size: 1.3em;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.2); /* Light gold transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color var(--transition-speed), color var(--transition-speed), transform var(--transition-speed);
}

.social-icons a:hover {
    background-color: var(--accent-gold);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}


/* Advanced UI & Animations */

/* Scroll Reveal Base */
.scroll-reveal {
    opacity: 1;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Specific reveal animations */
/* Initial hidden state for reveal children */
[class*="reveal-"] {
    opacity: 1;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* General child element animation */
[class*="reveal-"].animate {
    opacity: 1;
    transform: translateY(0) translateX(0); /* Reset for specific effects */
}

.reveal-left {
    transform: translateX(-50px);
}
.reveal-right {
    transform: translateX(50px);
}
.reveal-top {
    transform: translateY(-50px);
}
.reveal-bottom {
    transform: translateY(50px);
}

/* Delay for staggering */
.delay-05 { transition-delay: 0.1s; } /* For 0.5s delay */
.delay-1 { transition-delay: 0.2s; }   /* For 1s delay */
.delay-10 { transition-delay: 0.3s; }
.delay-15 { transition-delay: 0.4s; }
.delay-2 { transition-delay: 0.5s; }
.delay-20 { transition-delay: 0.6s; }
.delay-25 { transition-delay: 0.7s; }
.delay-3 { transition-delay: 0.8s; }


/* Responsive Design */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2em;
    }
    .hero-title {
        font-size: 3.5em;
    }
    .hero-subtitle {
        font-size: 1.4em;
    }
    .grid-two-cols {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .grid-two-cols.reversed > *:first-child {
        order: initial; /* Reset order for smaller screens */
    }
    .grid-two-cols.reversed > *:last-child {
        order: initial; /* Reset order for smaller screens */
    }
    .about-content .section-title,
    .why-us-content .section-title {
        text-align: center;
    }
    .about-content .section-title::after,
    .why-us-content .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    :root {
        --padding-section: 60px;
        --header-height: 70px;
    }

    .main-header .container {
        flex-wrap: wrap;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--dark-bg);
        position: absolute;
        top: var(--header-height);
        left: 0;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        animation: slideDown 0.3s ease-out forwards;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .main-nav li {
        text-align: center;
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .main-nav a:hover {
        background-color: rgba(212, 175, 55, 0.1);
    }
    .main-nav a::after {
        display: none; /* Hide underline on mobile */
    }

    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    /* Hamburger icon animation */
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 1;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.8em;
    }
    .hero-subtitle {
        font-size: 1.2em;
    }

    .property-grid, .services-grid, .testimonial-grid, .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-about, .footer-links, .footer-social {
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
    .contact-details {
        font-size: 1.1em;
    }

    .section-title {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2em;
    }
    .hero-subtitle {
        font-size: 1em;
    }
    .logo {
        font-size: 1.5em;
    }
    .section-title {
        font-size: 1.8em;
    }
    .section-description {
        font-size: 1em;
    }
    .lead-text {
        font-size: 1.1em;
    }
    .property-card h3 {
        font-size: 1.3em;
    }
    .service-card h3 {
        font-size: 1.4em;
    }
    .feature-list li {
        font-size: 1em;
    }
    .testimonial-card .quote {
        font-size: 1em;
    }
}

/* Animations for mobile nav */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 1;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* Animation states when visible - FIXED: Only opacity: 1 */
.animate-fade-in-up.visible,
.animate-fade-in-left.visible,
.animate-fade-in-right.visible,
.animate-bounce-y.visible,
.section-scroll-animate.visible,
.text-animate-up.visible,
.reveal-item.visible,
.scroll-reveal.visible,
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in-up.visible.fade-in,
.section-scroll-animate.visible.fade-in {
    opacity: 1;
}

.animate-fade-in-up.visible.slide-up,
.section-scroll-animate.visible.slide-up {
    transform: translateY(0);
}
/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
