/* Tablet Stiller */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content .container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .features-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Mobil Stiller */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        padding: 0;
        transition: left 0.3s ease;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
        margin: 0;
    }
    
    .nav-menu a {
        color: var(--primary) !important;
        font-weight: 600 !important;
        padding: 20px 24px !important;
        display: block !important;
        transition: all 0.3s !important;
        text-align: left !important;
    }
    
    .nav-menu a:hover {
        background: #f8fafc !important;
        color: var(--primary-light) !important;
        padding-left: 32px !important;
    }
    
    .nav-menu a::after {
        display: none !important;
    }
    
    .btn-quote {
        background: var(--gradient) !important;
        color: #fff !important;
        margin: 20px 24px !important;
        padding: 16px 32px !important;
        border-radius: 12px !important;
        font-weight: 700 !important;
        text-align: center !important;
        border: none !important;
        box-shadow: 0 4px 24px rgba(37,99,235,0.15) !important;
        display: block !important;
    }
    
    .btn-quote:hover {
        background: var(--primary-dark) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 32px rgba(37,99,235,0.25) !important;
        padding-left: 32px !important;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger span {
        background: #fff !important;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
        background: #fff !important;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
        background: #fff !important;
    }
    
    /* Hero Section */
    .hero {
        min-height: 80vh;
        padding-top: 80px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    /* Sections */
    .services,
    .features,
    .gallery-preview,
    .testimonials,
    .cta {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* Service Cards */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    /* Features */
    .features-text h2 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .feature-item {
        gap: 15px;
    }
    
    .feature-item i {
        font-size: 1.3rem;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Testimonials */
    .testimonials-slider {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonial-item {
        padding: 30px 20px;
    }
    
    /* CTA */
    .cta-content h2 {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .cta-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Küçük Mobil Stiller */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .service-card {
        padding: 25px 15px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .testimonial-item {
        padding: 25px 15px;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
}

/* Form Stiller (Mobil) */
@media (max-width: 768px) {
    .form-container {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-control {
        padding: 10px;
        font-size: 14px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-col {
        width: 100%;
        margin-bottom: 15px;
    }
}

/* Admin Panel Mobil Stiller */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        position: fixed;
        z-index: 1000;
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0;
    }
    
    .admin-header {
        padding-left: 15px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .table-responsive {
        overflow-x: auto;
    }
    
    .table-responsive table {
        min-width: 600px;
    }
}

/* Lightbox Mobil Düzenlemeleri */
@media (max-width: 768px) {
    .lightbox {
        padding: 20px;
    }
    
    .lightbox .lb-image {
        max-width: 90%;
        max-height: 70%;
    }
    
    .lightbox .lb-nav {
        width: 50px;
        height: 50px;
    }
    
    .lightbox .lb-prev {
        left: 10px;
    }
    
    .lightbox .lb-next {
        right: 10px;
    }
}

/* Yükleme Animasyonu Mobil */
@media (max-width: 768px) {
    .loading-overlay {
        padding: 20px;
    }
    
    .loading-spinner {
        width: 40px;
        height: 40px;
    }
}

/* Scroll Animasyonları Mobil */
@media (max-width: 768px) {
    .fade-in-up {
        animation-duration: 0.8s;
    }
}

/* Hover Efektleri Mobil İçin Devre Dışı */
@media (hover: none) {
    .service-card:hover,
    .gallery-item:hover,
    .btn:hover,
    .social-links a:hover,
    .scroll-top:hover {
        transform: none;
    }
    
    .service-card:hover::before {
        left: -100%;
    }
    
    .gallery-item:hover .gallery-overlay {
        opacity: 0;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
}

/* Touch Device Optimizasyonları */
@media (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-menu a {
        padding: 10px;
        display: block;
    }
    
    .gallery-link {
        width: 60px;
        height: 60px;
    }
    
    .social-links a {
        width: 50px;
        height: 50px;
    }
}

/* Yatay Yönlendirme (Landscape) */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-content .container {
        padding-top: 60px;
    }
    
    .nav-menu {
        height: calc(100vh - 60px);
        top: 60px;
    }
}
