/* ERN Auto Service - Kırmızı Siyah Beyaz Tema */
:root {
    --primary-color: #e31e24;
    --secondary-color: #c41a1f;
    --accent-color: #ff3b3b;
    --dark-bg: #1a1a1a;
    --darker-bg: #0d0d0d;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --gradient-primary: linear-gradient(135deg, #e31e24 0%, #8b0000 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--light-bg);
    overflow-x: hidden;
}

/* Modern Navbar - Siyah Tema */
.navbar {
    background: var(--darker-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 3px solid var(--primary-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
}

.navbar.scrolled {
    padding: 0.3rem 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 40px;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-nav {
    align-items: center;
    gap: 0.1rem;
}

.nav-link {
    font-weight: 600;
    font-size: 0.78rem;
    margin: 0 0.08rem;
    padding: 0.45rem 0.7rem !important;
    color: var(--white) !important;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(227, 30, 36, 0.1);
}

.navbar .btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 0.55rem 1.1rem;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--white) !important;
}

.navbar .btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(227, 30, 36, 0.6);
}

.navbar .btn-primary i {
    margin-right: 0.5rem;
}

.navbar-toggler {
    border: 2px solid rgba(227, 30, 36, 0.5);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(227, 30, 36, 0.25);
}

.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%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Slider - Header altında başlasın */
.carousel {
    position: relative;
    overflow: hidden;
    margin-top: 73px; /* Navbar yüksekliği kadar */
}

.carousel-item {
    position: relative;
    height: calc(100vh - 73px);
    min-height: 500px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: transform 0.5s ease;
}

.carousel-item:hover img {
    transform: scale(1.02);
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    bottom: 15%;
    left: 10%;
    right: 10%;
    text-align: left;
    border-left: 4px solid var(--primary-color);
}

.carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}

.carousel-caption p {
    font-size: 1.1rem;
    opacity: 0.9;
    color: var(--white);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    opacity: 1;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--white);
    margin: 0 5px;
}

.carousel-indicators button.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Hero Section (Slider yoksa) */
.hero-section {
    margin-top: 73px;
    height: calc(100vh - 73px);
    min-height: 500px;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    position: relative;
}

.hero-section::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 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23e31e24" stroke-width="0.5" opacity="0.1"/></svg>') repeat;
    background-size: 100px 100px;
}

/* Modern Cards - Kırmızı Aksan */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    background: var(--white);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-body {
    padding: 2rem;
}

.card i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.card:hover i {
    transform: scale(1.1);
}

/* =============== ADMIN PANEL =============== */
.admin-body {
    background: var(--gradient-dark);
    color: #e5e7eb;
}

.admin-body .card {
    border-radius: 15px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border: 1px solid rgba(227, 30, 36, 0.2);
}

.admin-body .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(227, 30, 36, 0.3);
    color: #e5e7eb;
}

.admin-navbar {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 3px solid var(--primary-color);
}

.admin-navbar .navbar-brand {
    font-weight: 800;
    color: var(--white) !important;
}

.admin-navbar .navbar-brand i {
    color: var(--primary-color);
}

.admin-navbar .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9) !important;
}

.admin-navbar .nav-link:hover {
    background: rgba(227, 30, 36, 0.2);
    color: var(--primary-color) !important;
}

.admin-navbar .dropdown-menu {
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid rgba(227, 30, 36, 0.3);
}

.admin-navbar .dropdown-item {
    color: #e5e7eb;
}

.admin-navbar .dropdown-item:hover {
    background: rgba(227, 30, 36, 0.3);
}

.admin-body .table {
    color: #e5e7eb;
}

.admin-body .table thead {
    background: rgba(227, 30, 36, 0.2);
}

.admin-body .table-striped>tbody>tr:nth-of-type(odd)>* {
    --bs-table-accent-bg: rgba(0, 0, 0, 0.3);
}

/* Sections */
section {
    padding: 5rem 0;
    position: relative;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Modern Buttons */
.btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(227, 30, 36, 0.4);
    background: var(--secondary-color);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Feature Circles */
.rounded-circle.bg-primary {
    background: var(--gradient-primary) !important;
}

/* Modern Footer */
footer {
    background: var(--darker-bg);
    color: var(--white);
    padding: 3rem 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

footer h5 {
    color: var(--white);
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

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

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 991px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand img {
        height: 40px;
    }
    
    .carousel {
        margin-top: 65px;
    }
    
    .carousel-item {
        height: calc(100vh - 65px);
    }
    
    .hero-section {
        margin-top: 65px;
        height: calc(100vh - 65px);
    }
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 35px;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem;
    }
    
    .navbar .btn-primary {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }
    
    .carousel-caption h2 {
        font-size: 1.8rem;
    }
    
    .carousel-caption {
        padding: 1.5rem;
        bottom: 10%;
        left: 5%;
        right: 5%;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    section {
        padding: 3rem 0;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .navbar .btn-primary {
        width: 100%;
        margin-top: 1rem;
    }
    
    .carousel-item {
        min-height: 400px;
    }
}

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

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(227, 30, 36, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Star Icon Color Fix */
.fa-star {
    color: var(--primary-color) !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: var(--primary-color) !important;
}
