/* =========================================
   Ebda3 Construction - Premium Stylesheet
   ========================================= */

/* --- CSS Variables (Light Theme Default) --- */
:root {
    --primary-color: #F59E0B; /* Amber/Orange - Matches construction & logo */
    --primary-color-dark: #D97706;
    --secondary-color: #1F2937; /* Very Dark Gray */
    --bg-color: #FFFFFF;
    --bg-color-alt: #F3F4F6;
    --text-color: #111827;
    --text-light: #4B5563;
    --border-color: #E5E7EB;
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Outfit', sans-serif;
}

/* --- Dark Theme Variables --- */
[data-theme="dark"] {
    --bg-color: #0F172A;
    --bg-color-alt: #1E293B;
    --text-color: #F8FAFC;
    --text-light: #CBD5E1;
    --border-color: #334155;
    
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

html[lang="en"] body {
    font-family: var(--font-en);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

/* --- Top Bar (Marquee) --- */
.top-bar {
    background: var(--primary-color);
    color: #fff;
    padding: 6px 0;
    font-size: 0.85rem;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    display: flex;
    z-index: 100;
}

.marquee {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}

html[dir="rtl"] .marquee {
    animation: marquee-rtl 25s linear infinite;
}

.marquee:hover {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    align-items: center;
    padding: 0 50px;
}

.marquee-content i {
    margin: 0 5px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-rtl {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

/* --- Navigation --- */
.navbar {
    position: sticky;
    top: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    z-index: 999;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.2;
}
.logo img {
    height: 50px; /* أو 60px حسب الشكل */
    width: auto;
}
.footer-col img {
    height: 100px; /* أو 60px حسب الشكل */
    width: auto;
}
.logo span {
    color: var(--primary-color);
}


.logo .arabic-text {
    color: white;
}

.logo-text small {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-light);
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

html[dir="rtl"] .nav-links a::after {
    left: auto;
    right: 0;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

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

.btn-icon {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2;
    object-fit: cover;
}

.hero img {
    height: 120px; /* أو 60px حسب الشكل */
    width: auto;

}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8));
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: #fff;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.hero h1 span {
    color: var(--primary-color);
}


.hero a img{
     height: 40px; /* أو 60px حسب الشكل */
    width: auto;
    margin-bottom: 150PX ;

}


.hero h2{
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 150px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);

}

.animate-up1 {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #E2E8F0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

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

.btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
    background: var(--primary-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-color: #fff;
    color: #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Animations */
.animate-up {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

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

/* --- Common Layout Elements --- */
section {
    padding: 100px 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-title .line {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.hover-effect {
    transition: var(--transition);
}

.hover-effect:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* --- About Section --- */
.about {
    background: var(--bg-color-alt);
    position: relative;
}

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

.about-card {
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
}

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

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.about-card p {
    color: var(--text-light);
}

/* --- Projects Section --- */
.projects {
    background: var(--bg-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: var(--bg-color-alt);
}

.project-img {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.project-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
}

html[dir="rtl"] .project-overlay {
    left: auto;
    right: 20px;
}

html[lang="en"] .project-overlay {
    right: auto;
    left: 20px;
}

.project-category {
    background: var(--primary-color);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.project-info {
    padding: 25px;
    position: relative;
    z-index: 3;
}

.glass-bottom {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.project-info p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- Call To Action --- */
.cta {
    background: url('https://images.unsplash.com/photo-1541881451364-7936a2824cd3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover fixed;
    position: relative;
    text-align: center;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.7);
}

.cta-container {
    position: relative;
    z-index: 2;
    padding: 60px;
    border-radius: 30px;
    max-width: 800px;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.cta-container h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-container p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #E2E8F0;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.2rem;
}

.btn-large i {
    margin: 0 10px;
}

/* --- Footer --- */
.footer {
    background: #0F172A;
    color: #CBD5E1;
    padding-top: 80px;
}

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

.footer-logo {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

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

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

.footer-col h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

html[dir="rtl"] .footer-col h4::after {
    left: auto;
    right: 0;
}

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

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

html[lang="en"] .footer-col ul li a:hover {
    padding-right: 0;
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info i {
    color: var(--primary-color);
}

.footer-bottom {
    background: #020617;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Floating WhatsApp --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0px 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
    transition: transform 0.3s ease;
}

html[dir="ltr"] .whatsapp-float {
    right: 30px;
    left: auto;
}

html[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 30px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
}
/* Projects Section */
.projects {
    padding: 100px 0;
    background: var(--bg-alt);
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: #fff;
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    
