/* Variables */
:root {
    --primary-color: #2A3D55;
    --secondary-color: #C19A6B;
    --neutral-color: #E5E5E5;
    --background-color: #F8F7F5;
    --dark-color: #1A1E24;
    
    --container-width: 1200px;
    --header-height: 80px;
    
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    height: 100%;
    display: flex;
    align-items: center;
}

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

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

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

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

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

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

.nav-menu a.active {
    color: var(--secondary-color);
}

.logo img {
    height: auto;
    max-height: 40px;
    width: auto;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    padding-top: var(--header-height);
    background: linear-gradient(rgba(42, 61, 85, 0.8), rgba(42, 61, 85, 0.8)),
                url('../assets/images/backgrounds/hero_bg.webp') center/cover;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.spotlight-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    animation: spotlight 8s infinite linear;
}

@keyframes spotlight {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.hero-content {
    color: white;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Features Section */
.features {
    padding: 5rem 0;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Properties Section with Parallax */
.properties {
    padding: 5rem 0;
    background-color: var(--background-color);
    position: relative;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.property-card {
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.property-card:hover {
    transform: translateY(-10px);
}

.property-image {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: transform 0.5s ease;
}

.property-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transform: translateY(100px);
    transition: transform 0.3s ease;
}

.property-card:hover .property-content {
    transform: translateY(0);
}

.property-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.property-description {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.property-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .property-card {
        height: 350px;
    }
    
    .property-image {
        background-attachment: scroll;
    }
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--background-color);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--neutral-color);
    border-radius: 5px;
    transition: var(--transition);
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    transition: var(--transition);
    pointer-events: none;
    color: #666;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.5rem;
    background: white;
    padding: 0 0.5rem;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--secondary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.visible {
    display: flex;
}

.scroll-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: white;
        padding: 2rem;
        flex-direction: column;
        gap: 2rem;
        transition: var(--transition);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin-left: auto;
        z-index: 1001;
    }

    .hamburger,
    .hamburger::before,
    .hamburger::after {
        width: 24px;
        height: 3px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .property-grid {
        grid-template-columns: 1fr;
    }
}

/* Hamburger Menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

/* Hamburger Animation */
.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 0.5rem;
    margin: 0 1rem;
}

.lang-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .nav-menu {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .property-content {
    text-align: right;
}

[dir="rtl"] .form-group label {
    right: 1rem;
    left: auto;
}

[dir="rtl"] .social-links {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .language-selector {
        order: -1;
        margin: 0;
    }

    [dir="rtl"] .nav-menu {
        left: auto;
        right: -100%;
    }

    [dir="rtl"] .nav-menu.active {
        left: auto;
        right: 0;
    }
}

/* Language Dropdown */
.language-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1rem;
    height: 100%;
}

.nav-menu .language-dropdown {
    margin: 0;
    padding: 0;
}

.nav-menu .dropdown-toggle {
    color: var(--dark-color);
    transition: var(--transition);
    height: 100%;
    padding: 0 1rem;
}

.nav-menu .dropdown-toggle:hover {
    color: var(--secondary-color);
}

.dropdown-toggle i {
    font-size: 1.2rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.language-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    transition: background-color 0.3s ease;
}

.lang-option:hover {
    background-color: var(--neutral-color);
}

@media (max-width: 768px) {
    .nav-menu .language-dropdown {
        margin-top: 1rem;
        border-top: 1px solid var(--neutral-color);
        padding-top: 1rem;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        min-width: auto;
        margin-top: 0.5rem;
    }

    .dropdown-toggle {
        justify-content: center;
        width: 100%;
    }

    .lang-option {
        text-align: center;
        padding: 0.5rem;
    }
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .nav-menu {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .property-content {
    text-align: right;
}

[dir="rtl"] .form-group label {
    right: 1rem;
    left: auto;
}

[dir="rtl"] .social-links {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    /* Override RTL specific mobile menu behavior */
    [dir="rtl"] .nav {
        flex-direction: row; /* Keep original direction */
    }
    
    [dir="rtl"] .nav-toggle {
        margin-left: 0;
        margin-right: auto;
    }
    
    [dir="rtl"] .nav-menu {
        left: -100%; /* Keep slide direction consistent */
        right: auto;
    }
    
    [dir="rtl"] .nav-menu.active {
        left: 0;
        right: auto;
    }
    
    /* Keep hamburger menu on the right for all languages */
    .nav-toggle {
        order: 3;
    }
    
    .logo {
        order: 1;
    }
    
    .nav-menu {
        order: 2;
    }
}
</rewritten_file>