/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 2px solid #ff0000;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 2px 20px rgba(255, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.nav-logo i {
    margin-right: 0.5rem;
    color: #ff0000;
    font-size: 2rem;
}

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

.nav-menu a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #ff0000;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #ff0000;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 30%, #ff0000 100%);
    color: white;
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-content {
    flex: 1;
    z-index: 2;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #ffffff, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    border: 2px solid #ff0000;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff1744, #ff0000);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 0, 0, 0.5), 0 0 20px rgba(255, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #ff0000;
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.car-showcase {
    position: relative;
}

.car-card.featured {
    width: 300px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 3s ease-in-out infinite;
}

.car-card.featured i {
    font-size: 4rem;
    color: white;
}

/* Booking Section */
.booking-section {
    padding: 4rem 0;
    background: #1a1a1a;
    margin-top: -50px;
    position: relative;
    z-index: 3;
}

.booking-form {
    background: linear-gradient(145deg, #1a1a1a, #000000);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(255, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid #ff0000;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    backdrop-filter: blur(10px);
}

.booking-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #ffffff;
}

.booking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    align-items: end;
    max-width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #ffffff;
}

.form-group select,
.form-group input {
    padding: 12px;
    border: 2px solid #333333;
    border-radius: 10px;
    font-size: 1rem;
    background: #1a1a1a;
    color: #ffffff;
    transition: border-color 0.3s ease;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #ff0000;
}

/* Cars Section */
.cars-section {
    padding: 5rem 0;
    background: #000000;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.section-subtitle {
    text-align: center;
    color: #cccccc;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.car-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 25px;
    border: 2px solid #ff0000;
    background: transparent;
    color: #ff0000;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-btn.active,
.category-btn:hover {
    background: #ff0000;
    color: white;
    transform: translateY(-2px);
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 100%;
    margin: 0 auto;
}

.car-card {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 2px solid #333333;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.car-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255, 0, 0, 0.4), 0 0 20px rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
    background: linear-gradient(145deg, #1f1f1f, #0a0a0a);
}

.car-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.car-image {
    height: 200px;
    background: linear-gradient(135deg, #ff0000 0%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.car-image i {
    font-size: 4rem;
    color: white;
}

.car-info {
    padding: 1.5rem;
}

.car-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.car-type {
    color: #cccccc;
    margin-bottom: 1rem;
}

.car-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.car-features span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: #cccccc;
}

.car-features i {
    color: #ff0000;
}

.car-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff0000;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background: #1a1a1a;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 100%;
    margin: 0 auto;
}

.service-card {
    background: linear-gradient(145deg, #1a1a1a, #000000);
    border: 2px solid #333333;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: #ff0000;
    box-shadow: 0 15px 40px rgba(255, 0, 0, 0.4), 0 0 15px rgba(255, 0, 0, 0.2);
    background: linear-gradient(145deg, #1f1f1f, #0a0a0a);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.service-card p {
    color: #cccccc;
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: #000000;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 100%;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.about-text p {
    color: #cccccc;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2rem;
    color: #ff0000;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #cccccc;
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #ff0000 0%, #000000 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder i {
    font-size: 4rem;
    color: white;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: #1a1a1a;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: #ff0000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.contact-item p {
    color: #cccccc;
}

.contact-form {
    background: linear-gradient(145deg, #1a1a1a, #000000);
    border: 2px solid #333333;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #333333;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-family: inherit;
    background: #1a1a1a;
    color: #ffffff;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #ff0000;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999999;
}

/* Footer */
.footer {
    background: #000000;
    border-top: 2px solid #ff0000;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 100%;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    margin-right: 0.5rem;
    color: #ff0000;
    font-size: 2rem;
}

.footer-section p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: #ff0000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #cc0000;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #ff0000;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.footer-section ul li i {
    margin-right: 0.5rem;
    color: #ff0000;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333333;
    opacity: 0.8;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Desktop and Large Screen Fixes */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .cars-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .cars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet and Medium Screen Fixes */
@media (min-width: 769px) and (max-width: 991px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .cars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        gap: 2rem;
    }
    
    .contact-content {
        gap: 2rem;
    }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #000000;
        border: 2px solid #ff0000;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(255, 0, 0, 0.3);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .booking-grid {
        grid-template-columns: 1fr;
    }

    .cars-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats {
        justify-content: center;
    }

    .car-categories {
        justify-content: center;
    }

    .category-btn {
        font-size: 0.9rem;
        padding: 8px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .booking-form,
    .contact-form {
        padding: 1.5rem;
    }

    .car-card {
        margin: 0 10px;
    }

    .stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for car cards */
.car-card {
    animation: slideInUp 0.6s ease forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects for buttons */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Modern Visual Enhancements */
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ff0000, #ff1744);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Enhanced glow effects */
.car-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(220, 20, 60, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.car-card:hover::before {
    opacity: 1;
}

/* Improved form styling */
.form-group select option {
    background: #1a1a1a;
    color: #ffffff;
    border: none;
}

/* Logo styling */
.logo-img {
    height: 40px;
    width: auto;
    margin-left: 10px;
}

/* Language Switcher Styles */
.language-switcher {
    position: relative;
    display: inline-block;
}

.lang-toggle {
    background: linear-gradient(145deg, #1a1a1a, #000000);
    border: 2px solid #ff0000;
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    background: linear-gradient(145deg, #ff0000, #cc0000);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(145deg, #1a1a1a, #000000);
    border: 2px solid #ff0000;
    border-radius: 15px;
    min-width: 150px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 5px;
}

.language-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #cccccc;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.lang-option:hover {
    background: linear-gradient(145deg, #ff0000, #cc0000);
    color: white;
}

.lang-option.active {
    background: linear-gradient(145deg, #ff0000, #cc0000);
    color: white;
    font-weight: 600;
}

.lang-option img {
    width: 20px;
    height: auto;
    border-radius: 3px;
}

/* Arabic RTL Styles */
[dir="rtl"] {
    font-family: 'Cairo', 'Amiri', 'Tajawal', sans-serif;
}

[dir="rtl"] .navbar {
    direction: rtl;
}

[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-menu li {
    margin-left: 2rem;
    margin-right: 0;
}

[dir="rtl"] .language-switcher {
    margin-right: 1rem;
    margin-left: 0;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .hero-content {
    text-align: right;
}

[dir="rtl"] .hero-buttons {
    justify-content: flex-end;
}

[dir="rtl"] .section-title {
    text-align: right;
}

[dir="rtl"] .section-subtitle {
    text-align: right;
}

[dir="rtl"] .booking-form {
    direction: rtl;
}

[dir="rtl"] .form-group {
    text-align: right;
}

[dir="rtl"] .form-group label {
    text-align: right;
}

[dir="rtl"] .form-group input,
[dir="rtl"] .form-group select {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .category-filters {
    justify-content: flex-end;
}

[dir="rtl"] .car-grid {
    direction: rtl;
}

[dir="rtl"] .car-card {
    text-align: right;
}

[dir="rtl"] .car-features {
    justify-content: flex-end;
}

[dir="rtl"] .car-feature {
    flex-direction: row-reverse;
}

[dir="rtl"] .car-feature i {
    margin-left: 0.5rem;
    margin-right: 0;
}

[dir="rtl"] .services-grid {
    direction: rtl;
}

[dir="rtl"] .service-card {
    text-align: right;
}

[dir="rtl"] .service-icon {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .stats-grid {
    direction: rtl;
}

[dir="rtl"] .stat-card {
    text-align: right;
}

[dir="rtl"] .contact-content {
    direction: rtl;
}

[dir="rtl"] .contact-info {
    text-align: right;
}

[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-item i {
    margin-left: 1rem;
    margin-right: 0;
}

[dir="rtl"] .contact-form {
    direction: rtl;
}

[dir="rtl"] .contact-form input,
[dir="rtl"] .contact-form textarea {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .footer {
    direction: rtl;
}

[dir="rtl"] .footer-content {
    text-align: right;
}

[dir="rtl"] .footer-section h3 {
    text-align: right;
}

[dir="rtl"] .footer-links {
    text-align: right;
}

[dir="rtl"] .footer-links li {
    text-align: right;
}

[dir="rtl"] .social-links {
    justify-content: flex-end;
}

/* Arabic Font Loading */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&family=Tajawal:wght@300;400;500;700&display=swap');

/* Ensure proper Arabic text rendering */
[dir="rtl"] * {
    font-feature-settings: "liga" 1, "kern" 1;
    text-rendering: optimizeLegibility;
}

[dir="rtl"] .hero-title,
[dir="rtl"] .section-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
}

[dir="rtl"] p,
[dir="rtl"] .hero-subtitle,
[dir="rtl"] .section-subtitle {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.8;
}

/* Mobile RTL adjustments */
@media (max-width: 768px) {
    [dir="rtl"] .nav-menu {
        text-align: right;
    }
    
    [dir="rtl"] .hero-content {
        text-align: center;
    }
    
    [dir="rtl"] .hero-buttons {
        justify-content: center;
    }
    
    [dir="rtl"] .section-title,
    [dir="rtl"] .section-subtitle {
        text-align: center;
    }
}

/* About section image styling */
.about-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(255, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.about-img:hover {
    transform: scale(1.05);
}

/* Footer logo styling */
.footer-logo-img {
    height: 35px;
    width: auto;
    margin-left: 10px;
}

/* Car image styling */
.car-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.car-img:hover {
    transform: scale(1.1);
}

/* Hero car image styling */
.hero-car-img {
    width: 100%;
    height: auto;
    max-width: 400px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(255, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Better mobile responsiveness */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2.2rem;
        background: linear-gradient(135deg, #ff0000, #cc0000);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: #ff0000;
    }
    
    .car-card {
        margin: 0 5px;
        max-width: 100%;
    }
    
    .cars-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .logo-img {
        height: 35px;
    }
}
