/* Variables */
:root {
    --primary-dark: #212529; /* Dark background/text */
    --secondary-dark: #343a40; /* Slightly lighter dark for sections */
    --accent-gold: #FFD700; /* Gold/Yellow for highlights */
    --accent-orange: #FFA500; /* Orange for CTAs */
    --light-gray: #f8f9fa; /* Light background for sections */
    --white: #ffffff;
    --text-color: #495057; /* Standard text color */
    --heading-color: #212529; /* Heading text color */
    --border-radius: 0.75rem; /* Rounded corners for cards/buttons */
    --transition-speed: 0.3s; /* Standard transition speed */

    /* Fonts */
    --font-poppins: 'Poppins', sans-serif;
    --font-lato: 'Lato', sans-serif;
    --font-montserrat: 'Montserrat', sans-serif;
}

/* General Body Styles */
body {
    font-family: var(--font-poppins);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-montserrat);
    color: var(--heading-color);
    font-weight: 700;
}

p {
    font-family: var(--font-lato);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease-in-out;
}

/* Navbar */
.navbar {
    background-color: transparent;
    transition: background-color var(--transition-speed) ease-in-out, padding var(--transition-speed) ease-in-out;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    z-index: 1030; /* Ensure navbar stays on top */
}

.navbar.scrolled {
    background-color: rgba(33, 37, 41, 0.95); /* Darker with slight transparency */
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar-brand {
    color: var(--white) !important;
    font-family: var(--font-montserrat);
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.navbar-brand:hover {
    color: var(--accent-gold) !important;
}

.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    font-size: 1.05rem;
    margin-left: 1.5rem;
    position: relative;
    overflow: hidden; /* For underline animation */
}

.nav-link:hover {
    color: var(--accent-gold) !important;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background-color: var(--accent-gold);
    transition: left var(--transition-speed) ease-in-out;
}

.nav-link:hover::before {
    left: 0;
}

.btn-warning-custom {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    color: var(--primary-dark) !important;
    font-weight: 600;
    transition: all var(--transition-speed) ease-in-out;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-warning-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-warning-custom:hover::before {
    left: 100%;
}

.btn-warning-custom:hover {
    background-color: darken(var(--accent-orange), 10%);
    border-color: darken(var(--accent-orange), 10%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.social-icon {
    font-size: 1.5rem;
    transition: transform 0.2s ease-in-out, color var(--transition-speed) ease-in-out;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: var(--accent-gold) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    background: url("../img/1.webp") no-repeat center center/cover; /* Placeholder image */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1;
}

.hero-content {
    z-index: 2;
    animation: fadeInScale 1s ease-out forwards;
}

.hero-section h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.hero-section p.lead {
    font-size: 1.75rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.hero-section .hashtag {
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.8;
}

.highlight-text {
    color: var(--accent-gold);
    font-weight: 700;
}

.btn-outline-light {
    border-color: var(--white);
    color: var(--white);
    transition: all var(--transition-speed) ease-in-out;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.15);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-outline-light:hover::before {
    left: 100%;
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* Animated Button Styles */
.animated-button {
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Introduction / Brand Statement Section */
.intro-section {
    background-color: var(--white);
    padding-top: 5rem;
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(var(--accent-gold), 0.1) 0%, rgba(var(--accent-gold), 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    animation: rotateBackground 30s linear infinite;
}

.intro-section h2 {
    font-size: 3.5rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    animation: slideInUp 0.8s ease-out forwards;
}

.intro-section p.lead {
    font-size: 1.25rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    animation: slideInUp 1s ease-out forwards;
}

.btn-success-custom {
    background-color: #28a745; /* Bootstrap green */
    border-color: #28a745;
    color: var(--white);
    font-weight: 600;
    transition: all var(--transition-speed) ease-in-out;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-success-custom:hover {
    background-color: darken(#28a745, 10%);
    border-color: darken(#28a745, 10%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Why Choose Us – Features Section */
.features-section {
    background-color: var(--light-gray);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.feature-card {
    background-color: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all var(--transition-speed) ease-in-out;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--accent-gold), 0.1) 0%, rgba(var(--accent-gold), 0) 50%);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform var(--transition-speed) ease-out;
}

.feature-card:hover::before {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    border-color: var(--accent-gold);
}

.feature-card .feature-icon {
    font-size: 3rem;
    color: var(--accent-orange);
    transition: color var(--transition-speed) ease-in-out;
}

.feature-card:hover .feature-icon {
    color: var(--primary-dark);
}

/* Featured Properties Section */
.featured-properties-section {
    background-color: var(--primary-dark);
    color: var(--white);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.featured-properties-section h2 {
    color: var(--white);
    font-size: 3.5rem;
    animation: slideInRight 0.8s ease-out forwards;
}

.featured-properties-section p.lead {
    font-size: 1.25rem;
    animation: slideInRight 1s ease-out forwards;
}

.btn-dark-custom {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: var(--white);
    font-weight: 600;
    transition: all var(--transition-speed) ease-in-out;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-dark-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-dark-custom:hover::before {
    left: 100%;
}

.btn-dark-custom:hover {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Our Services Section */
.services-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: var(--white);
}

.service-card {
    height: 300px;
    background-size: cover !important;
    background-position: center !important;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform var(--transition-speed) ease-in-out, box-shadow var(--transition-speed) ease-in-out;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
    transition: background var(--transition-speed) ease-in-out;
}

.service-card:hover::before {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
}

.service-card h3 {
    position: relative;
    z-index: 2;
    font-size: 2rem;
    transform: translateY(10px);
    transition: transform var(--transition-speed) ease-in-out, color var(--transition-speed) ease-in-out;
}

.service-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.service-card:hover h3 {
    color: var(--accent-gold);
    transform: translateY(0);
}

.residential-bg {
    background: url("../img/residencial.webp") no-repeat center center/cover;
}

.commercial-bg {
    background: url("../img/comercial.webp") no-repeat center center/cover;
}

.new-developments-bg {
    background: url("../img/new.webp") no-repeat center center/cover;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--light-gray);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.testimonials-section h2 {
    font-size: 3.5rem;
    margin-bottom: 4rem;
    animation: slideInLeft 0.8s ease-out forwards;
}

.testimonial-card {
    background-color: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 2.5rem;
    position: relative;
    text-align: center;
    transition: all var(--transition-speed) ease-in-out;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
}

.testimonial-card:hover {
    transform: translateY(-7px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    border-color: var(--accent-orange);
}

.testimonial-card .quote-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    position: absolute;
    top: 1rem;
    left: 1rem;
    opacity: 0.7;
}

.testimonial-card p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.testimonial-card .fw-bold {
    color: var(--primary-dark);
    font-size: 1.1rem;
}

/* Contact Us Section */
.contact-section {
    background-color: var(--white);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.contact-section h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.contact-section p.lead {
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

.contact-info li {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.contact-info li i {
    color: var(--accent-orange);
    font-size: 1.5rem;
}

.contact-info li a {
    color: var(--text-color);
}

.contact-info li a:hover {
    color: var(--accent-orange);
}

.contact-form {
    background-color: var(--light-gray);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-form .form-control {
    border-radius: 0.5rem;
    padding: 0.8rem 1rem;
    border: 1px solid #ced4da;
    transition: border-color var(--transition-speed) ease-in-out, box-shadow var(--transition-speed) ease-in-out;
}

.contact-form .form-control:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 0.25rem rgba(var(--accent-orange), 0.25);
}

/* Final Call to Action Section */
.final-cta-section {
    position: relative;
    height: 400px;
    background: url("../img/2.webp") no-repeat center center/cover; /* Placeholder image */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 0;
    overflow: hidden;
}

.final-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 1;
}

.final-cta-section p {
    position: relative;
    z-index: 2;
    font-size: 2.5rem;
    font-weight: 500;
    text-shadow: 0 3px 6px rgba(0,0,0,0.3);
    animation: fadeIn 1.5s ease-out forwards;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease-in-out;
}

.whatsapp-float .whatsapp-icon {
    margin-top: 4px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 4px 4px 6px #777;
}

.whatsapp-tooltip {
    visibility: hidden;
    width: 80px;
    background-color: var(--primary-dark);
    color: var(--white);
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity var(--transition-speed);
    font-size: 0.8rem;
}

.whatsapp-float:hover .whatsapp-tooltip {
    visibility: visible;
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--primary-dark);
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: var(--border-radius);
    }
    .navbar-toggler {
        filter: invert(1); /* Make hamburger icon white */
    }
    .navbar-toggler:focus {
        box-shadow: none;
    }
    .navbar.scrolled .navbar-collapse {
        background-color: var(--secondary-dark);
    }
    .navbar-nav .nav-item {
        margin-left: 0;
        text-align: center;
    }
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }
    .navbar-nav .btn-warning-custom {
        display: block;
        margin: 1rem auto;
        width: fit-content;
    }
    .hero-section h1 {
        font-size: 3rem;
    }
    .hero-section p.lead {
        font-size: 1.2rem;
    }
    .intro-section h2,
    .featured-properties-section h2,
    .testimonials-section h2,
    .contact-section h2 {
        font-size: 2.5rem;
    }
    .intro-section p.lead,
    .featured-properties-section p.lead,
    .contact-section p.lead {
        font-size: 1rem;
    }
    .service-card h3 {
        font-size: 1.5rem;
    }
    .final-cta-section p {
        font-size: 1.8rem;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
    .whatsapp-float .whatsapp-icon {
        margin-top: 2px;
    }
    .whatsapp-tooltip {
        right: 60px;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p.lead {
        font-size: 1rem;
    }
    .intro-section h2,
    .featured-properties-section h2,
    .testimonials-section h2,
    .contact-section h2 {
        font-size: 2rem;
    }
    .final-cta-section p {
        font-size: 1.5rem;
    }
    .contact-form {
        padding: 1.5rem;
    }
}

/* General Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes rotateBackground {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}