:root {
    --primary-color: #004aad;
    --secondary-color: #ffcc00;
    --accent-color: #e63946;

    /* Light Mode Defaults */
    --bg-color: #ffffff;
    --text-color: #333333;
    --text-light: #ffffff;
    --header-bg: #ffffff;
    --card-bg: #ffffff;
    --section-bg: #f4f4f4;
    --footer-bg: #1a1a1a;
    --feature-item-bg: rgba(255, 255, 255, 0.1);

    --transition: all 0.3s ease;
}

.dark-mode {
    /* Dark Mode Overrides */
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --header-bg: #1e1e1e;
    --card-bg: #1e1e1e;
    --section-bg: #2d2d2d;
    --footer-bg: #000000;
    --feature-item-bg: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

:root {
    --primary-color: #004aad;
    --secondary-color: #ffcc00;
    --accent-color: #e63946;

    /* Light Mode Defaults */
    --bg-color: #ffffff;
    --text-color: #333333;
    --text-light: #ffffff;
    --header-bg: #ffffff;
    --card-bg: #ffffff;
    --section-bg: #f4f4f4;
    --footer-bg: #1a1a1a;
    --feature-item-bg: rgba(255, 255, 255, 0.1);

    --transition: all 0.3s ease;
}

.dark-mode {
    /* Dark Mode Overrides */
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --header-bg: #1e1e1e;
    --card-bg: #1e1e1e;
    --section-bg: #2d2d2d;
    --footer-bg: #000000;
    --feature-item-bg: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
}

.btn-primary:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    /* Slightly transparent for glass effect */
    backdrop-filter: blur(10px);
    /* Glassmorphism effect */
    -webkit-backdrop-filter: blur(10px);
    /* Safari support */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 90px;
    /* Increased height for better spacing */
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.dark-mode .header {
    background-color: rgba(30, 30, 30, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 70px;
    /* Slightly larger logo */
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
    /* Increased gap */
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-list a {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color);
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    /* For RTL default */
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* LTR support for underline */
html[dir="ltr"] .nav-list a::after {
    right: auto;
    left: 0;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.nav-list a:hover::after {
    width: 100%;
}

.controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
}

.control-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    /* Contrast text on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 74, 173, 0.3);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('hero-bg.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    margin-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    font-weight: 900;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 400;
    color: var(--secondary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections General */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.line {
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 0 auto;
}

/* About Section */
.about {
    background-color: var(--bg-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.9;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    background-color: var(--section-bg);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-item h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Products Section */
.products {
    background-color: var(--section-bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 25px;
}

.product-card h3 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.product-card ul {
    text-align: right;
    margin-bottom: 25px;
    padding-right: 20px;
}

.product-card ul li {
    margin-bottom: 10px;
    position: relative;
}

.product-card ul li::before {
    content: '•';
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    right: -20px;
}

.brands {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.brands span {
    background-color: #f0f0f0;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
}

.dark-mode .brands span {
    background-color: #4b4a4a;
    color: #fff;
}


/* Features Section */
.features {
    background-color: var(--primary-color);
    color: #fff;
}

.features .section-header h2 {
    color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item {
    background-color: var(--feature-item-bg);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.feature-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    margin-bottom: 10px;
}

/* Vision Section */
.vision {
    background: url('futuer-bg.JPG') no-repeat top center/cover;
    position: relative;
    color: #fff;
    text-align: center;
    padding: 100px 0;
}

.vision::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.vision-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.vision h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.vision p {
    font-size: 1.3rem;
    line-height: 1.8;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-direction: row;
    gap: 10px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-left: 20px;
    width: 30px;
    text-align: center;
    min-width: 20px;
    margin-top: 3px;
}

.info-item h4 {
    margin-bottom: 5px;
    color: var(--text-color);
}

.info-item a {
    color: var(--text-color);
    opacity: 0.8;
}

.info-item a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

/* Controls */
.controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.control-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}


.developer-info {
    margin-top: 15px;
    font-size: 0.85rem;
}

.developer-info a {
    color: #666;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.developer-info a:hover {
    color: #ff0000d8;
    font-size: 1.2rem;
}

.dev-logo {
    width: 20px;
    /* حجم الشعار */
    height: 20px;
    opacity: 0;
    /* مخفي افتراضياً */
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-5px);
}

.developer-info a:hover .dev-logo {
    opacity: 1;
    /* يظهر عند المرور */
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 940px) {
    .header {
        height: 70px;
    }

    .hero {
        margin-top: 70px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--header-bg);
        transition: var(--transition);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .nav-list a {
        font-size: 1.2rem;
    }

    .controls {
        margin-top: 20px;
    }

    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}