/* 
  AUTO LINES - Premium Dark UI Design
  Typography: Cairo (Arabic) & Outfit (English)
*/

:root {
    /* Color Palette */
    --bg-dark: #050b14; /* Deep Navy Background matching pillars */
    --bg-darker: #020509; /* Darker Navy */
    --bg-card: rgba(12, 25, 48, 0.7); /* Navy Tint for Glass */
    --border-glass: rgba(255, 255, 255, 0.08);
    
    --accent-red: #ea0000; /* Vibrant Red from AUTO logo */
    --accent-red-glow: rgba(234, 0, 0, 0.4);
    --accent-blue: #0f3a6b; /* Solid Navy Blue from store structure */
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ff1a1a, #cc0000);
    --gradient-glass: linear-gradient(145deg, rgba(15, 58, 107, 0.4), rgba(5, 11, 20, 0.8));
    
    /* Layout */
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
    --border-radius-lg: 24px;
    
    --nav-height: 80px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-dark {
    background-color: var(--bg-darker);
}

/* Typography Utilities */
.text-accent {
    color: var(--accent-red);
    position: relative;
    display: inline-block;
}

.text-center {
    text-align: center;
}

.mt-3 { margin-top: 1rem; }
.mt-5 { margin-top: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(234, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(234, 0, 0, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-red);
    color: var(--accent-red);
    padding: 0.5rem 1.5rem;
}

.btn-outline:hover {
    background: var(--accent-red);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-red-glow);
}

/* Glassmorphism */
.glass-card {
    background: var(--gradient-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    padding: 2rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.hover-glow {
    transition: var(--transition);
}

.hover-glow:hover {
    transform: translateY(-5px);
    border-color: rgba(234, 0, 0, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(234, 0, 0, 0.05);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(4, 5, 8, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    height: 70px;
    background: rgba(4, 5, 8, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 2rem;
    color: var(--accent-red);
    filter: drop-shadow(0 0 8px var(--accent-red-glow));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-ar {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
}

.logo-en {
    font-family: var(--font-en);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff; /* Make English white to match physical sign */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0; /* RTL alignment */
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero_background_1773588567380.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: zoomOut 20s ease infinite alternate;
}

@keyframes zoomOut {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(4,5,8,0.95) 0%, rgba(4,5,8,0.7) 50%, rgba(4,5,8,0.4) 100%); /* RTL gradient */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-text-box {
    max-width: 650px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(234, 0, 0, 0.1);
    border: 1px solid rgba(234, 0, 0, 0.3);
    border-radius: 50px;
    color: var(--accent-red);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* Section Headers */
.section-header {
    margin-bottom: 4rem;
}

.header-line {
    height: 4px;
    width: 80px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin-top: 1rem;
}

.text-center .header-line {
    margin: 1rem auto 0;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    padding: 3rem;
}

.quote-icon {
    font-size: 3rem;
    color: rgba(234, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.lead-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.feature-pill {
    background: rgba(234, 0, 0, 0.1);
    color: var(--accent-red);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(234, 0, 0, 0.2);
}

.about-image {
    width: 100%;
    height: 500px;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(145deg, #1e293b, #0f172a);
    position: relative;
    border: 1px solid var(--border-glass);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pattern-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--border-glass) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}

.glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent-red);
    filter: blur(100px);
    opacity: 0.15;
    border-radius: 50%;
}

.stat-box {
    position: relative;
    z-index: 2;
    background: rgba(5, 11, 20, 0.6); /* Adjusted for navy background */
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 50%;
    width: 250px;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
}

.stat-box i {
    font-size: 3rem;
    color: var(--accent-red);
    margin-bottom: 0.5rem;
}

.stat-num {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-en);
    line-height: 1;
}

.stat-text {
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Advantages Grid */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(234, 0, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-red);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(234, 0, 0, 0.2);
    transition: var(--transition);
}

.card:hover .card-icon {
    background: var(--gradient-primary);
    color: #fff;
    transform: scale(1.1);
}

.card h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Devices Section */
.devices-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.device-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
    cursor: default;
}

.device-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.device-item i {
    color: var(--accent-red);
    font-size: 1.2rem;
}

.highlight-item {
    background: rgba(234, 0, 0, 0.05);
    border-color: rgba(234, 0, 0, 0.3);
}

.highlight-item:hover {
    background: rgba(234, 0, 0, 0.1);
    border-color: rgba(234, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(234, 0, 0, 0.2);
}

/* Featured Services */
.featured-service-card {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 2.5rem;
}

.row-reverse {
    flex-direction: row-reverse;
}

.service-image-fluid {
    flex: 0 0 45%;
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.service-image-fluid img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    display: block;
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

.featured-service-card:hover .service-image-fluid img {
    transform: scale(1.05);
}

.image-overlay-glow {
    position: absolute;
    inset: -10px;
    background: var(--accent-red);
    filter: blur(20px);
    opacity: 0.3;
    z-index: 1;
    border-radius: inherit;
}

.blue-glow { background: var(--accent-red); } /* kept class name for simplicity but changed effect */
.gold-glow { background: #ffffff; } /* Kept distinct color for variety, changed to white to match text */

.service-details {
    flex: 1;
}

.service-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(234, 0, 0, 0.2);
    color: var(--accent-red);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border-right: 3px solid var(--accent-red); /* RTL indicator */
}

.blue-badge {
    background: rgba(234, 0, 0, 0.15);
    color: var(--accent-red);
    border-right-color: var(--accent-red);
}

.gold-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-right-color: #ffffff;
}

.service-details h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.service-device {
    color: var(--accent-red);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-box {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.alert-box h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-alert {
    background: rgba(234, 0, 0, 0.05);
    border: 1px solid rgba(234, 0, 0, 0.2);
    border-right: 4px solid var(--accent-red);
}

.info-alert h4 { color: var(--accent-red); }

.warning-alert {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-right: 4px solid #ef4444;
}

.warning-alert h4 { color: #ef4444; }

.service-details h4 {
    margin: 1.5rem 0 1rem;
    font-size: 1.1rem;
    color: #fff;
}

.benefit-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.benefit-list li i {
    color: var(--accent-red);
    margin-top: 5px;
    font-size: 0.85rem;
    background: rgba(234, 0, 0, 0.1);
    padding: 4px;
    border-radius: 50%;
}

.benefit-list li strong {
    color: #f8fafc;
    margin-left: 0.25rem;
}

/* Footer */
.footer {
    background: #020305;
    padding: 5rem 0 0;
    border-top: 1px solid var(--border-glass);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-desc {
    color: var(--text-secondary);
    max-width: 350px;
}

.footer h3 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-red);
    border-radius: 2px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.contact-info i {
    color: var(--accent-red);
    font-size: 1.25rem;
    margin-top: 3px;
    background: rgba(234, 0, 0, 0.1);
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info span {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.contact-info a, .contact-info p {
    color: #fff;
    font-weight: 600;
}

.contact-info a:hover {
    color: var(--accent-red);
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-red) !important;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    border: 1px solid var(--border-glass);
    transition: var(--transition);
}

.social-icon:hover {
    transform: translateY(-5px);
}

.snapchat:hover { background: #FFFC00; color: #000; border-color: #FFFC00; box-shadow: 0 5px 15px rgba(255,252,0,0.3); }
.tiktok:hover { background: #000; border-color: #25F4EE; box-shadow: -2px 2px 0 #25F4EE, 2px -2px 0 #FE2C55; }
.instagram:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); border-color: transparent; box-shadow: 0 5px 15px rgba(220, 39, 67, 0.4); }

.social-handle {
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--text-secondary);
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations (Scroll Reveal) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }
.delay-7 { transition-delay: 0.7s; }
.delay-8 { transition-delay: 0.8s; }
.delay-9 { transition-delay: 0.9s; }
.delay-10 { transition-delay: 1.0s; }
.delay-11 { transition-delay: 1.1s; }
.delay-12 { transition-delay: 1.2s; }

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.2rem; }
    .about-grid, .featured-service-card { grid-template-columns: 1fr; }
    .featured-service-card { flex-direction: column; gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: rgba(4, 5, 8, 0.98);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: 0.4s;
        backdrop-filter: blur(20px);
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle { display: block; }
    
    .hero h1 { font-size: 2.5rem; }
    .hero .subtitle { font-size: 1.1rem; }
    
    .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    
    .devices-list { flex-direction: column; }
    .device-item { width: 100%; justify-content: center; }
    
    .featured-service-card { padding: 1.5rem; }
}
