/*
==============================================
    Al Othman Real Estate - Main Stylesheet
    تنسيقات موقع العثمان للعقارات
==============================================
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Custom Properties */
:root {
    /* Color Palette */
    --primary-color: #1b2251;
    --secondary-color: #29363d;
    --accent-color: #000003;
    --navbar-color: linear-gradient(135deg, rgba(15, 20, 25, 0.92), rgba(41, 54, 61, 0.88));
    --dark-color: #0f1419;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --white: #ffffff;
    --gold: #c9a961;
    --gold-light: #d4b76e;
    --gold-dark: #b8984a;
    
    /* Shadows & Effects */
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark), #a08738);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.4);
    color: var(--accent-color);
}

.btn-secondary {
    background: rgba(201, 169, 97, 0.1);
    color: var(--gold);
    border: 2px solid var(--gold);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--primary-color);
    border-color: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.3);
}

.btn-luxury {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color), var(--secondary-color));
    color: var(--gold);
    border: 2px solid var(--gold);
    box-shadow: 0 0 20px rgba(201, 169, 97, 0.3);
}

.btn-luxury:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), #3a4850);
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(201, 169, 97, 0.5);
    border-color: var(--gold-light);
    color: var(--white);
}

.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(201, 169, 97, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(201, 169, 97, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(201, 169, 97, 0);
    }
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--navbar-color);
    backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
    border-bottom: 2px solid rgba(201, 169, 97, 0.3);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: all 0.3s ease;
}

.logo:hover {
    filter: drop-shadow(0 2px 8px rgba(201, 169, 97, 0.4));
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--gold);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(27, 34, 81, 0.8), rgba(41, 54, 61, 0.7)),
                url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?w=1920') center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gold);
    font-weight: 600;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255,255,255,0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold);
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 3px solid var(--primary-color);
    opacity: 0;
    transform: translateY(30px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--gold);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.projects .section-header h2 {
    color: var(--white);
}

.projects .section-header p {
    color: rgba(255,255,255,0.8);
}

.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    direction: rtl;
}

.slide {
    display: none;
    animation: slideInRTL 0.5s ease-in-out;
}

.slide.active {
    display: block;
}

@keyframes slideInRTL {
    from { 
        opacity: 0; 
        transform: translateX(-50px);
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

.slide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 400px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    direction: rtl;
}

.slide-image {
    height: 400px;
    overflow: hidden;
    order: 2;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-text {
    padding: 2rem;
    order: 1;
    text-align: right;
}

.slide-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.slide-location {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.slide-location i {
    color: var(--gold);
    margin-left: 0.5rem;
}

.slide-description {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
}

.slide-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.slide-price {
    color: var(--gold);
    font-weight: 600;
    font-size: 1.2rem;
}

.slide-area {
    color: rgba(255,255,255,0.8);
}

.slideshow-nav {
    text-align: center;
    margin-top: 2rem;
}

.nav-dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
}

.nav-dot.active,
.nav-dot:hover {
    background-color: var(--gold);
}

.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: var(--white);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    border-radius: var(--border-radius);
    z-index: 10;
}

.slide-arrow:hover {
    background: var(--gold);
}

.prev {
    right: 10px;
}

.next {
    left: 10px;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.features-list {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.feature-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-item i {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-top: 3px solid var(--primary-color);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.stat-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-color);
    font-weight: 600;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: var(--white);
}

.contact .section-header h2 {
    color: var(--white);
}

.contact .section-header p {
    color: rgba(255,255,255,0.8);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h4 {
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: rgba(255,255,255,0.9);
}

.contact-map {
    margin-top: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-map iframe {
    width: 100%;
    height: 300px;
    border: none;
    filter: hue-rotate(15deg) saturate(1.2);
}

.contact-form-container {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(201, 169, 97, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.contact-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    direction: rtl;
}

.contact-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.contact-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.2);
    background: rgba(255,255,255,0.15);
}

.contact-textarea {
    resize: vertical;
    min-height: 120px;
    padding-top: 15px;
}

.form-icon {
    position: absolute;
    right: 15px;
    top: 18px;
    color: var(--gold);
    font-size: 1.1rem;
    pointer-events: none;
    transition: var(--transition);
}

.contact-input:focus + .form-icon {
    color: var(--gold-light);
}

.contact-submit-btn {
    width: 100%;
    padding: 16px 32px;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-result {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-result.success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: #28a745;
    display: block;
}

.form-result.error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #dc3545;
    display: block;
}

/* Footer */
.footer {
    background: var(--accent-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, rgba(15, 20, 25, 0.95), rgba(41, 54, 61, 0.95));
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: var(--transition);
        backdrop-filter: blur(20px);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .slide-content {
        grid-template-columns: 1fr;
        direction: rtl;
    }
    
    .slide-image {
        height: 250px;
        order: 1;
    }
    
    .slide-text {
        order: 2;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-input {
        padding: 12px 40px 12px 15px;
    }
    
    .form-icon {
        right: 12px;
        font-size: 1rem;
        top: 15px;
    }

    .contact-map iframe {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 14px 30px;
        font-size: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}
