/* ==========================================
   ITHRAN FATHI CARS - Styles CSS
   ========================================== */

:root {
    /* Colors */
    --primary: #000;
    --accent: #C41E2A;
    --accent-light: #D94452;
    --accent-glow: rgba(196, 30, 42, 0.2);
    --accent-rgb: 196, 30, 42;
    --gold: #C8A951;
    --gold-light: #D4B96A;
    
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --glass-bg: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Spacing */
    --sm: 0.5rem;
    --md: 1rem;
    --lg: 1.5rem;
    --xl: 2rem;
    --2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.3s ease-out;
    --transition-slow: all 0.5s ease-out;
}

/* Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--black);
    color: var(--gray-300);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--white);
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Backgrounds & Effects */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0.8), transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(196, 30, 42, 0.05), transparent 50%);
    z-index: -2;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(196, 30, 42, 0.5);
    border-radius: 50%;
    animation: float linear infinite;
}

@keyframes float {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(100px); opacity: 0; }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(196, 30, 42, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    transition: var(--transition);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.logo:hover {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--gray-300);
    transition: var(--transition);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: rgba(196, 30, 42, 0.1);
}

.btn-success {
    background: #10b981;
    color: var(--white);
}

.btn-success:hover {
    background: #059669;
}

.btn-lg {
    padding: 1.125rem 2rem;
    font-size: 1.05rem;
}

.btn-book {
    padding: 0.625rem;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glow-border {
    position: relative;
    border: 2px solid var(--accent);
}

.glow-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, transparent, var(--accent), transparent);
    border-radius: var(--radius-full);
    opacity: 0;
    animation: glow 3s infinite;
}

@keyframes glow {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0 3rem;
    margin-top: 5rem;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(196, 30, 42, 0.1);
    border: 1px solid rgba(196, 30, 42, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-badge i {
    font-size: 1.1rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content > p {
    font-size: 1.1rem;
    color: var(--gray-400);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-3d-card {
    position: relative;
    perspective: 1000px;
}

.hero-3d-card img {
    width: 100%;
    border-radius: var(--radius-lg);
    filter: drop-shadow(0 20px 40px rgba(196, 30, 42, 0.2));
    transition: var(--transition);
}

.hero-3d-card:hover img {
    transform: rotateY(5deg) rotateX(2deg);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.stat-card .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-card .label {
    color: var(--gray-400);
    font-size: 0.9rem;
}

/* Features Section */
.features {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(196, 30, 42, 0.1);
    border: 1px solid rgba(196, 30, 42, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray-400);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    background: rgba(196, 30, 42, 0.05);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray-400);
    font-size: 0.95rem;
}

/* Cars Preview */
.cars-preview {
    padding: 6rem 0;
    background: rgba(196, 30, 42, 0.02);
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.car-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.car-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
}

.car-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.car-card:hover img {
    transform: scale(1.05);
}

.car-card-body {
    padding: 1.5rem;
}

.car-card h3 {
    margin-bottom: 0.25rem;
}

.car-card .category {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.car-card .description {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: none;
}

.car-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.car-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--gray-400);
}

.car-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

.car-price {
    display: flex;
    flex-direction: column;
}

.car-price .amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.car-price .period {
    color: var(--gray-400);
    font-size: 0.85rem;
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(196, 30, 42, 0.1), rgba(196, 30, 42, 0.05));
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-content > p {
    color: var(--gray-400);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--gray-400);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--accent);
    background: rgba(196, 30, 42, 0.05);
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-item span {
    color: var(--gray-400);
    font-size: 0.9rem;
}

.contact-form {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.contact-form h2 {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control::placeholder {
    color: var(--gray-500);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
    text-align: center;
    color: var(--gray-400);
}

.footer .container {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

.footer-links a {
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    
    .hero .container { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 3rem; }
    .cta-content h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem 0;
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-links.active {
        max-height: 500px;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
    }
    
    .hero-content h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
    
    .hero-stats { grid-template-columns: 1fr; gap: 1rem; }
    
    .section-header h2 { font-size: 2rem; }
    .features-grid { grid-template-columns: 1fr; }
    .cars-grid { grid-template-columns: 1fr; }
    
    .cta-content h2 { font-size: 2rem; }
    .cta-buttons { flex-direction: column; }
    .cta-buttons .btn { width: 100%; }
    
    .contact-grid { grid-template-columns: 1fr; }
    .contact-form { margin-top: 2rem; }
    
    .footer .container { grid-template-columns: 1fr; }
    .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .hero { margin-top: 4rem; padding: 2rem 0 1rem; }
    .hero-content h1 { font-size: 2rem; }
    
    .section-header h2 { font-size: 1.5rem; }
    .features-grid { gap: 1rem; }
    .cars-grid { gap: 1rem; }
    
    .car-card-body { padding: 1rem; }
    .contact-info, .contact-form { padding: 1rem; }
}
