/* style.css */
:root {
    --primary: #FF8C00; /* Endüstriyel Turuncu */
    --primary-hover: #e67e00;
    --dark: #222222;
    --grey: #555555;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --transition: all 0.3s ease-in-out;
    --container: 1200px;
}

/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: hidden; }
body { font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--grey); line-height: 1.7; background: var(--white); overflow-x: hidden; max-width: 100%; }
h1, h2, h3, h4 { color: var(--dark); font-weight: 800; letter-spacing: -0.5px; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 50px; position: relative; }
h2::after { content: ''; display: block; width: 60px; height: 4px; background: var(--primary); margin: 20px auto 0; }
ul { list-style: none; }
a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
main { overflow-x: hidden; max-width: 100%; }
.section-padding { padding: 100px 0; }
.btn { display: inline-block; padding: 15px 40px; background: var(--primary); color: var(--white); font-weight: 700; border-radius: 4px; border: none; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; transition: var(--transition); }
.btn:hover { background: var(--primary-hover); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255, 140, 0, 0.35); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline-light { background: transparent; border: 2px solid rgba(255,255,255,0.9); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--dark); }
.bg-dark { background: var(--dark); color: var(--grey); }
.bg-light { background: var(--light); }
.text-primary { color: var(--primary); }
/* Breadcrumb */
.breadcrumb { margin-bottom: 20px; font-size: 0.9rem; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span:last-child { color: var(--grey); }
.breadcrumb [aria-hidden="true"] { margin: 0 6px; color: #999; }

/* HEADER */
.header { position: fixed; top: 0; width: 100%; z-index: 1000; background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.1); transition: var(--transition); }
.header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(to right, var(--primary), transparent); opacity: 0.4; pointer-events: none; }
.header.sticky { background: rgba(255,255,255,0.98); padding: 15px 0; border-bottom: 1px solid #eee; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.header .logo { min-height: 44px; display: flex; align-items: center; }
.nav-list { display: flex; gap: 35px; }
.nav-link { font-weight: 600; font-size: 14px; text-transform: uppercase; color: var(--primary); letter-spacing: 1px; }
.header.sticky .nav-link { color: var(--dark); }
.nav-link:hover, .header.sticky .nav-link:hover { color: var(--primary); }

/* HERO SLIDER - Masaüstü ve mobilde aynı tam ekran görünüm */
.hero { position: relative; height: 100vh; min-height: 400px; overflow: hidden; display: flex; align-items: center; background: var(--dark); width: 100%; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s ease-in-out; background-size: cover; background-position: center; background-repeat: no-repeat; display: flex; align-items: center; width: 100%; }
.slide.active { opacity: 1; z-index: 1; }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.85), rgba(0,0,0,0.4)); }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding-left: 20px; padding-right: 20px; color: var(--white); width: 100%; }
.hero-tagline { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 12px; opacity: 0.9; }
.hero h1, .hero-slide-title { font-size: clamp(2.25rem, 5vw, 5rem); line-height: 1.1; margin-bottom: 25px; color: var(--white); }
.hero .btn { border-radius: 8px; padding: 16px 36px; box-shadow: 0 4px 14px rgba(0,0,0,0.2); }
.hero .btn:hover { box-shadow: 0 6px 20px rgba(255, 140, 0, 0.35); }
.hero p { font-size: clamp(1rem, 2.5vw, 1.3rem); margin-bottom: 40px; opacity: 0.9; max-width: 600px; }
.hero-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 12px; }
.hero-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.6); background: transparent; cursor: pointer; transition: var(--transition); font-size: 0; padding: 0; }
.hero-dot:hover, .hero-dot.active { background: var(--primary); border-color: var(--primary); }
.stats-emphasis .stat-item h4 { font-size: 3rem; font-weight: 700; }
@media (max-width: 768px) { .quick-form-grid { grid-template-columns: 1fr !important; } }

/* Hızlı teklif formu kutusu */
.quick-form-section { padding: 60px 0; }
.quick-form-box { max-width: 700px; margin: 0 auto; background: rgba(255,255,255,0.08); padding: 40px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.15); }
.quick-form-box h2 { font-weight: 700; color: var(--white) !important; }
.quick-form-box p { line-height: 1.5; }
.quick-form-box .form-input { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); color: var(--white); }
.quick-form-box .form-input::placeholder { color: rgba(255,255,255,0.6); }
.quick-form-box select.form-input option { background: var(--dark); color: var(--white); }

/* HİZMET KARTLARI */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.service-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); border: 1px solid rgba(0,0,0,0.06); transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease; cursor: pointer; }
.service-card:hover { transform: translateY(-12px) scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(255,140,0,0.2); border-color: rgba(255,140,0,0.3); }
.service-img-wrapper { overflow: hidden; height: 260px; }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.service-card:hover img { transform: scale(1.08); }
.service-info { padding: 32px; }
.service-info h3 { margin-bottom: 15px; font-size: 1.4rem; }
.read-more-btn { margin-top: 12px; display: inline-block; color: var(--primary); font-weight: 700; }
.service-card .btn-teklif { margin-top: 16px; padding: 10px 24px; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px; }
/* Sertifikalar */
.certificates-grid { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
.certificate-item { display: flex; align-items: center; justify-content: center; padding: 20px; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); background: var(--white); }
.certificate-item img { object-fit: contain; }
/* WhatsApp sabit buton */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; background: #25D366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; z-index: 9999; box-shadow: 0 4px 20px rgba(37,211,102,0.5); transition: transform 0.2s, box-shadow 0.2s; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.6); color: #fff; }
/* Cookie bar */
.cookie-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--dark); color: #ddd; padding: 16px 20px; z-index: 9998; box-shadow: 0 -4px 24px rgba(0,0,0,0.15); border-radius: 12px 12px 0 0; }
.cookie-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cookie-bar p { margin: 0; font-size: 0.95rem; line-height: 1.5; flex: 1; min-width: 260px; }
.cookie-bar a { color: var(--primary); }
.cookie-actions { flex-shrink: 0; }
.cookie-bar .btn-sm { background: var(--primary); color: var(--white); border: none; }
.cookie-bar .btn-sm:hover { background: var(--primary-hover); }
.btn-sm { padding: 10px 24px; font-size: 0.9rem; }
@media (max-width: 768px) { .whatsapp-float { bottom: 80px; right: 16px; width: 52px; height: 52px; font-size: 24px; } .cookie-bar-inner { flex-direction: column; text-align: center; } }

/* HİZMET DETAY SAYFASI */
.service-detail-header { background: linear-gradient(to right, var(--dark) 50%, var(--primary) 80%, var(--dark)); color: white; padding: 80px 0 40px; margin-top: 80px; }
.service-detail-header h1 { color: white; font-size: 2.75rem; line-height: 1.2; }
.service-detail-header .breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.9); }
.service-detail-header .breadcrumb [aria-hidden="true"] { color: rgba(255,255,255,0.5); }
.service-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.service-detail-section { border-left: 4px solid var(--primary); }
.service-detail-section img { border-radius: 12px; overflow: hidden; }
.service-specs { background: var(--light); padding: 30px; border-radius: 8px; }
.specs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }
.spec-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #ddd; }
.spec-item:nth-child(even) { background: rgba(0,0,0,0.03); margin: 0 -8px; padding-left: 8px; padding-right: 8px; }

/* KURUMSAL BÖLÜMÜ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text p { margin-bottom: 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 40px; }
.stat-item { padding: 20px; border-left: 3px solid var(--primary); background: var(--light); border-radius: 0 8px 8px 0; }
.stat-item h4 { font-size: 3rem; font-weight: 700; color: var(--primary); margin-bottom: 5px; }

.advantages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-top: 80px; }
.advantage-card { background: var(--white); padding: 32px 28px; text-align: center; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-bottom: 3px solid transparent; transition: var(--transition); }
.advantage-card:hover { border-bottom-color: var(--primary); transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,0.06); }
.advantage-icon { font-size: 40px; color: var(--primary); margin-bottom: 20px; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 140, 0, 0.12); }

/* GALERİ BÖLÜMÜ */
.gallery-filters { text-align: center; margin-bottom: 40px; }
.filter-btn { background: transparent; border: 2px solid var(--primary); color: var(--dark); padding: 10px 25px; margin: 5px; cursor: pointer; font-weight: 600; border-radius: 30px; transition: var(--transition); }
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.gallery-item { position: relative; height: 300px; overflow: hidden; border-radius: 8px; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); opacity: 0; transition: var(--transition); display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 1.1rem; letter-spacing: 1px; }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* İLETİŞİM & FOOTER */
.contact-container { display: grid; grid-template-columns: 2fr 3fr; gap: 60px; background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.contact-info-box { background: linear-gradient(180deg, #222 0%, #2a2a2a 100%); color: var(--white); padding: 50px; border-radius: 0 12px 12px 0; }
.contact-info-box .social-icon:hover { background: var(--primary) !important; color: var(--white) !important; }
.contact-form-box { padding: 50px; }
.form-group { margin-bottom: 25px; }
.form-input { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; transition: var(--transition); }
.form-input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.25); }
.alert-success, .alert-error { border-radius: 8px; padding: 14px 18px; }
footer { border-top: 1px solid rgba(255, 140, 0, 0.3); }
footer a:hover { color: var(--primary) !important; text-decoration: underline; }

/* REFERANSLAR */
.references-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.reference-card { background: white; border-radius: 12px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: var(--transition); }
.reference-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 16px 40px rgba(0,0,0,0.12); }
.reference-logo { height: 80px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.reference-logo img { max-height: 60px; width: auto; }
.client-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 30px; align-items: center; }
.client-logo { background: white; padding: 20px; border-radius: 8px; height: 120px; display: flex; align-items: center; justify-content: center; }
.client-logo img { max-width: 100%; max-height: 60px; }

/* ORTAK MODAL YAPISI */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 40px; backdrop-filter: blur(5px); }
.modal.active { display: flex !important; }
.modal-container { background: var(--white); width: 100%; max-width: 900px; max-height: 90vh; overflow-y: auto; border-radius: 12px; position: relative; animation: modalUp 0.4s ease; }
.modal-close { position: absolute; top: 20px; right: 25px; font-size: 35px; cursor: pointer; color: var(--dark); z-index: 10; transition: var(--transition); }
.modal-close:hover { color: var(--primary); transform: rotate(90deg); }
.modal-body { padding: 40px; }

/* Galeri Lightbox için özel */
#galleryModal .modal-container { background: transparent; box-shadow: none; max-width: 1100px; text-align: center; }
#galleryModal img { max-height: 85vh; width: auto; margin: 0 auto; border-radius: 8px; border: 2px solid var(--dark); }
#galleryModal .modal-close { color: var(--white); top: -30px; right: 0; }

@keyframes modalUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }

/* REVEAL ANIMATION */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* MOBILE */
.mobile-toggle { display: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; width: 44px; height: 44px; z-index: 1002; padding: 10px; border-radius: 8px; transition: var(--transition); -webkit-tap-highlight-color: transparent; }
.mobile-toggle span { width: 24px; height: 2.5px; background: var(--white); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; display: block; }
.mobile-toggle span:nth-child(1) { transform: translateY(0); }
.mobile-toggle span:nth-child(2) { transform: translateY(0); }
.mobile-toggle span:nth-child(3) { transform: translateY(0); }
.header.sticky .mobile-toggle span { background: var(--dark); }
/* Hamburger → X animasyonu */
.mobile-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 991px) {
    body.nav-open { overflow: hidden; }
    .header { padding: 15px 0; background: var(--white) !important; }
    /* Mobil menü: panel + arka plan */
    .nav { position: fixed; top: 0; right: -100%; width: min(100%, 360px); max-width: 360px; height: 100vh; height: 100dvh; background: var(--white); padding: 0; transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease; box-shadow: none; z-index: 1000; display: flex; flex-direction: column; overflow: hidden; }
    .nav.active { right: 0; box-shadow: -8px 0 32px rgba(0,0,0,0.15); }
    .nav-backdrop { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 999; }
    .nav.active .nav-backdrop { opacity: 1; pointer-events: auto; }
    .nav .nav-list { flex-direction: column; gap: 0; padding: 70px 0 30px; overflow-y: auto; overflow-x: hidden; flex: 1; -webkit-overflow-scrolling: touch; }
    .nav .nav-list > li { border-bottom: 1px solid var(--light); }
    .nav .nav-list > li:last-child { border-bottom: none; }
    .nav-link { color: var(--dark); font-size: 1.05rem; padding: 16px 24px; min-height: 48px; display: flex; align-items: center; justify-content: space-between; }
    .nav-link:hover, .nav-link.active { color: var(--primary); background: rgba(255, 140, 0, 0.06); }
    .mobile-toggle { display: flex; }
    .mobile-toggle span { background: var(--dark) !important; }
    /* Mobil alt menü: her zaman açık, kaydırılabilir */
    .nav .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: var(--light); padding: 8px 0 12px 24px; border-radius: 0; min-width: auto; max-height: none; }
    .nav .submenu .nav-link { padding: 12px 16px; font-size: 0.95rem; color: var(--grey); white-space: normal; }
    .nav .submenu .nav-link:hover { background: rgba(255, 140, 0, 0.08); color: var(--primary); }
    .nav .submenu-category { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--primary); padding: 14px 16px 6px; margin-top: 4px; }
    .nav .submenu-category:first-child { margin-top: 0; }
    .nav .submenu-divider { height: 0; padding: 0; margin: 4px 0; border-bottom: 1px solid rgba(0,0,0,0.08); list-style: none; }
    .nav .submenu-arrow { transform: rotate(0deg); transition: transform 0.25s; }
    .nav .has-submenu.open .submenu-arrow { transform: rotate(180deg); }
    
    .about-grid, .contact-container, .service-content { grid-template-columns: 1fr; gap: 40px; }
    /* Hero/slide mobilde masaüstü gibi: tam ekran, aynı oran, taşma yok */
    .hero { height: 100vh; min-height: 400px; }
    .hero .container { width: 100%; max-width: 100%; padding-left: 20px; padding-right: 20px; }
    .hero-content { padding-left: 20px; padding-right: 20px; max-width: 100%; }
    .hero h1, .hero-slide-title { font-size: clamp(2rem, 8vw, 3rem); }
    .hero p { font-size: 1rem; }
    /* Mobilde reveal bölümleri her zaman görünsün (Intersection Observer tetiklenmese bile) */
    .reveal { opacity: 1; transform: translateY(0); }
    /* Uzmanlık Alanlarımız grid: dar ekranda tek sütun, taşma olmasın */
    .services-grid { grid-template-columns: 1fr; minmax(0, 1fr); }
}

/* Ana navigasyon stilleri */
.nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
    position: relative;
}

.nav-list > li {
    position: relative;
}

/* Ana menü linkleri */
.nav-link {
    text-decoration: none;
    color: var(--dark);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
    font-weight: bold;
}

/* Alt menü oku */
.submenu-arrow {
    font-size: 10px;
    margin-left: 5px;
}

/* Alt menü stilleri */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1000;
    list-style: none;
    padding: 10px 0;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    display: block;
}

.submenu .nav-link {
    padding: 8px 20px;
    white-space: nowrap;
    color: #555;
}

.submenu .nav-link:hover {
    background-color: #f8f9fa;
    color: var(--primary);
}

.submenu .nav-link.active {
    background-color: rgba(255, 140, 0, 0.08);
    color: var(--primary);
}
