/* Modern Styles for Keskin Oto Kurtarma Çekici */

:root {
    --primary-color: #202C45;
    /* Dark blue for professionalism */
    --secondary-color: #0d6efd;
    /* Blue for trust */
    --accent-color: #dc3545;
    /* Red for urgency */
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #198754;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 100px;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    overflow-x: hidden;
    padding-top: 90px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    padding: 12px 24px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #1a2438;
    color: white;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #0b5ed7;
    color: white;
}

.btn-danger {
    background: var(--accent-color);
    color: white;
}

.btn-danger:hover {
    background: #bb2d3b;
    color: white;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #157347;
    color: white;
}

.btn-warning {
    background: var(--warning-color);
    color: #212529;
}

.btn-warning:hover {
    background: #ffca2c;
    color: #212529;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
    background: white !important;
    transition: var(--transition);
    z-index: 1030;
}

.navbar>.container {
    position: relative;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-brand img {
    border-radius: 8px;
    margin-right: 12px;
    max-height: 80px;
    width: auto !important;
    height: auto !important;
    max-width: 200px;
    object-fit: contain;
}

.nav-link {
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    color: var(--dark-color) !important;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link:not(.dropdown-toggle):after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:not(.dropdown-toggle):hover:after,
.nav-link:not(.dropdown-toggle).active:after {
    width: 70%;
}

.dropdown-menu {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: white !important;
}

/* Hero Slider */
.hero-section {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.carousel-item {
    height: 80vh;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-caption {
    background: rgba(32, 44, 69, 0.85);
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 600px;
    text-align: left;
    left: 10%;
    right: auto;
    bottom: 20%;
}

.carousel-caption h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.carousel-caption p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(32, 44, 69, 0.5);
    border-radius: 50%;
    padding: 20px;
    width: 30px;
    height: 30px;
}

/* Emergency Call Button */
.emergency-section {
    position: relative;
    margin: -50px 0 50px;
    z-index: 10;
}

.emergency-btn {
    background: var(--accent-color);
    color: white;
    border-radius: 50px;
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.4);
    transition: var(--transition);
}

.emergency-btn:hover {
    background: #bb2d3b;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(220, 53, 69, 0.5);
}

.emergency-btn i {
    margin-right: 10px;
    font-size: 1.5rem;
}

/* Section Styling */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Services Cards */
.services-section {
    background: #f8f9fa;
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    border: none;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-card .card-body {
    padding: 30px;
    text-align: center;
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover i {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.service-card .card-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Emergency Image */
.emergency-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.emergency-image img {
    transition: var(--transition);
    width: 100%;
    height: auto;
    max-width: 100%;
}

.emergency-image:hover img {
    transform: scale(1.05);
}

/* Quick Contact */
.contact-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    text-align: center;
    border: none;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-card .card-body {
    padding: 30px;
}

.contact-card i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-card .bi-telephone-fill {
    color: var(--primary-color);
}

.contact-card .bi-whatsapp {
    color: #25d366;
}

.contact-card .bi-envelope-fill {
    color: var(--warning-color);
}

/* Blog Section */
.blog-section {
    background: #f8f9fa;
}

.blog-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: none;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.blog-card-img {
    height: 220px;
    width: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block;
}

.blog-card .card-body {
    padding: 25px;
    flex: 1 1 auto;
}

.blog-card .card-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.blog-card .card-text {
    color: #666;
    margin-bottom: 20px;
    overflow-wrap: anywhere;
}

.blog-card .card-title {
    overflow-wrap: anywhere;
}

.blog-card .card-footer {
    margin-top: auto;
}

/* Testimonials */
.testimonials-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.testimonials-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjEpIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3BhdHRlcm4pIi8+PC9zdmc+');
    opacity: 0.1;
}

.testimonials-section h2 {
    color: white;
}

.testimonials-section h2:after {
    background: white;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.testimonial-card .card-body {
    padding: 30px;
    text-align: center;
}

.testimonial-card .bi-star-fill {
    color: #ffc107;
    font-size: 1.2rem;
    margin: 0 2px;
}

.testimonial-card .card-text {
    font-style: italic;
    margin: 20px 0;
    font-size: 1.1rem;
}

.testimonial-card .card-title {
    color: white;
    font-weight: 600;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: var(--transition);
}

.testimonials-section:hover .carousel-control-prev,
.testimonials-section:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

/* Location Section */
.location-section {
    text-align: center;
    padding: 60px 0;
}

.location-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.location-section .lead {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 70px 0 0;
    position: relative;
}

.footer h5 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul li i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer .bi {
    font-size: 1.5rem;
    transition: var(--transition);
}

.footer .bi:hover {
    transform: translateY(-5px);
    color: var(--accent-color);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 50px;
    text-align: center;
}

/* WhatsApp Floating Button */
/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-section {
        height: 70vh;
    }

    .carousel-item {
        height: 70vh;
    }

    .carousel-caption {
        max-width: 80%;
        bottom: 15%;
        padding: 20px;
    }

    .carousel-caption h2 {
        font-size: 2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .navbar-brand img {
        max-height: 60px;
        width: auto !important;
        height: auto !important;
    }

    /* ===== Mobile Menu Enhancements ===== */
    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-toggler {
        border: 2px solid var(--primary-color);
        border-radius: 8px;
        padding: 6px 10px;
        outline: none !important;
        box-shadow: none !important;
        transition: all 0.3s ease;
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1031;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(32, 44, 69, 0.2) !important;
    }

    .navbar-toggler .navbar-toggler-icon {
        width: 22px;
        height: 22px;
    }

    /* Collapsed menu container */
    .navbar-collapse {
        background: white;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        margin-top: 10px;
        padding: 10px 0;
        max-height: 80vh;
        overflow-y: auto;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
    }

    /* Nav links: full-width, left-aligned */
    .navbar-nav .nav-item {
        border-bottom: 1px solid #f0f0f0;
    }

    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        padding: 12px 20px !important;
        font-size: 1rem;
    }

    /* Remove hover underline on mobile, use background instead */
    .nav-link:after {
        display: none;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(32, 44, 69, 0.05);
    }

    /* Dropdown menus: inline, no shadow, full-width */
    .dropdown-menu {
        border: none;
        box-shadow: none;
        border-radius: 0;
        background: #f8f9fa;
        padding: 0;
        margin: 0;
    }

    .dropdown-item {
        padding: 10px 20px 10px 35px;
        font-size: 0.95rem;
    }

    .dropdown-item:hover {
        padding-left: 40px;
    }

    .dropdown-divider {
        margin: 0;
    }

    /* Phone buttons: stack vertically on mobile */
    .navbar-nav.ms-3 {
        margin-left: 0 !important;
        padding: 15px 20px;
        border-top: 1px solid #f0f0f0;
    }

    .navbar-phone-buttons {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .navbar-phone-buttons a,
    .navbar-phone-buttons .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Gallery filter tabs: smaller on tablets */
    .gallery-filter-btn {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
    }

    .carousel-item {
        height: 60vh;
    }

    .carousel-caption {
        max-width: 90%;
        left: 5%;
        bottom: 10%;
        padding: 15px;
    }

    .carousel-caption h2 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .emergency-section {
        margin: -30px 0 30px;
    }

    .emergency-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .section {
        padding: 50px 0;
    }

    .navbar-brand img {
        max-height: 55px;
        width: auto !important;
        height: auto !important;
    }

    .navbar-brand span {
        font-size: 1.1rem !important;
    }

    /* Gallery filter tabs wrap */
    .gallery-filter-tabs {
        gap: 6px;
    }

    .gallery-filter-btn {
        padding: 7px 14px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 50vh;
    }

    .carousel-item {
        height: 50vh;
    }

    .carousel-caption {
        display: none;
    }

    .emergency-section {
        margin: -20px 0 20px;
    }

    .emergency-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .section {
        padding: 40px 0;
    }

    h1 {
        font-size: 1.7rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .service-card .card-body {
        padding: 20px;
    }

    .contact-card .card-body {
        padding: 20px;
    }

    .blog-card .card-body {
        padding: 20px;
    }

    .navbar-brand img {
        max-height: 50px;
        width: auto !important;
        height: auto !important;
    }

    .navbar-brand span {
        font-size: 0.95rem !important;
    }

    .nav-link {
        padding: 10px 15px !important;
        font-size: 0.9rem;
    }

    .dropdown-item {
        padding: 8px 15px 8px 30px;
        font-size: 0.85rem;
    }

    /* Gallery filter: even more compact */
    .gallery-filter-tabs {
        gap: 5px;
    }

    .gallery-filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .gallery-filter-btn i {
        display: none;
    }
}

/* Blog Section Specific */
.card-img-top {
    height: auto;
    object-fit: contain;
}

/* Gallery Section */
.gallery-section {
    background: #f8f9fa;
}

/* Gallery Filter Tabs */
.gallery-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gallery-filter-btn {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 50px;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(32, 44, 69, 0.3);
}

.gallery-grid-item.gallery-hidden {
    display: none !important;
}

.gallery-grid-front {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-grid-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    aspect-ratio: 4/3;
    background: #e9ecef;
}

.gallery-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-grid-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(32, 44, 69, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-grid-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    text-align: center;
    color: white;
}

.gallery-overlay-content i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.gallery-overlay-content span {
    font-size: 1rem;
    font-weight: 600;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
}

.gallery-placeholder i {
    font-size: 3rem;
    color: #adb5bd;
}

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
    color: var(--accent-color);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 15px;
    text-align: center;
}

/* Gallery Responsive */
@media (max-width: 768px) {
    .gallery-grid-front {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .gallery-grid-front {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-overlay-content i {
        font-size: 1.8rem;
    }

    .gallery-overlay-content span {
        font-size: 0.85rem;
    }
}