/* Variables */
:root {
    --silver: #C0C0C0;
    --dark: #000000;
    --light: #ffffff;
    --silver-gradient: linear-gradient(135deg, #A9A9A9 0%, #E8E8E8 50%, #A9A9A9 100%);
}

/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    background-color: var(--dark);
    color: var(--light);
    direction: ltr;
    text-align: left;
    letter-spacing: 0.02em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.display-4 {
    font-size: 4rem;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.1em;
}

.lead {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 0.03em;
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    background-color: var(--dark) !important;
    padding: 1.5rem 2rem;
    min-height: 150px; /* Increased height for larger logo */
}

.navbar.scrolled {
    background-color: var(--dark) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    position: fixed;
    left: 2rem;
    z-index: 1000;
    padding: 0;
    margin-top: 12px; /* Adjusted top margin */
}

.navbar-brand img {
    height: 125px; /* Increased height */
    width: auto;
    transition: all 0.3s ease;
    display: block;
    max-height: 100%;
}

.navbar-toggler {
    border-color: var(--silver);
    padding: 0.5rem;
    position: relative;
    z-index: 1001; /* Higher than the logo */
    margin-left: auto; /* Push to the right */
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(192, 192, 192, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav {
    margin-left: auto;
    padding-left: 240px; /* Increased padding for larger logo */
}

.navbar-nav .nav-link {
    color: var(--light) !important;
    transition: color 0.3s ease;
    padding: 0.5rem 1.5rem !important;
    font-size: 1.1rem;
    margin-top: 35px; /* Adjusted for vertical alignment */
    text-align: left;
}

.navbar-nav .nav-link:hover {
    color: var(--silver) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--silver);
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Mobile navigation adjustments */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 1rem;
        min-height: 100px;
    }
    
    .navbar-brand {
        position: relative;
        left: 0;
        margin-top: 0;
    }
    
    .navbar-brand img {
        height: 100px;
    }
    
    .navbar-toggler {
        margin-right: 0.5rem;
        border: 1px solid var(--silver);
        background-color: rgba(0, 0, 0, 0.8);
    }
    
    .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.95);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 1rem;
        border-top: 1px solid var(--silver);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav {
        padding-left: 0;
    }
    
    .navbar-nav .nav-link {
        margin-top: 0;
        text-align: center;
        padding: 1rem !important;
        border-bottom: 1px solid rgba(192, 192, 192, 0.2);
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding-left: 30px !important;
    }
    
    .navbar {
        padding: 1rem;
        min-height: auto;
    }
    
    .navbar-brand {
        position: relative;
        left: 0;
        margin-top: 0;
    }
    
    .navbar-brand img {
        height: 80px;
    }
    
    .navbar-toggler {
        margin-right: 15px;
    }
    
    .navbar-collapse {
        margin-top: 20px;
        background-color: rgba(0, 0, 0, 0.9);
        padding: 15px;
        border-radius: 5px;
    }
    
    .navbar-nav {
        padding-left: 0;
    }
    
    .navbar-nav .nav-link {
        margin-top: 10px;
        text-align: center;
    }
    
    /* Hero section mobile adjustments */
    .hero {
        height: 100vh; /* Full height to show the entire car */
        background-size: contain;
        background-position: center; /* Center the image */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .hero-content {
        padding: 0 15px !important;
        text-align: center;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero h1 {
        font-size: 2.5rem; /* Smaller font size */
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        text-align: center;
    }
    
    .hero .lead {
        font-size: 1.2rem;
        margin: 0 auto 30px; /* Center the text */
        max-width: 90%;
        text-align: center;
    }

    .hero .btn {
        margin: 0 auto;
        display: inline-block;
    }
}

@media (max-width: 480px) {
    /* Even smaller screens */
    .hero {
        height: 100vh;
        background-size: contain;
        background-position: center;
    }
    
    .hero h1 {
        font-size: 2rem;
        width: 100%;
        text-align: center;
    }
    
    .hero .lead {
        font-size: 1rem;
        max-width: 95%;
        text-align: center;
        padding: 0 10px;
    }

    .hero .btn {
        margin: 0 auto;
        display: inline-block;
    }
}

/* Hero Section */
.hero {
    background-image: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.3) 100%
    ), url('../images/hero-mercedes.jpg');
    background-size: contain; /* Changed from cover to contain */
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    padding-left: 0 !important;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

.hero .lead {
    font-size: 1.4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero .btn {
    display: inline-block;
    margin: 0 auto;
}

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

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

/* Buttons */
.btn-silver {
    background: var(--silver-gradient);
    border: none;
    color: var(--dark);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(192, 192, 192, 0.2);
}

/* Fleet Section */
.fleet-card {
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--silver);
    transition: transform 0.3s ease;
}

.fleet-card:hover {
    transform: translateY(-5px);
}

.fleet-card img {
    height: 200px;
    object-fit: cover;
}

.fleet-card .card-body {
    padding: 1.5rem;
}

.fleet-card .card-title {
    color: var(--silver);
    font-weight: bold;
}

.fleet-card .card-text {
    color: var(--light);
}

/* Services Section */
.service-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(192, 192, 192, 0.1);
    border-radius: 10px;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card i {
    color: var(--silver);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-header {
    color: var(--silver);
    text-align: center;
    font-weight: 600;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.contact-header:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--silver);
    bottom: 0;
    left: 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(192, 192, 192, 0.1);
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--light);
    font-weight: 500;
    text-align: left;
}

.form-control {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--silver);
    border-radius: 5px;
    color: var(--light);
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: var(--silver);
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

.text-center {
    text-align: center;
}

.mb-5 {
    margin-bottom: 3rem;
}

/* Content Section */
.content {
    padding: 40px 0;
    text-align: left;
}

.content h2 {
    color: var(--silver);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: bold;
}

.content h3 {
    color: var(--gray);
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    font-weight: bold;
}

.content p {
    color: var(--light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.content ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.content ul li {
    color: var(--light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-right: 1.5rem;
    position: relative;
}

.content ul li:before {
    content: "•";
    color: var(--silver);
    position: absolute;
    right: 0;
}

.content-section {
    padding: 40px 0;
    background-color: #fff;
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
}

.content-text h2 {
    color: var(--silver);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.content-text p {
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Steps Section */
.steps-section {
    padding: 40px 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 140px;
}

.step-number {
    position: absolute;
    top: -12px;
    left: -12px;
    background-color: var(--silver);
    color: var(--dark);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: normal;
}

.step-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.step-icon i {
    font-size: 24px;
    color: var(--gray);
}

.step-text {
    color: var(--gray);
    font-size: 14px;
    text-align: center;
    max-width: 120px;
    line-height: 1.4;
}

/* Main Content Section */
.main-content {
    padding: 60px 0;
    background-color: #fff;
}

.main-content .content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content h2 {
    color: var(--silver);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.main-content h3 {
    color: var(--gray);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    text-align: left;
}

.main-content p {
    color: var(--light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: left;
}

.main-content ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.main-content ul li {
    color: var(--light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-right: 1.5rem;
    position: relative;
}

.main-content ul li:before {
    content: "•";
    color: var(--silver);
    position: absolute;
    right: 0;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.lang-switch {
    background: none;
    border: 1px solid #ddd;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-switch.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

[dir="ltr"] .navbar .container {
    justify-content: flex-start;
}

[dir="ltr"] .language-switcher {
    margin-left: 0;
    margin-right: auto;
}

[dir="ltr"] .navbar-brand {
    margin-right: 0;
    margin-left: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .steps-container {
        gap: 30px;
        flex-wrap: wrap;
        padding: 0 20px;
    }
    
    .step-item {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 480px) {
    .step-item {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .steps-container {
        gap: 10px;
    }
    
    .step-item {
        min-width: 160px;
        padding: 25px 10px;
    }
}

@media (max-width: 768px) {
    .steps-container {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .step-item {
        flex: 0 0 calc(50% - 20px);
        margin: 25px 10px;
    }
}

@media (max-width: 480px) {
    .step-item {
        flex: 0 0 100%;
        margin: 30px 0;
    }
    
    .steps-section {
        padding: 40px 0;
    }
}

/* Form Controls */
.form-control {
    text-align: left;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

/* Footer */
footer {
    background-color: var(--dark);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    padding: 2rem 0;
}

footer a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--silver);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    align-items: center;
}

.social-link {
    color: var(--light);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    width: 3rem;
    height: 3rem;
}

.social-link:hover {
    color: var(--silver);
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
}

.social-link i {
    transition: transform 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.1);
}

.social-link .fa-facebook:hover {
    color: #1877f2;
}

.social-link .fa-instagram:hover {
    color: #e4405f;
}

.social-link .fa-whatsapp:hover {
    color: #25D366;
}

/* Add Vazirmatn font for better Farsi support */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap');

/* About Section */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 0;
    position: relative;
    text-align: center;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.section-title {
    font-size: 2.5rem;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    font-weight: 300;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--silver-gradient);
}

.about-content .text-container {
    max-width: 900px;
    margin: 0 auto;
    margin-bottom: 4rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        letter-spacing: 0.15em;
    }
    
    .about-content p {
        font-size: 1rem;
        line-height: 1.7;
    }
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
    max-width: 100%;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--silver);
    border-radius: 0;
    padding: 2rem 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(212, 175, 55, 0.05) 100%);
    z-index: 0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.feature-card h4 {
    font-size: 1.2rem;
    color: var(--light);
    margin: 1.5rem 0 1rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

.feature-card .icon {
    font-size: 2.2rem;
    color: var(--silver);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    background: var(--silver-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-card {
        padding: 1.5rem;
        min-height: 200px;
    }
    
    .feature-card h4 {
        font-size: 1rem;
    }
    
    .feature-card p {
        font-size: 0.85rem;
    }
    
    .feature-card .icon {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Car Grid and Cards */
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.car-box {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(192, 192, 192, 0.1);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.car-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: white;
    padding: 1rem;
}

.car-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.9);
}

.car-title {
    color: var(--silver);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
    text-transform: uppercase;
}

.car-description {
    color: var(--light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.car-box .btn-silver {
    align-self: flex-start;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    background: var(--silver);
    color: var(--dark);
    border: none;
    border-radius: 5px;
}

.car-box .btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.car-selection {
    padding: 6rem 0;
    background: rgba(0, 0, 0, 0.8);
    position: relative;
}

.car-selection .section-header {
    text-align: center;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.car-selection .section-title {
    color: var(--light);
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.car-selection .title-underline {
    width: 50px;
    height: 2px;
    background: var(--silver);
    margin-top: 0.5rem;
}

#selectedCarDisplay {
    background: rgba(212, 175, 55, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid var(--silver);
}

#selectedCarDisplay label {
    color: var(--silver);
    font-weight: bold;
    margin-bottom: 5px;
}

#selectedCarText {
    margin: 0;
    color: var(--light);
}

/* Selected car display styling */
.selected-car-display {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.selected-car-text {
    color: #b8860b;
    font-size: 1.1em;
    margin: 5px 0 0;
    font-weight: 500;
}

/* Car price styling */
.car-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--silver);
    margin-bottom: 15px;
    display: block;
}

.car-price .currency {
    font-size: 0.9rem;
    opacity: 0.9;
}

.car-price .period {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 400;
}

@media (max-width: 768px) {
    .car-price {
        font-size: 1.1rem;
    }
}
