/* --- 1. TEMEL AYARLAR --- */
:root { --primary: #1a252f; --secondary: #d93025; --light: #f8f9fa; --text: #333; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }
body { background: var(--light); color: var(--text); line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s all ease; }
img { max-width: 100%; height: auto; display: block; } /* Resimler taşmasın */

/* --- 2. HEADER & MENU --- */
header {
    background: rgba(255, 255, 255, 0.02); color: white; padding: 0 2%;
    height: 120px; display: flex; align-items: center; justify-content: space-between;
    position: fixed; width: 100%; top: 0; z-index: 10000; backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255,255,255,0.1); transition: all 0.5s ease-in-out;
}
header.scrolled, header.header-inner { 
    background: rgba(26, 37, 47, 0.99); height: 90px; /* Mobilde daha ince olsun diye 90px */
    box-shadow: 0 4px 30px rgba(0,0,0,0.3); border-bottom: none; 
}

.logo-container { display: flex; align-items: center; flex: 1.2; z-index: 10002; cursor: pointer; }

/* LOGO ANIMASYON (METAL CUTTING EFFECT) */
.logo-wrapper { 
    position: relative; 
    width: 85px; height: 85px; 
    border-radius: 8px; 
    display: flex; justify-content: center; align-items: center;
    overflow: hidden; 
    transition: all 0.4s; 
}
.logo-wrapper::before {
    content: ''; position: absolute; width: 150%; height: 150%;
    background: conic-gradient(from 0deg, transparent 0deg, transparent 80deg, #d93025 120deg, #ffdd00 160deg, #d93025 200deg, transparent 240deg, transparent 360deg);
    animation: rotateBorder 6s linear infinite;
}
@keyframes rotateBorder { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.logo-mask { position: absolute; inset: 3px; background: white; border-radius: 6px; z-index: 1; }
.logo-img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 90%; height: 90%; object-fit: contain; z-index: 2; transition: opacity 1.5s ease-in-out; }
.logo-main { animation: logoAnimation 8s infinite; } .logo-alt { z-index: 1; }
@keyframes logoAnimation { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0; } 100% { opacity: 1; } }
header.scrolled .logo-wrapper, header.header-inner .logo-wrapper { width: 60px; height: 60px; } /* Küçülme ayarı */

.logo-text { margin-left: 12px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,0.3); display: flex; flex-direction: column; justify-content: center; }
.brand-name { font-weight: 900; font-size: 1.4rem; line-height: 1; text-transform: uppercase; letter-spacing: 1px; color: white; }
.brand-sub { font-weight: 600; font-size: 0.8rem; color: var(--secondary); letter-spacing: 2px; margin-top: 4px; }

/* MENÜ */
nav { flex: 3; display: flex; justify-content: center; z-index: 10001; }
nav ul { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; align-items: center; }
nav a { 
    position: relative; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; 
    padding: 10px 15px; color: rgba(255,255,255,0.95); border-radius: 25px; transition: all 0.3s ease; 
    white-space: nowrap; letter-spacing: 0.5px;
}
nav a:hover { color: var(--primary); background: rgba(255, 255, 255, 0.9); transform: scale(1.05); }
.header-right { display: flex; align-items: center; gap: 10px; flex: 1; justify-content: flex-end; z-index: 10002; }
.lang-switch select { background: rgba(0,0,0,0.3); color: white; border: 1px solid rgba(255,255,255,0.5); padding: 5px 10px; border-radius: 15px; cursor: pointer; font-size: 0.8rem; outline: none; }
.lang-switch select option { color: black; }
.menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: white; margin-left: 10px; }

/* --- HERO SECTION --- */
.hero { position: relative; height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 20px; color: white; overflow: hidden; }
.hero-slideshow { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; }
.hero-slideshow img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 2s ease-in-out; transform: scale(1.05); }
.hero-slideshow img.active { opacity: 1; transform: scale(1); }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7)); z-index: -1; }
.hero h1 { 
    font-size: 4rem; margin-bottom: 20px; font-weight: 900; letter-spacing: 2px; line-height: 1.2; 
    text-shadow: 0 10px 30px rgba(0,0,0,0.8); opacity: 0; animation: industrialDrop 1s forwards 0.5s; 
    background: linear-gradient(75deg, #ffffff 20%, #e0e0e0 40%, #ffffff 50%, #e0e0e0 60%, #ffffff 80%); 
    background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
}
.hero p { font-size: 1.6rem; font-weight: 700; margin-bottom: 40px; letter-spacing: 3px; color: #ffffff; text-shadow: 0 5px 15px rgba(0,0,0,0.9); opacity: 0; animation: industrialDrop 1s forwards 0.8s; }
@keyframes industrialDrop { 0% { transform: translateY(-150px) scale(1.1); opacity: 0; } 60% { transform: translateY(0) scale(1); opacity: 1; } 100% { transform: translateY(0) scale(1); opacity: 1; } }
.btn { padding: 18px 50px; background: var(--secondary); color: white; font-weight: 800; font-size: 1.1rem; border-radius: 50px; box-shadow: 0 10px 20px rgba(217, 48, 37, 0.4); transition: 0.3s; display: inline-block; cursor: pointer; border: none; text-decoration: none; }
.btn:hover { background: #b0261d; transform: translateY(-3px); box-shadow: 0 15px 30px rgba(217, 48, 37, 0.6); }
.btn-outline { padding: 15px 45px; background: transparent; border: 2px solid var(--primary); color: var(--primary); box-shadow: none; font-weight: 700; border-radius: 50px; transition:0.3s; }
.btn-outline:hover { background: var(--primary); color: white; border-color:white; }

/* --- İÇ SAYFA HEADER (GÜNCELLENDİ) --- */
.page-header-section { 
    background: linear-gradient(135deg, #141e26 0%, #1a252f 100%); 
    padding: 160px 5% 60px; /* Standart boşluk */
    text-align: center; color: white; margin-bottom: 40px; 
    position: relative; z-index: 1; 
}
.page-title { font-size: 3rem; font-weight: 900; margin-bottom: 10px; letter-spacing: 1px; text-transform: uppercase; }
.page-subtitle { font-size: 1.2rem; margin-bottom: 20px; }

/* SEARCH BAR */
.search-wrapper { position: relative; max-width: 800px; width: 90%; margin: 30px auto 0; }
.search-input { width: 100%; padding: 15px 25px; font-size: 1.1rem; border: 2px solid #eee; border-radius: 50px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); outline: none; transition: 0.3s; }
.search-input:focus { border-color: var(--secondary); }
.search-icon { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: #aaa; font-size: 1.3rem; }

/* PRODUCTS & CERTIFICATES */
.prod-container { padding: 0 5%; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; margin-bottom: 80px; }
.card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #eee; transition:0.3s; }
.card:hover { transform: translateY(-10px); }
.card-head { background: var(--primary); color: white; padding: 20px; text-align: center; font-weight: 800; font-size:1.1rem; }
.card-img-wrapper { height: 250px; display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #eee; background:#fff; }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.table-wrap { max-height: 350px; overflow-y: auto; }
.prod-table { width: 100%; border-collapse: collapse; text-align: left; }
.prod-table th { position: sticky; top: 0; background: #e9ecef; color: var(--primary); padding: 12px; z-index: 10; font-size: 0.85rem; font-weight:800; }
.prod-table td { padding: 12px; border-bottom: 1px solid #eee; font-size: 0.95rem; color:#555; }

.tech-table-wrapper { overflow-x: auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); -webkit-overflow-scrolling: touch; }
.tech-table { width: 100%; border-collapse: collapse; min-width: 700px; background: white; }
.tech-table th, .tech-table td { padding: 15px; text-align: center; border: 1px solid #eee; }
.tech-table thead { background: var(--primary); color: white; font-weight:800; }

.cert-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; padding: 60px 5%; }
.cert-card { position: relative; background: white; width: 350px; height: 250px; padding: 40px; text-align: center; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: 0.4s; display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; border: 1px solid #eee; }
.cert-card:hover { transform: translateY(-10px); border-color: var(--secondary); }
.cert-watermark { position: absolute; top: 50%; left: 50%; width: 80%; opacity: 0; transform: translate(-50%, -50%) scale(0.8); transition: 0.6s; pointer-events: none; }
.cert-card:hover .cert-watermark { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }

/* FOOTER */
footer { background-color: #0f141a; color: #a0a0a0; padding-top: 60px; font-size: 0.9rem; border-top: 4px solid var(--secondary); margin-top: auto; }
.footer-container { display: flex; flex-wrap: wrap; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 5% 40px; gap: 40px; }
.footer-col { flex: 1; min-width: 250px; }
.footer-col h4 { color: white; font-size: 1.1rem; margin-bottom: 20px; text-transform: uppercase; border-left: 3px solid var(--secondary); padding-left: 10px; font-weight: 700; }
.footer-col ul { list-style: none; } .footer-col ul li { margin-bottom: 10px; }
.contact-row { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.footer-col svg { width: 18px; height: 18px; fill: var(--secondary); flex-shrink: 0; }
.footer-linkedin { display: inline-flex; align-items: center; background: #0077b5; color: white !important; padding: 8px 20px; border-radius: 4px; font-weight: bold; margin-top: 15px; }
.footer-linkedin svg { fill: white; margin-right: 8px; }
.footer-bottom { background-color: #080b0e; padding: 20px 5%; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 40px; right: 20px; background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center; display: flex; align-items: center; justify-content: center; z-index: 10005; box-shadow: 0 5px 20px rgba(0,0,0,0.3); }
@keyframes vibe { 0%, 2%, 4%, 6%, 8%, 10% { transform: translate3d(-2px, 0, 0); } 1%, 3%, 5%, 7%, 9% { transform: translate3d(2px, 0, 0); } 11% { transform: translate3d(0, 0, 0); } }
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; } .reveal.active { opacity: 1; transform: translateY(0); }

/* --- MOBİL UYUMLULUK AYARLARI (RESPONSIVE) --- */
@media (max-width: 900px) {
    /* Genel Yapı */
    body { font-size: 15px; }
    
    /* Header & Menu */
    .menu-toggle { display: block; } 
    header { padding: 0 5%; }
    nav { position: absolute; top: 90px; right: 20px; width: 220px; background: rgba(26, 37, 47, 0.99); border-radius: 12px; flex-direction: column; max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; box-shadow: 0 10px 40px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); }
    nav.active { max-height: 400px; }
    nav ul { flex-direction: column; gap: 0; width: 100%; padding: 10px 0; }
    nav a { display: block; width: 100%; text-align: left; padding: 12px 20px; border-radius: 0; white-space: normal; }
    .logo-container { flex: unset; } .header-right { flex: unset; }
    
    /* Hero (Anasayfa) Mobilde Küçültme */
    .hero h1 { font-size: 2.2rem; line-height: 1.3; }
    .hero p { font-size: 1rem; margin-bottom: 25px; }
    .btn { padding: 14px 35px; font-size: 1rem; }

    /* İÇ SAYFALARIN HEADER BOŞLUĞUNU AZALTMA */
    .page-header-section { 
        padding: 120px 20px 40px !important; /* Mobilde çok daha az boşluk */
    }
    .page-title { font-size: 2rem; }
    .page-subtitle { font-size: 1rem; }

    /* SECTIONLAR (Yan yana duranları alt alta al) */
    .nature-section > div, 
    .about-preview {
        flex-direction: column !important; /* Alt alta diz */
        gap: 30px !important;
        text-align: center;
    }
    
    /* RESİMLERİN TAŞMASINI ENGELLE */
    .nature-section img, 
    .about-preview img, 
    .left-panel .map-box {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 250px;
    }

    /* İletişim Sayfası */
    .contact-wrap { flex-direction: column; gap: 30px; }
    .left-panel, .form-box { min-width: 100%; }

    /* Tablo Kaydırma */
    .tech-table-wrapper { margin: 0 -15px; width: calc(100% + 30px); border-radius: 0; }
    
    /* Logo küçültme */
    .brand-name { font-size: 1.1rem; }
    .brand-sub { font-size: 0.7rem; }
}
