/* ========================================
   KAPSAMLI RESPONSIVE TASARIM OPTİMİZASYONU
   Mobile-First Yaklaşım ile Tamamen Hatasız
   ======================================== */

/* ===== ROOT VARIABLES - RESPONSIVE ===== */
:root {
    --mobile-font-size: 14px;
    --tablet-font-size: 16px;
    --desktop-font-size: 18px;
    --mobile-padding: 15px;
    --tablet-padding: 30px;
    --desktop-padding: 50px;
    --mobile-margin: 20px;
    --tablet-margin: 40px;
    --desktop-margin: 60px;
}

/* ===== MOBILE FIRST - EXTRA SMALL DEVICES (320px - 575px) ===== */
@media (max-width: 575.98px) {
    /* Global Reset */
    * {
        box-sizing: border-box;
    }
    
    body {
        font-size: var(--mobile-font-size);
        line-height: 1.6;
        overflow-x: hidden;
    }
    
    /* Container Optimizations */
    .container, .container-fluid {
        padding-left: var(--mobile-padding);
        padding-right: var(--mobile-padding);
        max-width: 100%;
    }
    
    /* Typography */
    h1 { font-size: 1.8rem; line-height: 1.3; }
    h2 { font-size: 1.6rem; line-height: 1.3; }
    h3 { font-size: 1.4rem; line-height: 1.3; }
    h4 { font-size: 1.2rem; line-height: 1.3; }
    h5 { font-size: 1.1rem; line-height: 1.3; }
    h6 { font-size: 1rem; line-height: 1.3; }
    
    p {
        font-size: var(--mobile-font-size);
        margin-bottom: 1rem;
    }
    
    /* Header & Navigation */
    .main-responsive-nav {
        height: 60px;
        padding: 0 var(--mobile-padding);
    }
    
    .mobile-nav .logo {
        font-size: 1.2rem;
        top: 15px;
    }
    
    .menu-small-device {
        top: 12px;
        right: var(--mobile-padding);
    }
    
    .menu-small-device .default-button {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* Topbar */
    .topbar {
        padding: 8px 0;
    }
    
    .topbar-content {
        padding: 0 var(--mobile-padding);
        flex-direction: column;
        text-align: center;
    }
    
    .topbar-left-side ul li {
        font-size: 12px;
        margin-right: 8px;
    }
    
    .topbar-right-area {
        margin-top: 8px;
        justify-content: center;
    }
    
    /* MAIN BANNER - COMPLETELY REDESIGNED */
    .main-banner {
        min-height: 100vh;
        margin-top: 0;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #f42424 0%, #d41e1e 100%);
        overflow: hidden;
        padding: 80px 20px 40px;
    }
    
    /* FORCE MOBILE LAYOUT STRUCTURE */
    .main-banner .container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }
    
    .main-banner .row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }
    
    .main-banner .col-12 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }
    
    /* OPTIMIZED MOBILE HERO LAYOUT */
    .hero-text {
        order: 1;
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .hero-visual {
        order: 2;
        width: 100%;
        text-align: center;
        margin: 30px 0;
    }
    
    .hero-stats {
        order: 3;
        width: 100%;
        text-align: center;
        margin: 20px 0;
    }
    
    .hero-buttons {
        order: 4;
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }
    
    .main-banner::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg, rgba(244, 36, 36, 0.9) 0%, rgba(212, 30, 30, 0.8) 100%);
        z-index: 1;
    }
    
    .banner-text-area {
        position: relative;
        z-index: 2;
        padding: 0;
        text-align: center;
        color: white;
        width: 100%;
        max-width: 500px;
        margin: 0 auto 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
    }
    
    /* Hero Content Perfect Centering */
    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
        min-height: 100vh;
        padding: 20px 0;
    }
    
    .hero-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-visual {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 30px;
    }
    
    .hero-image-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 300px;
    }
    
    /* HERO TEXT OPTIMIZATION */
    .hero-title {
        font-size: 2.2rem;
        font-weight: 700;
        margin-bottom: 15px;
        line-height: 1.2;
    }
    
    .title-main {
        color: #ffffff;
        display: block;
        text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
    
    .title-accent {
        color: #ffffff;
        display: block;
        font-size: 1.8rem;
        margin-top: 5px;
        text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
    
    .hero-description {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 25px;
        opacity: 0.95;
        color: #ffffff;
        text-shadow: 0 1px 5px rgba(0,0,0,0.3);
    }
    
    .banner-text-area h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
        font-weight: 700;
        line-height: 1.2;
        color: #ffffff !important;
        text-shadow: 0 3px 15px rgba(0,0,0,0.5);
        animation: fadeInUp 0.8s ease-out;
    }
    
    .banner-text-area p {
        font-size: 16px;
        margin-bottom: 2rem;
        line-height: 1.6;
        color: #ffffff !important;
        text-shadow: 0 2px 10px rgba(0,0,0,0.4);
        animation: fadeInUp 0.8s ease-out 0.2s both;
    }
    
    .banner-buttons {
        animation: fadeInUp 0.8s ease-out 0.4s both;
    }
    
    .banner-buttons ul {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    /* OPTIMIZED HERO BUTTONS */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
        margin-top: 30px;
        padding: 0 20px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
        padding: 15px 30px;
        text-align: center;
        background: white;
        color: #f42424;
        border: 2px solid white;
        font-weight: 600;
        font-size: 16px;
        border-radius: 50px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .btn-primary:hover, .btn-secondary:hover {
        background: transparent;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    }
    
    .btn-primary i, .btn-secondary i {
        font-size: 18px;
    }
    
    /* HERO IMAGE SECTION - MOBILE OPTIMIZED POSITIONING */
    .banner-img-area {
        position: relative;
        z-index: 2;
        margin: 20px 0;
        text-align: center;
        width: 100%;
        padding: 0 20px;
    }
    
    .banner-img-area img {
        width: 100%;
        max-width: 250px;
        height: 180px;
        object-fit: cover;
        border-radius: 15px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.2);
        transition: transform 0.3s ease;
        display: block;
        margin: 0 auto;
    }
    
    .banner-img-area img:hover {
        transform: scale(1.02);
    }
    
    /* HERO CONTENT LAYOUT - MOBILE OPTIMIZED */
    .hero-content-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0 15px;
        gap: 20px;
    }
    
    .hero-text-section {
        width: 100%;
        text-align: center;
        order: 1;
    }
    
    /* FORCE HERO IMAGE POSITION - MOBILE ONLY */
    .hero-visual {
        order: 2 !important;
        margin: 20px 0 !important;
        width: 100% !important;
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-direction: column !important;
    }
    
    .hero-image-container {
        width: 100% !important;
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-direction: column !important;
    }
    
    .hero-image {
        width: 100% !important;
        max-width: 250px !important;
        height: 180px !important;
        object-fit: cover !important;
        border-radius: 15px !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important;
        display: block !important;
        margin: 0 auto !important;
        position: relative !important;
    }
    
    .image-wrapper {
        width: 100% !important;
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        position: relative !important;
    }
    
    /* FORCE CENTER POSITIONING */
    .hero-visual * {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* OVERRIDE ALL FLOATING ELEMENTS */
    .floating-elements {
        display: none !important;
    }
    
    .floating-card {
        display: none !important;
    }
    
    /* CLEAN MOBILE HERO LAYOUT */
    .hero-visual {
        order: 2;
        width: 100%;
        text-align: center;
        margin: 30px 0;
        padding: 0 20px;
    }
    
    .hero-image-container {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        position: relative;
    }
    
    .image-wrapper {
        width: 100%;
        position: relative;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
    
    .hero-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 15px;
        transition: transform 0.3s ease;
    }
    
    .hero-image:hover {
        transform: scale(1.02);
    }
    
    .image-overlay {
        position: absolute !important;
        bottom: 10px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        background: rgba(0,0,0,0.7) !important;
        color: white !important;
        padding: 10px 15px !important;
        border-radius: 8px !important;
        text-align: center !important;
    }
    
    .overlay-content h3 {
        font-size: 14px !important;
        margin: 0 0 5px 0 !important;
        font-weight: 600 !important;
    }
    
    .overlay-content p {
        font-size: 12px !important;
        margin: 0 !important;
        opacity: 0.9 !important;
    }
    
    /* OPTIMIZED HERO STATS STYLING */
    .hero-stats {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin: 25px 0;
        flex-wrap: wrap;
        padding: 0 20px;
    }
    
    .stat-item {
        background: rgba(255, 255, 255, 0.95);
        padding: 20px 15px;
        border-radius: 15px;
        text-align: center;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        min-width: 120px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .stat-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    }
    
    .stat-number {
        font-size: 2.2rem;
        font-weight: 700;
        color: #f42424;
        margin-bottom: 8px;
        display: block;
        text-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .stat-label {
        font-size: 13px;
        color: #333;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        line-height: 1.2;
    }
    
    /* STATS SECTION - IMPROVED LAYOUT */
    .stats-section {
        width: 100%;
        margin-top: 30px;
        padding: 0 15px;
    }
    
    .stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-top: 20px;
    }
    
    .stat-card {
        background: rgba(255, 255, 255, 0.95);
        padding: 20px 15px;
        border-radius: 12px;
        text-align: center;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .stat-card .stat-number {
        font-size: 2rem;
        font-weight: 700;
        color: #f42424 !important;
        margin-bottom: 5px;
        display: block;
    }
    
    .stat-card .stat-label {
        font-size: 12px;
        color: #333 !important;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Stats Cards - IMPROVED */
    .stats-section {
        position: relative;
        z-index: 2;
        margin-top: 40px;
    }
    
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 30px;
    }
    
    .stat-card {
        background: rgba(255, 255, 255, 0.95);
        padding: 25px 20px;
        border-radius: 15px;
        text-align: center;
        box-shadow: 0 8px 25px rgba(0,0,0,0.2);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
    }
    
    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 35px rgba(0,0,0,0.3);
    }
    
    .stat-card .stat-number {
        font-size: 2.5rem;
        font-weight: 700;
        color: #f42424 !important;
        margin-bottom: 8px;
        display: block;
        text-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .stat-card .stat-label {
        font-size: 14px;
        color: #333 !important;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    /* Animations */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Sections */
    .ptb-100 {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .pt-100 { padding-top: 40px; }
    .pb-100 { padding-bottom: 40px; }
    .ptb-70 {
        padding-top: 30px;
        padding-bottom: 30px;
    }
    .pt-70 { padding-top: 30px; }
    .pb-70 { padding-bottom: 30px; }
    
    /* Cards */
    .service-card,
    .blog-card,
    .testimonial-card,
    .team-card {
        margin-bottom: 20px;
        padding: 20px;
    }
    
    .service-card .service-card-text,
    .blog-card .blog-text-area {
        padding: 15px;
    }
    
    /* Forms */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 15px;
    }
    
    .default-button {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Footer */
    .footer-links {
        margin-top: 30px;
        text-align: center;
    }
    
    .footer-links ul {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Fotoğraf Galerisi Responsive Düzenlemeleri */
    .portfolio-card-4 {
        height: 200px !important;
        margin-top: 15px !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
        transition: all 0.3s ease !important;
    }
    
    .portfolio-card-4:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    }
    
    .portfolio-card-4 img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 12px !important;
    }
    
    /* Grid System Optimizations */
    .row {
        margin-left: -8px !important;
        margin-right: -8px !important;
    }
    
    .col-lg-4, .col-md-6, .col-sm-12, .col-12 {
        padding-left: 8px !important;
        padding-right: 8px !important;
        margin-bottom: 16px !important;
    }
    
    /* Touch-friendly buttons */
    .default-button {
        min-height: 48px !important;
        padding: 12px 24px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
        touch-action: manipulation !important;
    }
    
    /* Improved spacing */
    .portfolio-cards-area-4 {
        padding: 20px 0 !important;
    }
    
    /* Better text hierarchy */
    .portfolio-card-4-text-area h4 {
        font-size: 16px !important;
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
    }
    
    .portfolio-card-4-text-area h4 a {
        color: #ffffff !important;
        text-decoration: none !important;
        font-weight: 600 !important;
    }
    
    /* Hide decorative elements on mobile */
    .shape,
    .floating-element {
        display: none;
    }
    
    /* Mobile Navigation Enhancements */
    .mobile-nav {
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        background: rgba(0, 0, 0, 0.8) !important;
    }
    
    .mobile-nav-content {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.4) !important;
        border-radius: 0 20px 20px 0 !important;
        width: 85% !important;
        max-width: 320px !important;
    }
    
    .mobile-nav-header {
        background: linear-gradient(135deg, #f42424 0%, #f42424 100%) !important;
        padding: 20px !important;
        border-radius: 0 20px 0 0 !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
    }
    
    .mobile-nav-title {
        color: white !important;
        font-size: 20px !important;
        font-weight: 700 !important;
        margin: 0 !important;
    }
    
    .mobile-nav-close {
        background: rgba(255, 255, 255, 0.2) !important;
        border: none !important;
        color: white !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s ease !important;
    }
    
    .mobile-nav-close:hover {
        background: rgba(255, 255, 255, 0.3) !important;
        transform: scale(1.1) !important;
    }
    
    .mobile-nav-menu {
        padding: 20px !important;
        list-style: none !important;
        margin: 0 !important;
    }
    
    .mobile-nav-item {
        margin-bottom: 8px !important;
    }
    
    .mobile-nav-link {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 16px 20px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
        color: #333 !important;
        text-decoration: none !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        background: rgba(255, 255, 255, 0.8) !important;
        border: 1px solid rgba(244, 36, 36, 0.1) !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .mobile-nav-link::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(90deg, transparent, rgba(244, 36, 36, 0.1), transparent) !important;
        transition: left 0.5s ease !important;
    }
    
    .mobile-nav-link:hover::before {
        left: 100% !important;
    }
    
    .mobile-nav-link:hover {
        background: linear-gradient(135deg, #f42424 0%, #f42424 100%) !important;
        color: white !important;
        transform: translateX(8px) scale(1.02) !important;
        box-shadow: 0 8px 25px rgba(244, 36, 36, 0.3) !important;
        border-color: #f42424 !important;
    }
    
    .mobile-nav-link i {
        font-size: 18px !important;
        width: 24px !important;
        text-align: center !important;
        transition: transform 0.3s ease !important;
    }
    
    .mobile-nav-link:hover i {
        transform: scale(1.1) rotate(5deg) !important;
    }
    
    /* Mobile Dropdown Enhancements */
    .mobile-dropdown {
        background: rgba(248, 248, 248, 0.95) !important;
        border-radius: 8px !important;
        margin: 8px 0 0 20px !important;
        padding: 8px 0 !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
        border: 1px solid rgba(244, 36, 36, 0.1) !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease !important;
    }
    
    .mobile-dropdown.active {
        max-height: 200px !important;
    }
    
    .mobile-dropdown-link {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 12px 20px !important;
        color: #666 !important;
        text-decoration: none !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        transition: all 0.3s ease !important;
        border-radius: 6px !important;
        margin: 2px 8px !important;
    }
    
    .mobile-dropdown-link:hover {
        background: linear-gradient(135deg, #f42424 0%, #f42424 100%) !important;
        color: white !important;
        transform: translateX(5px) !important;
    }
    
    /* Touch-friendly mobile buttons */
    .hamburger-btn {
        width: 48px !important;
        height: 48px !important;
        border-radius: 12px !important;
        background: linear-gradient(135deg, #f42424 0%, #f42424 100%) !important;
        box-shadow: 0 4px 15px rgba(244, 36, 36, 0.3) !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .hamburger-btn::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
        transition: left 0.5s ease !important;
    }
    
    .hamburger-btn:hover::before {
        left: 100% !important;
    }
    
    .hamburger-btn:hover {
        transform: scale(1.05) !important;
        box-shadow: 0 6px 20px rgba(244, 36, 36, 0.4) !important;
    }
    
    .hamburger-btn span {
        width: 20px !important;
        height: 3px !important;
        border-radius: 2px !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        z-index: 2 !important;
    }
    
    .hamburger-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px) !important;
    }
    
    .hamburger-btn.active span:nth-child(2) {
        opacity: 0 !important;
    }
    
    .hamburger-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px) !important;
    }
    
    /* Touch-friendly contact button */
    .mobile-contact-btn {
        width: 48px !important;
        height: 48px !important;
        border-radius: 12px !important;
        background: linear-gradient(135deg, #f42424 0%, #f42424 100%) !important;
        color: white !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 4px 15px rgba(244, 36, 36, 0.3) !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .mobile-contact-btn::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
        transition: left 0.5s ease !important;
    }
    
    .mobile-contact-btn:hover::before {
        left: 100% !important;
    }
    
    .mobile-contact-btn:hover {
        transform: scale(1.05) !important;
        box-shadow: 0 6px 20px rgba(244, 36, 36, 0.4) !important;
        color: white !important;
        text-decoration: none !important;
    }
    
    .mobile-contact-btn i {
        font-size: 18px !important;
        position: relative !important;
        z-index: 2 !important;
    }
    
    /* MOBILE PERFORMANCE OPTIMIZATIONS */
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    /* Advanced Performance Optimizations */
    .portfolio-card-4 {
        will-change: transform, box-shadow !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
    }
    
    .portfolio-card-4 img {
        will-change: transform !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
    }
    
    /* GPU Acceleration for smooth animations */
    .mobile-nav,
    .mobile-nav-content,
    .hamburger-btn {
        will-change: transform, opacity !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
    }
    
    /* Optimized image loading - HTML attributes will be handled in PHP */
    .portfolio-card-4 img {
        /* loading: lazy and decoding: async will be added as HTML attributes */
        image-rendering: -webkit-optimize-contrast !important;
        image-rendering: crisp-edges !important;
    }
    
    /* Reduced motion for accessibility */
    @media (prefers-reduced-motion: reduce) {
        .portfolio-card-4,
        .portfolio-card-4 img,
        .mobile-nav-link,
        .hamburger-btn {
            transition: none !important;
            animation: none !important;
        }
    }
    
    /* High contrast mode support */
    @media (prefers-contrast: high) {
        .portfolio-card-4 {
            border: 2px solid #000 !important;
        }
        
        .mobile-nav-link {
            border: 1px solid #000 !important;
        }
    }
    
    /* Advanced Menu Animations */
    @keyframes slideInFromLeft {
        from {
            transform: translateX(-100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
    
    @keyframes slideInFromRight {
        from {
            transform: translateX(100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
    
    @keyframes fadeInUp {
        from {
            transform: translateY(20px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    @keyframes pulse {
        0% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.05);
        }
        100% {
            transform: scale(1);
        }
    }
    
    /* Mobile Menu Animation */
    .mobile-nav.active .mobile-nav-content {
        animation: slideInFromLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .mobile-nav-item {
        animation: fadeInUp 0.3s ease forwards !important;
        opacity: 0 !important;
    }
    
    .mobile-nav-item:nth-child(1) { animation-delay: 0.1s !important; }
    .mobile-nav-item:nth-child(2) { animation-delay: 0.2s !important; }
    .mobile-nav-item:nth-child(3) { animation-delay: 0.3s !important; }
    .mobile-nav-item:nth-child(4) { animation-delay: 0.4s !important; }
    .mobile-nav-item:nth-child(5) { animation-delay: 0.5s !important; }
    
    /* Desktop Menu Hover Animations */
    .ultra-modern-header .nav-item {
        animation: fadeInUp 0.5s ease forwards !important;
        opacity: 0 !important;
    }
    
    .ultra-modern-header .nav-item:nth-child(1) { animation-delay: 0.1s !important; }
    .ultra-modern-header .nav-item:nth-child(2) { animation-delay: 0.2s !important; }
    .ultra-modern-header .nav-item:nth-child(3) { animation-delay: 0.3s !important; }
    .ultra-modern-header .nav-item:nth-child(4) { animation-delay: 0.4s !important; }
    .ultra-modern-header .nav-item:nth-child(5) { animation-delay: 0.5s !important; }
    
    /* Menu Performance Optimizations */
    .ultra-modern-header .nav-link,
    .mobile-nav-link,
    .hamburger-btn,
    .mobile-contact-btn {
        will-change: transform, box-shadow !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
    }
    
    /* Smooth scrolling for menu links */
    .mobile-nav-link,
    .ultra-modern-header .nav-link {
        scroll-behavior: smooth !important;
    }
    
    /* Focus states for accessibility */
    .mobile-nav-link:focus,
    .ultra-modern-header .nav-link:focus,
    .hamburger-btn:focus,
    .mobile-contact-btn:focus {
        outline: 3px solid #f42424 !important;
        outline-offset: 2px !important;
    }
    
    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {
        .mobile-nav-item,
        .ultra-modern-header .nav-item,
        .mobile-nav-link,
        .ultra-modern-header .nav-link,
        .hamburger-btn,
        .mobile-contact-btn {
            animation: none !important;
            transition: none !important;
        }
    }
    
    /* FORCE MOBILE LAYOUT FIXES */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Hero Stats Perfect Centering */
    .hero-stats {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin: 30px 0;
        flex-wrap: wrap;
    }
    
    .stat-item {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        background: rgba(255, 255, 255, 0.1);
        padding: 20px;
        border-radius: 15px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        min-width: 120px;
    }
    
    .stat-number {
        font-size: 2rem;
        font-weight: 700;
        color: #ffffff;
        margin-bottom: 5px;
    }
    
    .stat-label {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.8);
        font-weight: 500;
    }
    
    /* Hero Buttons Perfect Centering */
    .hero-buttons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
        margin-top: 30px;
        flex-wrap: wrap;
    }
    
    .btn-primary,
    .btn-secondary {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 15px 25px;
        border-radius: 12px;
        text-decoration: none;
        font-weight: 600;
        font-size: 16px;
        transition: all 0.3s ease;
        min-width: 150px;
        justify-content: center;
    }
    
    .btn-primary {
        background: linear-gradient(135deg, #f42424 0%, #f42424 100%);
        color: white;
        border: 2px solid #f42424;
    }
    
    .btn-primary:hover {
        background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
        color: #f42424;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(244, 36, 36, 0.3);
    }
    
    .btn-secondary {
        background: transparent;
        color: #f42424;
        border: 2px solid #f42424;
    }
    
    .btn-secondary:hover {
        background: linear-gradient(135deg, #f42424 0%, #f42424 100%);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(244, 36, 36, 0.3);
    }
    
    .row {
        margin-left: -10px !important;
        margin-right: -10px !important;
    }
    
    .col-12, .col-md-6, .col-lg-4, .col-xl-3 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* MOBILE HEADER FIXES */
    .main-responsive-nav {
        padding: 10px 15px !important;
        background: #ffffff !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    }
    
    .mobile-header-actions {
        gap: 10px !important;
    }
    
    .mobile-contact-btn {
        background: #f42424 !important;
        color: white !important;
        padding: 8px 12px !important;
        border-radius: 6px !important;
        text-decoration: none !important;
        font-size: 14px !important;
    }
}

/* ===== SMALL DEVICES (576px - 767px) ===== */
@media (min-width: 576px) and (max-width: 767.98px) {
    body {
        font-size: 15px;
    }
    
    .container, .container-fluid {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.8rem; }
    
    .banner-text-area h1 {
        font-size: 3rem;
    }
    
    .banner-buttons ul {
        flex-direction: row;
        gap: 20px;
        justify-content: center;
    }
    
    .banner-buttons ul li .default-button {
        width: auto;
        min-width: 180px;
        padding: 18px 35px;
    }
    
    /* Hero Image for Tablet - NORMAL POSITION */
    .banner-img-area {
        margin-top: 40px;
    }
    
    .banner-img-area img {
        max-width: 400px;
        height: 250px;
    }
    
    /* RESET ORDER FOR TABLET */
    .hero-text {
        order: 1 !important;
    }
    
    .hero-stats {
        order: 2 !important;
    }
    
    .hero-buttons {
        order: 3 !important;
    }
    
    .hero-visual {
        order: 4 !important;
    }
    
    .hero-image-section {
        order: 3; /* Back to normal position on tablet */
    }
    
    .stats-section {
        order: 2; /* Stats before image on tablet */
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .ptb-100 {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    
    .service-card,
    .blog-card {
        padding: 25px;
    }
    
    .default-button {
        width: auto;
        padding: 12px 25px;
    }
}

/* ===== MEDIUM DEVICES (768px - 991px) ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
    body {
        font-size: var(--tablet-font-size);
    }
    
    .container, .container-fluid {
        padding-left: var(--tablet-padding);
        padding-right: var(--tablet-padding);
    }
    
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.4rem; }
    h3 { font-size: 2rem; }
    
    .banner-text-area {
        padding: 80px var(--tablet-padding);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        min-height: 100vh;
        width: 100%;
    }
    
    .banner-text-area h1 {
        font-size: 3.5rem;
    }
    
    /* Tablet Hero Content Centering */
    .hero-content {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        text-align: left;
        width: 100%;
        min-height: 100vh;
        padding: 40px 0;
        gap: 40px;
    }
    
    .hero-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        text-align: left;
        width: 50%;
        max-width: 500px;
    }
    
    .hero-visual {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 50%;
        max-width: 400px;
    }
    
    .hero-image-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 400px;
    }
    
    .ptb-100 {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .service-card,
    .blog-card {
        padding: 30px;
    }
    
    .default-button {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    /* Grid layouts for tablets */
    .row {
        margin-left: -15px;
        margin-right: -15px;
    }
    
    .col-md-6 {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ===== LARGE DEVICES (992px - 1199px) ===== */
@media (min-width: 992px) and (max-width: 1199.98px) {
    body {
        font-size: var(--desktop-font-size);
    }
    
    .container, .container-fluid {
        padding-left: var(--desktop-padding);
        padding-right: var(--desktop-padding);
    }
    
    h1 { font-size: 3.2rem; }
    h2 { font-size: 2.8rem; }
    h3 { font-size: 2.4rem; }
    
    .banner-text-area {
        padding: 100px var(--desktop-padding);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        min-height: 100vh;
        width: 100%;
    }
    
    .banner-text-area h1 {
        font-size: 4.5rem;
        margin-bottom: 2rem;
    }
    
    .banner-text-area p {
        font-size: 18px;
        margin-bottom: 2.5rem;
    }
    
    /* Desktop Hero Content Perfect Centering */
    .hero-content {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        text-align: left;
        width: 100%;
        min-height: 100vh;
        padding: 60px 0;
        gap: 60px;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .hero-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        text-align: left;
        width: 50%;
        max-width: 600px;
        padding-right: 40px;
    }
    
    .hero-visual {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 50%;
        max-width: 500px;
    }
    
    .hero-image-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 500px;
    }
    
    .banner-buttons ul li .default-button {
        padding: 20px 40px;
        font-size: 18px;
        min-width: 200px;
    }
    
    /* Fotoğraf Galerisi Tablet Düzenlemeleri */
    .portfolio-card-4 {
        height: 280px !important;
        border-radius: 15px !important;
        box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .portfolio-card-4:hover {
        transform: translateY(-8px) scale(1.02) !important;
        box-shadow: 0 12px 35px rgba(0,0,0,0.2) !important;
    }
    
    .portfolio-card-4 img {
        border-radius: 15px !important;
        transition: transform 0.4s ease !important;
    }
    
    .portfolio-card-4:hover img {
        transform: scale(1.08) !important;
    }
    
    /* Tablet Grid Optimizations */
    .row {
        margin-left: -12px !important;
        margin-right: -12px !important;
    }
    
    .col-lg-4, .col-md-6 {
        padding-left: 12px !important;
        padding-right: 12px !important;
        margin-bottom: 24px !important;
    }
    
    /* Enhanced Typography for Tablet */
    .portfolio-card-4-text-area h4 {
        font-size: 18px !important;
        line-height: 1.3 !important;
    }
    
    /* Better Button Styling */
    .default-button {
        min-height: 52px !important;
        padding: 14px 28px !important;
        font-size: 17px !important;
        border-radius: 10px !important;
        font-weight: 600 !important;
    }
    
    /* Tablet Navigation Enhancements */
    .ultra-modern-header .nav-menu {
        gap: 6px !important;
        padding: 0 15px !important;
    }
    
    .ultra-modern-header .nav-link {
        padding: 10px 16px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        min-width: 100px !important;
    }
    
    .ultra-modern-header .nav-link:hover {
        transform: translateY(-2px) scale(1.03) !important;
        box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25) !important;
    }
    
    .ultra-modern-header .nav-link i {
        font-size: 14px !important;
    }
    
    .ultra-modern-header .nav-link:hover i {
        transform: scale(1.1) rotate(5deg) !important;
    }
    
    /* Tablet Dropdown Styling */
    .ultra-modern-header .modern-dropdown {
        border-radius: 12px !important;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
        padding: 10px 0 !important;
        min-width: 200px !important;
    }
    
    .ultra-modern-header .modern-dropdown .dropdown-link {
        padding: 12px 18px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        margin: 3px 10px !important;
    }
    
    .ultra-modern-header .modern-dropdown .dropdown-link:hover {
        transform: translateX(6px) scale(1.01) !important;
        box-shadow: 0 6px 20px rgba(244, 36, 36, 0.25) !important;
    }
    
    /* Tablet User Button */
    .ultra-modern-header .user-btn {
        padding: 12px 18px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
        min-height: 52px !important;
    }
    
    .ultra-modern-header .user-btn:hover {
        transform: translateY(-1px) scale(1.03) !important;
        box-shadow: 0 8px 25px rgba(244, 36, 36, 0.35) !important;
    }
    
    /* Hero Image for Desktop - NORMAL POSITION */
    .banner-img-area {
        margin-top: 50px;
    }
    
    .banner-img-area img {
        max-width: 500px;
        height: 300px;
        border-radius: 25px;
    }
    
    /* RESET ORDER FOR DESKTOP */
    .hero-text {
        order: 1 !important;
    }
    
    .hero-stats {
        order: 2 !important;
    }
    
    .hero-buttons {
        order: 3 !important;
    }
    
    .hero-visual {
        order: 4 !important;
    }
    
    .hero-image-section {
        order: 3; /* Back to normal position on desktop */
    }
    
    .stats-section {
        order: 2; /* Stats before image on desktop */
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
    
    .stat-card {
        padding: 30px 25px;
    }
    
    .stat-card .stat-number {
        font-size: 3rem;
    }
    
    .ptb-100 {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    
    .service-card,
    .blog-card {
        padding: 35px;
    }
    
    .default-button {
        padding: 18px 35px;
        font-size: 17px;
    }
}

/* ===== EXTRA LARGE DEVICES (1200px+) ===== */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .banner-text-area h1 {
        font-size: 4.5rem;
    }
    
    .ptb-100 {
        padding-top: 100px;
        padding-bottom: 100px;
    }
    
    .service-card,
    .blog-card {
        padding: 40px;
    }
    
    .default-button {
        padding: 20px 40px;
        font-size: 18px;
    }
}

/* ===== ULTRA WIDE SCREENS (1400px+) ===== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .banner-text-area h1 {
        font-size: 5rem;
    }
    
    .ptb-100 {
        padding-top: 120px;
        padding-bottom: 120px;
    }
}

/* ===== LANDSCAPE ORIENTATION OPTIMIZATIONS ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .main-banner {
        min-height: 300px;
    }
    
    .banner-text-area {
        padding: 20px var(--mobile-padding);
    }
    
    .banner-text-area h1 {
        font-size: 1.8rem;
    }
    
    .ptb-100 {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .main-responsive-nav,
    .topbar,
    .footer,
    .default-button {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    p {
        orphans: 3;
        widows: 3;
    }
}

/* ===== EK RESPONSIVE OPTİMİZASYONLAR ===== */

/* ===== PERFORMANS OPTİMİZASYONLARI ===== */
@media (max-width: 767.98px) {
    /* Lazy loading için */
    img[data-src] {
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    img[data-src].loaded {
        opacity: 1;
    }
    
    /* Touch optimizations */
    .default-button,
    .btn,
    a {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Scroll optimizations */
    .container,
    .container-fluid {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Form optimizations */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
        -webkit-appearance: none;
        appearance: none;
        border-radius: 4px;
    }
    
    /* COMPLETELY NEW MOBILE MENU SYSTEM */
    .mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.8);
        z-index: 9999;
        display: none;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-content {
        position: absolute;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #ffffff;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }
    
    .mobile-nav.active {
        display: block;
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-nav.active .mobile-nav-content {
        transform: translateX(0);
    }
    
    .mobile-nav-header {
        background: #f42424;
        color: white;
        padding: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-nav-title {
        font-size: 1.2rem;
        font-weight: 700;
        margin: 0;
    }
    
    .mobile-nav-close {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 5px;
    }
    
    .mobile-nav-menu {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-nav-item {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .mobile-nav-link {
        display: flex;
        align-items: center;
        padding: 15px 20px;
        color: #333;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-link:hover {
        background: #f42424;
        color: white;
    }
    
    .mobile-nav-link i {
        margin-right: 12px;
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
    }
    
    .mobile-nav .navbar-nav .nav-item {
        margin: 0;
        border-bottom: 1px solid rgba(244, 36, 36, 0.1);
    }
    
    .mobile-nav .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    .mobile-nav .navbar-nav .nav-item .nav-link {
        display: flex !important;
        align-items: center;
        padding: 15px 25px;
        color: #333 !important;
        font-weight: 600;
        font-size: 16px;
        text-decoration: none !important;
        transition: all 0.3s ease;
        background: transparent;
        border: none;
        width: 100%;
        text-align: left;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .mobile-nav .navbar-nav .nav-item .nav-link:hover,
    .mobile-nav .navbar-nav .nav-item .nav-link:focus {
        background: #f42424 !important;
        color: #ffffff !important;
        transform: translateX(5px);
    }
    
    .mobile-nav .navbar-nav .nav-item .nav-link i {
        margin-right: 12px;
        font-size: 18px;
        width: 20px;
        text-align: center;
        color: #f42424;
    }
    
    /* Force menu items to be visible */
    .mobile-nav .navbar-nav .nav-item {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .mobile-nav .navbar-nav .nav-item a {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Mobile menu overlay - FIXED */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Force mobile menu to show */
    .mean-container .mean-bar {
        background: #ffffff !important;
        border-bottom: 2px solid #f42424 !important;
    }
    
    .mean-container .meanmenu-reveal {
        background: #f42424 !important;
        color: #ffffff !important;
        border-radius: 4px !important;
        padding: 8px !important;
    }
    
    .mean-container .meanmenu-reveal span {
        background: #ffffff !important;
    }
    
    /* Mobile menu items visibility */
    .mean-container .mean-nav ul {
        background: #ffffff !important;
        border: 1px solid #f42424 !important;
        border-radius: 0 0 10px 10px !important;
    }
    
    .mean-container .mean-nav ul li a {
        color: #333 !important;
        font-weight: 600 !important;
        padding: 15px 20px !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }
    
    .mean-container .mean-nav ul li a:hover {
        background: #f42424 !important;
        color: #ffffff !important;
    }
    
    /* HAMBURGER BUTTON - COMPLETELY FIXED */
    .hamburger-btn {
        background: #f42424;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3px;
        padding: 8px;
        transition: all 0.3s ease;
        width: 40px;
        height: 40px;
    }
    
    .hamburger-btn:hover {
        background: #d41e1e;
        transform: scale(1.05);
    }
    
    .hamburger-btn span {
        width: 20px;
        height: 2px;
        background: white;
        border-radius: 1px;
        transition: all 0.3s ease;
        display: block;
    }
    
    .hamburger-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Carousel optimizations */
    .owl-carousel .owl-item {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .owl-carousel .owl-nav button {
        width: 40px;
        height: 40px;
        font-size: 18px;
        background: rgba(244, 36, 36, 0.8);
        color: white;
        border-radius: 50%;
        border: none;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .owl-carousel .owl-nav button.owl-prev {
        left: 10px;
    }
    
    .owl-carousel .owl-nav button.owl-next {
        right: 10px;
    }
    
    /* Modal optimizations */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal-content {
        border-radius: 8px;
        border: none;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
    
    .modal-header {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 15px 20px;
        border-top: 1px solid #eee;
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
}

/* ===== TABLET OPTİMİZASYONLARI ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Grid system optimizations */
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .col-md-6 {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Card optimizations */
    .service-card,
    .blog-card,
    .testimonial-card {
        margin-bottom: 25px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .service-card:hover,
    .blog-card:hover,
    .testimonial-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    
    /* Navigation optimizations */
    .main-nav {
        display: flex;
        align-items: center;
    }
    
    .main-nav .navbar-nav {
        display: flex;
        flex-direction: row;
        gap: 20px;
    }
    
    .main-nav .navbar-nav .nav-item {
        position: relative;
    }
    
    .main-nav .navbar-nav .nav-item .nav-link {
        padding: 10px 15px;
        font-weight: 500;
        transition: color 0.3s ease;
    }
    
    .main-nav .navbar-nav .nav-item .nav-link:hover {
        color: var(--mainColor);
    }
}

/* ===== DESKTOP OPTİMİZASYONLARI ===== */
@media (min-width: 992px) {
    /* Desktop Fotoğraf Galerisi Optimizasyonları */
    .portfolio-card-4 {
        height: 320px !important;
        border-radius: 18px !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
        overflow: hidden !important;
    }
    
    .portfolio-card-4:hover {
        transform: translateY(-12px) scale(1.03) !important;
        box-shadow: 0 20px 50px rgba(0,0,0,0.25) !important;
    }
    
    .portfolio-card-4 img {
        border-radius: 18px !important;
        transition: transform 0.5s ease !important;
    }
    
    .portfolio-card-4:hover img {
        transform: scale(1.1) !important;
    }
    
    /* Desktop Grid System */
    .row {
        margin-left: -15px !important;
        margin-right: -15px !important;
    }
    
    .col-lg-4 {
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-bottom: 30px !important;
    }
    
    /* Enhanced Desktop Typography */
    .portfolio-card-4-text-area h4 {
        font-size: 20px !important;
        line-height: 1.2 !important;
        font-weight: 700 !important;
    }
    
    /* Professional Button Styling */
    .default-button {
        min-height: 56px !important;
        padding: 16px 32px !important;
        font-size: 18px !important;
        border-radius: 12px !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px !important;
    }
    
    /* Desktop Navigation Enhancements */
    .ultra-modern-header .nav-menu {
        gap: 8px !important;
        padding: 0 20px !important;
    }
    
    .ultra-modern-header .nav-link {
        padding: 12px 18px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        position: relative !important;
        overflow: hidden !important;
        min-width: 120px !important;
        justify-content: center !important;
    }
    
    .ultra-modern-header .nav-link::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
        transition: left 0.6s ease !important;
    }
    
    .ultra-modern-header .nav-link:hover::before {
        left: 100% !important;
    }
    
    .ultra-modern-header .nav-link:hover {
        transform: translateY(-3px) scale(1.05) !important;
        box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3) !important;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%) !important;
    }
    
    .ultra-modern-header .nav-link i {
        font-size: 16px !important;
        transition: transform 0.3s ease !important;
    }
    
    .ultra-modern-header .nav-link:hover i {
        transform: scale(1.2) rotate(10deg) !important;
    }
    
    /* Enhanced Dropdown Styling */
    .ultra-modern-header .modern-dropdown {
        border-radius: 15px !important;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        padding: 12px 0 !important;
        min-width: 220px !important;
    }
    
    .ultra-modern-header .modern-dropdown .dropdown-link {
        padding: 14px 20px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
        margin: 4px 12px !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .ultra-modern-header .modern-dropdown .dropdown-link::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(90deg, transparent, rgba(244, 36, 36, 0.1), transparent) !important;
        transition: left 0.5s ease !important;
    }
    
    .ultra-modern-header .modern-dropdown .dropdown-link:hover::before {
        left: 100% !important;
    }
    
    .ultra-modern-header .modern-dropdown .dropdown-link:hover {
        transform: translateX(8px) scale(1.02) !important;
        box-shadow: 0 8px 25px rgba(244, 36, 36, 0.3) !important;
    }
    
    /* User Button Enhancements */
    .ultra-modern-header .user-btn {
        padding: 14px 20px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        position: relative !important;
        overflow: hidden !important;
        min-height: 56px !important;
    }
    
    .ultra-modern-header .user-btn::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(90deg, transparent, rgba(244, 36, 36, 0.1), transparent) !important;
        transition: left 0.6s ease !important;
    }
    
    .ultra-modern-header .user-btn:hover::before {
        left: 100% !important;
    }
    
    .ultra-modern-header .user-btn:hover {
        transform: translateY(-2px) scale(1.05) !important;
        box-shadow: 0 10px 30px rgba(244, 36, 36, 0.4) !important;
    }
    
    /* Hover effects */
    .service-card,
    .blog-card,
    .testimonial-card,
    .team-card {
        transition: all 0.3s ease;
    }
    
    .service-card:hover,
    .blog-card:hover,
    .testimonial-card:hover,
    .team-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    }
    
    /* Navigation hover effects */
    .main-nav .navbar-nav .nav-item .nav-link {
        position: relative;
        overflow: hidden;
    }
    
    .main-nav .navbar-nav .nav-item .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--mainColor);
        transition: width 0.3s ease;
    }
    
    .main-nav .navbar-nav .nav-item .nav-link:hover::after {
        width: 100%;
    }
    
    /* Button hover effects */
    .default-button {
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .default-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s ease;
    }
    
    .default-button:hover::before {
        left: 100%;
    }
    
    .default-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(244, 36, 36, 0.3);
    }
}

/* ===== ACCESSIBILITY OPTİMİZASYONLARI ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-color-scheme: dark) {
    /* Dark mode optimizations */
    :root {
        --whiteColor: #1a1a1a;
        --blackColor: #ffffff;
        --paragraphColor: #cccccc;
    }
    
    body {
        background-color: var(--whiteColor);
        color: var(--blackColor);
    }
    
    .card-box,
    .service-card,
    .blog-card,
    .testimonial-card {
        background-color: #2a2a2a;
        color: var(--blackColor);
    }
}

/* ===== FOCUS OPTİMİZASYONLARI ===== */
.default-button:focus,
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--mainColor);
    outline-offset: 2px;
}

/* ===== KEYBOARD NAVIGATION ===== */
@media (any-hover: none) {
    /* Touch device optimizations */
    .default-button,
    .btn {
        min-height: 48px;
        min-width: 48px;
    }
    
    .nav-link {
        padding: 12px 16px;
    }
}

/* ===== LOADING OPTİMİZASYONLARI ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--mainColor);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== ERROR HANDLING ===== */
.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
    border-left: 4px solid #c62828;
}

.success-message {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
    border-left: 4px solid #2e7d32;
}

/* ===== RESPONSIVE UTILITIES ===== */
.d-mobile-none {
    display: none;
}

@media (min-width: 768px) {
    .d-mobile-none {
        display: block;
    }
    
    .d-desktop-none {
        display: none;
    }
}

/* ===== PROFESSIONAL VISUAL HIERARCHY ===== */
@media (max-width: 767.98px) {
    /* Enhanced Typography Hierarchy */
    .section-title {
        font-size: 1.8rem;
        font-weight: 700;
        color: #333;
        margin-bottom: 1rem;
        text-align: center;
        position: relative;
    }
    
    .section-title::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 3px;
        background: linear-gradient(90deg, #f42424, #d41e1e);
        border-radius: 2px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        color: #666;
        text-align: center;
        margin-bottom: 2rem;
        line-height: 1.6;
    }
    
    /* Professional Card Design */
    .service-card,
    .blog-card,
    .testimonial-card {
        background: white;
        border-radius: 15px;
        padding: 25px;
        margin-bottom: 25px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.08);
        border: 1px solid rgba(244, 36, 36, 0.1);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .service-card::before,
    .blog-card::before,
    .testimonial-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, #f42424, #d41e1e);
    }
    
    .service-card:hover,
    .blog-card:hover,
    .testimonial-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    }
    
    /* Professional Button Design */
    .default-button {
        background: linear-gradient(135deg, #f42424 0%, #d41e1e 100%);
        color: white;
        border: none;
        border-radius: 50px;
        padding: 12px 25px;
        font-weight: 600;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(244, 36, 36, 0.3);
        position: relative;
        overflow: hidden;
    }
    
    .default-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s ease;
    }
    
    .default-button:hover::before {
        left: 100%;
    }
    
    .default-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(244, 36, 36, 0.4);
    }
    
    /* Professional Form Design */
    .form-control {
        border: 2px solid #e0e0e0;
        border-radius: 10px;
        padding: 15px 20px;
        font-size: 16px;
        transition: all 0.3s ease;
        background: #fafafa;
    }
    
    .form-control:focus {
        border-color: #f42424;
        background: white;
        box-shadow: 0 0 0 3px rgba(244, 36, 36, 0.1);
        outline: none;
    }
    
    /* Professional Navigation */
    .main-responsive-nav {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 2px 20px rgba(0,0,0,0.1);
        border-bottom: 1px solid rgba(244, 36, 36, 0.1);
    }
    
    .mobile-nav .logo {
        font-size: 1.4rem;
        font-weight: 700;
        color: #f42424;
        text-decoration: none;
    }
    
    /* Professional Footer */
    .footer {
        background: linear-gradient(135deg, #333 0%, #222 100%);
        color: white;
        padding: 40px 0 20px;
    }
    
    .footer h5 {
        color: #f42424;
        font-weight: 600;
        margin-bottom: 15px;
    }
    
    .footer a {
        color: #ccc;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .footer a:hover {
        color: #f42424;
    }
}

/* ===== PERFORMANCE OPTİMİZASYONLARI ===== */
@media (max-width: 767.98px) {
    /* Disable expensive animations on mobile */
    .owl-carousel .owl-item {
        animation: none !important;
    }
    
    /* Optimize images */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    /* Reduce shadows for performance */
    .card-box,
    .service-card,
    .blog-card {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
}