/* 
   =============================================
   MODERN CSS RESET & MOBILE STABILITY
   =============================================
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Mobil tıklama efektini temizler */
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden; /* Yatay kaymayı engeller */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

/* Tüm resimlerin taşmasını engeller */
img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobil için akışkan font büyüklüğü */
:root {
    --fluid-h1: clamp(1.8rem, 5vw, 3.5rem);
    --fluid-h2: clamp(1.5rem, 4vw, 2.5rem);
    --fluid-p: clamp(0.9rem, 2vw, 1.1rem);
}

/* 
   =============================================
   NAVIGASYON VE GENEL STİLLER
   =============================================
*/

/* STYLES FOR DUAL-NAV RESPONSIVE STRATEGY */

        /* Mobile-first: Hide desktop nav by default */
        .desktop-nav {
            display: none;
        }

        /* Styles for the simple top mobile nav */
        .mobile-nav {
            display: flex;
            justify-content: space-around;
            align-items: center;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 60px;
            background-color: rgba(20, 20, 20, 0.9);
            backdrop-filter: blur(10px);
            z-index: 100;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .mobile-nav a {
            color: white;
            text-decoration: none;
            font-size: 0.7rem; /* Reduced by 0.2rem */
            padding: 10px;
        }

        .mobile-nav a.mobile-teklif-btn {
            background-color: #FFC107; /* Sarı */
            color: white;
            padding: 6px 14px; /* Reduced by 2px */
            border-radius: 18px; /* Reduced by 2px */
        }

        .mobile-nav a.mobile-teklif-btn:hover {
            background-color: #e0a800;
        }

        /* Desktop: Hide mobile nav and show desktop dock */
        @media (min-width: 769px) {
            .desktop-nav {
                display: flex; /* This is the bottom dock */
            }
            .mobile-nav {
                display: none;
            }
        }

        /* STYLES FOR THE DESKTOP DOCK */
        .desktop-nav {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            width: auto;
            background-color: rgba(30, 30, 30, 0.7);
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 50px;
            padding: 10px;
            z-index: 100;
            gap: 10px;
        }

        .desktop-nav a {
            color: white;
            text-decoration: none;
            padding: 10px 20px;
            font-size: 1rem;
            font-weight: 500;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            border-radius: 40px;
        }

        .desktop-nav a:hover,
        .desktop-nav a.active {
            background-color: rgba(255, 255, 255, 0.15);
        }

        .desktop-nav a i {
            font-size: 1.2rem;
        }
        
        .nav-teklif-btn {
            background-color: #FFC107; /* Sarı */
            color: white !important; /* Beyaz metin */
            padding: 8px 16px;
            border-radius: 20px;
            margin-left: 1rem;
            transition: background-color 0.3s ease;
        }
        .nav-teklif-btn:hover {
            background-color: #e0a800; /* Hover rengi */
            color: white !important;
        }

        .nav-iletisim-btn {
            background-color: #28a745; /* Yeşil */
            color: white !important;
            padding: 8px 16px;
            border-radius: 20px;
            transition: background-color 0.3s ease;
        }
        .nav-iletisim-btn:hover {
            background-color: #218838; /* Hover rengi */
            color: white !important;
        }

/* =================================
   ANA SAYFA HERO BÖLÜMÜ (YENİ - BANNER)
==================================== */

/* --- Varsayılan (Masaüstü) Stilleri --- */
#bolum-anasayfa {
    min-height: 100vh;
    padding: 0;
    position: relative;
    /* overflow: hidden; -> Removed to allow scrolling on desktop */
    background-color: #fff;
    display: block; /* Changed from flex to allow stacking sections */
}

.hero-section {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/mobil1.jpg?v=1.1');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section .hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-section .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 20px;
}

/* --- Mobil Cihaz Stilleri (Max 768px) --- */
@media (max-width: 768px) {
    #bolum-anasayfa {
        padding: 0;
        background-color: #F8FAFC;
        overflow-x: hidden;
    }

    .hero-section {
        min-height: 60vh; /* Mobilde yüksekliği optimize ettik */
        height: auto;
        padding: 100px 0;
    }

    #video-container, .hero-banner {
        display: none !important;
    }

    .hero-content {
        padding: 20px;
        width: 100%;
    }

    .hero-title {
        font-family: 'Poppins', sans-serif;
        font-weight: 700;
        font-size: 26px;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .hero-title .highlight-orange {
        color: #F97316;
    }

    .hero-subtitle {
        font-family: 'Poppins', sans-serif;
        font-weight: 500;
        font-size: 16px;
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 25px;
    }

    .btn-hero-cta {
        display: inline-block;
        padding: 12px 28px;
        background-color: #F97316;
        color: white;
        font-family: 'Poppins', sans-serif;
        font-weight: 700;
        text-decoration: none;
        border-radius: 50px;
        font-size: 14px;
        box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    }

    /* Hakkımızda Bölümü Mobil Ayarları */
    .about-section {
        padding: 60px 20px;
    }

    .about-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .about-text .section-title {
        text-align: center !important;
    }

    .about-image {
        display: none;
    }
}

/* --- Masaüstü Cihaz Stilleri (Min 769px) --- */
@media (min-width: 769px) {
    #video-container {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }
}
        
        /* Set white background for pages without a specific image */
        #bolum-hakkimizda,
        #bolum-hizmetler,
        #bolum-iletisim { 
            background-color: #ffffff; 
        }

        /* The background for #bolum-anasayfa is now provided by the video */

        /* Service Selection Page Styling */
        body.teklif-al-bg {
            background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/teklif-al-arka.jpeg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            background-attachment: fixed;
        }

        .service-selection-container {
            padding: 40px 20px;
            max-width: 1200px;
            margin: 100px auto 40px auto;
            text-align: center;
            background-color: #ffffff;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .service-selection-container h1 {
            font-size: 2.5rem;
            color: #343a40;
            margin-bottom: 15px;
        }

        .service-selection-container p {
            font-size: 1.1rem;
            color: #6c757d;
            margin-bottom: 40px;
        }

        .service-cards-wrapper {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 30px;
        }

        .service-card {
            background-color: #f8f9fa;
            border: 1px solid #e9ecef;
            border-radius: 10px;
            padding: 30px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            transition: all 0.3s ease;
            cursor: pointer;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        .service-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
            border-color: #007bff;
        }

        .service-icon {
            width: 120px;
            height: 120px;
            margin-bottom: 20px;
            position: relative;
        }

        .service-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .service-card h3 {
            font-size: 1.5rem;
            color: #343a40;
            margin-bottom: 20px;
        }

        .btn-teklif-al {
            display: inline-block;
            background-color: #007bff;
            color: white;
            padding: 12px 25px;
            border-radius: 25px;
            text-decoration: none;
            font-weight: 500;
            transition: background-color 0.3s ease;
        }

        .btn-teklif-al:hover {
            background-color: #0056b3;
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .service-selection-container {
                margin-top: 80px auto 20px auto;
                padding: 20px 15px;
            }

            .service-selection-container h1 {
                font-size: 2rem;
            }

            .service-selection-container p {
                font-size: 1rem;
                margin-bottom: 30px;
            }

            .service-card {
                padding: 25px;
            }

            .service-icon {
                width: 80px;
                height: 80px;
            }

            .service-card h3 {
                font-size: 1.3rem;
            }

            .btn-teklif-al {
                padding: 10px 20px;
                font-size: 0.95rem;
            }
        }

        @media (max-width: 480px) {
            .service-cards-wrapper {
                display: flex; /* Ensure flex is used */
                flex-direction: column; /* Stack them vertically */
                align-items: center; /* Center them horizontally */
                gap: 20px; /* Adjust gap for mobile */
            }
            .service-card {
                width: 100%; /* Make cards take full width */
                max-width: 300px; /* Optional: limit max width even if 100% */
            }
        }

        /* --- Homepage New Sections Styles --- */

        .content-section {
            padding: 80px 20px;
            max-width: 1200px;
            margin: 0 auto;
            text-align: center;
        }

        .section-title {
            font-size: var(--fluid-h2);
            color: #1A1A1A;
            margin-bottom: 20px;
            font-weight: 700;
        }

        .section-subtitle {
            font-size: var(--fluid-p);
            color: #666;
            margin-bottom: 50px;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
        }

        /* Features / Why Choose Us */
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }

        .feature-card {
            background: #fff;
            padding: 40px 30px;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            transition: transform 0.3s ease;
            border: 1px solid #f0f0f0;
        }

        .feature-card:hover {
            transform: translateY(-10px);
            border-color: #FFC107;
        }

        .feature-card i {
            font-size: 3rem;
            color: #FFC107;
            margin-bottom: 20px;
        }

        .feature-card h3 {
            font-size: 1.5rem;
            margin-bottom: 15px;
            color: #1A1A1A;
        }

        .feature-card p {
            color: #666;
            line-height: 1.6;
        }

        /* About Section */
        .about-section {
            background-color: #f9f9f9;
            padding: 100px 20px;
        }

        .about-container {
            display: flex;
            align-items: center;
            gap: 50px;
            max-width: 1200px;
            margin: 0 auto;
            text-align: left;
        }

        .about-text {
            flex: 1;
        }

        .about-image {
            flex: 1;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }

        .about-image img {
            width: 100%;
            height: auto;
            display: block;
        }

        /* Footer Styles */
        footer {
            background-color: #1A1A1A;
            color: white;
            padding: 80px 20px 120px 20px; /* Extra bottom padding for dock nav */
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 40px;
            max-width: 1200px;
            margin: 0 auto;
            text-align: left;
        }

        .footer-col h4 {
            font-size: 1.2rem;
            margin-bottom: 25px;
            color: #FFC107;
        }

        .footer-col p, .footer-col a {
            color: #BBB;
            text-decoration: none;
            line-height: 1.8;
            margin-bottom: 10px;
            display: block;
        }

        .footer-col a:hover {
            color: white;
        }

        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .social-links a {
            font-size: 1.5rem;
            color: white;
        }

        .footer-bottom {
            border-top: 1px solid #333;
            margin-top: 50px;
            padding-top: 30px;
            text-align: center;
            color: #888;
            font-size: 0.9rem;
        }

        /* --- Floating Call Button (Mobile Only) --- */
        .floating-call-btn {
            display: none;
        }

        @media (max-width: 768px) {
            .floating-call-btn {
                display: flex;
                position: fixed;
                bottom: 20px;
                left: 20px;
                width: 60px;
                height: 60px;
                background-color: #007bff; /* Mavi telefon rengi */
                color: white;
                border-radius: 50%;
                justify-content: center;
                align-items: center;
                font-size: 24px;
                box-shadow: 0 4px 15px rgba(0,0,0,0.3);
                z-index: 1000;
                text-decoration: none;
                transition: transform 0.3s ease, opacity 0.3s ease;
            }

            .floating-call-btn.hidden {
                opacity: 0;
                pointer-events: none;
                transform: scale(0.8);
            }

            .floating-call-btn i {
                animation: phone-shake 2s infinite;
            }
        }

        @keyframes phone-shake {
            0% { transform: rotate(0); }
            10% { transform: rotate(-15deg); }
            20% { transform: rotate(15deg); }
            30% { transform: rotate(-15deg); }
            40% { transform: rotate(15deg); }
            50% { transform: rotate(0); }
            100% { transform: rotate(0); }
        }