/* Custom Arabic Fonts */
@font-face {
    font-family: 'Madani Arabic';
    src: url('../assets/fonts/alfont_com_Madani-Arabic-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Madani Arabic';
    src: url('../assets/fonts/alfont_com_Madani-Arabic-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Madani Arabic';
    src: url('../assets/fonts/alfont_com_Madani-Arabic-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Root Variables */
:root {
    --color-beige: #D4C5A9;
    --color-teal-dark: #1A3D3D;
    --color-teal-medium: #2C4F4F;
    --color-gray-light: #F5F5F5;
    --color-gray-medium: #E5E5E5;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Madani Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

#hero,
#overview {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

#hero + #overview {
    margin-top: 0 !important;
}

.font-arabic {
    font-family: 'Madani Arabic', sans-serif;
}

/* Hero Section */
.hero-section {
    background: #C8B690;
    position: relative;
}


.logo-container img {
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.05);
}

/* Overview Section */
.overview-section {
    background-image: url('../صفحة الهبوط (1).jpg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

/* Marble Background */
.marble-bg {
    background-color: #f8f8f8;
    background-image:
        linear-gradient(135deg, rgba(220,220,220,0.3) 0%, transparent 40%, transparent 60%, rgba(230,230,230,0.2) 100%),
        linear-gradient(225deg, rgba(210,210,210,0.15) 0%, transparent 35%, transparent 65%, rgba(220,220,220,0.2) 100%),
        linear-gradient(160deg, transparent 0%, rgba(240,240,240,0.5) 20%, transparent 40%, rgba(235,235,235,0.3) 60%, transparent 80%),
        linear-gradient(200deg, transparent 0%, rgba(225,225,225,0.2) 30%, transparent 50%, rgba(230,230,230,0.25) 70%, transparent 90%),
        linear-gradient(140deg, rgba(245,245,245,0.6) 0%, transparent 25%, rgba(238,238,238,0.4) 50%, transparent 75%, rgba(242,242,242,0.3) 100%);
    background-size: 100% 100%;
}

/* About Section */

/* Master Plan Section */
.masterplan-image-container {
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.masterplan-image-container:hover {
    transform: scale(1.02);
}

.masterplan-image-container img {
    transition: transform 0.5s ease;
}

/* Features Section */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Contact Form */
#contactForm input,
#contactForm textarea {
    transition: all 0.3s ease;
}

#contactForm input:focus,
#contactForm textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#contactForm button {
    transition: all 0.3s ease;
}

#contactForm button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(26, 61, 61, 0.3);
}

#contactForm button:active {
    transform: translateY(0);
}

/* Form Messages */
#formMessage.success {
    background-color: #10b981;
    color: white;
}

#formMessage.error {
    background-color: #ef4444;
    color: white;
}

/* Scroll Indicator */
.scroll-indicator {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
}

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

/* Smooth Transitions */
section {
    transition: opacity 0.3s ease;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--color-teal-medium);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .scroll-indicator,
    #contactForm,
    footer {
        display: none;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-gray-light);
}

::-webkit-scrollbar-thumb {
    background: var(--color-teal-medium);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-teal-dark);
}

/* Animation Delays */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* WhatsApp Button Enhancement */
a[href^="https://wa.me"] {
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

a[href^="https://wa.me"]:hover {
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    transform: translateY(-2px);
}

/* Footer Enhancement */
footer img {
    filter: brightness(0) invert(1);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 640px) {
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .logo-container img {
        width: 200px;
    }
    
    section {
        padding: 3rem 0;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    .feature-card {
        padding: 1.5rem !important;
    }
}

/* Performance Optimization */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
