@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');

:root {
    --primary-color: #ffb400;
    /* Gold */
    --hover-color: #e6a200;
    --dark-bg: #111111;
    --card-bg: #1a1a1a;
    --text-color: #ffffff;
    --text-muted: #aaaaaa;
    --font-main: 'Cairo', sans-serif;
    --transition-speed: 0.3s;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--text-color);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--card-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

/* Typography & General */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

.text-muted {
    color: #e0e0e0 !important;
}

a:hover {
    color: var(--primary-color);
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.btn-custom {
    background-color: var(--primary-color);
    color: #000;
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 180, 0, 0.3);
}

.btn-custom:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 180, 0, 0.5);
    color: #000;
}

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 700;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background-color: var(--primary-color);
    color: #000;
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    background-color: rgba(17, 17, 17, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color) !important;
    letter-spacing: 1px;
}

.nav-link {
    color: #fff !important;
    font-weight: 600;
    margin: 0 10px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    right: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/img_3.jpeg');
    /* Placeholder car oil/engine image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

.hero-content p {
    font-size: 1.2rem;
    color: #ddd;
    margin-bottom: 30px;
    max-width: 600px;
}

/* Cards & Services */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--primary-color);
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: #fff;
    bottom: 0;
    left: 25%;
    border-radius: 2px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-color);
    z-index: -1;
    transition: width 0.4s ease;
    opacity: 0.1;
}

.service-card:hover::before {
    width: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.4s;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* About Section Preview */
.about-preview {
    padding: 100px 0;
}

.about-img {
    border-radius: 20px;
    box-shadow: -20px 20px 0 var(--primary-color);
    transition: transform 0.3s;
}

.about-img:hover {
    transform: scale(1.02);
}

/* Partners Section */
.partner-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Contact Section */
.contact-info-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.contact-info-item:hover {
    border-color: var(--primary-color);
}

.contact-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-control {
    background-color: #222;
    border: 1px solid #333;
    color: #fff;
    padding: 12px;
}

.form-control:focus {
    background-color: #222;
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 180, 0, 0.25);
}

.form-control::placeholder {
    color: #fff !important;
    opacity: 1;
}

/* Footer */
footer {
    background-color: #0a0a0a;
    padding: 60px 0 20px;
    margin-top: 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-left: 10px;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    color: #000;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Terms Page Specifics */
.terms-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    line-height: 1.8;
}

.terms-content h3 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}