:root {
    --primary-color: #d4af37;
    /* Gold */
    --primary-dark: #aa8c2c;
    --secondary-color: #1a1a1a;
    /* Dark Grey/Black */
    --accent-color: #f9f9f9;
    /* Off-white */
    --text-color: #333333;
    --text-light: #ffffff;
    --font-main: 'Tajawal', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    direction: rtl;
    background-color: var(--accent-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
    margin-top: 15px;
    width: 100%;
}



.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
}

/* Header */
header {
    background-color: rgba(26, 26, 26, 0.95);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
    flex-direction: row-reverse;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:not(:first-child) {
    margin-right: 30px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../image/mohamed.jpeg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    border-top: 3px solid transparent;
}

@media (max-width: 768px) {
    .service-card {
        padding: 10px;
    }

    .container {
        width: 100%;
    }
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-icon img:hover {
    transform: scale(1.02);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-card ul {
    text-align: right;
    margin-bottom: 20px;
    padding-right: 20px;

}

.service-card ul li {
    margin-bottom: 8px;
    position: relative;
    font-size: 0.95rem;
    color: #555;

}

.service-card ul li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    right: -15px;
    font-weight: bold;
}

/* Features Section */
.features {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.features .section-title {
    color: var(--primary-color);
}

.features .section-subtitle {
    color: #ccc;
}

.features h3 {
    color: var(--text-light);
    margin-top: 15px;
}

/* Footer */
footer {
    background-color: #111;
    color: #bbb;
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-color);
}

.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
}

.copyright {
    border-top: 1px solid #222;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Floating Buttons */
.floating-btns {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.float-btn:hover {
    transform: scale(1.1);
}

.whatsapp-float {
    background-color: #25d366;
}

.call-float {
    background-color: var(--primary-color);
}

/* Responsive */
/* Hamburger Menu Button - Default Hidden (Desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        display: none;
        /* Hidden by default */
        position: fixed;
        top: 60px;
        /* Match header height roughly */
        left: 0;
        width: 100%;
        background-color: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
        /* Shown when active */
        animation: slideDown 0.3s ease forwards;
    }

    .nav-links a {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        margin: 0;
        display: block;
        width: 100%;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links a:hover {
        color: var(--primary-color);
        background-color: rgba(255, 255, 255, 0.02);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        padding: 0 20px;
    }

    .floating-btns {
        right: 20px;
        left: auto;
        bottom: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card ul li {
        margin-bottom: 5px;
    }

    /* Center Footer on Mobile */
    .footer-content {
        text-align: center;
        gap: 20px;
    }

    .footer-links li,
    .contact-info li {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}