/* Responsive Design - Enhanced for Professional Theme */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    .hero-title {
        font-size: var(--text-5xl);
    }
    
    .section-title {
        font-size: var(--text-3xl);
    }
    
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card {
        padding: var(--space-6);
    }
    
    .navbar-nav {
        gap: var(--space-4);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
    }
    
    .btn-lg {
        padding: var(--space-3) var(--space-6);
        font-size: var(--text-base);
    }
}

/* PC versiyonu için özel - 1025px ve üzeri */
@media (min-width: 1025px) {
    .hero-title {
        font-size: var(--text-4xl) !important; /* Profesyonel Hizmetler ile aynı boyut */
        line-height: 1.1 !important;
        letter-spacing: -0.01em !important;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Hide top banner on mobile */
    .top-banner {
        display: none !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    /* Ensure all content is visible */
    body * {
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Hero section mobile fixes */
    .hero {
        background: transparent !important;
        background-image: none !important;
        position: static !important;
        overflow: visible !important;
    }
    
    .hero::before {
        display: none !important;
    }
    
    .hero-content {
        background: transparent !important;
    }
    
    :root {
        --space-24: var(--space-16);
        --space-16: var(--space-12);
        --space-12: var(--space-8);
        --space-8: var(--space-6);
    }
    
    /* CTA Section buton düzenlemeleri */
    .section[style*="background: linear-gradient"] .btn-secondary {
        white-space: nowrap;
        text-align: center;
        margin: 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: calc(220px * 1.32);  /* 290.4px */
        max-width: calc(320px * 1.32);  /* 422.4px */
        padding: calc(14px * 1.32) calc(24px * 1.32);  /* 18.5px 31.7px */
        font-size: calc(var(--text-base) * 1.32);
        width: 80%;
        transform: scale(1.32);
    }
    
    /* CTA bölümündeki buton container'ı */
    .section[style*="background: linear-gradient"] > .container > div[style*="text-align: center"] {
        text-align: center !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    @media (max-width: 480px) {
        .section[style*="background: linear-gradient"] .btn-secondary {
            font-size: calc(13px * 1.32);  /* 17.2px */
            padding: calc(12px * 1.32) calc(20px * 1.32);  /* 15.8px 26.4px */
            min-width: calc(180px * 1.32);  /* 237.6px */
            max-width: calc(280px * 1.32);  /* 369.6px */
            white-space: nowrap;
            width: 85%;
            transform: scale(1.32);
        }
        
        .section[style*="background: linear-gradient"] .btn-secondary i {
            font-size: 0.9em;
            margin-right: 4px;
        }
        
        .section[style*="background: linear-gradient"] .btn-lg {
            font-size: 13px;
            padding: 12px 20px;
        }
    }
    
    @media (max-width: 390px) {
        .section[style*="background: linear-gradient"] .btn-secondary {
            font-size: calc(12px * 1.32);  /* 15.8px */
            padding: calc(10px * 1.32) calc(16px * 1.32);  /* 13.2px 21.1px */
            min-width: calc(160px * 1.32);  /* 211.2px */
            max-width: calc(240px * 1.32);  /* 316.8px */
            width: 90%;
            transform: scale(1.32);
        }
    }
    
    @media (max-width: 350px) {
        .section[style*="background: linear-gradient"] .btn-secondary {
            font-size: calc(11px * 1.32);  /* 14.5px */
            padding: calc(8px * 1.32) calc(14px * 1.32);  /* 10.6px 18.5px */
            min-width: calc(140px * 1.32);  /* 184.8px */
            max-width: calc(220px * 1.32);  /* 290.4px */
            width: 95%;
            transform: scale(1.32);
        }
        
        .section[style*="background: linear-gradient"] .btn-secondary i {
            display: inline-block; /* İkonu tekrar göster */
            font-size: 0.8em;
            margin-right: 3px;
        }
    }
    
    /* CTA bölümündeki buton container'ı */
    .section[style*="background: linear-gradient"] > .container > div[style*="text-align: center"] {
        text-align: center !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    @media (max-width: 768px) {
        .section[style*="background: linear-gradient"] .btn-secondary {
            min-width: 180px;
            max-width: 280px;
            padding: 12px 22px;
            font-size: var(--text-base);
        }
    }
    
    @media (max-width: 480px) {
        .section[style*="background: linear-gradient"] .btn-secondary {
            font-size: 13px;
            padding: 10px 18px;
            min-width: 160px;
            max-width: 260px;
            white-space: nowrap;
        }
        
        .section[style*="background: linear-gradient"] .btn-secondary i {
            font-size: 0.9em;
            margin-right: 4px;
        }
    }
    
    @media (max-width: 390px) {
        .section[style*="background: linear-gradient"] .btn-secondary {
            font-size: 12px;
            padding: 8px 14px;
            min-width: 140px;
            max-width: 240px;
        }
    }
    
    @media (max-width: 350px) {
        .section[style*="background: linear-gradient"] .btn-secondary {
            font-size: 11px;
            padding: 8px 12px;
            min-width: 130px;
            max-width: 220px;
        }
    }
    
    @media (max-width: 390px) {
        .section[style*="background: linear-gradient"] .btn-secondary {
            font-size: 10px;
            padding: 6px 8px;
            min-width: 110px;
            max-width: 180px;
        }
    }
    
    @media (max-width: 350px) {
        .section[style*="background: linear-gradient"] .btn-secondary {
            font-size: 9px;
            padding: 5px 6px;
            min-width: 100px;
            max-width: 160px;
        }
        
        .section[style*="background: linear-gradient"] .btn-secondary i {
            display: none; /* Çok küçük ekranlarda ikonu gizle */
        }
        
        /* En küçük ekranlar için hero butonları - pastel mavi tonları */
        .hero-cta .btn {
            font-size: 11px;
            padding: 5px 6px;
            max-width: 180px;
            min-height: 36px;
            /* En küçük ekranlar için pastel mavi */
            background: linear-gradient(135deg, #5DADE2 0%, #3498DB 100%) !important;
            color: white !important;
            border: none !important;
            box-shadow: 0 2px 8px rgba(93, 173, 226, 0.3) !important;
            font-weight: 600 !important;
            border-radius: 6px !important;
        }
    }
    
    /* Hero CTA butonları için özel düzenleme - Mobil için pastel mavi tonları */
    .hero-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 260px;
        font-size: var(--text-sm);
        padding: var(--space-2) var(--space-3);
        white-space: normal;
        text-align: center;
        line-height: 1.2;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        word-break: break-word;
        hyphens: auto;
        /* Mobil için pastel mavi tonları */
        background: linear-gradient(135deg, #5DADE2 0%, #3498DB 100%) !important;
        color: white !important;
        border: none !important;
        box-shadow: 0 4px 15px rgba(93, 173, 226, 0.3) !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
        transition: all 0.3s ease !important;
    }
    
    .hero-cta .btn:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(93, 173, 226, 0.4) !important;
    }
    
    .hero-cta .btn i {
        margin-right: 6px;
        font-size: 0.9em;
    }
    
    /* Buton renklerini özel olarak ayarla - Mobil için */
    .hero-cta .btn-primary {
        background: linear-gradient(135deg, #3498DB 0%, #2980B9 100%) !important;
        box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3) !important;
    }
    
    .hero-cta .btn-secondary {
        background: linear-gradient(135deg, #5DADE2 0%, #3498DB 100%) !important;
        box-shadow: 0 4px 15px rgba(93, 173, 226, 0.3) !important;
    }
    
    .hero-cta .btn-secondary:hover {
        background: linear-gradient(135deg, #3498DB 0%, #2980B9 100%) !important;
    }
    
    /* Çok küçük ekranlar için ek düzenleme - Mobil pastel mavi tonları */
    @media (max-width: 480px) {
        .container {
            padding: 0 var(--space-3);
        }
        
        .hero-cta .btn {
            font-size: 13px;
            padding: 8px 12px;
            max-width: 220px;
            min-height: 40px;
            /* Mobil pastel mavi tonları */
            background: linear-gradient(135deg, #5DADE2 0%, #3498DB 100%) !important;
            color: white !important;
            border: none !important;
            box-shadow: 0 3px 12px rgba(93, 173, 226, 0.3) !important;
            font-weight: 600 !important;
            border-radius: 10px !important;
        }
        
        .hero-cta .btn-lg {
            font-size: 13px;
            max-width: 240px;
        }
        
        .hero-cta .btn i {
            margin-right: 4px;
            font-size: 0.8em;
        }
        
        .hero-title {
            font-size: var(--text-3xl);
        }
        
        .hero-subtitle {
            font-size: var(--text-base);
        }
    }
    
    @media (max-width: 390px) {
        .hero-cta .btn {
            font-size: 12px;
            padding: 6px 8px;
            max-width: 200px;
            min-height: 38px;
            /* Daha küçük ekranlar için pastel mavi */
            background: linear-gradient(135deg, #5DADE2 0%, #3498DB 100%) !important;
            color: white !important;
            border: none !important;
            box-shadow: 0 3px 10px rgba(93, 173, 226, 0.3) !important;
            font-weight: 600 !important;
            border-radius: 8px !important;
        }
    }
    .hero-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 260px;
        font-size: var(--text-sm);
        padding: var(--space-2) var(--space-3);
        white-space: normal;
        text-align: center;
        line-height: 1.2;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        word-break: break-word;
        hyphens: auto;
    }
    
    /* Çok küçük ekranlar için ek düzenleme */
    @media (max-width: 480px) {
        .container {
            padding: 0 var(--space-3);
        }
        
        .hero-cta .btn {
            font-size: 11px;
            padding: 8px 12px;
            max-width: 220px;
        }
        
        .hero-cta .btn-lg {
            font-size: 11px;
            max-width: 240px;
        }
        
        .hero-title {
            font-size: var(--text-3xl);
        }
        
        .hero-subtitle {
            font-size: var(--text-base);
        }
    }
    
    @media (max-width: 390px) {
        .hero-cta .btn {
            font-size: 10px;
            padding: 6px 8px;
            max-width: 200px;
        }
    }
    .hero-cta .btn {
        font-size: var(--text-sm);
        padding: var(--space-2) var(--space-3);
        white-space: normal;
        text-align: center;
        line-height: 1.2;
        min-height: 44px; /* Mobil erişilebilirlik için minimum yükseklik */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Çok küçük ekranlar için ek düzenleme */
    @media (max-width: 480px) {
        .hero-cta .btn {
            font-size: 12px;
            padding: 8px 12px;
        }
    }
    
    /* Navigation Mobile */
    .navbar-container {
        padding: var(--space-3) var(--space-4);
    }
    
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--gray-200);
        border-bottom: 1px solid var(--gray-200);
        flex-direction: column;
        padding: var(--space-4);
        box-shadow: var(--shadow-lg);
        gap: var(--space-2);
    }
    
    .navbar-nav.active {
        display: flex;
    }
    
    .navbar-nav a {
        padding: var(--space-3) var(--space-4);
        border-radius: var(--radius-lg);
        width: 100%;
        text-align: center;
    }
    
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--gray-700);
        cursor: pointer;
        padding: var(--space-2);
    }
    
    /* Hero Mobile */
    .hero {
        padding: var(--space-16) 0;
        min-height: auto;
        background: transparent !important; /* Remove gradient background */
        position: static !important; /* Remove positioning */
        overflow: visible !important; /* Remove overflow hidden */
    }
    
    /* Remove the pseudo-element background on mobile */
    .hero::before {
        display: none !important;
    }
    
    .hero-title {
        font-size: var(--text-4xl);
        margin-bottom: var(--space-4);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
        margin-bottom: var(--space-6);
    }
    
    .section {
        padding: var(--space-16) 0;
    }
    
    .section-title {
        font-size: var(--text-2xl);
        margin-bottom: var(--space-4);
    }
    
    .section-subtitle {
        font-size: var(--text-base);
    }
    
    /* Grid Mobile */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    /* Service Cards Mobile */
    .service-card {
        padding: var(--space-6);
        margin: 0 auto;
        max-width: 400px;
    }
    
    .service-card-header {
                        flex-direction: column;
                        text-align: center;
                        gap: var(--space-3);
    }
    
    .service-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: var(--text-base);
    }
    
    .service-price {
        font-size: var(--text-xl);
        margin-bottom: var(--space-4);
    }
    
    /* Contact Mobile */
    .contact-info {
        margin-bottom: var(--space-8);
    }
    
    .contact-item {
                        flex-direction: column;
                        text-align: center;
                        gap: var(--space-3);
    }
    
    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: var(--space-6);
    }
    
    /* Button Mobile */
    .btn-lg {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-sm);
        width: 100%;
        max-width: 280px;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    @media (max-width: 480px) {
        .btn-lg {
            font-size: 12px;
            padding: 10px 12px;
            max-width: 250px;
        }
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 260px;
        font-size: var(--text-sm);
        padding: var(--space-2) var(--space-4);
    }
    
    /* Form Mobile */
    .form-group {
        margin-bottom: var(--space-5);
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        padding: var(--space-3);
        font-size: var(--text-base);
    }
    
    /* Card Mobile */
    .card-body {
        padding: var(--space-5);
    }
    
    /* Section Header Mobile */
    .section-header {
                        margin-bottom: var(--space-10);
        padding: 0 var(--space-2);
    }
    
    /* Navbar Brand Mobile */
    .navbar-brand {
        font-size: var(--text-lg);
    }
    
    .navbar-brand i {
        font-size: var(--text-xl);
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    :root {
        --text-6xl: var(--text-4xl);
        --text-5xl: var(--text-3xl);
        --text-4xl: var(--text-2xl);
        --text-3xl: var(--text-xl);
        --text-2xl: var(--text-lg);
    }
    
    .container {
        padding: 0 var(--space-3);
    }
    
    .hero-title {
        font-size: var(--text-3xl);
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: var(--text-base);
        line-height: 1.5;
    }
    
    .section {
        padding: var(--space-12) 0;
    }
    
    .section-title {
        font-size: var(--text-xl);
        line-height: 1.3;
    }
    
    .btn-primary.btn-lg {
        word-break: break-word;
        hyphens: auto;
    }
    
    @media (max-width: 480px) {
        .btn-primary.btn-lg {
            font-size: 11px;
            padding: 8px 10px;
            line-height: 1.2;
        }
    }
    
    @media (max-width: 390px) {
        .btn-primary.btn-lg {
            font-size: 10px;
            padding: 6px 8px;
        }
    }
    
    .btn-lg {
        padding: var(--space-3) var(--space-4);
        font-size: var(--text-base);
    }
    
    .service-card {
        padding: var(--space-5);
    }
    
    .service-title {
        font-size: var(--text-lg);
    }
    
    .service-price {
        font-size: var(--text-lg);
    }
    
    .service-description {
        font-size: var(--text-sm);
    }
    
    .service-features li {
        font-size: var(--text-sm);
    }
    
    .navbar-container {
        padding: var(--space-2) var(--space-3);
    }
    
    .navbar-brand {
        font-size: var(--text-base);
    }
    
    .hero {
        padding: var(--space-12) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-8);
    }
    
    /* Text alignment mobile */
    .text-center-mobile {
        text-align: center;
    }
    
    .text-left-mobile {
        text-align: left;
    }
    
    /* Mobile utilities */
    .mobile-hidden {
        display: none;
    }
    
    .mobile-show {
        display: block;
    }
    
    /* Contact info mobile */
    .contact-info .contact-item {
        padding: var(--space-4);
        margin-bottom: var(--space-4);
    }
    
    .contact-item i {
        font-size: 1.2rem;
    }
    
    /* FAQ Mobile */
    .faq-item {
        padding: var(--space-4);
    }
    
    .faq-question h4 {
        font-size: var(--text-base);
    }
    
    /* Footer mobile */
    .footer {
        padding: var(--space-12) 0 var(--space-6);
    }
    
    .footer-bottom {
        font-size: var(--text-sm);
    }
}

/* Extra Small Mobile (max-width: 375px) */
@media (max-width: 375px) {
    :root {
        --text-xl: var(--text-lg);
        --text-lg: var(--text-base);
    }
    
    .hero-title {
        font-size: var(--text-2xl);
    }
    
    .section-title {
        font-size: var(--text-lg);
    }
    
    .btn-lg {
        font-size: var(--text-sm);
        padding: var(--space-2) var(--space-3);
    }
    
    .service-card {
        padding: var(--space-4);
    }
    
    .card-body {
        padding: var(--space-4);
    }
    
    .navbar-brand {
        font-size: var(--text-sm);
    }
    
    .container {
        padding: 0 var(--space-2);
    }
    
    .section {
        padding: var(--space-10) 0;
    }
    
    .hero {
        padding: var(--space-10) 0;
    }
}

/* Large Desktop (min-width: 1536px) */
@media (min-width: 1536px) {
    .container {
        max-width: var(--container-2xl);
    }
    
    .hero-title {
        font-size: var(--text-7xl);
    }
    
    .section-title {
        font-size: var(--text-5xl);
    }
    
    .hero {
        padding: var(--space-32) 0;
    }
    
    .section {
        padding: var(--space-32) 0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .hero-cta,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: #000;
    }
    
    p {
        orphans: 3;
        widows: 3;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-600: #000;
        --primary-500: #000;
        --gray-700: #000;
        --gray-900: #000;
        --white: #fff;
        --gray-100: #fff;
    }
    
    .btn-primary {
        background: #000;
        color: #fff;
        border-color: #000;
    }
    
    .btn-secondary {
        background: #fff;
        color: #000;
        border-color: #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-fade-in-up {
        animation: none;
    }
    
    .service-card:hover,
    .card:hover {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --gray-50: #0f172a;
        --gray-100: #1e293b;
        --gray-200: #334155;
        --gray-300: #475569;
        --gray-400: #64748b;
        --gray-500: #94a3b8;
        --gray-600: #cbd5e1;
        --gray-700: #e2e8f0;
        --gray-800: #f1f5f9;
        --gray-900: #f8fafc;
        --white: #0f172a;
    }
    
    body {
        background-color: var(--white);
        color: var(--gray-300);
    }
    
    .navbar {
        background-color: rgba(15, 23, 42, 0.95);
        border-bottom-color: var(--gray-700);
    }
    
    .card {
        background-color: var(--gray-100);
        border-color: var(--gray-700);
    }
    
    .service-card {
        background-color: var(--gray-100);
    }
    
    .footer {
        background-color: var(--gray-900);
    }
}