

[data-theme="light"] {
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --nav-bg: rgba(248, 249, 250, 0.97);
    --footer-bg: rgba(248, 249, 250, 0.97);
    --card-bg: #ffffff;
    --border-color: #8A8E4B;
    --neon-shadow: 0 0 15px #8A8E4B66;
    --footer-text: rgba(0, 0, 0, 0.8);
}

:root {
    /* الألوان الداكنة الأصلية */
    --neon-blue: #8A8E4B;
    --neon-shadow: 0 0 5px #898D4B;
    --light-neon-blue: #BBC25D;
    --dark-neon-blue: #0a0a0a;
    --soft-neon-blue: #7B7F45;
    --deep-neon-blue: #64673D;
    --bg-color: #0a0a0a;
    --bg-color-card: #1b1b1b;
    --text-color: #ffffff;
    --footer-text: rgba(255, 255, 255, 0.9);
    --dot-color: #E78D57;


    /* الألوان الفاتحة الجديدة */
    --light-bg: #f0f8ff;
    --light-text: #1a1a1a;
    --light-card: #e6f7ff;
    --light-border: #a5aa62;
}

[data-theme="light"] {
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --nav-bg: rgba(248, 249, 250, 0.97);
    --footer-bg: rgba(248, 249, 250, 0.97);
    --card-bg: #ffffff;
    --border-color: #afafaf;
    --neon-shadow: 0 0 15px #8A8E4B66;
    --neon-blue: #8A8E4B;
    --footer-text: rgba(0, 0, 0, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
}

/* تحسينات الناف بار */
.nav-container {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(12px);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--neon-blue);
    box-shadow: var(--neon-shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-blue);
    text-decoration: none;
    text-shadow: var(--neon-shadow);
    position: relative;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #E78D57;
    text-shadow: var(--neon-shadow);
}

/* تحسينات الناف بار */
.nav-container {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(12px);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--neon-blue);
    box-shadow: var(--neon-shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-blue);
    text-decoration: none;
    text-shadow: var(--neon-shadow);
    position: relative;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--neon-blue);
    bottom: 0;
    right: 0;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #E78D57;
    text-shadow: var(--neon-shadow);
}

.nav-links a:hover::after {
    width: 100%;
    box-shadow: var(--neon-shadow);
}

/* تصميم الهامبرغر المطور */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    position: relative;
    z-index: 1001;
    width: 35px;
    height: 25px;
}

.hamburger span {
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--neon-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 10px;
}

.hamburger span:nth-child(3) {
    top: 20px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.nav-links.active {
    display: flex !important;
}

/* أنيميشنز */
@keyframes moveBackground {
    from {
        transform: rotate(0deg) translateX(0);
    }

    to {
        transform: rotate(360deg) translateX(-50%);
    }
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 10px var(--neon-blue);
    }

    to {
        text-shadow: 0 0 30px var(--neon-blue);
    }
}

@keyframes buttonGlow {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* الجسيمات المتحركة */
.particles {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    background: var(--neon-blue);
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat 20s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-100vh) scale(0.5);
    }

    100% {
        transform: translateY(-200vh) scale(0);
    }
}


/* Main Container */
.container {
    max-width: 1200px;
    margin: 0rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 0.5fr 0.5fr;
    gap: 1rem;
    opacity: 100;
    transform: translateY(20px);
    animation: fadeIn 0.6s forwards;
    padding: 5% 0;
}

/* Contact Info Section */
.contact-info {
    background: var(--bg-color-card);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--neon-shadow);
    position: relative;
    transform: scale(0.9);
    overflow: hidden;
    color: white;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: #E78D57;
    transition: var(--transition);
}

.contact-info:hover::before {
    width: 100%;
    opacity: 0.1;
}

.info-item p {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--soft-neon-blue);
}

/* Map Styles */
.map-container {
    margin: 2rem 0;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid var(--deep-neon-blue);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(30%) contrast(110%) saturate(90%);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-links a {
    color: var(--soft-neon-blue);
    font-size: 1.8rem;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
}

.social-links a:hover {
    color: var(--neon-blue);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    background: var(--bg-color-card);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--neon-shadow);
    transform: scale(0.9);
}

.contact-form .alert {
    width: 90%;
    margin: auto 0 5%;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.floating-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--deep-neon-blue);
    border-radius: 8px;
    transition: var(--transition);
    background: transparent;
    font-size: 1rem;
    color: white;
}

.floating-input:focus {
    border-color: var(--neon-blue);
    outline: none;
    box-shadow: 0 4px 12px rgba(255, 166, 0, 0.829);
}

.floating-label {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition);
    color: var(--deep-neon-blue);
    pointer-events: none;
    background: var(--bg-color-card);
    padding: 0 5px;
        color: white;

}

.floating-input:focus+.floating-label,
.floating-input:not(:placeholder-shown)+.floating-label {
    top: 0;
    transform: translateY(-50%) scale(0.9);
    color: white;
}

/* File Upload */
.file-upload-label {
    display: block;
    padding: 1rem;
    border: 2px dashed var(--deep-neon-blue);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    color: white;
}

.file-upload-label:hover {
    background: rgba(0, 143, 153, 0.05);
    border-color: var(--neon-blue);
}

.file-details {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Button Styles */
.container button {
    background: #E78D57;
    color: black;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.container button:hover {
    background: var(--neon-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.3);
    color: var(--bg-color);
}

/* تصميم الفوتر الجديد */
.footer {
    background: rgba(10, 10, 10, 0.97);
    border-top: 1px solid var(--neon-blue);
    padding: 4rem 2rem;
    position: relative;
    backdrop-filter: blur(12px);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    color: var(--neon-blue);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-shadow: var(--neon-shadow);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.footer-links a:hover {
    color: var(--neon-blue);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--neon-blue);
    font-size: 1.5rem;
    transition: all 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
    text-shadow: var(--neon-shadow);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.97);
        width: 100%;
        text-align: center;
        padding: 2rem 0;
        gap: 2rem;
        transition: all 0.5s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem;
        border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    }

    .nav-links a:hover {
        background: rgba(0, 243, 255, 0.05);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-content h1 {
        font-size: 2.5rem;
    }

    .about-content p {
        font-size: 1rem;
    }

    .filter-section {
        padding: 1rem;
    }

    .footer {
        text-align: center;
    }

    .footer .social-links {
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        right: -100%;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        width: 100%;
        padding: 1rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(15px);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 25% 0;

    }

    .map-container {
        height: 200px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        right: -100%;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        width: 100%;
        padding: 1rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(15px);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 25% 0;

    }

    .map-container {
        height: 200px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }

    .floating-input {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    button {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .info-item p {
        font-size: 0.9rem;
    }

    .filter-section {
        padding: 1rem;
    }

    .footer {
        text-align: center;
    }

    .footer .social-links {
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}



/* تطبيق المتغيرات على جميع العناصر */
body {
    background: var(--bg-color);
    color: var(--text-color);
}

.contact-info,
.contact-form {
    background: var(--bg-color-card);
    border: 1px solid var(--input-border);
}

.floating-input {
    border-color: var(--input-border);
    color: white;
}

.floating-input:focus {
    border-color: var(--input-focus);
}

.floating-label {
    color: white;
}

button {
    background: var(--button-bg);
    color: white;
}

button:hover {
    background: var(--button-hover);
}

.file-upload-label {
    border-color: var(--input-border);
    color: var(--text-color);
}


.theme-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #E78D57;
    border: 2px solid #e76a1c;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: #E78D57;
    z-index: 1000;
    transition: all 0.3s;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(180deg);
}

.theme-toggle i {
    font-size: 1.5rem;
    position: absolute;
    transition: opacity 0.3s;
}

.moon-icon {
    color: var(--bg-color-card);
}

.sun-icon {
    color: var(--bg-color-card);
    display: none;
}

[data-theme="light"] .moon-icon {
    display: none;
}

[data-theme="light"] .sun-icon {
    display: block;
}


/* تعديلات للتصميم المتجاوب */
@media (max-width: 768px) {
    .nav-links {
        background: var(--nav-bg) !important;
    }

    .nav-links a {
        border-bottom: 1px solid var(--nav-links-border);
    }

    .nav-links a:hover {
        background: var(--nav-links-active-bg);
    }

    .hamburger span {
        background: var(--neon-blue);
    }

    .hamburger.active span {
        background: var(--neon-blue);
    }
}

/* تطبيق المتغيرات على العناصر المختلفة */
body {
    background: var(--bg-color);
    color: var(--text-color);
    transition: background 0.5s ease, color 0.3s ease;
}

.nav-container {
    background: var(--nav-bg);
    border-bottom-color: var(--border-color);
}

.logo {
    color: var(--neon-blue);
    text-shadow: var(--neon-shadow);
}

.nav-links a {
    color: var(--footer-text);
}

.nav-links a:hover {
    color: #E78D57;
}

.hero h1 {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue);
}

.cta-button {
    color: var(--neon-blue);
    border-color: var(--neon-blue);
}

.footer {
    background: var(--footer-bg);
    border-top-color: var(--border-color);
}

.footer-section h3 {
    color: var(--neon-blue);
}

.footer-links a {
    color: var(--footer-text);
}

.footer-links a:hover {
    color: var(--neon-blue);
}

.theme-toggle {
    background: var(--neon-blue);
    box-shadow: var(--neon-shadow);
}

.particles .particle {
    background: var(--neon-blue);
}

/* التبديل بين أيقونات الثيم */
.moon-icon {
    display: block;
    color: var(--text-color);
}

.sun-icon {
    display: none;
    color: var(--text-color);
}

[data-theme="light"] .moon-icon {
    display: none;
}

[data-theme="light"] .sun-icon {
    display: block;
}

/* أنماط زر التبديل المحسنة */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #a5aa62;
    border: 2px solid #64673D;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--neon-shadow);
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle i {
    position: absolute;
    font-size: 1.2rem;
    color: var(--bg-color-card);
    transition: opacity 0.3s ease;
}

.sun-icon {
    display: none;
}

[data-theme="light"] .sun-icon {
    display: block;
}

[data-theme="light"] .moon-icon {
    display: none;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(180deg);
    background: var(--light-border);
}


/* تحسين عرض العناصر في وضع الضوء الفاتح */
.info-item p {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--soft-neon-blue);
    transition: color 0.3s ease;
}

[data-theme="light"] .info-item p {
    color: var(--input-border);
    font-weight: 500;
}

/* تحسين عرض العناصر المحددة الخاصة */
.info-item .title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--neon-blue);
    transition: color 0.3s ease;
}

[data-theme="light"] .info-item .title {
    color: var(--input-focus);
}

/* تحسين عرض الأيقونات */
.info-item i {
    color: var(--neon-blue);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

[data-theme="light"] .info-item i {
    color: var(--input-focus);
}

/* تنسيق للعناوين والمعلومات الأخرى */
.info-item .address,
.info-item .phone,
.info-item .email,
.info-item .hours {
    font-weight: 400;
    transition: color 0.3s ease;
}

[data-theme="light"] .info-item .address,
[data-theme="light"] .info-item .phone,
[data-theme="light"] .info-item .email,
[data-theme="light"] .info-item .hours {
    color: var(--text-color);
}

/* إضافة الوضوء (hover) للعناصر */
.info-item p:hover {
    color: var(--neon-blue);
}

[data-theme="light"] .info-item p:hover {
    color: var(--neon-blue);
}



/* تحسين التحويل (transition) للتبديل بين الأوضاع */
.contact-info,
.contact-form,
.info-item p,
.info-item i,
.floating-input,
.floating-label,
.footer-links a {
    transition: all 0.3s ease;
}

/* إضافة انتقالات أساسية لكافة عناصر الصفحة */
body,
.nav-container,
.logo,
.nav-links a,
.contact-info,
.contact-form,
.floating-input,
.floating-label,
.footer,
.footer-section h3,
.footer-links a,
.theme-toggle,
.social-links a {
    transition: all 0.4s ease;
}

/* انتقالات محسنة للعناصر المحددة */
.info-item p,
.info-item .title,
.info-item i,
.info-item .address,
.info-item .phone,
.info-item .email,
.info-item .hours {
    transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
}

/* انتقالات محسنة للأزرار والنماذج */
.floating-input {
    transition: border-color 0.3s ease, box-shadow 0.4s ease, background-color 0.4s ease;
}

.container button {
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.4s ease, color 0.3s ease;
}

/* انتقالات الخلفيات */
.contact-info,
.contact-form {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease, transform 0.5s ease;
}

/* انتقالات للقائمة المتنقلة */
.nav-links {
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* انتقالات للهامبرغر */
.hamburger span {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* انتقالات الحواف والأطر */
.contact-info::before {
    transition: width 0.4s ease, opacity 0.3s ease;
}

/* انتقالات تحسين الروابط في القائمة */
.nav-links a::after {
    transition: width 0.3s ease, box-shadow 0.3s ease;
}

/* انتقالات للألوان الأساسية عند تغيير الثيم */
:root,
[data-theme="light"] {
    /* تطبيق الانتقالات على متغيرات CSS */
    --transition-colors: color 0.4s ease, background-color 0.4s ease, border-color 0.3s ease, box-shadow 0.5s ease;
    transition: var(--transition-colors);
}

/* انتقالات لعناصر الخريطة */
.map-container img{
    transition: transform 0.4s ease, border-color 0.3s ease, box-shadow 0.4s ease;
    background-size: cover;
    width: 100%;
    height: 30vh;
}

.map-container:hover {
    transform: scale(1.02);
    box-shadow: var(--neon-shadow);
}

/* انتقالات للروابط الاجتماعية */
.social-links a {
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.4s ease;
}

/* تأثير لطيف عند التحويل عند الضغط على زر التبديل */
.theme-toggle {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55), background-color 0.4s ease, box-shadow 0.4s ease;
}

/* تحسين انتقالات العناصر الفرعية */
.footer-section h3,
.footer-links a,
.footer-bottom {
    transition: color 0.3s ease, opacity 0.4s ease;
}

/* تحسين الانتقالات لأيقونات التبديل */
.theme-toggle i {
    transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* تحسين تأثير الانتقال للـ theme toggle عند التحويل */
.theme-toggle:hover {
    transform: scale(1.1) rotate(180deg);
}

/* إضافة تأثير ظهور تدريجي عند تحميل الصفحة */
.container {
    animation: fadeIn 0.7s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسين الانتقالات لعناصر المعلومات عند التحويم */
.info-item p:hover {
    transform: translateX(-5px);
}

[data-theme="light"] .info-item p:hover {
    transform: translateX(-5px);
}