:root {
    --dark-blue: #0F172A;
    --gold: #D4AF37;
    --white: #FFFFFF;
    --light-gray: #F8FAFC;
    --gray: #64748B;
    --medium-gray: #E2E8F0;
    --dark-gray: #1E293B;
}

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

body {
    font-family: 'Cairo', sans-serif;
    background: var(--white);
    color: var(--dark-blue);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--white);
    transition: color 0.3s ease;
}

.navbar.scrolled .logo {
    color: var(--dark-blue);
}

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

.nav-menu {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.navbar.scrolled .nav-link {
    color: var(--dark-blue);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.navbar.scrolled .btn-icon {
    color: var(--dark-blue);
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gold);
    color: var(--white);
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
}

.btn-primary,
.btn-gold {
    background: var(--gold);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover,
.btn-gold:hover {
    background: #b8941e;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark-blue);
}

.btn-full {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

.navbar.scrolled .mobile-menu-btn {
    color: var(--dark-blue);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}

.hero-bg-video {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--dark-gray) 100%);
    position: relative;
}

.hero-bg-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920') center/cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95));
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.gold-text {
    color: var(--gold);
}

.hero-subtitle {
    font-size: 22px;
    color: var(--light-gray);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 30px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--dark-blue);
    color: var(--white);
}

.section-light {
    background: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 15px;
}

.section-dark .section-title {
    color: var(--white);
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
}

.section-dark .section-subtitle {
    color: var(--medium-gray);
}

.filter-bar {
    background: var(--white);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-group input,
.filter-group select {
    padding: 12px 15px;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Cairo', sans-serif;
    transition: border-color 0.3s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--gold);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.property-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.property-image {
    height: 260px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.property-favorite {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.property-favorite:hover {
    background: var(--gold);
    color: var(--white);
}

.property-favorite.active {
    background: var(--gold);
    color: var(--white);
}

.property-content {
    padding: 25px;
}

.property-price {
    font-size: 26px;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 10px;
}

.property-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-blue);
}

.property-location {
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.property-features {
    display: flex;
    gap: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--medium-gray);
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 14px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: var(--white);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--medium-gray);
    line-height: 1.7;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content p {
    color: var(--gray);
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 20px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--gray);
    font-size: 14px;
}

.img-placeholder {
    border-radius: 16px;
    background: var(--medium-gray);
    background-size: cover;
    background-position: center;
}

.about-img {
    height: 500px;
    background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=800');
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.agent-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.agent-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.agent-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: var(--medium-gray);
    background-size: cover;
    background-position: center;
}

.agent-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.agent-role {
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.agent-social {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.agent-social a {
    width: 36px;
    height: 36px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-blue);
    transition: all 0.3s ease;
}

.agent-social a:hover {
    background: var(--gold);
    color: var(--white);
}

.calculator-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.calculator {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.calc-group {
    margin-bottom: 30px;
}

.calc-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark-blue);
}

.calc-group input[type="range"] {
    width: 100%;
    height: 8px;
    background: var(--medium-gray);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
}

.calc-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--gold);
    border-radius: 50%;
    cursor: pointer;
}

.calc-value {
    text-align: center;
    margin-top: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
}

.calc-result {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--medium-gray);
    text-align: center;
}

.result-label {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 10px;
}

.result-value {
    font-size: 42px;
    font-weight: 900;
    color: var(--gold);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--medium-gray);
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--medium-gray);
}

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

.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 80px 0 30px;
}

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

.footer-logo {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col p {
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gold);
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 25px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--medium-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--gold);
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-family: 'Cairo', sans-serif;
}

.newsletter-form input::placeholder {
    color: var(--medium-gray);
}

.newsletter-form button {
    background: var(--gold);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    color: var(--white);
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #b8941e;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--medium-gray);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--gold);
    color: var(--white);
}

.modal-gallery {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 16px 16px 0 0;
}

.modal-body {
    padding: 40px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.modal-title {
    font-size: 28px;
    font-weight: 900;
}

.modal-price {
    font-size: 32px;
    font-weight: 900;
    color: var(--gold);
}

.modal-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    margin-bottom: 25px;
}

.modal-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.modal-feature {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.modal-feature-icon {
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 10px;
}

.modal-feature-label {
    font-size: 13px;
    color: var(--gray);
}

.modal-feature-value {
    font-weight: 700;
    font-size: 18px;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.modal-description {
    color: var(--gray);
    line-height: 1.9;
}

.modal-amenities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray);
}

.amenity-item i {
    color: var(--gold);
}

.modal-map {
    height: 300px;
    background: var(--medium-gray);
    border-radius: 12px;
    background-image: url('https://images.unsplash.com/photo-1524661135-423995f22d0b?w=900');
    background-size: cover;
    background-position: center;
}

.modal-booking {
    background: var(--dark-blue);
    padding: 30px;
    border-radius: 12px;
}

.modal-booking h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.modal-booking .form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.modal-booking .form-group input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .agents-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .filter-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu,
    .nav-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .properties-grid,
    .features-grid,
    .agents-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-bar {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-features-grid,
    .modal-amenities {
        grid-template-columns: repeat(2, 1fr);
    }
}