/* ============================================
   İZMİR SERVİS - RESPONSIVE CSS
   Mobil Öncelikli Tasarım Kuralları
============================================ */

/* ============================================
   1. LARGE DEVICES (Laptops/Desktops, 1200px+)
============================================ */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-text h1 {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
}

/* ============================================
   2. MEDIUM DEVICES (Tablets, 992px - 1199px)
============================================ */
@media (max-width: 1199px) {
    .hero-section {
        min-height: 600px;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
}

/* ============================================
   3. SMALL DEVICES (Tablets Portrait, 768px - 991px)
============================================ */
@media (max-width: 991px) {
    /* Header Adjustments */
    .navbar-brand .logo {
        max-width: 220px;
    }
    
    .navbar-collapse {
        background: var(--white-color);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 10px;
        box-shadow: var(--shadow);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
    }
    
    .navbar-nav .btn-primary {
        margin-top: 1rem;
        width: 100%;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 550px;
        padding: 100px 0 60px;
        background-attachment: scroll;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text .lead {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0;
    }
    
    /* About Section */
    .about-section {
        padding: 60px 0;
    }
    
    .about-image {
        margin-bottom: 2rem;
    }
    
    /* Services Section */
    .services-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* CTA Section */
    .cta-section {
        text-align: center;
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-section .btn-light {
        margin-top: 1rem;
        width: 100%;
        font-size: 1.1rem;
    }
    
    /* Footer */
    .footer .col-lg-4,
    .footer .col-lg-2,
    .footer .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    /* Breadcrumb */
    .breadcrumb-section {
        padding: 100px 0 50px;
        background-attachment: scroll;
    }
}

/* ============================================
   4. EXTRA SMALL DEVICES (Phones, 576px - 767px)
============================================ */
@media (max-width: 767px) {
    /* Typography */
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-text .lead {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    /* Hero Section - Mobilde arka plana kayma */
    .hero-section {
        min-height: 500px;
        background-position: center right;
        background-size: cover;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-buttons .btn {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
    
    /* Services */
    .service-image {
        height: 200px;
    }
    
    .service-content h3 {
        font-size: 1.2rem;
    }
    
    .service-content p {
        font-size: 0.9rem;
    }
    
    /* About Section */
    .features-list .feature-item {
        font-size: 1rem;
    }
    
    .features-list .feature-item i {
        font-size: 1.2rem;
    }
    
    /* CTA */
    .cta-section {
        padding: 40px 0;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .cta-section p {
        font-size: 0.95rem;
    }
    
    /* Footer */
    .footer {
        text-align: center;
    }
    
    .footer h5 {
        font-size: 1.2rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links,
    .contact-info {
        text-align: center;
    }
    
    .contact-info li {
        justify-content: center;
    }
    
    /* Scroll Top Button */
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    /* Page Content */
    .page-content {
        padding: 60px 0;
    }
    
    .content-box {
        padding: 1.5rem;
    }
    
    .content-box h2 {
        font-size: 1.75rem;
    }
    
    .content-box h3 {
        font-size: 1.3rem;
    }
    
    /* Breadcrumb */
    .breadcrumb-section {
        padding: 90px 0 40px;
        text-align: center;
    }
    
    .breadcrumb-section h1 {
        font-size: 1.75rem;
    }
}

/* ============================================
   5. TINY DEVICES (Small Phones, 480px - 575px)
============================================ */
@media (max-width: 575px) {
    /* Global Spacing */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Header */
    #header {
        padding: 0.5rem 0;
    }
    
    .navbar-brand .logo {
        max-width: 220px;
    }
    
    /* Hero */
    .hero-section {
        min-height: 450px;
        padding: 90px 0 50px;
    }
    
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .hero-text .lead {
        font-size: 0.95rem;
    }
    
    .hero-buttons .btn {
        font-size: 0.95rem;
        padding: 0.75rem 1.25rem;
    }
    
    /* Sections */
    .about-section,
    .services-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.8rem;
    }
    
    /* Services */
    .service-image {
        height: 180px;
    }
    
    .service-content {
        padding: 1.25rem;
    }
    
    .service-content h3 {
        font-size: 1.1rem;
    }
    
    /* CTA */
    .cta-section h2 {
        font-size: 1.3rem;
    }
    
    .cta-section .btn-light {
        font-size: 1rem;
        padding: 0.875rem 1.25rem;
    }
    
    /* Footer */
    .footer {
        padding-top: 3rem;
    }
    
    .footer h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    /* Page Content */
    .content-box {
        padding: 1.25rem;
    }
    
    .content-box h2 {
        font-size: 1.5rem;
    }
    
    .content-box h3 {
        font-size: 1.2rem;
    }
    
    .content-box p,
    .content-box li {
        font-size: 0.95rem;
    }
}

/* ============================================
   6. VERY TINY DEVICES (< 480px)
============================================ */
@media (max-width: 479px) {
    /* Hero */
    .hero-section {
        min-height: 400px;
        /* Mobilde resim daha fazla arka plana kayacak */
        background-position: 70% center;
    }
    
    .hero-text h1 {
        font-size: 1.5rem;
    }
    
    .hero-text .lead {
        font-size: 0.9rem;
    }
    
    /* Services Grid - Tek kolon */
    .services-section .col-lg-3 {
        margin-bottom: 1.5rem;
    }
    
    .service-image {
        height: 160px;
    }
    
    /* Buttons */
    .btn-lg {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    /* Typography */
    .section-title {
        font-size: 1.4rem;
    }
}

/* ============================================
   7. LANDSCAPE MOBİL (Yatay Telefon)
============================================ */
@media (max-width: 991px) and (orientation: landscape) {
    .hero-section {
        min-height: 450px;
        padding: 80px 0 40px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text .lead {
        font-size: 1rem;
    }
    
    .about-section,
    .services-section {
        padding: 50px 0;
    }
}

/* ============================================
   8. TOUCH DEVICE OPTİMİZASYONLARI
============================================ */
@media (hover: none) and (pointer: coarse) {
    /* Touch cihazlarda hover efektlerini kaldır */
    .service-card:hover {
        transform: none;
    }
    
    .service-overlay {
        opacity: 0;
    }
    
    /* Touch için daha büyük tıklama alanları */
    .btn {
        min-height: 48px;
        min-width: 48px;
    }
    
    .navbar-nav .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    /* Parallax efektini kaldır (performans için) */
    .hero-section,
    .breadcrumb-section {
        background-attachment: scroll !important;
    }
}

/* ============================================
   9. PRINT STİLLERİ
============================================ */
@media print {
    /* Gereksiz elementleri gizle */
    .navbar,
    .hero-buttons,
    .btn,
    .scroll-top,
    .cta-section,
    footer,
    .service-overlay {
        display: none !important;
    }
    
    /* Renkleri optimize et */
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    /* Sayfa sonları */
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    img {
        page-break-inside: avoid;
    }
    
    /* Link URL'lerini göster */
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* ============================================
   10. HIGH DPI (Retina) DİSPLAYS
============================================ */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    /* Retina ekranlar için görsel optimizasyonu */
    .hero-section {
        background-image: url('../images/slider/hero-bg.webp');
    }
}

/* ============================================
   11. REDUCED MOTION (Erişilebilirlik)
============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-section,
    .breadcrumb-section {
        background-attachment: scroll !important;
    }
}

/* ============================================
   12. DARK MODE SUPPORT (İsteğe Bağlı)
============================================ */
@media (prefers-color-scheme: dark) {
    /* Dark mode tercih eden kullanıcılar için */
    /* Şu an pasif, gerekirse aktif edilebilir */
    /*
    :root {
        --text-color: #e0e0e0;
        --dark-color: #f0f0f0;
        --light-color: #2a2a2a;
        --white-color: #1a1a1a;
    }
    */
}

/* ============================================
   13. MOBİL PERFORMANS OPTİMİZASYONLARI
============================================ */
@media (max-width: 767px) {
    /* GPU acceleration'ı azalt (performans için) */
    .service-card,
    .about-image img {
        will-change: auto;
    }
    
    /* Animasyonları basitleştir */
    .service-card:hover {
        transform: translateY(-5px);
    }
    
    /* Gölgeleri hafiflet */
    .service-card,
    .content-box {
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
}

/* ============================================
   14. TABLET LANDSCAPE OPTİMİZASYONU
============================================ */
@media (min-width: 768px) and (max-width: 991px) and (orientation: landscape) {
    .hero-section {
        min-height: 500px;
    }
    
    .service-card {
        height: auto;
    }
    
    .col-md-6 .service-card {
        display: flex;
        flex-direction: row;
    }
    
    .col-md-6 .service-image {
        width: 40%;
        height: auto;
    }
    
    .col-md-6 .service-content {
        width: 60%;
    }
}