/**
 * Acarsuaritma.net - Enhanced Responsive CSS
 * Mobil ve tablet uyumluluğu - Optimize edilmiş versiyon
 */

/* ===== CSS Variables for Responsive ===== */
:root {
    --header-height: 70px;
    --mobile-header-height: 60px;
    --fixed-button-size: 60px;
    --fixed-button-size-mobile: 50px;
}

/* ===== GLOBAL RESPONSIVE FIXES ===== */
* {
    -webkit-tap-highlight-color: transparent;
}

body {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== CONTAINER WIDTHS ===== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
    }
}

/* ===== LARGE DEVICES (992px - 1199px) ===== */
@media (max-width: 1199px) and (min-width: 992px) {
    /* Typography */
    .display-4 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    /* Hero Section */
    .hero-slide {
        padding: 80px 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    /* Stats */
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Features & Services */
    .feature-icon,
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

/* ===== TABLETS (768px - 991px) ===== */
@media (max-width: 991px) and (min-width: 768px) {
    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand img {
        height: 45px;
        width: 45px;
    }
    
    /* Typography */
    .display-4 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    /* Hero Section */
    .hero-slide {
        padding: 60px 0;
    }
    
    .min-vh-60 {
        min-height: 50vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
    }
    
    /* Products Grid */
    .product-image {
        height: 220px;
    }
    
    /* Stats Grid */
    .stats-grid {
        gap: 1.5rem;
    }
    
    .stat-box {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ===== MOBILE DEVICES (576px - 767px) ===== */
@media (max-width: 767px) and (min-width: 576px) {
    /* Navigation */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand img {
        height: 40px;
        width: 40px;
    }
    
    .navbar-brand span {
        font-size: 1.3rem;
    }
    
    /* Typography */
    .display-4 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero Section */
    .hero-slide {
        padding: 50px 0;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
    
    /* Products */
    .product-image {
        height: 200px;
    }
    
    /* Features */
    .feature-icon,
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ===== SMALL MOBILE DEVICES (< 576px) ===== */
@media (max-width: 575px) {
    /* Container padding */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.5rem 0;
        min-height: var(--mobile-header-height);
    }
    
    .navbar-brand img {
        height: 35px;
        width: 35px;
    }
    
    .navbar-brand span {
        font-size: 1.1rem;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
    }
    
    /* Mobile Menu */
    .navbar-collapse {
        position: fixed;
        top: var(--mobile-header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        max-height: calc(100vh - var(--mobile-header-height));
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1050;
    }
    
    .navbar-collapse.show {
        transform: translateX(0);
    }
    
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .nav-link {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .dropdown-menu {
        position: static !important;
        box-shadow: none !important;
        border: none;
        background: #f8f9fa;
        margin: 0;
        padding: 0;
    }
    
    .dropdown-item {
        padding: 0.75rem 2rem;
        font-size: 0.95rem;
    }
    
    /* Typography */
    body {
        font-size: 14px;
    }
    
    .display-4 {
        font-size: 1.5rem;
        font-weight: 600;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    h5 {
        font-size: 1rem;
    }
    
    .lead {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Hero Section */
    .hero-slide {
        padding: 40px 0;
        text-align: center;
    }
    
    .min-vh-60 {
        min-height: 400px;
    }
    
    .hero-content h1,
    .hero-content h2 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-content .lead {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
  margin-top: 60px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    /* Carousel Controls */
    .carousel-control-prev,
    .carousel-control-next {
        width: 15%;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }
    
    .carousel-indicators button {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
    
    /* Sections Spacing */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .py-4 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    /* Features Section */
    .feature-box {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-box h5 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-box p {
        font-size: 0.9rem;
    }
    
    /* Products Section */
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-content {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .product-category {
        font-size: 0.8rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .badge-discount {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
    
    /* Services Section */
    .service-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .service-card h4 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    /* Why Us Section */
    .why-us-item {
        margin-bottom: 1.5rem;
        padding: 0.75rem;
    }
    
    .why-us-item h5 {
        font-size: 1.1rem;
    }
    
    .why-us-item p {
        font-size: 0.85rem;
    }
    
    .icon-box {
        font-size: 1.25rem;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .stat-box {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* CTA Section */
    .cta-section {
        text-align: center;
    }
    
    .cta-section h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .cta-section .lead {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
    
    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.85rem;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        font-size: 0.95rem;
        padding: 0.5rem 0.75rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    /* Modals */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 0.75rem 1rem;
    }
    
    .modal-title {
        font-size: 1.2rem;
    }
    
    /* Fixed Action Buttons */
    .fixed-whatsapp-btn,
    .fixed-offer-btn {
        bottom: 15px;
        right: 15px;
    }
    
    .fixed-whatsapp-btn {
        bottom: 75px;
    }
    
    .fixed-whatsapp-btn .btn,
    .fixed-offer-btn .btn {
        width: var(--fixed-button-size-mobile);
        height: var(--fixed-button-size-mobile);
        font-size: 1.25rem;
    }
    
    /* Footer */
    footer {
        text-align: center;
    }
    
    footer h5,
    footer h6 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    footer .contact-info {
        font-size: 0.9rem;
    }
    
    footer .footer-links {
        font-size: 0.9rem;
    }
    
    .working-hours {
        margin-bottom: 2rem;
    }
    
    .copyright-bar {
        font-size: 0.8rem;
        padding: 1rem 0;
    }
    
    .footer-bottom-links {
        margin-top: 0.5rem;
    }
    
    /* Back to Top Button */
    #backToTop {
        bottom: 130px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    /* Utilities */
    .d-none {
        display: none !important;
    }
    
    .d-sm-none {
        display: none !important;
    }
    
    .text-center {
        text-align: center !important;
    }
    
    /* Hide non-essential elements on very small screens */
    .top-bar,
    .breadcrumb {
        display: none !important;
    }
}

/* ===== LANDSCAPE MOBILE FIXES ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-slide {
        padding: 30px 0;
    }
    
    .min-vh-60 {
        min-height: 300px;
    }
    
    .navbar-collapse {
        max-height: calc(100vh - var(--mobile-header-height));
        overflow-y: auto;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .fixed-action-buttons,
    #backToTop,
    .modal,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    .container {
        max-width: 100%;
    }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders and shadows for retina displays */
    .product-card,
    .service-card,
    .stat-box {
        box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    }
    
    .btn {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ===== MOBILE CAROUSEL FIXES ===== */
@media (max-width: 575px) {
    /* Carousel kontrol butonlarını büyüt ve konumlandır */
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0.8;
        transition: all 0.3s ease;
    }
    
    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        opacity: 1;
        background: rgba(0, 0, 0, 0.7);
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
    
    /* Icon'ları ortala */
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
        background-size: 100%;
    }
    
    /* Touch alanını genişlet */
    .carousel-control-prev::before,
    .carousel-control-next::before {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
    }
}

/* Tüm mobil cihazlar için carousel iyileştirmeleri */
@media (max-width: 767px) {
    /* Carousel yüksekliği */
    #heroCarousel .carousel-item {
        min-height: 400px;
    }
    
    /* Indicators pozisyonu */
    .carousel-indicators {
        bottom: 20px;
        gap: 8px;
    }
    
    .carousel-indicators button {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        border: 2px solid white;
        opacity: 0.7;
    }
    
    .carousel-indicators .active {
        opacity: 1;
        background-color: white;
    }
}

/* SLIDER BUTTON FIX - EN YÜKSEK ÖNCELİK */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    z-index: 999 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    opacity: 1 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Buton alanını genişlet */
#heroCarousel .carousel-control-prev {
    width: 15% !important;
    left: 0 !important;
}

#heroCarousel .carousel-control-next {
    width: 15% !important;
    right: 0 !important;
}

/* Mobil için özel düzenleme */
@media (max-width: 768px) {
    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        width: 60px !important;
        height: 60px !important;
        background-color: rgba(0, 0, 0, 0.5) !important;
        border-radius: 50% !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
    #heroCarousel .carousel-control-prev {
        left: 10px !important;
    }
    
    #heroCarousel .carousel-control-next {
        right: 10px !important;
    }
    
    /* Icon boyutu */
    #heroCarousel .carousel-control-prev-icon,
    #heroCarousel .carousel-control-next-icon {
        width: 24px !important;
        height: 24px !important;
        background-size: 100% 100% !important;
    }
}

/* Container overflow düzeltmesi */
.hero-slider,
#heroCarousel,
.carousel-inner {
    overflow: visible !important;
}

/* Z-index hiyerarşisi */
.carousel-inner {
    z-index: 1;
}

.carousel-item {
    z-index: 1;
}

.hero-content {
    z-index: 2;
    position: relative;
}

#heroCarousel .carousel-indicators {
    z-index: 15;
}

.responsive-img {
    width: 100%;
    height: auto; /* Veya sabit bir oran isteniyorsa height: 200px; */
    object-fit: cover; /* veya contain */
}

/* Mobil Menü Z-index ve Position Fix */
@media (max-width: 991px) {
    /* Navbar'ı her zaman en üstte tut */
    .navbar {
        position: relative !important;
        z-index: 9999 !important;
    }
    
    .navbar-toggler {
        position: relative !important;
        z-index: 10000 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }
    
    .navbar-collapse {
        position: absolute !important;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 9998 !important;
        background: white !important;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    /* Sticky header fix */
    .navbar.fixed-top,
    .navbar.sticky-top {
        z-index: 9999 !important;
    }
}

/* HAMBURGER MENÜ ACİL FIX */
@media (max-width: 991px) {
    /* Önce mevcut stilleri sıfırla */
    .navbar-collapse {
        position: static !important;
        transform: none !important;
        transition: none !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    /* Bootstrap default davranışını koru */
    .navbar-collapse:not(.show) {
        display: none !important;
    }
    
    .navbar-collapse.show {
        display: block !important;
    }
    
    /* Navbar ve toggler düzeltmeleri */
    .navbar {
        position: relative !important;
        z-index: 1030 !important;
    }
    
    .navbar-toggler {
        z-index: 1040 !important;
        border: 1px solid rgba(0,0,0,0.1) !important;
        padding: 4px 8px !important;
    }
    
    .navbar-toggler:focus {
        box-shadow: none !important;
        outline: 2px solid #1e88e5 !important;
        outline-offset: 2px;
    }
    
    /* Menu içeriği stilleri */
    .navbar-nav {
        padding: 1rem 0;
        background: white;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        margin-top: 10px;
        border-radius: 8px;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .dropdown-menu {
        position: static !important;
        float: none !important;
        width: auto !important;
        margin-top: 0 !important;
        background-color: #f8f9fa !important;
        border: 0 !important;
        box-shadow: none !important;
    }
}

/* ===== MOBİL RESİM DÜZELTMELERİ ===== */

/* Ana resim container'ları için */
.product-card,
.service-card,
.hero-slide {
    overflow: hidden;
}

/* Ürün kartları için resim düzeltmeleri */
.product-card .card-img-top,
.product-image {
    width: 100%;
    height: 250px; /* Sabit yükseklik */
    object-fit: cover; /* Resmi kırpmadan en uygun şekilde yerleştir */
    object-position: center; /* Resmi ortala */
    transition: transform 0.3s ease;
}

/* Hover efekti */
.product-card:hover .card-img-top,
.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Hizmet kartları için */
.service-card .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

/* Hero slider resimleri */
.hero-slide {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 60vh;
}

/* Card body'lerin tam genişlik kullanması */
.card-body {
    flex: 1 1 auto;
    padding: 1.25rem;
}

/* ===== MOBİL CİHAZLAR İÇİN ÖZEL DÜZENLEMELER ===== */

/* Tablet - 768px-991px */
@media (max-width: 991px) and (min-width: 768px) {
    .product-image,
    .product-card .card-img-top {
        height: 220px;
    }
    
    .service-card .card-img-top {
        height: 180px;
    }
    
    .hero-slide {
        min-height: 50vh;
    }
}

/* Küçük Tablet - 576px-767px */
@media (max-width: 767px) and (min-width: 576px) {
    .product-image,
    .product-card .card-img-top {
        height: 200px;
    }
    
    .service-card .card-img-top {
        height: 160px;
    }
    
    .hero-slide {
        min-height: 45vh;
    }
    
    /* Grid düzeni */
    .product-grid .col-md-4,
    .product-grid .col-lg-3 {
        margin-bottom: 1.5rem;
    }
}

/* Mobil - 320px-575px */
@media (max-width: 575px) {
    /* Resim boyutları */
    .product-image,
    .product-card .card-img-top {
        height: 180px;
    }
    
    .service-card .card-img-top {
        height: 140px;
    }
    
    /* Hero slide */
    .hero-slide {
        min-height: 40vh;
        padding: 40px 0;
    }
    
    /* Card spacing */
    .card {
        margin-bottom: 1.5rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    /* Container padding */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Grid düzeni - mobilde tek sütun */
    .product-grid .col-6,
    .product-grid .col-sm-6,
    .product-grid .col-md-4,
    .product-grid .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
}

/* Çok küçük mobil - 320px altı */
@media (max-width: 374px) {
    .product-image,
    .product-card .card-img-top {
        height: 160px;
    }
    
    .service-card .card-img-top {
        height: 120px;
    }
    
    .hero-slide {
        min-height: 35vh;
        padding: 30px 0;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
}

/* ===== GALERİ VE DETAY SAYFALARİ İÇİN ===== */

/* Ürün detay sayfası ana resmi */
.product-gallery .image-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 767px) {
    .product-gallery .image-container img {
        height: 300px;
    }
}

@media (max-width: 575px) {
    .product-gallery .image-container img {
        height: 250px;
    }
}

/* Galeri thumbnail'ları */
.gallery-thumbnails img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-thumbnails img:hover,
.gallery-thumbnails img.active {
    border: 2px solid #1e88e5;
    opacity: 0.8;
}

/* ===== CAROUSEL DÜZELTMELERİ ===== */

/* Hero carousel için */
#heroCarousel .carousel-item {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Carousel resim container'ı */
.carousel-item img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 767px) {
    .carousel-item img {
        height: 45vh;
    }
}

@media (max-width: 575px) {
    .carousel-item img {
        height: 40vh;
    }
}

/* ===== FLEX VE GRID DÜZELTMELERİ ===== */

/* Card'ların eşit yükseklik alması */
.product-grid {
    display: flex;
    flex-wrap: wrap;
}

.product-grid .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-grid .card-body {
    flex-grow: 1;
}

.product-grid .card-footer {
    margin-top: auto;
}

/* ===== LOADING VE LAZY LOADING ===== */

/* Resim yüklenene kadar placeholder */
img[data-src] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 2s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Resim yüklendi efekti */
img.loaded {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== ASPECT RATIO DÜZELTMELERİ ===== */

/* Modern tarayıcılar için aspect-ratio */
@supports (aspect-ratio: 1) {
    .product-image,
    .product-card .card-img-top {
        aspect-ratio: 4/3;
        height: auto;
    }
    
    .service-card .card-img-top {
        aspect-ratio: 16/9;
        height: auto;
    }
}

/* ===== PRINT MEDIA DÜZELTMELERİ ===== */

@media print {
    .product-image,
    .card-img-top {
        height: auto !important;
        max-height: 200px;
    }
    
    .hero-slide {
        min-height: auto !important;
        padding: 1rem 0;
    }
}

/* ===== FOOTER MOBİL HİZALAMA DÜZELTMELERİ ===== */

/* Tablet düzeni - 768px to 991px */
@media (max-width: 991px) and (min-width: 768px) {
    footer {
        text-align: left !important;
    }
    
    footer .row > div {
        margin-bottom: 2rem;
    }
    
    footer h5,
    footer h6 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        text-align: left;
    }
    
    .footer-links {
        text-align: left;
    }
    
    .contact-info {
        text-align: left;
    }
    
    .social-links {
        justify-content: flex-start !important;
    }
}

/* Mobil düzeni - 576px to 767px */
@media (max-width: 767px) and (min-width: 576px) {
    footer {
        text-align: left !important;
    }
    
    footer .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    footer .row > div {
        margin-bottom: 2rem;
        text-align: left;
    }
    
    footer h5,
    footer h6 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        text-align: left;
        color: #fff;
    }
    
    .footer-links {
        text-align: left;
        list-style: none;
        padding-left: 0;
    }
    
    .footer-links li {
        margin-bottom: 0.5rem;
        text-align: left;
    }
    
    .footer-links a {
        color: #ccc;
        text-decoration: none;
        font-size: 0.9rem;
    }
    
    .contact-info {
        text-align: left;
    }
    
    .contact-info > div {
        justify-content: flex-start !important;
        text-align: left;
        margin-bottom: 0.75rem;
    }
    
    .contact-info i {
        margin-right: 0.75rem;
        width: 20px;
        text-align: center;
    }
    
    .social-links {
        justify-content: flex-start !important;
        text-align: left;
    }
    
    .working-hours {
        text-align: left;
    }
    
    .working-hours .row {
        text-align: left;
    }
    
    .working-hours .col-6 {
        text-align: left;
        padding-left: 0;
    }
    
    /* Copyright bar */
    .copyright-bar {
        text-align: left;
    }
    
    .copyright-bar .row > div {
        text-align: left;
        margin-bottom: 0.5rem;
    }
}

/* Küçük mobil - 320px to 575px */
@media (max-width: 575px) {
    footer {
        text-align: left !important;
        padding: 2rem 0 1rem;
    }
    
    footer .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    footer .row > div {
        margin-bottom: 2rem;
        text-align: left !important;
    }
    
    /* Başlıklar */
    footer h5,
    footer h6 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        text-align: left !important;
        color: #fff;
        font-weight: 600;
    }
    
    /* Footer linkler */
    .footer-links {
        text-align: left !important;
        list-style: none;
        padding-left: 0;
        margin-bottom: 0;
    }
    
    .footer-links li {
        margin-bottom: 0.5rem;
        text-align: left !important;
    }
    
    .footer-links a {
        color: #ccc;
        text-decoration: none;
        font-size: 0.9rem;
        display: block;
        padding: 0.25rem 0;
    }
    
    .footer-links a:hover {
        color: #ffc107;
        padding-left: 5px;
        transition: all 0.3s ease;
    }
    
    /* İletişim bilgileri */
    .contact-info {
        text-align: left !important;
    }
    
    .contact-info > div {
        justify-content: flex-start !important;
        text-align: left !important;
        margin-bottom: 0.75rem;
        display: flex;
        align-items: center;
    }
    
    .contact-info i {
        margin-right: 0.75rem;
        width: 20px;
        text-align: center;
        color: #ffc107;
    }
    
    .contact-info a {
        color: #ccc;
        text-decoration: none;
    }
    
    .contact-info a:hover {
        color: #fff;
    }
    
    /* Sosyal medya linkleri */
    .social-links {
        justify-content: flex-start !important;
        text-align: left !important;
        margin-top: 1rem;
    }
    
    .social-links a {
        margin-right: 1rem;
        margin-bottom: 0.5rem;
    }
    
    /* Çalışma saatleri */
    .working-hours {
        text-align: left !important;
        margin-bottom: 2rem;
    }
    
    .working-hours h6 {
        text-align: left !important;
        margin-bottom: 1rem;
    }
    
    .working-hours .row {
        text-align: left !important;
    }
    
    .working-hours .col-6 {
        text-align: left !important;
        padding-left: 0;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    /* Copyright bar */
    .copyright-bar {
        text-align: left !important;
        font-size: 0.8rem;
        padding: 1rem 0;
        border-top: 1px solid #444;
    }
    
    .copyright-bar .row > div {
        text-align: left !important;
        margin-bottom: 0.5rem;
    }
    
    .footer-bottom-links {
        text-align: left !important;
        margin-top: 0.5rem;
    }
    
    .footer-bottom-links a {
        margin-right: 1rem;
        font-size: 0.8rem;
    }
}

/* Çok küçük mobil cihazlar - 320px ve altı */
@media (max-width: 374px) {
    footer {
        padding: 1.5rem 0 1rem;
    }
    
    footer .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    footer h5,
    footer h6 {
        font-size: 1rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .contact-info > div {
        font-size: 0.85rem;
    }
    
    .working-hours .col-6 {
        font-size: 0.8rem;
    }
    
    .copyright-bar {
        font-size: 0.75rem;
    }
    
    .social-links a {
        margin-right: 0.75rem;
    }
}

/* ===== EK FOOTER GENELLEŞTİRMELERİ ===== */

/* Tüm mobil cihazlarda geçerli olacak genel kurallar */
@media (max-width: 767px) {
    /* Footer'ın tamamını sola hizala */
    footer * {
        text-align: left !important;
    }
    
    /* Merkez hizalama sınıflarını override et */
    footer .text-center {
        text-align: left !important;
    }
    
    footer .justify-content-center {
        justify-content: flex-start !important;
    }
    
    footer .mx-auto {
        margin-left: 0 !important;
        margin-right: auto !important;
    }
    
    /* Flexbox container'ları sola hizala */
    footer .d-flex {
        justify-content: flex-start !important;
    }
    
    /* Grid sistem düzeltmeleri */
    footer .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    footer .row > [class*='col-'] {
        padding-left: 0;
        padding-right: 15px;
    }
}

/* ===== FOOTER HOVER EFEKTLERİ MOBİLDE ===== */
@media (max-width: 767px) {
    .footer-links li:hover {
        transform: none; /* Mobilde transform efektini kaldır */
    }
    
    .footer-links a:hover {
        transform: none;
        padding-left: 5px;
    }
    
    .social-links a:hover {
        transform: none; /* Mobilde yukarı hareket efektini kaldır */
    }
}

/* ===== FOOTER SPACING MOBİL DÜZELTMELERİ ===== */
@media (max-width: 575px) {
    /* Footer section'ları arasında yeterli boşluk */
    footer .mb-4 {
        margin-bottom: 2rem !important;
    }
    
    footer .mb-3 {
        margin-bottom: 1.5rem !important;
    }
    
    /* Son öğelerde gereksiz margin'i kaldır */
    footer .row > div:last-child {
        margin-bottom: 0 !important;
    }
}

/* ===== SABİT BUTONLARIN STABİLİTE DÜZELTMELERİ ===== */

/* Temel sabit buton container'ı */
.fixed-action-buttons {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 9999 !important; /* Slider'dan daha yüksek */
    pointer-events: none; /* Container'a dokunuşları geçir */
    transform: translateZ(0); /* Hardware acceleration */
    backface-visibility: hidden; /* Rendering optimize et */
    will-change: auto; /* Browser optimizasyonu */
}

/* WhatsApp ve Teklif butonları */
.fixed-whatsapp-btn,
.fixed-offer-btn {
    position: fixed !important;
    z-index: 9999 !important;
    pointer-events: auto; /* Butonlara dokunuş sağla */
    transform: translateZ(0) !important; /* GPU acceleration */
    backface-visibility: hidden !important;
    will-change: auto !important;
    transition: none !important; /* Slider ile çakışan animasyonları kaldır */
}

/* WhatsApp butonu pozisyonu */
.fixed-whatsapp-btn {
    bottom: 80px !important;
    right: 20px !important;
}

/* Teklif butonu pozisyonu */
.fixed-offer-btn {
    bottom: 20px !important;
    right: 20px !important;
}

/* Buton içerikleri */
.fixed-whatsapp-btn .btn,
.fixed-offer-btn .btn {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5rem !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    border: none !important;
    position: relative !important;
    overflow: hidden !important;
    transform: translateZ(0) !important; /* GPU acceleration */
    backface-visibility: hidden !important;
    /* Pulse animasyonunu kaldır veya optimize et */
    animation: none !important;
}

/* Hover efektleri (mobilde dokunuş) */
.fixed-whatsapp-btn .btn:hover,
.fixed-offer-btn .btn:hover,
.fixed-whatsapp-btn .btn:active,
.fixed-offer-btn .btn:active {
    transform: translateZ(0) scale(1.05) !important;
    transition: transform 0.2s ease !important;
}

/* Pulse animasyonu optimize et (opsiyonel) */
.pulse-optimized {
    animation: pulseStable 3s ease-in-out infinite !important;
}

@keyframes pulseStable {
    0%, 100% { 
        transform: translateZ(0) scale(1) !important; 
    }
    50% { 
        transform: translateZ(0) scale(1.02) !important; 
    }
}

/* ===== MOBİL CİHAZLAR İÇİN ÖZEL DÜZELTMELER ===== */

/* Tablet düzeni */
@media (max-width: 991px) and (min-width: 768px) {
    .fixed-whatsapp-btn,
    .fixed-offer-btn {
        bottom: 20px !important;
        right: 20px !important;
    }
    
    .fixed-whatsapp-btn {
        bottom: 85px !important;
    }
    
    .fixed-whatsapp-btn .btn,
    .fixed-offer-btn .btn {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.3rem !important;
    }
}

/* Mobil düzeni */
@media (max-width: 767px) {
    .fixed-whatsapp-btn,
    .fixed-offer-btn {
        position: fixed !important;
        z-index: 9999 !important;
        transform: translateZ(0) !important;
        backface-visibility: hidden !important;
        will-change: auto !important;
    }
    
    .fixed-whatsapp-btn {
        bottom: 75px !important;
        right: 15px !important;
    }
    
    .fixed-offer-btn {
        bottom: 15px !important;
        right: 15px !important;
    }
    
    .fixed-whatsapp-btn .btn,
    .fixed-offer-btn .btn {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.25rem !important;
        box-shadow: 0 3px 10px rgba(0,0,0,0.4) !important;
    }
}

/* Çok küçük mobil cihazlar */
@media (max-width: 374px) {
    .fixed-whatsapp-btn {
        bottom: 70px !important;
        right: 10px !important;
    }
    
    .fixed-offer-btn {
        bottom: 10px !important;
        right: 10px !important;
    }
    
    .fixed-whatsapp-btn .btn,
    .fixed-offer-btn .btn {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.1rem !important;
    }
}

/* ===== SLIDER İLE ÇAKIŞMA ÖNLEYİCİ DÜZELTMELERİ ===== */

/* Carousel ve slider z-index kontrol */
#heroCarousel,
.carousel-inner,
.carousel-item {
    z-index: 1 !important;
    position: relative !important;
}

.carousel-control-prev,
.carousel-control-next {
    z-index: 5 !important;
}

.carousel-indicators {
    z-index: 10 !important;
}

/* Hero content z-index */
.hero-content {
    z-index: 2 !important;
    position: relative !important;
}

/* Modal z-index (teklif modalı için) */
.modal {
    z-index: 10000 !important;
}

.modal-backdrop {
    z-index: 9998 !important;
}

/* ===== PERFORMANBİ OPTİMİZASYON ===== */

/* Container isolation */
.fixed-action-buttons,
.fixed-whatsapp-btn,
.fixed-offer-btn {
    contain: layout style paint !important; /* CSS containment */
    isolation: isolate !important; /* Stacking context oluştur */
}

/* Rendering optimize et */
.fixed-whatsapp-btn .btn,
.fixed-offer-btn .btn {
    transform-style: flat !important; /* 3D transform'ları devre dışı bırak */
    contain: layout style paint !important;
}

/* Touch action optimize et */
@media (hover: none) and (pointer: coarse) {
    .fixed-whatsapp-btn .btn,
    .fixed-offer-btn .btn {
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
    }
}

/* ===== BACK TO TOP BUTTON DÜZELTMELERİ ===== */
#backToTop {
    position: fixed !important;
    bottom: 135px !important;
    right: 15px !important;
    z-index: 9998 !important;
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
    will-change: auto !important;
}

@media (max-width: 767px) {
    #backToTop {
        bottom: 130px !important;
        right: 15px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 0.9rem !important;
    }
}

/* ===== CRITICAL CSS OVERRIDE ===== */

/* Tüm animasyonları devre dışı bırak (gerekirse) */
.fixed-buttons-no-animation .fixed-whatsapp-btn .btn,
.fixed-buttons-no-animation .fixed-offer-btn .btn {
    animation: none !important;
    transition: none !important;
}

/* Hardware acceleration force et */
.hardware-accelerated {
    transform: translate3d(0, 0, 0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
}

/* Safari için özel düzeltmeler */
@supports (-webkit-appearance: none) {
    .fixed-whatsapp-btn,
    .fixed-offer-btn {
        -webkit-transform: translateZ(0) !important;
        -webkit-backface-visibility: hidden !important;
    }
}

/* Firefox için özel düzeltmeler */
@-moz-document url-prefix() {
    .fixed-whatsapp-btn,
    .fixed-offer-btn {
        transform: translateZ(0) !important;
    }
}