/* CSS Değişkenleri ve Temel Ayarlar */
:root {
    --primary: #0A192F;
    --secondary: #E30613;
    --accent: #FFC107;
    --bg-color: #F8F9FA;
    --text-dark: #2D3748;
    --text-light: #EDF2F7;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-dark); overflow-x: hidden; }

/* Navigasyon ve Header */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 20px 5%; display: flex; justify-content: space-between; align-items: center;
    transition: all 0.4s ease; background: transparent;
}

/* Logo Konfigürasyonu (Eksik olan kısım eklendi) */
.logo { display: flex; align-items: center; position: relative; z-index: 1002; text-decoration: none; }
.logo img { 
    height: 100px; /* Logonun ekranda kaplayacağı maksimum yükseklik */
    width: auto; 
    object-fit: contain; 
    transition: all 0.3s ease;
}

nav ul { list-style: none; display: flex; gap: 30px; }
nav ul li a { color: white; text-decoration: none; font-weight: 600; font-size: 15px; transition: 0.3s; }
nav ul li a:hover { color: var(--secondary); }

/* Mobil Menü Butonu */
.mobile-toggle {
    display: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 1002;
}
.mobile-toggle span {
    display: block; width: 30px; height: 3px; background-color: white; transition: all 0.3s ease;
}

/* Tam Ekran Slider */
.slider-container { position: relative; width: 100%; height: 100vh; overflow: hidden; background-color: var(--primary); }
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; visibility: hidden; transition: opacity 1s ease-in-out, visibility 1s;
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.slide.active { opacity: 1; visibility: visible; z-index: 10; }

.slide:nth-child(1) { background: linear-gradient(135deg, rgba(10, 25, 47, 0.85) 40%, rgba(23, 58, 107, 0.85) 100%) center/cover; }
.slide:nth-child(2) { background: linear-gradient(135deg, rgba(227, 6, 19, 0.85) 0%, rgba(10, 25, 47, 0.9) 100%) center/cover; }
.slide:nth-child(3) { background: linear-gradient(135deg, rgba(45, 55, 72, 0.85) 0%, rgba(0, 0, 0, 0.9) 100%) center/cover; }

.slide-content { max-width: 800px; padding: 0 20px; transform: translateY(30px); transition: transform 1s ease-out; }
.slide.active .slide-content { transform: translateY(0); }
.slide h1 { font-size: 4rem; color: white; margin-bottom: 20px; line-height: 1.1; }
.slide h1 span { color: var(--accent); }
.slide p { font-size: 1.2rem; color: var(--text-light); margin-bottom: 30px; }

.btn { padding: 15px 40px; font-weight: 600; font-size: 16px; text-decoration: none; border-radius: 30px; transition: 0.3s; display: inline-block; cursor: pointer; border: none; }
.btn-red { background: var(--secondary); color: white; border: 2px solid var(--secondary); }
.btn-red:hover { background: transparent; color: white; }
.btn-outline { background: transparent; color: white; border: 2px solid white; margin-left: 15px; }
.btn-outline:hover { background: white; color: var(--primary); }

/* Slider Kontrolleri */
.slider-nav { position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%); display: flex; gap: 15px; z-index: 20; }
.dot { width: 15px; height: 15px; border-radius: 50%; border: 2px solid white; cursor: pointer; transition: 0.3s; }
.dot.active { background: var(--accent); border-color: var(--accent); transform: scale(1.2); }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); font-size: 30px; color: white; background: rgba(0,0,0,0.3); border: none; padding: 20px; cursor: pointer; z-index: 20; border-radius: 5px; transition: 0.3s; }
.slider-arrow:hover { background: var(--secondary); }
.prev-arrow { left: 20px; }
.next-arrow { right: 20px; }

/* Ortak Bölüm Stilleri */
section { padding: 100px 5%; }
.section-title { text-align: center; font-size: 2.5rem; color: var(--primary); margin-bottom: 50px; position: relative; }
.section-title::after { content: ''; position: absolute; left: 50%; bottom: -15px; transform: translateX(-50%); width: 80px; height: 4px; background: var(--secondary); }

/* Hakkımızda Kartları */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.info-card { background: white; padding: 40px 30px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: center; border-bottom: 5px solid transparent; transition: 0.4s; }
.info-card:hover { transform: translateY(-10px); border-bottom-color: var(--secondary); }
.info-card h3 { font-size: 1.5rem; color: var(--primary); margin-bottom: 15px; }
.info-card p { color: #666; font-size: 0.95rem; line-height: 1.6; }

/* Sayaçlar */
.stats-section { background: linear-gradient(135deg, rgba(227, 6, 19, 0.85) 0%, rgba(10, 25, 47, 0.9) 100%); color: white; padding: 60px 5%; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.stat-item h2 { font-size: 3rem; margin-bottom: 10px; color: var(--accent); }
.stat-item p { font-size: 1.1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Ürün Detayları & Akordeon */
.product-section { background: var(--primary); color: white; }
.product-section .section-title { color: white; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.product-subtitle { font-size: 2rem; margin-bottom: 20px; color: var(--accent); }
.product-desc { color: #cbd5e0; margin-bottom: 30px; font-size: 1.1rem; line-height: 1.6; }

.accordion-item { border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 10px; }
.accordion-btn { width: 100%; background: transparent; color: white; border: none; text-align: left; padding: 20px 0; font-size: 1.2rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; color: #cbd5e0; line-height: 1.6; }
.accordion-content p { padding-bottom: 20px; }

.tech-box { background: rgba(255,255,255,0.05); padding: 40px; border-radius: 10px; border: 2px dashed var(--accent); }
.tech-box h3 { color: var(--accent); margin-bottom: 20px; font-size: 1.5rem; }
.tech-box ul { list-style: none; line-height: 2.5; color: white; }
.tech-box li { border-bottom: 1px solid rgba(255,255,255,0.1); }

/* Sertifikalar ve Testler */
.certs-section { background: white; }
.certs-desc { text-align: center; max-width: 700px; margin: 0 auto; color: #666; font-size: 1.1rem; margin-bottom: 30px; }
.certs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); gap: 30px; margin-top: 40px; }
.cert-card { border: 1px solid #e2e8f0; padding: 30px; border-radius: 8px; display: flex; align-items: flex-start; gap: 15px; transition: 0.3s; text-decoration: none; color: inherit; }
.cert-card:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.08); border-color: var(--secondary); }
.cert-icon { font-size: 24px; color: var(--secondary); font-weight: bold; background: #fee2e2; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; }
.cert-text h4 { color: var(--primary); font-size: 1.2rem; margin-bottom: 8px; }
.cert-text p { color: #666; font-size: 0.95rem; line-height: 1.5; }

/* İletişim Formu */
.contact-section { background: var(--bg-color); }
.form-container { max-width: 800px; margin: 0 auto; background: white; padding: 50px; border-radius: 10px; box-shadow: 0 15px 40px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 20px; }
.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.form-row .form-group { flex: 1; margin-bottom: 0; }
.form-control { width: 100%; padding: 15px; border: 1px solid #cbd5e0; border-radius: 5px; font-size: 1rem; color: var(--text-dark); transition: border-color 0.3s; }
.form-control:focus { outline: none; border-color: var(--primary); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* Footer */
footer { background: #050d1a; padding: 60px 5% 20px; color: #a0aec0; text-align: center; }
.contact-info { display: flex; justify-content: center; gap: 50px; margin-bottom: 40px; flex-wrap: wrap; }
.contact-info div { font-size: 1.1rem; }
.contact-info strong { color: var(--accent); }
.copyright { font-size: 0.9rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }

/* -------------------------------------
   MOBİL UYUMLULUK (RESPONSIVE) AYARLARI 
-------------------------------------- */
@media(max-width: 768px) {
    section { padding: 60px 5%; }
    .section-title { font-size: 2rem; margin-bottom: 30px; }
    
    nav { position: absolute; } 
    .mobile-toggle { display: flex; margin-left: auto; order: 3; }
    
    /* Mobil logoyu biraz küçültme */
    .logo img { height: 80px; }

    nav ul {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background-color: var(--primary);
        flex-direction: column; justify-content: center; align-items: center;
        transition: right 0.4s ease; box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }
    nav ul.active { right: 0; }
    
    .mobile-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    
    .slide h1 { font-size: 2.2rem; }
    .slide p { font-size: 1rem; }
    .slider-arrow { padding: 10px; font-size: 20px; }
    .btn-outline { margin-left: 0; margin-top: 15px; } 

    .product-grid { grid-template-columns: 1fr; gap: 40px;}
    .certs-grid { grid-template-columns: 1fr; }
    
    .form-row { flex-direction: column; gap: 0; }
    .form-row .form-group { margin-bottom: 20px; }
    .form-container { padding: 30px; }
    
    .contact-info { flex-direction: column; gap: 20px; }
}

/* -------------------------------------
   ALT SAYFA (HAKKIMIZDA / ÜRÜNLER) EKLENTİLERİ
-------------------------------------- */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #173A6B 100%);
    padding: 180px 10% 100px;
    text-align: center;
    color: white;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.page-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-light);
}

.about-detail-section {
    padding: 80px 10%;
    background-color: var(--bg-color);
}

/* Ürün Galerisi */
.thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: white;
}
.thumbnail:hover {
    border-color: var(--navy);
    opacity: 0.8;
}
.thumbnail.active {
    border-color: var(--secondary);
    box-shadow: 0 4px 10px rgba(227, 6, 19, 0.2);
}

/* Endüstriyel Teknik Tablo */
.industrial-table-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    border-top: 5px solid var(--primary);
}

.industrial-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.industrial-table th, .industrial-table td {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.industrial-table tr:last-child th, 
.industrial-table tr:last-child td {
    border-bottom: none;
}

.industrial-table th {
    background-color: #f8fafc;
    color: var(--primary);
    font-weight: 600;
    width: 35%;
    border-right: 1px solid #e2e8f0;
}

.industrial-table td {
    color: #4a5568;
    font-weight: 500;
}

.industrial-table tr:hover th, 
.industrial-table tr:hover td {
    background-color: #f1f5f9;
}

@media(max-width: 768px) {
    .product-showcase .container {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    .industrial-table th, .industrial-table td {
        display: block;
        width: 100%;
        border-right: none;
    }
    .industrial-table th {
        background-color: var(--primary);
        color: white;
    }
}

/* -------------------------------------
   SABİT KATALOG SEKMESİ (FIXED TAB)
-------------------------------------- */
.fixed-catalog-tab {
    position: fixed;
    top: 150px; /* Header'ın hemen altında */
    right: -5px;
    background-color: var(--primary);
    color: white;
    padding: 12px 25px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 8px 0 0 8px;
    box-shadow: -4px 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary);
    border-right: none;
    /* Dikey hizalama efekti için isterseniz yazıyı döndürebilirsiniz ancak yatay kullanım daha kurumsaldır */
}

.fixed-catalog-tab:hover {
    background-color: var(--navy);
    border-color: var(--navy);
    right: 0;
    padding-right: 30px; /* Üzerine gelince biraz daha uzar */
    color: var(--accent);
}

@media(max-width: 768px) {
    .fixed-catalog-tab {
        top: auto;
        bottom: 20px; /* Mobilde parmak erişimi için sağ alta alınır */
        right: -5px;
        font-size: 0.85rem;
        padding: 10px 15px;
    }
    
    .contact-page-section .container {
        grid-template-columns: 1fr !important;
    }
}

/* -------------------------------------
   HAKKIMIZDA SAYFASI KONTROLLERİ (MOBİL UYUMLU)
-------------------------------------- */

/* Alt sayfalar için header arkaplanı */
.header-inner {
    background: var(--primary);
}

/* Aktif link rengi */
.active-link {
    color: var(--secondary) !important;
}

/* Daraltılmış kapsayıcı (Kutu) */
.container-sm {
    max-width: 900px;
    margin: 0 auto;
}

/* Hakkımızda giriş yazısı */
.about-lead {
    text-align: center;
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 50px;
    line-height: 1.8;
}

/* Beyaz yazı ve başlık araçları */
.title-white {
    color: white !important;
}
.text-white {
    color: white;
}

/* Faaliyet Alanları Listesi */
.tech-list {
    list-style: none;
    line-height: 2.5;
    padding: 0;
}

.tech-list li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 10px 0;
}

.tech-list li:last-child {
    border-bottom: none;
}

/* --- HAKKIMIZDA SAYFASI İÇİN MOBİL AYARLAR --- */
@media(max-width: 768px) {
    .about-lead {
        font-size: 0.95rem; /* Mobilde yazı boyutunu küçült */
        margin-bottom: 30px; /* Mobilde boşluğu daralt */
        text-align: left; /* Mobilde uzun yazılar sola yaslı daha rahat okunur */
        padding: 0 10px;
    }
    
    .tech-list {
        line-height: 1.8; /* Mobilde satır aralığını daralt */
    }
    
    .tech-list li {
        font-size: 0.95rem;
        padding: 15px 0; /* Mobilde dokunma alanını genişletmek için */
    }
    
    .tech-list strong {
        display: block; /* Mobilde başlıkları alt satıra alarak taşmayı önle */
        margin-bottom: 5px;
        color: var(--accent); /* Mobilde başlıklar vurgulansın */
    }
}

/* -------------------------------------
   FAALİYET ALANLARI (MODERN KARTLAR)
-------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 8px;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
}

/* Sol taraftaki ince kırmızı çizgi efekti */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--red);
    transition: all 0.4s ease;
}

/* Hover (Üzerine gelme) efektleri */
.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    border-color: var(--accent);
}

.service-card:hover::before {
    background: var(--accent); /* Hover'da çizgi sarı olur */
}

/* Arka plandaki dev rakamlar */
.service-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
    transition: color 0.4s ease;
    z-index: 0;
}

.service-card:hover .service-number {
    color: rgba(255, 193, 7, 0.15); /* Hover'da rakam hafifçe belirginleşir */
}

/* Kart içi metinler */
.service-card h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: #cbd5e0;
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Mobil uyumluluk (Eğer mobilde grid çok geniş kalırsa diye) */
@media(max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr; /* Mobilde alt alta tek sıra */
        gap: 20px;
    }
}