/*
* Main Style Sheet for Riyadh Shades & Canopies
* ============================================
*/

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;900&display=swap');

/* CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base Styles */
:root {
    --primary-color: #00796b;
    --primary-dark: #004d40;
    --primary-light: #4db6ac;
    --secondary-color: #ffc107;
    --dark-color: #212121;
    --light-color: #f5f5f5;
    --gray-color: #757575;
    --light-gray: #e0e0e0;
    --white-color: #ffffff;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --border-radius: 4px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
    direction: rtl;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

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

a:hover {
    color: var(--primary-dark);
}

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

ul {
    list-style: none;
}

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

.btn-primary {
    background-color: #184c4d;
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: oklch(51.935% 0.06944 197.877);
    color: var(--white-color);
}

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

.btn-secondary:hover {
    background-color: #ffb300;
}

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

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

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

.btn-light:hover {
    background-color: var(--light-color);
}

/* Header Styles */
/* ==============================
   Header أخضر داكن احترافي
============================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #2f8486; /* أخضر داكن */
    box-shadow: 0 4px 8px rgba(42, 41, 41, 0.15); /* ظل لطيف */
    z-index: 1000;
    padding: 15px 0;
    transition: background-color 0.3s ease;
}

/* الشعار */
header .logo h1 {
    color: #fff; /* نص أبيض */
    font-size: 1.8rem;
    margin: 0;
    font-weight: bold;
}

/* قائمة الروابط */
header nav ul.main-menu {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

header nav ul.main-menu li a {
    color: #fff; /* نص أبيض */
    text-decoration: none; /* إزالة الخط من تحت النص */
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* تأثير Hover على الروابط */
header nav ul.main-menu li a:hover {
    background-color: #49bcbe; /* أخضر أغمق عند المرور */
    color: #cfc; /* أخضر فاتح للنص */
    text-decoration: none;
}

/* رابط نشط */
header nav ul.main-menu li a.active {
    background-color: #228B22; /* أخضر متوسط */
    color: #fff;
}

/* أيقونة القائمة للهواتف */
header .header-actions .mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* تباين النصوص الداخلية */
header a, header h1 {
    color: #fff;
}

/* تأثير عند تمرير الصفحة */
header.scrolled {
    background-color: #004d00; /* أخضر أغمق عند التمرير */
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* زر الاتصال أو التواصل داخل الهيدر (اختياري) */
header .btn-header {
    background-color: #32CD32; /* أخضر فاتح */
    color: #fff;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

header .btn-header:hover {
    background-color: #8b958b;
    color: #fff;
}


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

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.logo a {
    color: var(--primary-color);
}

.main-menu {
    display: flex;
    align-items: center;
}

.main-menu li {
    margin: 0 10px;
}

.main-menu a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.main-menu a:hover,
.main-menu a.active {
    color: var(--primary-color);
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-menu a:hover::after,
.main-menu a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
}

.language-toggle {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
}

.language-toggle:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--gray-color);
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* Footer Styles */
footer {
    background-color:#194646;
    color: var(--white-color);
    padding: 70px 0 20px;
}

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

.footer-about p {
    margin-bottom: 20px;
    color: #b0bec5;
}

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

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

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

.footer-links h3,
.footer-contact h3 {
    margin-bottom: 20px;
    color: var(--white-color);
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color:#429996;
}

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

.footer-links ul li a {
    color: #b0bec5;
    transition: var(--transition);
}

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

.footer-contact ul li {
    margin-bottom:
    15px;
    display: flex;
    align-items: flex-start;
    color: #b0bec5;
}

.footer-contact ul li i {
    margin-left: 10px;
    color: var(--primary-color);
}

.footer-contact ul li a {
    color: #b0bec5;
}

.footer-contact ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0bec5;
    font-size: 0.9rem;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: var(--white-color);
}

/* Main area padding for fixed header */
main {
    padding-top: 80px;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    section {
        padding: 60px 0;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: var(--white-color);
        transition: var(--transition);
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    nav.active {
        right: 0;
    }

    .main-menu {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .main-menu li {
        margin: 10px 0;
        width: 100%;
    }

    .main-menu a {
        display: block;
        padding: 10px 0;
    }

    .language-toggle {
        margin-left: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }

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

@media screen and (max-width: 576px) {
    section {
        padding: 40px 0;
    }

    .btn {
        padding: 10px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Dark Mode Styles - can be toggled with JavaScript */
body.dark-mode {
    background-color: #121212;
    color: var(--light-color);
}

body.dark-mode header {
    background-color: #1e1e1e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .logo a,
body.dark-mode .main-menu a.active,
body.dark-mode .main-menu a:hover {
    color: var(--primary-light);
}

body.dark-mode .main-menu a {
    color: var(--light-color);
}

body.dark-mode .main-menu a::after {
    background-color: var(--primary-light);
}

body.dark-mode .mobile-menu-toggle span {
    background-color: var(--light-color);
}

body.dark-mode nav {
    background-color: #1e1e1e;
}
/* CSS */
.whatsapp-btn {
    position: fixed;
    bottom: 90px;
    left: 20px;
    background-color: #25D366;
    color: white;
    padding: 14px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    z-index: 1000;
}

.call-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #28a745;
    color: white;
    padding: 14px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    z-index: 1000;
}







/* 🔹 يجعل السلايدر ملء الصفحة */
#hero-slider {
    width: 100%;
    height: 100vh; /* ارتفاع كامل الشاشة */
    overflow: hidden;
}

#hero-slider .slider-image {
    width: 100%;
    height: 100vh;
    object-fit: cover; /* الصورة تغطي الشاشة بدون تشويه */
}

/* 🔹 تحسين النص */
#hero-slider .carousel-caption {
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
}

#hero-slider h2 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

#hero-slider p {
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
    font-size: 1.1rem;
}





        /* ==== تصميم البطاقة ==== */
        .project-card {
            position: relative;
            overflow: hidden;
            border: none;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
        }
        .project-card:hover {
            transform: scale(1.02);
        }

        /* ==== صورة المشروع ==== */
        .project-card img {
            width: 100%;
            height: 250px;
            object-fit: cover;
            border-radius: 12px;
            display: block;
        }

        /* ==== الطبقة الشفافة فوق الصورة ==== */
        .overlay {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.65);
            color: #fff;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .project-card:hover .overlay {
            opacity: 1;
        }

        /* ==== النصوص داخل التراكب ==== */
        .overlay h5 {
            font-size: 1.2rem;
            margin-bottom: 10px;
        }

        .overlay p {
            font-size: 0.9rem;
            color: #e0e0e0;
            margin-bottom: 15px;
            max-width: 90%;
        }

        .overlay a.btn {
            background-color: #0d6efd;
            border: none;
            color: white;
            transition: background-color 0.3s ease;
        }

        .overlay a.btn:hover {
            background-color: #0b5ed7;
        }
