:root {
    --primary-color: #2c3e50;
    --secondary-color: #e67e22;
    --accent-color: #3498db;
    --text-color: #333;
    --light-text: #f9f9f9;
    --dark-bg: #1a1a1a;
    --light-bg: #f9f9f9;
    --card-bg: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --container-width: 1200px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

.highlight {
    color: var(--secondary-color);
}

.divider {
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 20px auto 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: none;
}

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

.btn.primary:hover {
    background-color: #d35400;
    transform: translateY(-2px);
}

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

.btn.secondary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    z-index: 1000;
    height: var(--header-height);
    transition: var(--transition);
}

header.scrolled {
    height: 60px;
    background-color: rgba(255, 255, 255, 0.98);
}

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

.logo {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.logo-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
}

.tagline {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-color);
    opacity: 0.8;
}

nav ul {
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
    padding: 5px 10px;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--secondary-color);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="800" viewBox="0 0 1200 800"><rect width="1200" height="800" fill="%232c3e50"/><path d="M0,160 Q600,240 1200,160 L1200,800 L0,800 Z" fill="%23e67e22"/><path d="M0,320 Q600,400 1200,320 L1200,800 L0,800 Z" fill="%233498db" opacity="0.6"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: var(--header-height);
}

.hero-content {
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

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

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

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

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--light-bg);
}

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

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
    background-color: #ddd;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.about-text {
    flex: 1;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 20px;
}

.stat-item {
    text-align: center;
    flex: 1;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background-color: var(--card-bg);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.count {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.label {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: white;
}

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

.service-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Properties Section */
.properties {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.properties-slider {
    position: relative;
    margin: 0 -15px;
    overflow: hidden;
}

.properties-container {
    display: flex;
    transition: transform 0.5s ease;
}

.property-card {
    flex: 0 0 calc(33.333% - 30px);
    margin: 0 15px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.property-image {
    height: 200px;
    background-color: #ddd;
    position: relative;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.property-type {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.property-details {
    padding: 20px;
}

.property-address {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

.property-features {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.feature {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.feature i {
    margin-left: 5px;
    color: var(--secondary-color);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    box-shadow: var(--shadow);
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    z-index: 1;
    transition: var(--transition);
}

.slider-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: white;
}

.testimonials-slider {
    display: flex;
    overflow: hidden;
    position: relative;
}

.testimonial {
    min-width: 100%;
    padding: 40px;
    text-align: center;
    transition: var(--transition);
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid var(--secondary-color);
}

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

.testimonial-text {
    max-width: 800px;
    margin: 0 auto 20px;
    font-style: italic;
    position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 3rem;
    color: var(--secondary-color);
    opacity: 0.3;
    position: absolute;
}

.testimonial-text::before {
    top: -20px;
    left: -20px;
}

.testimonial-text::after {
    bottom: -40px;
    right: -20px;
}

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

.testimonial-location {
    font-size: 0.9rem;
    color: #777;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--secondary-color);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info,
.contact-form {
    flex: 1;
}

.contact-item {
    display: flex;
    margin-bottom: 25px;
    align-items: flex-start;
}

.contact-item .icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-left: 15px;
    background-color: rgba(230, 126, 34, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-item h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    display: none;
}

.form-success i {
    font-size: 2rem;
    color: #28a745;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-logo h2 {
    color: white;
    margin-bottom: 10px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-nav h3,
.footer-social h3 {
    color: white;
    margin-bottom: 20px;
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-nav ul li a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

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

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.credits {
    color: var(--secondary-color);
}

.accessibility-widget {
    text-align: center;
    margin-bottom: 30px;
}

#accessibility-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

#accessibility-btn:hover {
    background-color: #d35400;
}

#accessibility-btn i {
    margin-left: 5px;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

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

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Accessibility */
.high-contrast {
    --text-color: #000;
    --light-text: #fff;
    --primary-color: #000;
    --secondary-color: #ff0;
    --accent-color: #00f;
    --light-bg: #fff;
    --card-bg: #fff;
    filter: contrast(1.2);
}

.high-contrast a,
.high-contrast button {
    outline: 2px solid #00f;
}

.high-contrast .btn {
    border: 2px solid #000;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--secondary-color);
    color: white;
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

.aicon {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.access_row {
    display: flex;
    gap: 10px;
}

/* Responsive */
@media screen and (max-width: 992px) {
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .property-card {
        flex: 0 0 calc(50% - 30px);
    }
    
    .footer-top {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .footer-logo,
    .footer-nav,
    .footer-social {
        flex: 0 0 100%;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}

@media screen and (max-width: 768px) {
    header .container {
        flex-direction: column;
        padding: 10px;
    }
    
    header {
        height: auto;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .property-card {
        flex: 0 0 calc(100% - 30px);
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
    }
}

@media screen and (max-width: 576px) {
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .stats {
        flex-direction: column;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}
