/* Genel Stiller */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
}

.text-primary {
    color: #0056b3 !important;
}

.bg-primary {
    background-color: #0056b3 !important;
}

.btn-primary {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #004494;
    border-color: #004494;
}

.btn-outline-primary {
    color: #0056b3;
    border-color: #0056b3;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #0056b3;
    color: white;
}

/* Header */
.navbar {
    padding: 10px 0;
}

.navbar-light .navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 10px 15px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: #0056b3;
}

.navbar-light .navbar-nav .active>.nav-link {
    color: #0056b3;
}

/* Dropdown menu mobile improvements */
@media (max-width: 991px) {
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 20px;
        display: none;
        /* JS kontrolü için başlangıçta gizli */
    }

    .dropdown-menu.mobile-friendly {
        width: 100%;
        background-color: #f8f9fa;
    }

    .dropdown-toggle {
        position: relative;
    }

    /* Mobil cihazlarda dropdown açık olduğunda toggle butonun görünümünü değiştir */
    .dropdown-toggle.active-dropdown:after {
        transform: rotate(180deg);
    }

    /* Dokunma alanını arttırmak için padding */
    .dropdown-item {
        padding: 10px 15px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

    /* Mobil dropdown arka planını güçlendir */
    .dropdown-menu {
        background-color: #f1f1f1;
        border-radius: 0.25rem;
    }

    .dropdown-menu .dropdown-item {
        padding: 8px 15px;
        border-bottom: 1px solid #f1f1f1;
    }

    .dropdown-menu .dropdown-item:last-child {
        border-bottom: none;
    }

    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
    }

    .dropdown-toggle::after {
        float: right;
        margin-top: 10px;
    }
}

/* Carousel/Banner */
.banner-section .carousel-item {
    height: 500px;
}

.banner-section .carousel-item img {
    object-fit: cover;
    height: 100%;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 5px;
    bottom: 40px;
}

.carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Services Section */
.services-section .card {
    transition: all 0.3s ease;
}

.services-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Popular Products */
.popular-products .card {
    transition: all 0.3s ease;
}

.popular-products .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.popular-products .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 26px;
    line-height: 50px;
    z-index: 1000;
    /* z-index arttırıldı */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1);
}

/* Footer */
footer {
    font-size: 0.9rem;
    padding-bottom: 80px;
    /* WhatsApp butonuna yer açmak için bottom padding arttırıldı */
}

footer h4 {
    margin-bottom: 20px;
    font-weight: 600;
}

footer .social-links a {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: inline-block;
    width: 32px;
    height: 32px;
    text-align: center;
    line-height: 32px;
}

footer .social-links a:hover {
    opacity: 0.7;
}

/* Footer stilleri */
footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 10px;
    transition: all 0.3s;
}

footer .social-links a:hover {
    transform: translateY(-3px);
    opacity: 1;
    background-color: #0056b3 !important;
}

footer .footer-links li {
    margin-bottom: 10px;
    transition: all 0.3s;
}

footer .footer-links li a:hover {
    padding-left: 5px;
    color: #0056b3 !important;
}

/* Footer için mobil düzenlemeler */
@media (max-width: 768px) {
    footer {
        padding-bottom: 100px;
    }

    footer .col-md-4 {
        margin-bottom: 30px;
    }

    footer h4 {
        margin-bottom: 15px;
        font-size: 1.2rem;
    }

    footer .list-unstyled li {
        margin-bottom: 10px;
        font-size: 0.9rem;
    }

    footer hr {
        margin: 15px 0;
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .banner-section .carousel-item {
        height: 400px;
    }

    .carousel-caption h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .banner-section .carousel-item {
        height: 250px;
    }

    .carousel-caption {
        bottom: 0;
        padding: 8px;
        position: relative;
        background-color: rgba(0, 0, 0, 0.7);
        margin-top: -80px;
        width: 100%;
        left: 0;
        right: 0;
    }

    .carousel-caption h2 {
        font-size: 1.2rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .carousel-caption .btn {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .why-choose-us .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .why-choose-us .me-3 {
        margin-right: 0 !important;
        margin-bottom: 15px;
    }
}