/* 1. GENEL AYARLAR */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

.container { width: 85%; margin: auto; display: flex; }

/* 2. ÜST ŞERİT (TOP BAR) */
.top-bar { background-color: #0B0E14; color: white; padding: 10px 0; font-size: 14px; }
.top-bar .container { justify-content: flex-end; gap: 20px; }

/* 3. NAVİGASYON (MENU) */
.main-nav { 
    background-color: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px);
    padding: 15px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1001; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); 
    transition: all 0.3s ease;
}
.nav-wrapper { justify-content: space-between; align-items: center; }
.logo img { height: 75px; border-radius: 8px; transition: transform 0.3s ease; }
.logo img:hover { transform: scale(1.02); }

.menu { display: flex; list-style: none; gap: 5px; }
.menu > li { position: relative; padding: 10px 15px; display: flex; align-items: center; }
.menu > li > a { 
    text-decoration: none; 
    color: #1a2a44; 
    font-weight: 600; 
    font-size: 15px;
    transition: all 0.3s ease; 
    position: relative;
    padding: 5px 0;
}
.menu > li > a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; background-color: #e31e24;
    transition: width 0.3s ease;
}
.menu > li:hover > a { color: #e31e24; }
.menu > li:hover > a::after { width: 100%; }

/* 4. STANDART DROP-DOWN (Hizmetler vb. için aktif kalmalı) */
.submenu {
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: absolute; 
    top: 100%; 
    left: 0;
    background-color: #ffffff; 
    min-width: 220px; 
    box-shadow: 0px 15px 35px rgba(0,0,0,0.1); 
    list-style: none; 
    padding: 10px 0; 
    z-index: 1000; 
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
}
.dropdown:hover .submenu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.submenu li a {
    color: #444 !important;
    padding: 12px 25px;
    display: block;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.submenu li a:hover {
    background-color: rgba(227, 30, 36, 0.04);
    color: #e31e24 !important;
    padding-left: 32px;
}

/* 5. MEGA MENU (Ürünler) */
.mega-dropdown { position: static !important; }
.mega-menu {
    position: absolute; width: 100%; left: 0; top: 100%; background: #fff;
    display: block; visibility: hidden; opacity: 0; transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000; padding: 40px 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-radius: 0 0 24px 24px;
    border-top: 1px solid rgba(0,0,0,0.03);
}
.mega-dropdown:hover .mega-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.mega-menu-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-around; gap: 40px; }

.mega-column { flex: 1; padding: 0 20px; }
.mega-column h3 {
    color: #1a2a44; font-size: 18px; margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0; padding-bottom: 12px;
    position: relative;
}
.mega-column h3::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 40px; height: 2px; background-color: #e31e24;
}
.mega-column a {
    display: block; padding: 10px 0; color: #555;
    text-decoration: none; font-size: 15px; transition: all 0.2s ease;
    font-weight: 500;
}
.mega-column a:hover { color: #e31e24; transform: translateX(5px); }

/* 6. SLIDER */
/* Slider Ana Kutusu */
.slider-container {
    position: relative;
    width: 95%;
    max-width: 1400px; /* Biraz daha daralttık */
    margin: 30px auto;
    height: 450px; /* 600px'den 450px'e düşürdük */
    overflow: hidden;
    background-color: #f8f9fa; /* Resim tam sığarsa arkada temiz bir renk kalsın */
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Her bir Slide Alanı */
.slide {
    display: none;
    width: 100%;
    height: 100%;
}

/* Görsel Ayarları (1920x800 için Kritik Kısım) */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* cover yerine contain: Resmin hiçbir yeri kesilmez, ekrana sığdırılır */
    object-position: center; /* Odağı tam ortada tutar */
    display: block;
}

/* Aktif Slide */
.active {
    display: block;
}

/* Yön Okları */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    transition: all 0.3s ease;
    margin: 0 20px;
}

.prev:hover, .next:hover {
    background: rgba(227, 30, 36, 0.9); /* Bemas kırmızısı ile şık bir hover efekti */
    transform: translateY(-50%) scale(1.1);
}

.next {
    right: 0;
}

/* --- Mobil Uyumluluk (Responsive) --- */
@media (max-width: 768px) {
    .slider-container {
        height: 350px; /* Telefonlarda slider yüksekliğini azaltıyoruz */
    }
    
    .prev, .next {
        padding: 10px; /* Okları mobilde biraz küçültüyoruz */
        font-size: 14px;
    }
}

/* 7. İLETİŞİM SAYFASI ÖZEL */
.contact-top-section { display: flex; gap: 30px; margin: 50px auto; background: #eee; padding: 20px; width: 85%; }
.map-box { flex: 2; }
.address-box { flex: 1; padding: 20px; }
.form-section { margin: 50px auto; width: 85%; }
.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.form-group { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.form-group input, .form-group select, .form-group textarea { padding: 12px; border: 1px solid #ccc; border-radius: 4px; }

#sendBtn {
    background: #000; color: #fff; padding: 15px 40px; border: none;
    width: 200px; margin-top: 20px; opacity: 0.5; transition: 0.3s;
}
#sendBtn:enabled { opacity: 1; cursor: pointer; background: #1a2a44; }

/* 8. FOOTER & BOŞLUK */
.info-section { 
    background: #1a2a44; 
    color: white; 
    padding: 60px 0; 
    margin-top: 80px; /* Slider ile arasındaki boşluk */
    border-radius: 40px 40px 0 0; /* Daha soft bir görünüm için üstleri yuvarlatıyoruz */
}
.footer-container { width: 85%; margin: auto; display: flex; justify-content: space-between; }
.footer-col { flex: 1; padding: 0 30px; border-left: 1px solid rgba(255,255,255,0.1); }
.footer-col:first-child { border-left: none; }
.footer-col h3 { font-size: 20px; margin-bottom: 20px; color: #fff; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #cbd5e0; text-decoration: none; font-size: 15px; }
.footer-col ul li a:hover { color: #fff; }
.footer-logo img { max-width: 220px; height: auto; }

/* Yapım Aşaması Sayfası Tasarımı */
.under-construction-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px;
    background-color: #f9f9f9;
}

.construction-content {
    text-align: center;
    max-width: 600px;
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 5px solid #1a2a44; /* Bemas Laciverti */
}

.construction-icon {
    font-size: 50px;
    color: #e31e24; /* Bemas Kırmızısı */
    margin-bottom: 20px;
}

.construction-content h1 {
    color: #1a2a44;
    font-size: 28px;
    margin-bottom: 15px;
}

.divider {
    width: 60px;
    height: 3px;
    background: #e31e24;
    margin: 20px auto;
}

.construction-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.contact-hint {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

.btn-mini {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: #1a2a44;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-mini:hover {
    background: #e31e24;
}
/* Lightbox Arka Planı */
.lightbox {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95); /* Çok koyu siyah */
    justify-content: center;
    align-items: center;
    cursor: zoom-out; /* Tıklayınca kapanacağını belli eder */
}

/* Ekranın Ortasındaki Büyük Resim */
.lightbox-content {
    max-width: 95%;
    max-height: 90vh;
    border-radius: 4px;
    animation: zoom 0.3s ease-in-out; /* Açılış animasyonu */
}

@keyframes zoom {
    from {transform: scale(0.7); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* Kapatma Butonu (X) */
.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: #e31e24; /* Bemas Kırmızısı */
}

/* 9. ÖNE ÇIKANLAR (FEATURES) */
.features-section {
    padding: 100px 0;
    background-color: #fafbfe;
}
.features-section .container {
    flex-direction: column;
    align-items: center;
}
.section-title {
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
}
.section-title h2 {
    font-size: 36px;
    color: #1a2a44;
    margin-bottom: 15px;
    font-weight: 700;
}
.section-title p {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    width: 100%;
}
.feature-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #1a2a44, #e31e24);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}
.feature-card:hover::before {
    transform: scaleX(1);
}
.icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(227, 30, 36, 0.05);
    color: #e31e24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
}
.feature-card:hover .icon-wrapper {
    background: #e31e24;
    color: #ffffff;
    transform: scale(1.1) rotate(10deg);
}
.feature-card h3 {
    color: #1a2a44;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}
.feature-card p {
    color: #6c757d;
    line-height: 1.7;
    font-size: 15px;
}

/* 10. SCROLL TO TOP BUTONU */
.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background-color: rgba(26, 42, 68, 0.4); /* Yarı saydam lacivert */
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999; /* Her şeyin üstünde olması için */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px); /* Arka planı puslu gösterir */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: rgba(227, 30, 36, 0.7); /* Hover olunca yarı saydam kırmızı */
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.4);
}

/* Mobil için biraz daha küçültelim ve kenara yaklaştıralım */
/* Mobil için biraz daha küçültelim ve kenara yaklaştıralım */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* ==========================================
   MOBİL UYUMLULUK (RESPONSIVE) STİLLERİ
   ========================================== */
.menu-toggle {
    display: none;
    font-size: 28px;
    color: #1a2a44;
    cursor: pointer;
    transition: 0.3s;
}
.menu-toggle:hover {
    color: #e31e24;
}

@media (max-width: 992px) {
    .container {
        width: 95%;
    }
    
    .nav-wrapper {
        position: relative;
    }

    .menu-toggle {
        display: block; /* Hamburger menü görünür */
        position: absolute;
        right: 20px;
        top: 25px;
    }

    /* Menüyü gizle ve dikey hale getir */
    .menu {
        display: none; /* JavaScript ile toggle edilecek (.active) */
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 90px;
        left: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
        padding: 10px 0;
        z-index: 1000;
    }

    .menu.active {
        display: flex;
    }

    .menu > li {
        width: 100%;
        padding: 10px 20px;
        border-bottom: 1px solid #f9f9f9;
        display: block; /* Flex yerine block */
    }

    .menu > li > a {
        display: block;
        width: 100%;
        padding: 10px 0;
    }

    /* Alt menüleri (Hizmetler) telefonda açılabilir yap */
    .submenu {
        position: static;
        visibility: visible;
        opacity: 1;
        transform: none;
        box-shadow: none;
        display: none;
        margin-top: 10px;
        border: none;
        border-left: 2px solid #e31e24;
        border-radius: 0;
        background-color: #fafbfe;
    }

    .dropdown.active .submenu {
        display: block;
    }

    /* Mega Menü (Ürünler) telefonda alt alta dizilsin */
    .mega-dropdown {
        position: relative !important;
    }
    .mega-menu {
        position: static;
        visibility: visible;
        opacity: 1;
        transform: none;
        box-shadow: none;
        display: none;
        padding: 15px;
        margin-top: 10px;
        border: none;
        border-radius: 0;
        border-left: 2px solid #e31e24;
    }

    .mega-dropdown.active .mega-menu {
        display: block;
    }

    .mega-menu-content {
        flex-direction: column;
        gap: 20px;
    }

    .mega-column {
        padding: 0;
    }

    /* Slider için yükseklik ayarlaması */
    .slider-container {
        height: 250px;
        margin-top: 20px;
    }

    /* Top Bar mobil görünümü */
    .top-bar .container {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 5px 0;
    }

    /* İletişim Formları Mobil Görünümü */
    .contact-top-section {
        flex-direction: column;
        width: 95%;
        margin: 20px auto;
        padding: 10px;
    }
    
    .map-box iframe {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
    }

    .form-section {
        width: 95%;
    }

    /* Özellikler (Features) Grid */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Footer Mobil Görünümü */
    .footer-container {
        flex-direction: column;
        gap: 40px;
    }

    .footer-col {
        border-left: none;
        padding: 0;
        text-align: center;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-logo img {
        margin: 0 auto;
        display: block;
    }
}