/* --- style.css (V12 - PERFECT CENTER FIX) --- */

/* 1. SIFIRLAMA */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: #0f0f0f;
    color: #eeeeee;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex; flex-direction: column; min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

:root {
    --copper: #ff9f43;
    --dark-glass: rgba(10, 10, 10, 0.95);
    --border-color: #333;
}

/* 2. NAVBAR */
.navbar {
    background: var(--dark-glass);
    height: 90px !important;
    padding: 0 4%;
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 5px 20px rgba(0,0,0,0.6);
}

.brand-container { display: flex; align-items: center; gap: 20px; position: relative; z-index: 2; height: 100%; }
.logo-wrapper { position: relative; width: 80px; height: 100%; display: flex; align-items: center; justify-content: center; }

.spotlight-bg {
    position: absolute; width: 90px; height: 90px;
    background: radial-gradient(circle, rgba(255, 159, 67, 0.5) 0%, rgba(255, 189, 117, 0.1) 60%, rgba(0,0,0,0) 70%);
    filter: blur(15px); z-index: 0; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%;
}
.logo-img { max-height: 70px; width: auto; position: relative; z-index: 2; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.8)) brightness(1.15); }

.text-branding { display: flex; flex-direction: column; justify-content: center; line-height: 1.1; }
.brand-title { font-size: 1.5rem; font-weight: 900; letter-spacing: 0.5px; text-transform: uppercase; }
.tunc-text { color: #ff9f43; text-shadow: 0 0 15px rgba(255, 159, 67, 0.4); }
.demir-text, .metal-text { color: #ffffff; margin-left: 4px; }
.brand-subtitle { font-size: 0.65rem; font-weight: 700; color: #999; letter-spacing: 2px; margin-top: 3px; }

.navbar-center-logo {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); height: 100%;
    display: flex; align-items: center; justify-content: center;
    z-index: 10; cursor: pointer;
}
.navbar-center-logo img {
    height: 110px; width: auto;
    filter: drop-shadow(0 0 15px rgba(255, 159, 67, 0.5)) brightness(1.3) contrast(1.1);
    transition: transform 0.3s;
}
.navbar-center-logo:hover img { transform: scale(1.05); }

.nav-links { display: flex; gap: 25px; align-items: center; z-index: 2; }
.nav-links a { font-size: 0.9rem; font-weight: 700; color: #ccc; letter-spacing: 1px; text-transform: uppercase; padding: 10px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: #fff; border-bottom-color: var(--copper); }

/* 3. DİĞER BİLEŞENLER */
.stats-banner { display: flex; justify-content: center; gap: 80px; background: #0a0a0a; padding: 30px 5%; border-bottom: 1px solid #222; flex-wrap: wrap; text-align: center; }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.stat-title { font-size: 1.1rem; font-weight: 800; color: #fff; letter-spacing: 1px; text-transform: uppercase; }
.stat-sub { font-size: 0.85rem; color: #888; }
.stat-line { width: 40px; height: 2px; background: var(--copper); margin-top: 5px; }

.showcase-split { display: flex; height: 500px; width: 100%; overflow: hidden; }
.split-item { flex: 1; position: relative; overflow: hidden; cursor: pointer; border-right: 1px solid #222; }
.split-bg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; filter: brightness(0.5); }
.split-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; z-index: 2; width: 80%; }
.split-title { font-size: 2.2rem; font-weight: 900; color: #fff; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; text-shadow: 0 4px 10px rgba(0,0,0,0.9); }
.split-btn { padding: 12px 30px; border: 2px solid #fff; color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; background: transparent; transition: 0.3s; }
.split-item:hover .split-bg { transform: scale(1.1); filter: brightness(0.7); }
.split-item:hover .split-btn { background: var(--copper); border-color: var(--copper); color: #000; }

.page-header { height: 35vh; background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.9)), url('bg.jpg'); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #222; }
.page-title h1 { font-size: 3rem; color: #fff; letter-spacing: 5px; border-bottom: 3px solid var(--copper); padding-bottom: 10px; }
.hero { min-height: 80vh; background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7)), url('bg.jpg'); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 20px; }
.hero-content h1 { font-size: 3.5rem; font-weight: 300; letter-spacing: 2px; margin-bottom: 20px; color: #fff; }
.hero-content p { font-size: 1.3rem; max-width: 800px; margin: 0 auto 40px auto; color: #ddd; }
.highlight-copper { color: var(--copper); font-weight: 800; }
.highlight-steel { color: #fff; font-weight: 800; }
.btn { padding: 15px 40px; font-weight: 800; border-radius: 4px; letter-spacing: 1px; cursor: pointer; display: inline-block; margin: 5px; }
.btn-primary { background: var(--copper); color: #000; border: none; }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }

.content-section, .products-section, .services-section, .simple-contact-section { padding: 80px 5%; background-color: #111; max-width: 1600px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2rem; color: #fff; }
.section-title .line { width: 80px; height: 3px; background: var(--copper); margin: 10px auto; }

/* GRID SİSTEMLERİ */
.values-grid, .product-grid, .contact-cards-container { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.why-card, .value-box, .product-card, .contact-card { background: #1a1a1a; border: 1px solid #333; padding: 30px; border-radius: 8px; transition: 0.3s; }
.why-card:hover, .value-box:hover, .product-card:hover, .contact-card:hover { border-color: var(--copper); transform: translateY(-5px); }
.why-icon, .card-icon, .icon-box span { font-size: 2rem; color: var(--copper); display: block; margin-bottom: 15px; }
.why-title, .feature-card h3, .value-box h3, .product-title, .card-title { font-size: 1.5rem; color: #fff; margin-bottom: 15px; }
.why-desc, .feature-card p, .value-box p, .product-desc, .service-text { color: #ccc; }
.service-img-wrapper, .product-img-wrapper, .image-item { width: 100%; height: 350px; overflow: hidden; border-radius: 8px; border: 1px solid var(--border-color); }
.service-img, .product-img, .image-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.service-img-wrapper:hover img, .product-img-wrapper:hover img, .image-item:hover img { transform: scale(1.05); }

.category-accordion { margin-bottom: 40px; border: 1px solid #333; border-radius: 8px; overflow: hidden; background: #1a1a1a; }
.category-accordion summary { background: #222; padding: 20px; font-size: 1.4rem; font-weight: 800; color: var(--copper); cursor: pointer; border-left: 5px solid var(--copper); text-transform: uppercase; }
.service-row { display: flex; align-items: center; justify-content: space-between; gap: 60px; margin-bottom: 80px; }
.service-row:nth-child(even) { flex-direction: row-reverse; }
.service-content { flex: 1; }
.service-img-wrapper { flex: 1; max-width: 600px; }
.image-grid { display: flex; gap: 30px; justify-content: center; margin-bottom: 60px; }
.image-item { flex: 1; max-width: 600px; }
.contact-cards-container { display: flex; flex-wrap: wrap; justify-content: center; }
.icon-box { width: 70px; height: 70px; border-radius: 50%; border: 1px solid #444; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px auto; }
.contact-link { display: block; font-size: 1.6rem; color: var(--copper); margin-bottom: 15px; font-weight: 700; letter-spacing: 1px; }
.tech-table-container { overflow-x: auto; margin-top: 20px; border: 1px solid #333; border-radius: 6px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.spec-table th, .spec-table td { padding: 12px; border-bottom: 1px solid #333; text-align: left; }
.spec-table th { background: #222; color: var(--copper); }
.spec-table tr:hover td { background: #252525; color: #fff; }

.process-section { background: #111; padding: 100px 5%; text-align: center; border-top: 1px solid #222; overflow: hidden; }
.process-steps { display: flex; justify-content: space-between; position: relative; max-width: 1300px; margin: 80px auto 20px auto; }
.process-steps::before { content: ''; position: absolute; top: 40px; left: 60px; right: 60px; height: 4px; background: #333; z-index: 0; }
.process-steps::after { content: ''; position: absolute; top: 40px; left: 60px; width: 100%; height: 4px; background: linear-gradient(90deg, var(--copper) 0%, transparent 80%); z-index: 0; opacity: 0.4; }
.step-card { position: relative; z-index: 1; flex: 1; padding: 0 15px; border: none; background: transparent; text-align: center; transition: transform 0.3s; }
.step-card:hover { transform: translateY(-10px); }
.step-number { width: 80px; height: 80px; background: #0f0f0f; border: 3px solid var(--copper); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 30px auto; font-size: 2rem; font-weight: 900; color: var(--copper); box-shadow: 0 0 20px rgba(0,0,0,0.8); transition: 0.3s; }
.step-card:hover .step-number { background: var(--copper); color: #000; box-shadow: 0 0 40px rgba(255, 159, 67, 0.6); }
.step-title { font-size: 1.3rem; color: #fff; font-weight: 800; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.step-desc { font-size: 0.95rem; color: #bbb; line-height: 1.5; max-width: 280px; margin: 0 auto; }

footer { background: #050505; padding: 40px; text-align: center; color: #666; font-size: 0.9rem; border-top: 1px solid #222; margin-top: auto; }

/* --- ORTALAMA DÜZELTMESİ (GRID -> FLEX GEÇİŞİ) --- */
/* Bu yöntem son elemanı ne olursa olsun ortalar */
.why-us-grid {
    display: flex; /* Grid yerine Flex kullanıyoruz */
    flex-wrap: wrap; /* Sığmayan aşağı geçsin */
    justify-content: center; /* HEPSİNİ ORTALA */
    gap: 30px;
}
.why-card {
    flex: 1 1 350px; /* Esnek genişlik: En az 350px, boş yer varsa büyüsün */
    max-width: 450px; /* Çok fazla da büyümesin */
    width: 100%;
}

@media (max-width: 1200px) {
    .navbar { height: auto; flex-direction: column; padding: 20px; gap: 15px; }
    .navbar-center-logo { display: none; }
    .nav-links { width: 100%; justify-content: center; gap: 15px; padding: 10px 0; flex-wrap: wrap; }
    .showcase-split { flex-direction: column; height: auto; }
    .split-item { height: 300px; width: 100%; border-right: none; border-bottom: 1px solid #222; }
    .stats-banner { gap: 40px; padding: 40px 20px; flex-direction: column; }
    .image-grid, .service-row, .contact-cards-container { flex-direction: column !important; }
    .service-img-wrapper, .image-item { max-width: 100%; height: 250px; }
    .process-steps { flex-direction: column; gap: 40px; margin-top: 30px; }
    .process-steps::before, .process-steps::after { display: none; }
}
