:root {
    --primary: #ffffff;
    --accent: #00d4ff;
    --bg-dark: #0a0a0a;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(15px);
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 4px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: var(--transition);
}

.nav-links a:hover {
    opacity: 1;
}

/* Hero Slider */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 4s ease-out;
    transform: scale(1.1);
}

.hero-slider .slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 15px;
    margin-bottom: 1rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2rem;
    transition: var(--transition);
}
/* Styling the Inquire Button in Navbar */
.cta-nav {
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.cta-nav:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* تحسين إضافي للموبايل عشان الزرار ميبقاش لازق في الكلام */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* بنخفي الروابط في الموبايل لتبسيط التصميم */
    }
    .cta-nav {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }
}

.btn-primary:hover {
    background: white;
    color: black;
}

/* Glass Cards Section */
.why-us {
    padding: 100px 5%;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    padding: 3.5rem 2.5rem;
    border-radius: 24px; /* زوايا دائرية ناعمة وعصرية */
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); /* لدعم متصفح Safari */
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* إضافة لمعة (Glow) خفيفة في زاوية الكارت */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.1), transparent 70%);
    pointer-events: none;
}

.glass-card h3 {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
}

.glass-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* تأثير الـ Hover المتطور */
.glass-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.4); /* الحواف تنور أكتر */
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(255, 255, 255, 0.05); /* ظل عميق مع وهج خفيف */
}

/* حركة بسيطة للنص عند الـ Hover */
.glass-card:hover h3 {
    color: var(--accent); /* لو عندك لون مميز زي السماوي */
    transform: translateX(5px);
    transition: all 0.4s ease;
}

/* Parallax Section */
.experience {
    height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    height: 140%;
    width: 100%;
    background: url('https://images.unsplash.com/photo-1511919884226-fd3cad34687c?auto=format&fit=crop&q=80&w=2000') center/cover no-repeat;
    z-index: -1;
    /* This creates the parallax motion controlled via JS */
}

/* Reviews Carousel */
.reviews {
    padding: 100px 5%;
    text-align: center;
    background: #000;
}

.testimonial-slide {
    display: none;
    max-width: 700px;
    margin: 0 auto;
    font-style: italic;
    font-size: 1.5rem;
    animation: fadeIn 1s forwards;
}

.testimonial-slide.active {
    display: block;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeIn 1.2s ease-out forwards; }
.fade-up-delay { animation: fadeIn 1.2s 0.3s ease-out both; }
.fade-up-delay2 { animation: fadeIn 1.2s 0.6s ease-out both; }

/* Footer */
footer {
    padding: 50px 5%;
    border-top: 1px solid var(--glass-border);
}

.footer-logo {
    font-size: 2rem;
    letter-spacing: 10px;
    opacity: 0.5;
    margin-bottom: 2rem;
}

/* Vision Section Styling */
.vision {
    background: #000;
    padding: 100px 0; /* مساحة واسعة للفخامة */
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* تقسيم الشاشة نصفين بالتساوي */
    align-items: center;
    min-height: 80vh;
}

.vision-text {
    padding: 10% 15%; /* هوامش داخلية واسعة */
}

.vision-text h2 {
    font-size: 3rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 2rem;
    color: var(--primary);
}

.vision-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.vision-img {
    height: 100%;
    min-height: 600px;
    background: url('https://images.unsplash.com/photo-1471174617910-3e9c04f58ff5?auto=format&fit=crop&q=80&w=2000') center/cover no-repeat;
    transition: var(--transition);
    filter: grayscale(30%); /* لمسة فنية */
}

.vision-img:hover {
    filter: grayscale(0%);
    transform: scale(0.98); /* تأثير ضغط بسيط للداخل */
}

/* Responsive Vision Section */
@media (max-width: 992px) {
    .vision-grid {
        grid-template-columns: 1fr; /* في الشاشات الصغيرة يبقوا تحت بعض */
    }
    
    .vision-text {
        padding: 60px 5%;
        text-align: center;
    }
    
    .vision-img {
        height: 400px;
    }
}

/* Stats Section */
.stats-section {
    display: flex;
    justify-content: space-around;
    padding: 100px 10%;
    background: #000;
    text-align: center;
}

.stat-item {
    flex: 1;
}

.stat-number {
    font-size: 4rem;
    font-weight: 200;
    display: inline-block;
    background: linear-gradient(to bottom, #fff, #444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item s {
    text-decoration: none;
    font-size: 1.2rem;
    color: var(--accent);
    margin-left: 5px;
}

/* Auth Modal Styling */
.auth-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(20px);
    display: none; /* بيظهر بالـ JS */
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.auth-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 30px;
    width: 100%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 50px 100px rgba(0,0,0,0.5);
}

.auth-tabs {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 1rem;

}

.tab-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 1.3rem;
    cursor: pointer;
    transition: 0.3s;
}

.tab-btn.active {
    color: #fff;
    border-bottom: 2px solid #fff;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-form input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 20px;
    color: #fff;
    outline: none;
}

.auth-form input:focus {
    border-color: var(--accent);
}

/* Custom Cursor */
.cursor {
    width: 8px; height: 8px; background: #fff; border-radius: 50%;
    position: fixed; pointer-events: none; z-index: 9999; mix-blend-mode: difference;
}
.cursor-follower {
    width: 30px; height: 30px; border: 1px solid rgba(255,255,255,0.5); border-radius: 50%;
    position: fixed; pointer-events: none; z-index: 9998; transition: transform 0.1s ease-out;
}

/* Progress Bar */
#progress-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 2001;
}
#progress-bar {
    height: 100%; background: var(--accent); width: 0%;
}

/* Configurator Styling */
.configurator {
    padding: 100px 5%;
    background: #050505;
}
.config-container {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: center;
}
.config-image img {
    width: 100%; border-radius: 20px; transition: opacity 0.5s ease;
}
.color-options {
    display: flex; gap: 20px; margin: 30px 0;
}
.color-btn {
    width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
    border: 3px solid transparent; transition: 0.3s;
}
.color-btn.active {
    border-color: #fff; transform: scale(1.1);
}
#color-name {
    font-weight: 200; text-transform: uppercase; letter-spacing: 3px; color: var(--accent);
}

/* تحسينات إضافية للـ Login Modal لتجعلها أكثر مودرن */
.auth-card input {
    transition: all 0.3s ease;
}
.auth-card input:focus {
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 15px rgba(0,212,255,0.2);
}

/* Styling the Close Button (X) */
.close-auth {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4); /* لون باهت في البداية */
    font-size: 2rem;
    font-weight: 200;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 10px;
    z-index: 10;
}

.close-auth:hover {
    color: #fff; /* يضيء عند الاقتراب */
    transform: rotate(90deg); /* حركة دوران خفيفة تعطي لمسة احترافية */
}

/* إضافة لمسة احترافية لزر الـ Login داخل الـ Form */
.auth-form .btn-primary {
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-form .btn-primary:hover {
    background: #fff;
    color: #000;
}