@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Roboto:wght@300;400;500&display=swap');

:root {
    --primary-green: #1B4332;
    --secondary-green: #2D6A4F;
    --accent-lime: #52B788;
    --accent-hover: #40916C;
    --sand-bg: #F8F9FA;
    --light-green: #D8F3DC;
    --pure-white: #FFFFFF;
    --text-dark: #081C15;
    --text-muted: #495057;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(27, 67, 50, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--sand-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--sand-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--secondary-green);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-lime);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 10%;
    box-shadow: 0 10px 30px -10px rgba(27, 67, 50, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
        gap: 8px;
    }
}

.logo span {
    color: var(--accent-lime);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-green);
    cursor: pointer;
    transition: var(--transition);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

/* Hero Section with Carousel */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
    background: var(--primary-green); /* Fallback */
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(27, 67, 50, 0.8), rgba(27, 67, 50, 0.4));
}

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

.hero h1 {
    font-size: clamp(1.4rem, 8vw, 3.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--pure-white);
    animation: fadeInUp 1s ease-out forwards;
}

.hero h1 span.brand {
    color: var(--accent-lime);
    display: block;
    font-size: 1.1em;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    text-shadow: 0 0 20px rgba(82, 183, 136, 0.3);
    opacity: 0;
    animation: brandReveal 1.2s ease-out 0.5s forwards;
}

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

@keyframes brandReveal {
    0% {
        opacity: 0;
        transform: scale(0.9);
        letter-spacing: 0px;
    }
    100% {
        opacity: 1;
        transform: scale(1);
        letter-spacing: 6px;
    }
}

.hero p {
    font-size: 1.2rem;
    color: var(--light-green);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-lime);
    color: var(--primary-green);
    border: 1px solid var(--accent-lime);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-lime);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-lime);
    border: 1px solid var(--accent-lime);
}

.btn-secondary:hover {
    background: rgba(82, 183, 136, 0.1);
    transform: translateY(-3px);
}

/* Sections General */
section {
    padding: 6rem 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-lime);
}

/* Services Section - Side by Side Layout */
.services-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.service-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    background: var(--pure-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(27, 67, 50, 0.05);
    transition: var(--transition);
}

.service-row:hover {
    box-shadow: 0 20px 50px rgba(27, 67, 50, 0.1);
}

.service-row:nth-child(even) {
    flex-direction: row-reverse;
}

.service-image {
    flex: 1;
    height: 400px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-content {
    flex: 1;
    padding: 3rem;
}

.service-content i {
    font-size: 2.5rem;
    color: var(--accent-lime);
    margin-bottom: 1rem;
    display: block;
}

.service-content h3 {
    font-size: 1.8rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.service-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

@media (max-width: 992px) {
    .service-row, .service-row:nth-child(even) {
        flex-direction: column;
    }
    .service-image {
        width: 100%;
        height: 300px;
    }
}

/* "Why Choose Us" Section */
.why-us {
    background: var(--primary-green);
    color: var(--pure-white);
    display: flex;
    align-items: center;
    gap: 4rem;
}

.why-us-content {
    flex: 1;
}

.why-us-content h2 {
    color: var(--pure-white);
}

.why-us-content p {
    color: var(--light-green);
}

.why-us-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 30px -10px rgba(8, 28, 21, 0.3);
}

.why-us-image img {
    width: 100%;
    height: auto;
    display: block;
}

.feature-list {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-item i {
    color: var(--accent-lime);
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-green);
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

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

input, select, textarea {
    width: 100%;
    padding: 1rem;
    background: var(--pure-white);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--text-dark);
    font-family: inherit;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-lime);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #128C7E;
}

/* Footer */
footer {
    padding: 4rem 10% 2rem;
    background: var(--primary-green);
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--pure-white);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--light-green);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-lime);
}

/* Property Sales Section */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

@media (max-width: 480px) {
    .properties-grid {
        grid-template-columns: 1fr;
    }
}

.property-card {
    background: var(--pure-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(27, 67, 50, 0.05);
    transition: var(--transition);
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(27, 67, 50, 0.1);
}

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

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

.property-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-lime);
    color: var(--primary-green);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
}

.property-info {
    padding: 1.5rem;
}

.property-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

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

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--light-green);
    padding: 2.5rem;
    border-radius: 12px;
    position: relative;
}

.testimonial-card i.quote-icon {
    font-size: 2rem;
    color: var(--accent-lime);
    margin-bottom: 1.5rem;
    display: block;
}

.testimonial-text {
    font-style: italic;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-green);
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--secondary-green);
    display: block;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    .why-us {
        flex-direction: column;
    }
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 50%; /* Occupy 50% of screen width */
        height: 100vh;
        background: var(--pure-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1000;
        display: flex !important; /* Ensure it's flex when active */
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 0.8rem 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        color: var(--primary-green);
    }
}
