/* ========================================
   CARJOB - MODERN DRIVER RECRUITMENT 2025
   دیزاین مدرن و جذاب برای استخدام راننده
======================================== */

:root {
    --primary-color: #1e40af;
    --secondary-color: #0f766e;
    --accent-color: #f97316;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
     gap: 12px;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

     flex-wrap: wrap;
body {
    font-family: 'Segoe UI', 'Vazir', Tahoma, sans-serif;
    direction: rtl;
    background: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.7;
        filter: brightness(0.9);
    }
    50% { 
        transform: scale(1.12);
        opacity: 1;
        filter: brightness(1.1);
    }
}

@keyframes trackMove {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(600px);
    }
.auth-buttons { display:flex; gap:12px; align-items:center; }
@media (max-width: 480px) { .auth-buttons { flex-direction: column; width:100%; } .auth-buttons a { width:100%; } }
}

@keyframes smokeRise {
    0% {
        bottom: -50px;
        left: 50%;
        opacity: 0.8;
        transform: translateX(-50%) translateY(0) scale(0.5);
    }
    50% {
        opacity: 0.6;
        transform: translateX(-50%) translateY(-80px) scale(1);
    }
    100% {
        bottom: 150px;
        opacity: 0;
        transform: translateX(-50%) translateY(-200px) scale(1.5);
    }
}

@keyframes smokeDrift {
    0% {
        opacity: 0.7;
        transform: translateX(-50%) translateY(0) scale(0.6) translate(0, 0);
    }
    12% {
        opacity: 0.65;
        transform: translateX(-50%) translateY(-60px) scale(0.8) translate(75px, -50px);
    }
    25% {
        opacity: 0.6;
        transform: translateX(-50%) translateY(-120px) scale(1) translate(90px, 0);
    }
    37% {
        opacity: 0.65;
        transform: translateX(-50%) translateY(-90px) scale(0.85) translate(75px, 60px);
    }
    50% {
        opacity: 0.55;
        transform: translateX(-50%) translateY(-150px) scale(0.7) translate(0, 80px);
    }
    62% {
        opacity: 0.6;
        transform: translateX(-50%) translateY(-100px) scale(0.8) translate(-75px, 60px);
    }
    75% {
        opacity: 0.65;
        transform: translateX(-50%) translateY(-130px) scale(0.95) translate(-90px, 0);
    }
    87% {
        opacity: 0.68;
        transform: translateX(-50%) translateY(-80px) scale(0.8) translate(-75px, -50px);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-200px) scale(1.2) translate(0, 0);
    }
}

@keyframes carDrift {
    0% { 
        transform: translate(-50%, -50%) translate(0, 0) rotate(0deg) scale(1);
    }
    12% { 
        transform: translate(-50%, -50%) translate(150px, -100px) rotate(-35deg) scale(1.05);
    }
    25% { 
        transform: translate(-50%, -50%) translate(180px, 0) rotate(-45deg) scale(1.08);
    }
    37% { 
        transform: translate(-50%, -50%) translate(150px, 120px) rotate(-25deg) scale(1.05);
    }
    50% { 
        transform: translate(-50%, -50%) translate(0, 160px) rotate(0deg) scale(1);
    }
    62% { 
        transform: translate(-50%, -50%) translate(-150px, 120px) rotate(25deg) scale(1.05);
    }
    75% { 
        transform: translate(-50%, -50%) translate(-180px, 0) rotate(45deg) scale(1.08);
    }
    87% { 
        transform: translate(-50%, -50%) translate(-150px, -100px) rotate(35deg) scale(1.05);
    }
    100% { 
        transform: translate(-50%, -50%) translate(0, 0) rotate(360deg) scale(1);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes spin {
    0%, 100% { 
        transform: scaleX(1) rotateZ(0deg);
    }
    25% {
        transform: scaleX(1) rotateZ(-15deg);
    }
    50% { 
        transform: scaleX(-1) rotateZ(180deg);
    }
    75% {
        transform: scaleX(-1) rotateZ(195deg);
    }
}

/* ========== HEADER ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

nav a:hover::before {
    width: 100%;
}

/* ========== HERO SECTION ========== */
.hero {
    margin-top: 70px;
    height: 100vh;
    background: linear-gradient(135deg, var(--dark-bg), #1e293b);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(30, 64, 175, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(249, 115, 22, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    text-align: center;
    position: relative;
    z-index: 5;
    color: white;
    animation: fadeInUp 0.8s ease;
}

.hero h1 {
    font-size: 5.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: #cbd5e1;
}

.hero-animation {
    position: absolute;
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    filter: drop-shadow(0 30px 80px rgba(30, 64, 175, 0.4));
}

/* RACE TRACK CANVAS */
.hero-animation-container {
    position: absolute;
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

#raceTrack {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.car-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10;
}

.car {
    position: absolute;
    width: 180px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ff6b35 0%, #f97316 50%, #ff5722 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    line-height: 1;
    box-shadow: 
        0 30px 70px rgba(249, 115, 22, 1),
        0 0 60px rgba(249, 115, 22, 0.9),
        inset 0 2px 20px rgba(255, 255, 255, 0.7),
        inset 0 -3px 20px rgba(0, 0, 0, 0.4);
    border: 5px solid rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 0 40px rgba(249, 115, 22, 1)) drop-shadow(0 8px 25px rgba(249, 115, 22, 0.6));
    animation: carRotate 8s linear infinite;
}

.car::before {
    content: '🏎️';
    display: block;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

@keyframes carRotate {
    0% {
        transform: translate(-50%, -50%) translate(200px, 0) rotate(0deg);
    }
    25% {
        transform: translate(-50%, -50%) translate(0, -200px) rotate(90deg);
    }
    50% {
        transform: translate(-50%, -50%) translate(-200px, 0) rotate(180deg);
    }
    75% {
        transform: translate(-50%, -50%) translate(0, 200px) rotate(270deg);
    }
    100% {
        transform: translate(-50%, -50%) translate(200px, 0) rotate(360deg);
    }
}

.track-circle {
    display: none;
}

.car {
    position: absolute;
    width: 160px;
    height: 90px;
    background: linear-gradient(135deg, #ff6b35 0%, #f97316 50%, #ff5722 100%);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    line-height: 1;
    animation: carDrift 18s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
    box-shadow: 
        0 25px 60px rgba(249, 115, 22, 1),
        0 0 50px rgba(249, 115, 22, 0.8),
        inset 0 2px 15px rgba(255, 255, 255, 0.6),
        inset 0 -2px 15px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.7);
    filter: drop-shadow(0 0 30px rgba(249, 115, 22, 0.8)) drop-shadow(0 5px 20px rgba(249, 115, 22, 0.5));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.car::before {
    content: '🏎️';
    display: block;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 50px;
    position: relative;
    z-index: 4;
}

.btn {
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}
.btn { min-height: 44px; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #1e40af);
    color: white;
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(30, 64, 175, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: white;
    border: 2px solid #0ea5e9;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.5);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color), #ea580c);
    color: white;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}

.btn-accent:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: float 2s ease-in-out infinite;
    z-index: 4;
}

.scroll-indicator svg {
    width: 40px;
    height: 40px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

/* ========== INCOME SECTION ========== */
.income-section {
    padding: 120px 30px;
    background: linear-gradient(180deg, var(--light-bg), #f1f5f9);
    position: relative;
}

.section-container {
    max-width: 1300px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 100px;
    animation: fadeInUp 0.6s ease;
}

.section-header h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 500;
}

.income-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.income-card {
    background: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.income-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

.income-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.income-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 800;
    position: relative;
    z-index: 2;
}

.income-card .amount {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 30px 0;
    position: relative;
    z-index: 2;
}

.income-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

.income-details {
    background: linear-gradient(135deg, white, #f8fafc);
    padding: 70px;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.8s ease;
}

.income-details h3 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-dark);
    text-align: center;
    font-weight: 800;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.detail-item {
    background: white;
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 5px solid var(--accent-color);
}

.detail-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.detail-item h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
}

.detail-item p {
    color: var(--text-dark);
    font-size: 1.15rem;
    font-weight: 700;
}

/* ========== FEATURES SECTION ========== */
.features-section {
    padding: 120px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 45px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.feature-item::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-item:hover {
    background: white;
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.feature-item:hover::after {
    opacity: 1;
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 800;
    color: var(--text-dark);
}

.feature-item p {
    opacity: 0.9;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.7;
    color: var(--text-light);
}

/* ========== BENEFITS SECTION ========== */
.benefits-section {
    padding: 120px 30px;
    background: linear-gradient(180deg, var(--light-bg), #f1f5f9);
}

.benefits-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.benefits-content h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    padding: 25px 0;
    padding-right: 50px;
    border-bottom: 2px solid #ecf0f1;
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
}

.benefits-list li:hover {
    border-bottom-color: var(--primary-color);
    transform: translateX(-15px);
}

.benefits-list li:before {
    content: '✓';
    display: inline-block;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    margin-left: 25px;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.benefits-image {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.2), rgba(249, 115, 22, 0.2));
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7rem;
    box-shadow: var(--shadow-lg);
}

/* ========== STATS SECTION ========== */
.stats-section {
    padding: 100px 30px;
    background: linear-gradient(135deg, #1a1a1a, var(--dark-bg));
    color: white;
}

.stats-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    background: rgba(30, 64, 175, 0.1);
    padding: 45px 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(30, 64, 175, 0.2);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-item:hover {
    transform: translateY(-12px);
    background: rgba(30, 64, 175, 0.15);
    border-color: var(--accent-color);
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--accent-color), #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-item p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 600;
}

/* ========== TESTIMONIALS SECTION ========== */
.testimonials-section {
    padding: 120px 30px;
    background: linear-gradient(180deg, var(--light-bg), #f1f5f9);
}

.testimonials-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    border-left: 5px solid var(--accent-color);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 6rem;
    color: var(--primary-color);
    opacity: 0.1;
    position: absolute;
    top: -20px;
    right: 20px;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    border-left-color: var(--primary-color);
}

.testimonial-stars {
    color: #ea580c;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.testimonial-text {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 500;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.05rem;
}

/* ========== CTA SECTION ========== */
.cta-section {
    padding: 100px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 50px;
    opacity: 0.95;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

/* ========== FOOTER ========== */
footer {
    background: linear-gradient(135deg, #0f172a, var(--dark-bg));
    color: white;
    padding: 70px 30px;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3 {
    margin-bottom: 25px;
    font-size: 1.3rem;
    color: var(--accent-color);
    font-weight: 700;
}

.footer-section p {
    opacity: 0.85;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer-section a:hover {
    color: var(--accent-color);
    transform: translateX(-5px);
}

.footer-bottom {
    border-top: 2px solid rgba(30, 64, 175, 0.3);
    padding-top: 40px;
    text-align: center;
    color: #94a3b8;
    font-size: 1rem;
    max-width: 1300px;
    margin: 0 auto;
}

/* ========== FORMS ========== */
.form-input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light-bg);
    font-weight: 500;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

.form-input.ltr {
    direction: ltr;
    text-align: center;
}

/* ========== ALERTS ========== */
.alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 1rem;
    text-align: center;
    font-weight: 600;
}

.alert-error {
    background: #fee2e2;
    border: 2px solid #fca5a5;
    color: #991b1b;
}

.alert-success {
    background: #d1fae5;
    border: 2px solid #6ee7b7;
    color: #065f46;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .header-container {
        padding: 12px 20px;
    }

    .logo {
        font-size: 1.7rem;
    }

    nav ul {
        gap: 25px;
    }

    nav a {
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero .subtitle {
        font-size: 1.3rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .income-details {
        padding: 50px;
    }

    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-section h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 10px 15px;
    }

    .logo {
        font-size: 1.5rem;
    }

    nav ul {
        gap: 15px;
    }

    nav a {
        font-size: 0.8rem;
    }

    .hero {
        margin-top: 65px;
        height: auto;
        min-height: 65vh;
        padding: 30px 15px;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .hero-animation {
        width: 380px !important;
        height: 380px !important;
        display: block !important;
    }

    .hero-animation-container {
        width: 420px !important;
        height: 420px !important;
    }

    #raceTrack {
        width: 100% !important;
        height: 100% !important;
    }

    .car {
        width: 130px !important;
        height: 75px !important;
        font-size: 3.5rem !important;
        border-radius: 25px !important;
    }

    .hero .subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    .hero-animation-container {
        width: 350px !important;
        height: 350px !important;
    }

    #raceTrack {
        width: 100% !important;
        height: 100% !important;
    }

    .car {
        width: 100px !important;
        height: 60px !important;
        font-size: 2.8rem !important;
        border-radius: 20px !important;
        border-width: 3px !important;
        box-shadow: 
            0 15px 40px rgba(249, 115, 22, 0.8),
            0 0 30px rgba(249, 115, 22, 0.6),
            inset 0 1px 8px rgba(255, 255, 255, 0.4) !important;
        filter: drop-shadow(0 0 25px rgba(249, 115, 22, 0.8)) drop-shadow(0 5px 15px rgba(249, 115, 22, 0.5)) !important;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        padding: 14px 30px;
        font-size: 0.95rem;
    }

    .scroll-indicator {
        display: none;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .income-card {
        padding: 30px;
    }

    .income-card h3 {
        font-size: 1.3rem;
    }

    .income-card .amount {
        font-size: 2rem;
    }

    .income-card p {
        font-size: 0.9rem;
    }

    .income-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .income-details {
        padding: 30px;
        margin-top: 30px;
    }

    .income-details h3 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .detail-item {
        padding: 20px;
    }

    .detail-item h4 {
        font-size: 0.9rem;
    }

    .detail-item p {
        font-size: 0.85rem;
    }

    .feature-item {
        padding: 25px;
    }

    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

    .feature-item h3 {
        font-size: 1.1rem;
    }

    .feature-item p {
        font-size: 0.9rem;
    }

    .benefits-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .benefits-content h2 {
        font-size: 1.8rem;
    }

    .benefits-image {
        height: 200px;
        font-size: 4rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .stat-item p {
        font-size: 1rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 25px;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    .cta-section {
        padding: 60px 20px;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    footer {
        padding: 50px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ========== DASHBOARD & PANELS ========== */
.dashboard {
    max-width: 1200px;
    margin: 100px auto 60px;
    padding: 18px;
}
.panel {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    color: var(--text-light);
}
.profile-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap:14px; }
.profile-card { padding:18px; border-radius:12px; background:rgba(3,7,18,0.6); border: 1px solid rgba(255,255,255,0.04); }
.profile-label { color: #9ca3af; font-size: 0.85rem; }
.profile-value { color: #e2e8f0; font-weight:800; font-size:1rem; margin-top:6px; }

/* Job cards */
.job-card { display:block; padding:12px; border-radius:12px; transition:var(--transition); }
.job-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(2,6,23,0.6); }
.job-card .job-header { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.job-card .job-title { font-weight:800; font-size:1rem; color:#e6eef8; }
.job-card .job-meta { color:#94a3b8; font-weight:600; }
.job-actions { gap:10px; display:flex; align-items:center; }
.job-actions .btn { padding:9px 12px; border-radius:10px; font-size:0.95rem; }
.btn-accept { background: linear-gradient(135deg,#10b981,#06b6d4); color:#041124; }
.btn-map { background: rgba(255,255,255,0.04); color:#bfdbfe; border: 1px solid rgba(255,255,255,0.03); }

/* Small buttons that are clickable on mobile */
.map-trigger { padding:10px 12px; border-radius:10px; }

/* Map adjustments */
#driverMap { height: 420px; border-radius: 14px; }
.map-note { font-size:0.9rem; color:#94a3b8; }

/* Responsive: dashboard mobile */
@media (max-width: 768px) {
    .dashboard { margin: 80px 12px 30px; padding: 14px; }
    .panel { padding: 16px; }
    .profile-grid { grid-template-columns: 1fr; gap:12px; }
    .job-actions { flex-direction: column; align-items: stretch; }
    .job-actions .btn, .map-trigger { width:100%; display:block; }
    #driverMap { height: 260px; }
}

@media (max-width: 480px) {
    .dashboard { margin: 70px 8px 20px; padding: 10px; }
    .panel { padding: 12px; }
    .job-card { padding:10px; }
    .job-actions { gap: 8px; }
    .btn { padding: 10px 12px; font-size: 0.9rem; }
}

/* Dashboard topbar / quick actions */
.topbar { position: sticky; top: 70px; z-index: 50; display:flex; gap:16px; align-items:center; justify-content:space-between; padding:10px 14px; background: rgba(2,6,23,0.85); border-radius:12px; box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
.topbar .brand { color:#fff; font-weight:800; font-size:1.05rem; }
.topbar .brand span { display:block; color:#94a3b8; font-weight:400; font-size:0.9rem; }
.topbar .user-meta { text-align:right; color:#9ca3af; }
.topbar .top-actions { display:flex; gap:8px; align-items:center; }
.topbar .top-actions .btn { padding:8px 12px; border-radius:999px; font-size:0.93rem; }
.topbar .top-actions .btn-outline { background: transparent; border:1px solid rgba(255,255,255,0.06); color:#e2e8f0; }
.topbar .top-actions .btn-accept { background: linear-gradient(135deg,#10b981,#06b6d4); color:#071327; }

@media (max-width: 768px) {
    .topbar { flex-direction: column; align-items: stretch; gap:8px; padding:9px; top: 80px; }
    .topbar .top-actions { justify-content: flex-end; }
}

/* Buttons and swatches for dashboard interactions */
.btn-outline { background: transparent; border:1px solid rgba(255,255,255,0.06); color: #e2e8f0; }
.btn-sm { padding:7px 10px; font-size:0.9rem; }
.btn-block { display:block; width:100%; }

/* job action buttons sizing */
.job-actions .btn { padding:9px 14px; border-radius:12px; }
.job-actions .btn-accept { font-weight:800; }

/* Dashboard panels tweaks */
.panel h2 { color: #e6eef8; }
.stat-card strong { color: #fff; }
.stat-card small { color: #93c5fd; }

/* Mobile: larger touch targets */
@media (max-width: 480px) {
    .topbar .top-actions .btn { padding: 10px 14px; }
    .job-actions .btn { padding: 12px 14px; font-size: 0.95rem; }
}

@media (max-width: 480px) {
    header {
        margin-top: 0;
    }

    .header-container {
        padding: 10px 12px;
    }

    .logo {
        font-size: 1.2rem;
    }

    nav ul {
        gap: 8px;
        font-size: 0.7rem;
    }

    nav a {
        font-size: 0.65rem;
        padding: 5px 8px;
    }

    .hero {
        margin-top: 60px;
        height: auto;
        min-height: 50vh;
        padding: 20px 12px;
    }

    .hero h1 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .hero .subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    .section-header h2 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .section-header p {
        font-size: 0.85rem;
    }

    .income-section {
        padding: 50px 12px;
    }

    .income-grid {
        gap: 15px;
    }

    .income-card {
        padding: 20px;
        border-radius: 12px;
    }

    .income-card h3 {
        font-size: 1.1rem;
    }

    .income-card .amount {
        font-size: 1.5rem;
        margin: 12px 0;
    }

    .income-card p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .income-details {
        padding: 20px;
        margin-top: 20px;
    }

    .income-details h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .detail-item {
        padding: 15px;
    }

    .features-section {
        padding: 50px 12px;
    }

    .features-grid {
        gap: 15px;
    }

    .feature-item {
        padding: 20px;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .feature-item h3 {
        font-size: 1rem;
    }

    .feature-item p {
        font-size: 0.8rem;
    }

    .benefits-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .benefits-content h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .benefits-image {
        height: 150px;
        font-size: 3rem;
    }

    .benefits-list li {
        font-size: 0.85rem;
        padding: 8px 0;
    }

    .stats-section {
        padding: 50px 12px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-item {
        padding: 25px;
        min-height: auto;
    }

    .stat-item h3 {
        font-size: 1.8rem;
    }

    .stat-item p {
        font-size: 0.85rem;
    }

    .testimonials-section {
        padding: 50px 12px;
    }

    .testimonial-card {
        padding: 18px;
    }

    .testimonial-text {
        font-size: 0.85rem;
    }

    .cta-section {
        padding: 40px 12px;
    }

    .cta-section h2 {
        font-size: 1.4rem;
    }

    .cta-section p {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    footer {
        padding: 30px 12px;
    }

    .footer-container {
        gap: 20px;
        margin-bottom: 25px;
    }

    .footer-section h3 {
        margin-bottom: 12px;
        font-size: 1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.8rem;
    }
}
