/* ================================
   MEHMET ALİ BALLI OTOMOTİV
   Premium Dark Theme CSS
   ================================ */

:root {
    --primary-color: #010409;
    --primary-light: #161b22;
    --primary-medium: #21262d;
    --accent-color: #c9a227;
    --accent-hover: #ddb832;
    --accent-glow: rgba(201, 162, 39, 0.3);
    --bg-dark: #0d1117;
    --bg-card: #161b22;
    --bg-elevated: #21262d;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --border-color: #30363d;
    --gradient-primary: linear-gradient(135deg, #010409 0%, #161b22 100%);
    --gradient-accent: linear-gradient(135deg, #c9a227 0%, #e8c547 100%);
    --shadow-sm: 0 2px 15px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.4);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(201, 162, 39, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--bg-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ================================
   MODERN NAVBAR
   ================================ */
.navbar-modern {
    background: transparent;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar-modern.scrolled {
    background: rgba(1, 4, 9, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.brand-sub {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.navbar-modern .nav-link {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 18px !important;
    position: relative;
    transition: var(--transition);
}

.navbar-modern .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.navbar-modern .nav-link:hover,
.navbar-modern .nav-link.active {
    color: var(--accent-color);
}

.navbar-modern .nav-link:hover::after,
.navbar-modern .nav-link.active::after {
    transform: scaleX(1);
}

.btn-nav-call {
    background: var(--accent-color);
    color: var(--primary-color) !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 2px solid var(--accent-color);
}

.btn-nav-call:hover {
    background: transparent;
    color: var(--accent-color) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Mobile Navbar */
.navbar-toggler {
    border: none;
    padding: 10px;
    width: 44px;
    height: 44px;
    position: relative;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
}

.navbar-toggler:focus {
    box-shadow: none;
    border: none;
    outline: none;
}

.toggler-icon {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    position: relative;
    transition: var(--transition);
    margin: 0 auto;
}

.toggler-icon::before,
.toggler-icon::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: #fff;
    left: 0;
    transition: var(--transition);
}

.toggler-icon::before { top: -7px; }
.toggler-icon::after { top: 7px; }

.navbar-toggler[aria-expanded="true"] .toggler-icon {
    background: transparent;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon::before {
    top: 0;
    transform: rotate(45deg);
    background: var(--accent-color);
}

.navbar-toggler[aria-expanded="true"] .toggler-icon::after {
    top: 0;
    transform: rotate(-45deg);
    background: var(--accent-color);
}

.navbar-collapse {
    background: var(--primary-color);
    margin: 15px -15px -15px;
    padding: 20px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    border-top: 1px solid var(--border-color);
}

.navbar-nav .nav-item {
    margin: 5px 0;
}

.navbar-nav .nav-link {
    padding: 12px 15px !important;
    border-radius: var(--radius-sm);
}

.navbar-nav .nav-link:hover {
    background: var(--bg-elevated);
}

/* ================================
   HERO SECTION
   ================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&q=80&w=1920') center/cover;
    opacity: 0.08;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: rgba(201, 162, 39, 0.12);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-title span {
    color: var(--accent-color);
    display: block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
    max-width: 550px;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.btn-hero-primary {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-hero-primary:hover {
    background: var(--accent-hover);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.4);
}

.btn-hero-secondary {
    background: transparent;
    color: #fff;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid rgba(255,255,255,0.25);
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: var(--accent-color);
}

.hero-stats {
    display: flex;
    gap: 45px;
    margin-top: 55px;
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

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

.hero-stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.hero-stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
}

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

/* ================================
   FEATURES SECTION
   ================================ */
.features-section {
    padding: 80px 0;
    background: var(--bg-dark);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.feature-card {
    background: var(--bg-card);
    padding: 35px 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--accent-color);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, var(--accent-color), #e8c547);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-size: 1.8rem;
    color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(201, 162, 39, 0.3);
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ================================
   ABOUT SECTION
   ================================ */
.about-section {
    padding: 80px 0;
    background: var(--bg-card);
}

.section-tag {
    display: inline-block;
    background: rgba(201, 162, 39, 0.1);
    color: var(--accent-color);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 18px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, var(--bg-card));
    pointer-events: none;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

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

.about-content h3 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.about-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.about-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.about-list li i {
    width: 28px;
    height: 28px;
    background: rgba(201, 162, 39, 0.15);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ================================
   CARS GRID SECTION
   ================================ */
.cars-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

.cars-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 45px;
    flex-wrap: wrap;
    gap: 18px;
}

.cars-count {
    background: rgba(201, 162, 39, 0.1);
    color: var(--accent-color);
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.car-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.car-image-wrapper {
    position: relative;
    padding-top: 68%;
    overflow: hidden;
}

.car-image-wrapper .carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.car-image-wrapper .carousel-inner,
.car-image-wrapper .carousel-item {
    height: 100%;
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.car-card:hover .car-image {
    transform: scale(1.08);
}

.car-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 7px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.car-badge.sold {
    background: #da3633;
    color: #fff;
}

.car-details {
    padding: 22px;
}

.car-brand-model {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.car-year {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.car-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 14px 0;
}

.car-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.car-price span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.btn-car-detail {
    width: 100%;
    background: var(--bg-elevated);
    color: var(--text-primary);
    padding: 13px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-top: 18px;
    border: 1px solid var(--border-color);
}

.btn-car-detail:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

/* ================================
   DETAIL PAGE
   ================================ */
.detail-header {
    background: var(--gradient-primary);
    padding: 130px 0 50px;
    margin-top: -70px;
    border-bottom: 1px solid var(--border-color);
}

.detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.detail-title span {
    color: var(--accent-color);
}

.detail-price {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 14px 30px;
    border-radius: var(--radius-md);
    font-size: 1.8rem;
    font-weight: 800;
    display: inline-block;
}

.gallery-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 35px;
    border: 1px solid var(--border-color);
}

.carousel-item img {
    height: 480px;
    object-fit: cover;
    width: 100%;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 15px;
    opacity: 0.8;
    border: 1px solid var(--border-color);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--accent-color);
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 50%;
    width: 20px;
    height: 20px;
}

.info-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    margin-bottom: 28px;
    border: 1px solid var(--border-color);
}

.info-card .info-text,
.info-card .info-text p {
    color: #ffffff !important;
    opacity: 1;
}

.info-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--accent-color);
}

.info-card p {
    color: var(--text-primary) !important;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.info-value {
    font-weight: 700;
    color: var(--text-primary);
}

.btn-contact-hero {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 16px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    display: block;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    width: 100%;
    margin-top: 22px;
}

.btn-contact-hero:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.3);
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    margin-bottom: 25px;
}

.breadcrumb-item a {
    color: var(--text-secondary) !important;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--accent-color) !important;
}

.breadcrumb-item.active {
    color: var(--text-primary) !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}

/* ================================
   MODERN FOOTER
   ================================ */
.footer-modern {
    background: var(--primary-color);
    color: #fff;
    border-top: 1px solid var(--border-color);
}

.footer-main {
    padding: 70px 0 40px;
    background: linear-gradient(180deg, var(--primary-color) 0%, #050810 100%);
}

.footer-brand h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 22px;
    font-size: 0.9rem;
    line-height: 1.7;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 42px;
    height: 42px;
    background: var(--bg-elevated);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 22px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    display: inline-block;
    padding: 3px 0;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 8px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-contact li i {
    color: var(--accent-color);
    font-size: 1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact li a:hover {
    color: var(--accent-color);
}

.working-hours {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 18px;
    border: 1px solid var(--border-color);
}

.working-hours .day {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.working-hours .day:last-child {
    border-bottom: none;
}

.working-hours .day span:first-child {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.working-hours .day span:last-child {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 22px 0;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

/* ================================
   FLOATING BUTTONS
   ================================ */
.floating-menu {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    transition: var(--transition);
    position: relative;
    animation: floatIn 0.5s ease forwards;
    border: none;
    cursor: pointer;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.float-btn:nth-child(1) { animation-delay: 0.1s; }
.float-btn:nth-child(2) { animation-delay: 0.2s; }
.float-btn:nth-child(3) { animation-delay: 0.3s; }

.float-btn:hover {
    transform: scale(1.12);
    color: #fff;
}

.float-btn.whatsapp { 
    background: linear-gradient(135deg, #25D366, #20b857); 
}
.float-btn.phone { 
    background: linear-gradient(135deg, var(--accent-color), #ddb832); 
    color: var(--primary-color); 
}
.float-btn.location { 
    background: linear-gradient(135deg, #EA4335, #d33426); 
}

.float-btn .tooltip-text {
    position: absolute;
    right: 68px;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.float-btn:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
    right: 65px;
}

/* Search Bar */
.search-container {
    max-width: 400px;
    width: 100%;
}

.search-container .form-control {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 50px 0 0 50px;
    padding-left: 20px;
}

.search-container .form-control:focus {
    background: var(--bg-elevated);
    border-color: var(--accent-color);
    box-shadow: none;
}

.btn-search {
    background: var(--accent-color);
    color: var(--primary-color);
    border: 1px solid var(--accent-color);
    padding: 0 25px;
    transition: var(--transition);
    border-radius: 0 50px 50px 0;
}

.btn-search:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--primary-color);
}

/* Home Carousel Improvements */
.car-card .carousel,
.car-card .carousel-inner,
.car-card .carousel-item {
    height: 100%;
}

.car-card .carousel-item {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--bg-dark); /* Prevent white flash */
}

.car-card .car-image {
    transition: filter 0.4s ease, transform 0.6s ease;
}

.car-card:hover .car-image {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* Utility */
.text-right { text-align: right !important; }
.bg-purple { background-color: #6f42c1 !important; }

/* Responsive Improvements */
@media (max-width: 991px) {
    .search-container {
        max-width: 100%;
        margin-bottom: 20px;
        order: 2;
    }
    .cars-header {
        flex-direction: column;
        align-items: stretch;
    }
    .cars-count {
        align-self: flex-start;
        order: 3;
    }
}


/* Large Desktop */
@media (max-width: 1399px) {
    .hero-title { font-size: 3.5rem; }
    .hero-stats { gap: 40px; }
}

/* Desktop */
@media (max-width: 1199px) {
    .hero-title { font-size: 3rem; }
    .hero-stats { gap: 35px; }
    .hero-stat-number { font-size: 2.2rem; }
    .about-image img { height: 350px; }
}

/* Tablet */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding: 140px 0 80px;
    }
    
    .hero-title { 
        font-size: 2.6rem; 
    }
    
    .hero-subtitle { 
        font-size: 1.05rem; 
        max-width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .hero-stat {
        flex: 0 0 calc(33.333% - 20px);
        text-align: center;
    }
    
    .section-title { font-size: 2rem; }
    
    .about-section .row {
        flex-direction: column-reverse;
    }
    
    .about-image img {
        height: 300px;
        margin-bottom: 30px;
    }
    
    .detail-title { font-size: 1.9rem; }
    .detail-price { font-size: 1.5rem; padding: 12px 24px; }
    
    .carousel-item img { height: 380px; }
    
    .floating-menu {
        right: 15px;
        bottom: 15px;
    }
    
    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .float-btn .tooltip-text {
        display: none;
    }
}

/* Mobile Large */
@media (max-width: 767px) {
    .navbar-brand img {
        height: 42px;
    }
    
    .brand-name { font-size: 1.1rem; }
    .brand-sub { font-size: 0.55rem; letter-spacing: 2px; }
    
    .hero-section {
        padding: 120px 0 70px;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 6px 16px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    
    .hero-stats {
        gap: 20px;
        margin-top: 40px;
    }
    
    .hero-stat {
        flex: 0 0 calc(33.333% - 14px);
    }
    
    .hero-stat-number {
        font-size: 1.7rem;
    }
    
    .hero-stat-label {
        font-size: 0.7rem;
    }
    
    .features-section,
    .about-section,
    .cars-section {
        padding: 60px 0;
    }
    
    .feature-card {
        padding: 28px 20px;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .about-content h3 {
        font-size: 1.5rem;
    }
    
    .cars-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .car-card {
        margin-bottom: 10px;
    }
    
    .detail-header {
        padding: 120px 0 40px;
    }
    
    .detail-title {
        font-size: 1.6rem;
    }
    
    .detail-price {
        font-size: 1.3rem;
        padding: 10px 20px;
    }
    
    .detail-header .row {
        text-align: center !important;
    }
    
    .detail-header .text-lg-end {
        margin-top: 20px;
    }
    
    .carousel-item img {
        height: 280px;
    }
    
    .info-card {
        padding: 22px;
    }
    
    .info-card h4 {
        font-size: 1.15rem;
    }
    
    .info-row {
        padding: 14px 0;
    }
    
    .footer-main {
        padding: 50px 0 30px;
    }
    
    .footer-brand {
        text-align: center;
        margin-bottom: 35px;
    }
    
    .footer-brand img {
        display: block;
        margin: 0 auto 15px;
    }
    
    .footer-title {
        text-align: center;
        margin-top: 10px;
    }
    
    .footer-links,
    .footer-contact {
        text-align: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .working-hours {
        margin-top: 10px;
    }
    
    .working-hours .day {
        justify-content: center;
        gap: 20px;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom .text-md-end {
        text-align: center !important;
        margin-top: 10px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.9rem;
    }
    
    .hero-stat {
        flex: 0 0 100%;
        margin-bottom: 15px;
    }
    
    .hero-stat:last-child {
        margin-bottom: 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .about-image img {
        height: 220px;
    }
    
    .detail-title {
        font-size: 1.4rem;
    }
    
    .carousel-item img {
        height: 220px;
    }
    
    .floating-menu {
        right: 12px;
        bottom: 12px;
        gap: 10px;
    }
    
    .float-btn {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
}

/* Extra Small */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.7rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 14px 28px;
        font-size: 0.9rem;
    }
    
    .feature-card {
        padding: 24px 16px;
    }
    
    .car-details {
        padding: 18px;
    }
    
    .car-brand-model {
        font-size: 1.1rem;
    }
    
    .car-price {
        font-size: 1.3rem;
    }
}
