/* 
 * W3C Valid CSS3 Stylesheet - Yes Baby!
 * Project: Koltuk / Halı Yıkama
 * Standard: 2026 WebFirmam Web Tasarım & Programlama Hizmetleri
 */

:root {
    --primary-color: #007bff;
    /* #007bff - Mavi */
    --primary-color-rgb: 0, 123, 255;
    --secondary-color: #17a2b8;
    /* #17a2b8 - Turkuaz */
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
}

/* FontAwesome Düzeltmesi (Font Ailesi & Özellikleri Açıkça Zorla) */
.fas,
.fa-solid,
.fab,
.fa-brands,
.far,
.fa-regular {
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.fas,
.fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.fab,
.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

.far,
.fa-regular {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}

/* Yardımcı Sınıflar */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

/* NProgress Özelleştirmesi */
#nprogress .bar {
    background: var(--primary-color) !important;
    height: 3px !important;
}

#nprogress .peg {
    box-shadow: 0 0 10px var(--primary-color), 0 0 5px var(--primary-color) !important;
}

#nprogress .spinner-icon {
    border-top-color: var(--primary-color) !important;
    border-left-color: var(--primary-color) !important;
}

/* Resim Karşılaştırma Slider */
img-comparison-slider {
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    --divider-color: var(--primary-color);
    --default-handle-color: var(--primary-color);
}

img-comparison-slider img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Üst Çubuk */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar a {
    color: white;
    text-decoration: none;
}

.top-bar i {
    margin-right: 5px;
}

/* Navigasyon Çubuğu */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 50px;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color);
    margin: 0 10px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* CTA Butonu */
.btn-cta {
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-cta:hover {
    background-color: #138496;
    color: white;
    transform: translateY(-2px);
}

/* Kahraman / Slider */
.hero-section {
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    transition: transform 15s linear;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Hizmet Kartları */
.service-card {
    border: none;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: #222;
    color: #ccc;
    padding: 50px 0 0;
}

footer h5 {
    color: white;
    margin-bottom: 20px;
}

footer ul {
    padding-left: 0;
    list-style: none;
}

footer ul li {
    margin-bottom: 10px;
}

footer a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

footer a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    background-color: #111;
    padding: 20px 0;
    margin-top: 50px;
}

/* Yüzen Butonlar */
.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.btn-whatsapp-float:hover {
    color: white;
    background-color: #128c7e;
}

/* Mobil Sabit Aksiyon Çubuğu */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none;
    padding: 10px 15px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
}

.mobile-sticky-bar .btn {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Animasyonlar */
@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.carousel-item.active .hero-section {
    animation: kenBurns 15s linear infinite alternate;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.carousel-item.active .hero-content h1 {
    animation: fadeInUp 0.8s ease-out both;
    animation-delay: 0.2s;
}

.carousel-item.active .hero-content p {
    animation: fadeInUp 0.8s ease-out both;
    animation-delay: 0.4s;
}

.carousel-item.active .hero-content .d-flex {
    animation: fadeInUp 0.8s ease-out both;
    animation-delay: 0.6s;
}

@keyframes pulse-primary {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(var(--primary-color-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0);
    }
}

.pulse-animation {
    animation: pulse-primary 2s infinite;
}

/* Premium Buton Efektleri */
.btn-primary.rounded-pill {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.3);
}

.btn-primary.rounded-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.5);
}

.btn-success.rounded-pill {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success.rounded-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.5);
}

/* Carousel */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: .8s;
    transition-property: opacity;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

.carousel-fade .carousel-item-start,
.carousel-fade .carousel-item-end.active {
    opacity: 0;
}

/* Medya Sorguları */
@media (max-width: 768px) {
    .mobile-sticky-bar {
        display: flex;
        gap: 10px;
    }

    .floating-btn {
        bottom: 80px !important;
    }

    .btn-whatsapp-float {
        display: none !important;
    }

    /* Footer-bottom'a padding ekleyerek sticky bar'ın üstünde yer açıyoruz */
    .footer-bottom {
        padding-bottom: 20px !important;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* Bölgesel Sayfa Stilleri (bolge.php'den Taşındı) */
.overlay-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: translateY(-3px);
}