/* style.css - Kıran Yapı Ultimate V3 */
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    --primary: #f39c12; /* İş Makinesi Turuncusu */
    --primary-dark: #d35400;
    --dark: #2c3e50; /* Kurumsal Lacivert/Gri */
    --darker: #1a252f; /* Footer/Header Arkaplanı */
    --light: #ecf0f1; /* Açık Zemin */
    --white: #ffffff;
    --text: #505c6e;
    --border: #e0e0e0;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* --- GENEL AYARLAR --- */
* { margin: 0; padding: 0; box-sizing: border-box; outline: none; }
body { font-family: 'Barlow', sans-serif; background-color: #fdfdfd; color: var(--text); line-height: 1.7; font-size: 16px; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { color: var(--dark); font-weight: 700; text-transform: uppercase; letter-spacing: -0.5px; margin-bottom: 15px; }
a { text-decoration: none; transition: all 0.3s ease; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; }
.section-pad { padding: 100px 0; }
.bg-light { background-color: #f8f9fa; }

/* --- HEADER & TOP BAR --- */
.top-bar { background: var(--darker); color: #aaa; padding: 10px 0; font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.top-flex { display: flex; justify-content: space-between; align-items: center; }
.top-info span { margin-right: 20px; }
.top-info i { color: var(--primary); margin-right: 5px; }

header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; transition: 0.4s; }
.navbar { display: flex; justify-content: space-between; align-items: center; height: 90px; }
.logo { font-size: 2rem; font-weight: 800; color: var(--dark); letter-spacing: -1px; display: flex; align-items: center; gap: 10px; }
.logo i { color: var(--primary); font-size: 1.8rem; padding-top: 7px; }
.logo span { color: var(--primary); }

.nav-menu { display: flex; gap: 5px; height: 100%; align-items: center; }
.nav-link { font-weight: 600; color: var(--dark); padding: 10px 18px; font-size: 0.95rem; position: relative; text-transform: uppercase; }
.nav-link:hover { color: var(--primary); }

/* Dropdown */
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.dropdown { position: absolute; top: 100%; left: 0; background: var(--white); width: 280px; box-shadow: 0 15px 40px rgba(0,0,0,0.15); visibility: hidden; opacity: 0; transform: translateY(20px); transition: 0.3s; border-top: 4px solid var(--primary); }
.nav-item:hover .dropdown { visibility: visible; opacity: 1; transform: translateY(0); }
.dropdown a { display: block; padding: 16px 25px; border-bottom: 1px solid #f1f1f1; font-size: 0.9rem; font-weight: 500; color: var(--text); }
.dropdown a:hover { background: #f9f9f9; color: var(--primary); padding-left: 30px; }

.btn-main { background: var(--primary); color: var(--white); padding: 14px 30px; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; border-radius: 4px; letter-spacing: 1px; box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4); }
.btn-main:hover { background: var(--dark); color: var(--white); transform: translateY(-3px); }

/* --- HERO SECTION --- */
.hero { height: 90vh; background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=1920&q=80'); background-size: cover; background-position: center; background-attachment: fixed; display: flex; align-items: center; position: relative; }
.hero-content { max-width: 1200px; margin: 0 auto; padding: 0 20px; color: var(--white); position: relative; z-index: 2; }
.hero-tag { background: var(--primary); color: var(--white); padding: 5px 15px; font-weight: 600; font-size: 0.9rem; display: inline-block; margin-bottom: 20px; text-transform: uppercase; }
.hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 25px; color: var(--white); text-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.hero p { font-size: 1.3rem; max-width: 700px; margin-bottom: 40px; color: #ddd; font-weight: 300; }

/* --- SERVICES GRID --- */
.section-title { text-align: center; margin-bottom: 70px; max-width: 800px; margin-left: auto; margin-right: auto; }
.section-title span { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; display: block; margin-bottom: 10px; }
.section-title h2 { font-size: 2.8rem; position: relative; padding-bottom: 20px; }
.section-title h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: var(--primary); }

.services-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-box { background: var(--white); border: 1px solid #eee; overflow: hidden; transition: 0.4s; position: relative; group; }
.service-box:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-color: var(--primary); }
.sb-img { height: 250px; overflow: hidden; position: relative; }
.sb-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.service-box:hover .sb-img img { transform: scale(1.1); }
.sb-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(44, 62, 80, 0.8); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.4s; }
.service-box:hover .sb-overlay { opacity: 1; }
.sb-icon { width: 60px; height: 60px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.5rem; }
.sb-content { padding: 30px; }
.sb-content h3 { font-size: 1.4rem; margin-bottom: 15px; }
.sb-link { color: var(--primary); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 5px; }

/* --- PAGE HEADER & BREADCRUMB --- */
.page-header { background: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1920&q=80') center/cover; height: 400px; display: flex; align-items: center; position: relative; }
.page-header::before { content:''; position: absolute; top:0; left:0; width:100%; height:100%; background: linear-gradient(90deg, rgba(26,37,47,0.95) 0%, rgba(26,37,47,0.7) 100%); }
.ph-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
.ph-content h1 { font-size: 3.5rem; color: var(--white); margin-bottom: 10px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #bbb; font-size: 0.95rem; }
.breadcrumb a { color: var(--white); }
.breadcrumb i { font-size: 0.7rem; color: var(--primary); }

/* --- SIDEBAR & CONTENT LAYOUT --- */
.container { max-width: 1250px; margin: 0 auto; padding: 0 20px; }
.layout-row { display: grid; grid-template-columns: 320px 1fr; gap: 50px; margin: 80px 0; }

/* Sidebar Tasarımı */
.sidebar-widget { background: var(--white); padding: 30px; border: 1px solid #eee; margin-bottom: 30px; box-shadow: var(--shadow); }
.sw-title { font-size: 1.2rem; border-bottom: 2px solid #eee; padding-bottom: 15px; margin-bottom: 25px; position: relative; }
.sw-title::after { content:''; position: absolute; bottom: -2px; left: 0; width: 50px; height: 2px; background: var(--primary); }

.sw-nav a { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid #f5f5f5; color: var(--text); font-weight: 500; transition: 0.3s; }
.sw-nav a:hover, .sw-nav a.active { color: var(--primary); padding-left: 10px; border-bottom-color: var(--primary); }
.sw-nav a i { font-size: 0.8rem; }

.sw-contact { background: var(--dark); color: var(--white); padding: 40px 30px; text-align: center; position: relative; overflow: hidden; }
.sw-contact::before { content:''; position: absolute; top:0; left:0; width:100%; height:100%; background: url('https://www.transparenttextures.com/patterns/cubes.png'); opacity: 0.1; }
.sw-contact i { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }
.sw-contact h4 { color: var(--white); margin-bottom: 10px; }

/* İçerik Alanı */
.content-area h2 { font-size: 2.2rem; margin-bottom: 25px; position: relative; padding-left: 20px; border-left: 5px solid var(--primary); }
.content-area p { margin-bottom: 20px; font-size: 1.05rem; }
.content-area img { border-radius: 5px; margin-bottom: 30px; width: 100%; }

.specs-table { width: 100%; border-collapse: collapse; margin: 30px 0; }
.specs-table th, .specs-table td { border: 1px solid #eee; padding: 15px; text-align: left; }
.specs-table th { background: #f9f9f9; color: var(--dark); font-weight: 700; width: 30%; }

/* Galeri Grid (Projeler) */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 20px; }
.gallery-item { position: relative; height: 350px; overflow: hidden; border-radius: 4px; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.gallery-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); transform: translateY(100px); transition: 0.4s; }
.gallery-item:hover .gallery-overlay { transform: translateY(0); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay h4 { color: var(--white); margin-bottom: 5px; text-transform: uppercase; }
.gallery-overlay span { color: var(--primary); font-size: 0.9rem; font-weight: 600; }

/* Footer */
footer { background: var(--darker); color: #95a5a6; padding-top: 80px; border-top: 5px solid var(--primary); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 60px; }
.f-widget h3 { color: var(--white); margin-bottom: 30px; font-size: 1.2rem; }
.f-links li { margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 12px; }
.f-links a { transition: 0.3s; display: block; }
.f-links a:hover { color: var(--primary); padding-left: 5px; }
.footer-bottom { background: #151e26; padding: 25px 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }

/* Responsive */
@media (max-width: 991px) {
    .navbar { height: auto; padding: 20px 0; }
    .nav-menu { display: none; } /* JS ile mobilde açılacak */
    .layout-row { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    .sidebar-widget { order: 2; }
    .content-area { order: 1; }
}

/* --- AKORDİYON (TEKNİK ÖZELLİKLER) STİLİ --- */
details.spec-accordion {
    margin-bottom: 15px;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
}

summary.spec-header {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 700;
    color: var(--dark);
    background-color: #f8f9fa;
    list-style: none; /* Varsayılan oku gizle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

/* Tarayıcı varsayılan okunu gizlemek için */
summary.spec-header::-webkit-details-marker {
    display: none;
}

summary.spec-header:hover {
    background-color: #eaeaea;
}

/* Açıkken başlığın rengini değiştir */
details.spec-accordion[open] summary.spec-header {
    background-color: var(--primary);
    color: #fff;
}

/* Ok İkonu */
summary.spec-header::after {
    content: '\f078'; /* FontAwesome Chevron Down */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: transform 0.3s;
}

/* Açıkken oku döndür */
details.spec-accordion[open] summary.spec-header::after {
    transform: rotate(180deg);
}

/* İçerik (Tablo) Ayarları */
details.spec-accordion .specs-table {
    margin: 0;
    width: 100%;
    border: none;
}

details.spec-accordion .specs-table tr:last-child td, 
details.spec-accordion .specs-table tr:last-child th {
    border-bottom: none;
}

/* =========================================
   MODERN HEADER & FOOTER STYLES (V4)
   ========================================= */

/* --- 1. MODERN TOP BAR --- */
.top-bar-modern {
    background-color: #111;
    color: #bbb;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top-flex-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact a {
    color: #bbb;
    margin-right: 15px;
    font-weight: 500;
    transition: 0.3s;
}

.top-contact a:hover {
    color: var(--primary);
}

.top-contact i {
    color: var(--primary);
    margin-right: 6px;
}

.top-contact .divider {
    color: #444;
    margin-right: 15px;
}

.top-social span {
    margin-right: 10px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.top-social a {
    color: #fff;
    margin-left: 10px;
    background: rgba(255,255,255,0.1);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    transition: 0.3s;
}

.top-social a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* --- 2. MODERN NAVBAR --- */
.modern-header {
    background: #fff;
    height: 90px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}

/* Scroll edildiğinde küçülme efekti için JS desteği gerekebilir, 
   mevcut JS'inizdeki "scrolled" sınıfı ile uyumlu CSS: */
.modern-header.scrolled {
    height: 70px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.navbar-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Logo Tasarımı */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo .icon-box {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transform: rotate(-5deg);
    transition: 0.3s;
}

.brand-logo:hover .icon-box {
    transform: rotate(0deg) scale(1.1);
}

.brand-logo .text-box {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.brand-logo .text-box span {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #7f8c8d;
    letter-spacing: 2px;
}

/* Orta Menü */
.nav-center .nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    color: var(--dark);
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 10px 0;
    position: relative;
}

.nav-link i {
    font-size: 0.7rem;
    margin-left: 3px;
    opacity: 0.5;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

.nav-link:hover::before, .nav-link.active::before {
    width: 100%;
}

/* Modern Dropdown */
.has-dropdown {
    position: relative;
}

.modern-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #fff;
    width: 260px;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    border-top: 3px solid var(--primary);
}

.modern-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
}

.has-dropdown:hover .modern-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

.has-dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.modern-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #555;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 5px;
    transition: 0.2s;
}

.modern-dropdown a i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.modern-dropdown a:hover {
    background: #fff8e1;
    color: var(--primary);
    padding-left: 20px;
}

/* Sağ Buton (Shine Effect) */
.btn-shine {
    position: relative;
    padding: 12px 30px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
    transition: 0.3s;
    font-size: 0.9rem;
}

.btn-shine:hover {
    background: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    color: #fff;
}

.btn-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn-shine:hover::before {
    left: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* --- 3. MODERN FOOTER --- */
.modern-footer {
    background: #1a252f;
    color: #ecf0f1;
    position: relative;
}

.footer-wave {
    position: absolute;
    top: -100px; /* SVG yüksekliğine göre ayarlandı */
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 100px;
}

.footer-content {
    position: relative;
    z-index: 2;
    padding-top: 20px;
    padding-bottom: 60px;
}

.footer-grid-modern {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo i {
    color: var(--primary);
}

.footer-logo span {
    color: var(--primary);
}

.about-col p {
    color: #bdc3c7;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #fff;
    transition: 0.3s;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-col h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bdc3c7;
    font-size: 0.95rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 0.7rem;
    color: var(--primary);
    transition: 0.3s;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

/* İletişim Kolonu */
.contact-col ul li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-col .icon {
    background: rgba(243, 156, 18, 0.1);
    color: var(--primary);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.contact-col strong {
    color: #fff;
    display: block;
    margin-bottom: 3px;
    font-size: 1rem;
}

.contact-col a, .contact-col span {
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Footer Alt */
.footer-bottom-modern {
    background: #151e26;
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 2;
}

.fb-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #95a5a6;
    font-size: 0.9rem;
}

.fb-links a {
    color: #95a5a6;
    margin-left: 20px;
}

.fb-links a:hover {
    color: var(--primary);
}

/* --- RESPONSIVE AYARLAR --- */
@media (max-width: 991px) {
    .nav-center { display: none; } /* Mobil menü JS ile açılmalı */
    .mobile-toggle { display: block; margin-left: 20px; }
    .footer-grid-modern { grid-template-columns: 1fr 1fr; }
    .top-flex-modern { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 576px) {
    .footer-grid-modern { grid-template-columns: 1fr; }
    .fb-content { flex-direction: column; gap: 15px; text-align: center; }
    .nav-right .btn-shine { display: none; } /* Mobilde butonu gizle, menü içine al */
}