/* --- PREMIUM UI POLISH --- */
:root {
    --primary-color: #e53935;
    --primary-dark: #c62828;
    --secondary-color: #1e1e1e;
    --text-main: #2c3e50;
    --text-light: #636e72;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(229, 57, 53, 0.15);
    --radius: 12px;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    /* Modern Font Stack */
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

/* Enhanced Section Padding */
.section-padding {
    padding: 80px 0;
}

/* Premium Card Styles */
.gray-bg {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    border: none;
    /* Remove old border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gray-bg:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Headings */
h3 {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    margin-top: 10px;
    border-radius: 2px;
}

/* Modern Input Fields */
.form-group {
    margin-bottom: 25px;
}

.control-label {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.white_bg {
    background: #fdfdfd;
    border: 2px solid #eee;
    /* Thicker, softer border */
    height: 55px;
    /* Taller inputs */
    padding: 10px 20px;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 15px;
    color: var(--text-main);
}

.white_bg:focus {
    background: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.1);
    /* Nice glow ring */
    outline: none;
}

textarea.white_bg {
    height: auto;
    padding-top: 15px;
    min-height: 150px;
}

/* Enhanced Button */
.btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    box-shadow: 0 5px 15px rgba(229, 57, 53, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 57, 53, 0.4);
    color: var(--white);
}

/* Contact Info Icons */
.contact_detail li {
    margin-bottom: 30px;
    position: relative;
    padding-left: 70px;
    display: flex;
    align-items: center;
}

.contact_detail .icon_wrap {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    line-height: 50px;
    /* Center icon vertically */
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), #ff5252);
    color: var(--white);
    border-radius: 12px;
    /* Soft square instead of circle */
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(229, 57, 53, 0.3);
    transition: transform 0.3s ease;
}

.contact_detail li:hover .icon_wrap {
    transform: translateY(-50%) scale(1.1);
}

.contact_info_m {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
}

.contact_info_m a {
    color: var(--text-light);
    transition: color 0.3s;
}

.contact_info_m a:hover {
    color: var(--primary-color);
}

/* RTL Adjustments */
[dir="rtl"] h3::after {
    margin-right: 0;
}

[dir="rtl"] .contact_detail li {
    padding-left: 0;
    padding-right: 70px;
}

[dir="rtl"] .contact_detail .icon_wrap {
    left: auto;
    right: 0;
}

/* Helper for Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Cinzel:wght@700&display=swap');

/* Glassmorphism Navbar */
.navbar-custom {
    background: rgba(30, 30, 30, 0.9);
    /* Slightly more opaque */
    backdrop-filter: blur(8px);
    /* Reduced blur for performance */
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    position: fixed;
    /* Sticky top */
    width: 100%;
    top: 0;
    z-index: 99999;
    /* Super high */
    transition: all 0.3s ease;
}

.navbar-collapse {
    overflow: visible !important;
    /* Allow dropdowns to spill out */
}

.navbar-nav {
    overflow: visible !important;
}

@media (max-width: 768px) {
    .navbar-custom {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(30, 30, 30, 1);
        /* Solid background on mobile to prevent bleed */
    }
}

/* Scroll Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.navbar-brand {
    font-family: 'Cinzel', serif;
    /* Premium Font */
    font-size: 28px;
    font-weight: 700;
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-link {
    color: #e0e0e0 !important;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section Enhancements */
.hero-section {
    /* Premium Dark Studio Background (No Image) */
    background: radial-gradient(circle at center, #2c3e50 0%, #1a1a1a 40%, #000000 100%) !important;
    /* Simple noise texture for realism */
    background-image: radial-gradient(circle at center, #2c3e50 0%, #1a1a1a 40%, #000000 100%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E") !important;
    background-blend-mode: overlay;
    min-height: 100vh;
    /* Full viewport height for impact */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    background-color: #333;
    margin-top: -80px;
    /* Counteract fixed navbar */
    padding-top: 80px;
}

.brand-logo-large {
    font-family: 'Cinzel', serif;
    font-size: 80px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 10px;
    margin-bottom: 20px;

    /* Gold Gradient Text */
    background: linear-gradient(45deg, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    /* Animation */
    opacity: 0;
    animation: fadeUp 1s ease-out forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.section-padding {
    padding: 60px 0;
}

/* Pulse Button Animation */
.btn-pulse {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(229, 57, 53, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(229, 57, 53, 0);
    }
}

.card-car {
    border: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    /* Softer initial shadow */
    position: relative;
    border-radius: 15px;
    /* Rounded corners */
    overflow: hidden;
    /* For image zoom */
}

.card-car img {
    transition: transform 0.5s ease;
}

.card-car:hover img {
    transform: scale(1.05);
    /* Zoom image on hover */
}

.card-car:hover {
    transform: translateY(-10px);
    /* Float up */
    box-shadow: 0 15px 30px rgba(229, 57, 53, 0.15);
    /* Colored shadow */
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #FFD700, #FDB931);
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-custom {
    background: linear-gradient(135deg, var(--primary-color), #ff5252);
    color: white;
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.btn-custom:hover {
    background: linear-gradient(135deg, #d32f2f, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
    color: white;
}

footer {
    background-color: #111;
    color: #888;
    padding: 40px 0;
}

/* Added for Page Details */
.page-header {
    background-color: #333;
    padding: 100px 0;
    color: #fff;
    position: relative;
    margin-bottom: 50px;
}

.aboutus_bg {
    background: #444;
    /* Fallback if no image */
}

.page-heading h1 {
    font-size: 36px;
    font-weight: 700;
}

.dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-header_wrap {
    position: relative;
    z-index: 2;
}

.coustom-breadcrumb {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.coustom-breadcrumb li {
    display: inline-block;
    font-size: 16px;
}

.coustom-breadcrumb li a {
    color: #ddd;
    text-decoration: none;
}

.coustom-breadcrumb li:after {
    content: "/";
    margin: 0 10px;
    color: #999;
}

.coustom-breadcrumb li:last-child:after {
    content: "";
}

.section-padding {
    padding: 120px 0 80px 0;
    /* Increased top padding to clear Navbar */
}

.sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    /* Offset to sit below navbar */
    z-index: 10;
}


/* Old Contact Styles Removed - Replaced by Premium Section */

/* Form Controls & Buttons */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.btn {
    transition: all 0.3s ease;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Utilities */
.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
}

.text-center {
    text-align: center !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 180px 0 60px 0;
        /* Increased top padding to clear navbar */
    }

    .page-heading h1 {
        font-size: 28px;
    }

    .gray-bg {
        padding: 20px;
    }

    .contact_detail {
        margin-top: 40px;
    }

    .section-padding {
        padding: 40px 0;
    }

    /* Hero Section Fixes */
    .brand-logo-large {
        font-size: 32px !important;
        letter-spacing: 2px !important;
        margin-bottom: 10px;
        word-wrap: break-word;
        /* Ensure it breaks if somehow still too long */
    }

    .hero-section {
        min-height: auto;
        padding: 200px 0 60px 0;
        /* Increased top padding to clear navbar */
        margin-top: 0;
        /* Reset negative margin on mobile */
    }

    .display-5 {
        font-size: 1.5rem !important;
    }

    .lead {
        font-size: 1rem;
    }

    /* Alignment Fixes */
    .text-end {
        text-align: left !important;
        margin-top: 10px;
    }

    /* Card & List Adjustments */
    .card-car {
        margin-bottom: 20px;
    }

    .navbar-collapse {
        background: #1e1e1e;
        padding: 10px;
        border-radius: 0 0 10px 10px;
        margin-top: 10px;
    }

    /* Currency Dropdown Mobile Fix */
    #currencySearch {
        width: 100%;
        font-size: 16px;
        /* Avoid zooom on input focus */
    }
}

/* RTL Support */
[dir="rtl"] .contact_detail li {
    padding-left: 0;
    padding-right: 50px;
}

[dir="rtl"] .contact_detail .icon_wrap {
    left: auto;
    right: 0;
}

[dir="rtl"] .text-end {
    text-align: left !important;
}

/* Accessibility & Polish */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(229, 57, 53, 0.25);
}

.card-car {
    backface-visibility: hidden;
}

/* Message Utilities */
.errorWrap {
    padding: 10px;
    margin: 0 0 20px 0;
    background: #fff;
    border-left: 4px solid #dd3d36;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .1);
}

.succWrap {
    padding: 10px;
    margin: 0 0 20px 0;
    background: #fff;
    border-left: 4px solid #5cb85c;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .1);
}

/* --- PREMIUM CURRENCY SEARCH --- */
#currencyDropdownMenu {
    padding: 0;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    overflow: hidden;
    min-width: 280px;
    animation: fadeInDropdown 0.3s ease;
    z-index: 10000 !important;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.currency-search-wrapper {
    background: #ffffff;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

#currencySearch {
    border-radius: 50px;
    border: 2px solid #eee;
    padding: 10px 20px;
    font-size: 14px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    box-shadow: none;
}

#currencySearch:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.1);
}

.currency-item .dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    color: #444;
    /* Darker Text */
    border-bottom: 1px solid #f9f9f9;
    transition: all 0.2s;
}

.currency-item .dropdown-item:hover {
    background-color: #fff5f5;
    /* Light red/primary tint */
    color: var(--primary-color);
    padding-left: 25px;
    /* Slide Effect */
    font-weight: 600;
}

/* Custom Scrollbar */
#currencyDropdownMenu::-webkit-scrollbar {
    width: 6px;
}

#currencyDropdownMenu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#currencyDropdownMenu::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

#currencyDropdownMenu::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}