/* ======== General & Variables ======== */
:root {
    --dark-blue: #0A2342;
    /* أزرق داكن */
    --gold: #D4AF37;
    /* ذهبي */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --text-color: #333;
    --text-color-light: #666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--gold);
    margin: 10px auto 0;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--dark-blue);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--gold);
    color: var(--gold);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--dark-blue);
}

.btn-secondary:hover {
    background-color: var(--dark-blue);
    color: var(--white);
}

.bg-light {
    background-color: var(--light-gray);
}

/* ======== Header ======== */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark-blue);
    text-decoration: none;
}

.nav ul {
    list-style: none;
    display: flex;
}

.nav ul li {
    margin: 0 15px;
}

.nav ul li a {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
}

.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav ul li a:hover::after {
    width: 100%;
}

/* ======== Hero Section ======== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    animation: slider 15s infinite linear;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 35, 66, 0.7);
    /* Dark Blue Overlay */
    z-index: -1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

@keyframes slider {

    0%,
    100% {
        background-image: url('../images/hero-1.jpg');
    }

    33% {
        background-image: url('../images/hero-2.jpg');
    }

    66% {
        background-image: url('../images/hero-3.jpg');
    }
}

/* ======== About Section ======== */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.value-card {
    text-align: center;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.value-card i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.value-card h4 {
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

/* ======== Projects Section ======== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    color: var(--dark-blue);
    font-size: 1.4rem;
}

.project-info p {
    color: var(--text-color-light);
    margin-top: 10px;
}

.status {
    display: inline-block;
    margin-top: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
}

.status.completed {
    background-color: #28a745;
}

.status.for-sale {
    background-color: #17a2b8;
}

.status.in-progress {
    background-color: #fd7e14;
}

/* ======== Video Section ======== */
.video-section {
    position: relative;
    background-image: url('../images/video-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0;
    text-align: center;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 35, 66, 0.8);
}

.video-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.video-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.play-button {
    display: inline-block;
    width: 80px;
    height: 80px;
    background-color: var(--gold);
    border-radius: 50%;
    color: var(--dark-blue);
    font-size: 2rem;
    line-height: 80px;
    margin-top: 30px;
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
    background-color: var(--white);
}

/* ======== Units Section ======== */
.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.unit-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.unit-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.unit-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.unit-info {
    padding: 25px;
}

.unit-info h4 {
    font-size: 1.6rem;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.unit-info p {
    margin-bottom: 10px;
    color: var(--text-color-light);
}

.unit-info ul {
    list-style: none;
    margin: 15px 0;
}

.unit-info ul li {
    margin-bottom: 8px;
}

.unit-info ul li i {
    color: var(--gold);
    margin-left: 10px;
}

.unit-info .btn {
    width: 100%;
    text-align: center;
    margin-top: 15px;
}

/* ======== Partners Section ======== */
.partners-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.partners-logos img {
    max-height: 50px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partners-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ======== Contact Section ======== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form h3,
.contact-info h3 {
    font-size: 1.8rem;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Cairo', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.contact-form button {
    width: 100%;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.contact-info p i {
    color: var(--gold);
    margin-left: 15px;
    width: 20px;
}

.contact-info p a {
    color: var(--text-color);
    text-decoration: none;
}

.contact-info p a:hover {
    color: var(--gold);
}

.map-container {
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.social-links {
    margin-top: 25px;
}

.social-links a {
    display: inline-block;
    width: 45px;
    height: 45px;
    background-color: var(--light-gray);
    color: var(--dark-blue);
    text-align: center;
    line-height: 45px;
    border-radius: 50%;
    margin-left: 10px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--dark-blue);
    color: var(--white);
}

/* ======== Footer ======== */
.footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-col h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--gold);
}

.footer-col p,
.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--gold);
}

.social-links-footer a {
    display: inline-block;
    margin-left: 15px;
    font-size: 1.3rem;
    color: var(--white);
}

.social-links-footer a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ======== Responsive Design ======== */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header .container {
        /* You can add JS logic for a hamburger menu here */
        flex-wrap: wrap;
    }

    .nav {
        display: none;
        /* Simplification for now, needs JS for toggle */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        text-align: center;
    }

    .footer-col ul {
        padding-right: 0;
    }
}