/* ========================================
   OULAD EL HAJ CAR - Website Styles
   ======================================== */

:root {
    /* Color Palette - Racing Theme */
    --primary: #E63946;
    --primary-dark: #B82E3A;
    --secondary: #1D3557;
    --accent: #F4A261;
    --dark: #0D1B2A;
    --darker: #051014;
    --light: #F1FAEE;
    --gray: #457B9D;
    --gray-light: #A8DADC;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #E63946 0%, #F4A261 100%);
    --gradient-dark: linear-gradient(180deg, #0D1B2A 0%, #1D3557 100%);
    --gradient-hero: linear-gradient(135deg, #0D1B2A 0%, #1D3557 50%, #0D1B2A 100%);
    
    /* Typography */
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    
    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(230, 57, 70, 0.3);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Background Animation
   ======================================== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--gradient-hero);
}

.road {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(180deg, transparent 0%, rgba(13, 27, 42, 0.8) 100%);
}

.road::before {
    content: '';
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    height: 3px;
    background: repeating-linear-gradient(90deg, var(--accent) 0px, var(--accent) 50px, transparent 50px, transparent 100px);
    opacity: 0.3;
    animation: roadMove 2s linear infinite;
}

@keyframes roadMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100px); }
}

.car-silhouette {
    position: absolute;
    width: 80px;
    height: 30px;
    background: var(--primary);
    opacity: 0.1;
    border-radius: 10px 30px 5px 5px;
    animation: carFloat 20s linear infinite;
}

.car-1 { top: 20%; left: -100px; animation-delay: 0s; }
.car-2 { top: 50%; left: -100px; animation-delay: 7s; opacity: 0.05; }
.car-3 { top: 70%; left: -100px; animation-delay: 14s; opacity: 0.08; }

@keyframes carFloat {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(calc(100vw + 100px)); }
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled,
.navbar-solid {
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 15px 0;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.logo-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px var(--primary));
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 20px 80px;
    max-width: var(--container-width);
    margin: 0 auto;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: rgba(230, 57, 70, 0.15);
    border: 1px solid rgba(230, 57, 70, 0.3);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.title-line {
    display: block;
    color: var(--light);
}

.title-accent {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3em;
    letter-spacing: 10px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray-light);
    margin-bottom: 40px;
    max-width: 450px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(230, 57, 70, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--gray);
    color: var(--light);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out 0.4s both;
}

.phone-mockup {
    position: relative;
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 40px;
    padding: 15px;
    box-shadow: var(--shadow-lg), inset 0 0 20px rgba(255,255,255,0.05);
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 25px;
    background: #0a0a0a;
    border-radius: 15px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    border-radius: 30px;
    overflow: hidden;
}

.app-preview {
    padding: 60px 20px 20px;
    height: 100%;
}

.app-header {
    font-family: var(--font-display);
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 30px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.app-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.app-card {
    height: 80px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    animation: pulse 2s ease-in-out infinite;
}

.app-card:nth-child(2) { animation-delay: 0.3s; }
.app-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: var(--section-padding);
    background: var(--darker);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: rgba(230, 57, 70, 0.15);
    border: 1px solid rgba(230, 57, 70, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.section-subtitle {
    color: var(--gray-light);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: linear-gradient(145deg, rgba(29, 53, 87, 0.3) 0%, rgba(13, 27, 42, 0.5) 100%);
    border: 1px solid rgba(69, 123, 157, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.feature-card p {
    color: var(--gray-light);
    font-size: 0.95rem;
}

/* ========================================
   Download Section
   ======================================== */
.download {
    padding: var(--section-padding);
    background: var(--gradient-primary);
    text-align: center;
}

.download-content {
    max-width: 600px;
    margin: 0 auto;
}

.download .section-badge {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    color: white;
}

.download .section-title {
    color: white;
}

.download .section-subtitle {
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
}

.google-play-badge img {
    height: 80px;
    transition: var(--transition);
}

.google-play-badge:hover img {
    transform: scale(1.05);
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: var(--section-padding);
    background: var(--dark);
}

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-card {
    background: linear-gradient(145deg, rgba(29, 53, 87, 0.4) 0%, rgba(13, 27, 42, 0.6) 100%);
    border: 1px solid rgba(69, 123, 157, 0.2);
    border-radius: 20px;
    padding: 40px 50px;
    text-align: center;
    transition: var(--transition);
    min-width: 280px;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.contact-card a {
    color: var(--gray-light);
    font-size: 1rem;
}

.contact-card a:hover {
    color: var(--primary);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--darker);
    padding: 40px 0;
    border-top: 1px solid rgba(69, 123, 157, 0.2);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 2px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--gray-light);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    color: var(--gray);
    font-size: 0.85rem;
}

/* ========================================
   Privacy Policy Page
   ======================================== */
.privacy-page {
    background: var(--dark);
}

.privacy-page .bg-animation {
    display: none;
}

.privacy-content {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: calc(100vh - 200px);
}

.privacy-header {
    text-align: center;
    margin-bottom: 60px;
}

.privacy-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.privacy-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.privacy-email a {
    color: var(--primary);
    font-size: 1.1rem;
}

.policy-sections {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.policy-section {
    background: linear-gradient(145deg, rgba(29, 53, 87, 0.3) 0%, rgba(13, 27, 42, 0.5) 100%);
    border: 1px solid rgba(69, 123, 157, 0.2);
    border-radius: 20px;
    padding: 35px 40px;
    transition: var(--transition);
}

.policy-section:hover {
    border-color: rgba(230, 57, 70, 0.3);
}

.policy-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.policy-section h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
    color: var(--primary);
}

.policy-section p {
    color: var(--gray-light);
    line-height: 1.8;
}

.contact-section {
    text-align: center;
}

.contact-email-btn {
    display: inline-block;
    margin-top: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
}

.contact-email-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.back-home {
    text-align: center;
    margin-top: 60px;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .title-accent {
        letter-spacing: 5px;
    }
    
    .phone-mockup {
        width: 220px;
        height: 440px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .policy-section {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 8px 15px;
    }
}

