/* --- RESET & TEMEL --- */
html { scroll-behavior: smooth; }
:root {
    --bg-color: #ffffff;
    --bg-light: #f9f9fa;
    --text-color: #1a1a1a;
    --muted: #666;
    --accent: #000;
    --radius-soft: 24px;
    --font-head: 'DM Sans', sans-serif;
    --font-mono: 'Space Mono', monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-head); color: var(--text-color); background: var(--bg-color); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { width: 100%; display: block; }

/* UTILS */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }
.mb-50 { margin-bottom: 50px; }
.mono-tag { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 1px; margin-bottom: 15px; display: block; text-transform: uppercase; }
.section-title { font-size: 3rem; line-height: 1.1; letter-spacing: -1px; margin-bottom: 40px; }

/* --- ANIMATIONS (Javascript ile çalışır) --- */
.fade-up { opacity: 1; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fade-up.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- HEADER & NAV --- */
.navbar { position: fixed; top: 20px; width: 100%; z-index: 1000; padding: 0 20px; }
.nav-container {
    max-width: 1200px; margin: 0 auto; background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px); border: 1px solid rgba(0,0,0,0.05);
    padding: 15px 30px; border-radius: 50px;
    display: flex; justify-content: space-between; align-items: center;
}
.brand { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.5px; }
.dot { color: red; }
.nav-menu { display: flex; gap: 30px; }
.nav-menu a { font-size: 14px; font-weight: 500; }
.nav-menu a:hover { color: #888; }
.btn-nav { background: #000; color: #fff; padding: 10px 24px; border-radius: 30px; font-size: 14px; font-weight: 500; }
.btn-nav:hover { background: #333; }

/* --- STICKY RISK --- */
.sticky-risk {
    position: fixed; bottom: 30px; right: 30px;
    background: #ff3b30; color: #fff; padding: 12px 20px;
    border-radius: 50px; display: flex; align-items: center; gap: 10px;
    z-index: 999; box-shadow: 0 10px 30px rgba(255,59,48,0.3); font-weight: 500;
}
.sticky-risk:hover { transform: translateY(-5px); }
.risk-icon { animation: pulse 2s infinite; font-size: 1.2rem; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* --- HERO SECTION --- */
.hero { padding-top: 160px; padding-bottom: 80px; }
.hero-title { font-size: clamp(3.5rem, 8vw, 6rem); letter-spacing: -2px; line-height: 1; margin-bottom: 20px; }
.hero-sub { font-size: 1.2rem; color: #666; max-width: 500px; margin: 0 auto 50px; }
.video-card {
    position: relative; width: 100%; max-width: 1100px; height: 550px;
    margin: 0 auto; border-radius: var(--radius-soft); overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.video-card video { width: 100%; height: 100%; object-fit: cover; }
.video-overlay {
    position: absolute; bottom: 30px; left: 30px;
    background: rgba(255,255,255,0.2); backdrop-filter: blur(10px);
    padding: 10px 20px; border-radius: 50px; color: #fff;
    border: 1px solid rgba(255,255,255,0.3); font-size: 14px;
}

/* --- BENTO GRID --- */
.bento-grid { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 300px 200px; gap: 20px; }
.bento-box { background: var(--bg-light); border-radius: var(--radius-soft); padding: 40px; overflow: hidden; position: relative; }
.text-box { grid-row: span 2; display: flex; flex-direction: column; justify-content: center; }
.text-box h3 { font-size: 2rem; margin-bottom: 20px; }
.img-box { grid-row: span 2; padding: 0; }
.img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.img-box:hover img { transform: scale(1.05); }
.stat-box { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.stat-box.dark { background: #111; color: #fff; }
.stat-num { font-size: 3rem; font-weight: 700; font-family: var(--font-mono); }

/* --- SERVICES --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.service-card {
    background: #fff; border: 1px solid #eee; border-radius: var(--radius-soft); padding: 40px 30px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block; height: 100%; position: relative;
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.icon-circle { width: 50px; height: 50px; background: var(--bg-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 24px; transition: 0.3s; }
.service-card:hover .icon-circle { background: #000; color: #fff; }
.read-more { display: inline-block; margin-top: 20px; font-size: 0.9rem; font-weight: 600; border-bottom: 1px solid #000; padding-bottom: 2px; transition: 0.3s; }
.service-card:hover .read-more { color: #666; border-color: #666; transform: translateX(5px); }

/* --- INFINITE SLIDER --- */
.no-pad-right { padding-right: 0; overflow: hidden; }
.infinite-slider-wrapper { width: 100%; overflow: hidden; padding: 20px 0; }
.infinite-track { display: flex; width: max-content; animation: scroll 60s linear infinite; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- PROJECT CARDS --- */
.slide-card {
    display: block; width: 400px; height: 500px; margin-right: 30px; flex-shrink: 0;
    position: relative; border-radius: var(--radius-soft); overflow: hidden; text-decoration: none;
}
.slide-img { width: 100%; height: 100%; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.slide-img img { width: 100%; height: 100%; object-fit: cover; }
.slide-info {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff; transform: translateY(10px); transition: 0.4s;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.slide-info h4 { font-size: 1.8rem; font-weight: 400; margin-bottom: 5px; line-height: 1; }
.slide-info span { font-family: var(--font-mono); font-size: 0.85rem; color: #ccc; letter-spacing: 1px; text-transform: uppercase; }
.slide-card:hover .slide-img { transform: scale(1.1); }
.slide-card:hover .slide-info { transform: translateY(0); padding-bottom: 50px; }

/* --- PROCESS --- */
.process-wrapper { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 60px; }
.process-step { text-align: center; flex: 1; padding: 0 10px; position: relative; z-index: 2; }
.p-icon { width: 70px; height: 70px; margin: 0 auto 20px; background: #fff; border: 1px solid #000; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; transition: 0.3s; }
.process-step:hover .p-icon { background: #000; color: #fff; transform: scale(1.1); }
.separator { flex-grow: 1; height: 1px; background: #ddd; margin-top: 35px; }

/* --- BROCHURE --- */
.brochure-wrapper {
    margin-top: 80px; background: #111; color: #fff;
    padding: 40px; border-radius: var(--radius-soft);
    display: flex; justify-content: space-between; align-items: center;
    position: relative; overflow: hidden;
}
.brochure-content { position: relative; z-index: 2; display: flex; gap: 20px; align-items: center; }
.brochure-icon { font-size: 2.5rem; background: rgba(255,255,255,0.1); width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.brochure-text h3 { font-size: 1.5rem; margin-bottom: 5px; }
.brochure-text p { color: #888; font-size: 0.9rem; }
.btn-download {
    background: #fff; color: #000; padding: 15px 30px;
    border-radius: 50px; font-weight: 600; text-transform: uppercase;
    font-size: 0.9rem; letter-spacing: 1px; transition: 0.3s; z-index: 2;
}
.btn-download:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(255,255,255,0.3); }
.brochure-bg-icon { position: absolute; right: -20px; bottom: -20px; font-size: 15rem; color: rgba(255,255,255,0.03); transform: rotate(-15deg); pointer-events: none; }

/* --- FAQ --- */
.faq-container { max-width: 900px; margin: 0 auto; }
.faq-row { border-bottom: 1px solid rgba(0,0,0,0.1); padding: 30px 0; }
.faq-row:first-child { border-top: 1px solid rgba(0,0,0,0.1); }
.faq-header { display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: 0.3s; }
.faq-header h4 { font-size: 1.4rem; font-weight: 400; color: #111; font-family: var(--font-head); letter-spacing: -0.5px; }
.faq-header:hover h4 { color: #666; }
.faq-icon { width: 40px; height: 40px; border: 1px solid #ddd; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: 0.4s; color: #999; }
.faq-body { max-height: 0; overflow: hidden; transition: 0.5s ease; padding-top: 0; color: #555; font-size: 1rem; line-height: 1.7; padding-right: 50px; }
.faq-row.active .faq-icon { background: #000; color: #fff; border-color: #000; transform: rotate(45deg); }
.faq-row.active .faq-body { max-height: 200px; padding-top: 20px; }

/* --- CONTACT --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }
.contact-form-wrapper { background: #fff; padding: 50px; border-radius: 24px; border: 1px solid #eee; box-shadow: 0 20px 60px rgba(0,0,0,0.05); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: #888; margin-bottom: 8px; display: block; font-weight: 600; }
.styled-input, .styled-select, .styled-textarea { width: 100%; padding: 15px 0; border: none; border-bottom: 1px solid #ddd; background: transparent; font-family: var(--font-head); font-size: 1.1rem; color: #000; outline: none; transition: 0.3s; }
.styled-input:focus, .styled-select:focus, .styled-textarea:focus { border-color: #000; }

/* --- FOOTER --- */
.main-footer { background: #0a0a0a; color: #fff; padding: 100px 0 40px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 60px; }
.footer-col h4 { font-size: 1.1rem; margin-bottom: 25px; color: #fff; }
.footer-desc { color: #888; line-height: 1.6; margin-top: 20px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #888; transition: 0.3s; }
.footer-links a:hover { color: #fff; padding-left: 5px; }
.footer-contact li { display: flex; gap: 15px; margin-bottom: 20px; color: #bbb; }
.footer-contact i { color: #fff; font-size: 1.2rem; }
.newsletter-form { position: relative; margin-top: 20px; }
.newsletter-input { width: 100%; background: #1a1a1a; border: none; padding: 15px; color: #fff; border-radius: 8px; }
.newsletter-btn { position: absolute; right: 5px; top: 5px; background: #fff; color: #000; border: none; width: 40px; height: 40px; border-radius: 6px; cursor: pointer; }
.footer-bottom { border-top: 1px solid #222; padding-top: 30px; display: flex; justify-content: space-between; align-items: center; color: #555; font-size: 0.85rem; }

/* --- MODAL / POP-UP (DÜZELTİLDİ) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
    z-index: 10000; display: flex; justify-content: center; align-items: center;
    /* BAŞLANGIÇTA GİZLİ */
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: 0.4s;
}
.modal-overlay.active {
    opacity: 1; visibility: visible; pointer-events: auto;
}
.modal-content {
    background: #fff; width: 90%; max-width: 500px; padding: 40px; border-radius: 24px; position: relative;
    transform: translateY(50px); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.close-modal { position: absolute; top: 20px; right: 20px; font-size: 24px; cursor: pointer; color: #999; transition: 0.3s; }
.close-modal:hover { color: #000; transform: rotate(90deg); }
.modal-title { font-size: 1.8rem; margin-bottom: 10px; line-height: 1.1; }

/* --- OFFICE WIDGET --- */
.office-widget {
    position: fixed; bottom: 30px; left: 30px; z-index: 990;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px);
    padding: 12px 20px; border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05); font-family: var(--font-mono); font-size: 0.8rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: 0.3s;
}
.office-widget:hover { transform: translateY(-5px); }
.widget-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #ccc; display: inline-block; animation: pulseDot 2s infinite; }
.status-dot.open { background: #2ecc71; box-shadow: 0 0 10px #2ecc71; }
.status-dot.closed { background: #e74c3c; }
.widget-time { color: #888; font-size: 0.75rem; }
@keyframes pulseDot { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }

/* --- KENTSEL DÖNÜŞÜM --- */
.transformation-section { background: #111; color: #fff; position: relative; overflow: hidden; }
.tech-marquee { position: absolute; top: 0; left: 0; width: 100%; padding: 10px 0; background: rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.1); font-family: var(--font-mono); font-size: 0.8rem; color: #666; white-space: nowrap; overflow: hidden; z-index: 1; }
.marquee-track { display: inline-block; animation: marquee 30s linear infinite; }
.marquee-track span { margin-right: 50px; }
.ba-container { position: relative; width: 100%; height: 500px; border-radius: var(--radius-soft); overflow: hidden; margin-top: 40px; cursor: col-resize; box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.ba-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-img-after { z-index: 1; }
.ba-img-before { z-index: 2; width: 50%; border-right: 2px solid #fff; background: #111; clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); }
.ba-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 3; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.2); backdrop-filter: blur(10px); border: 2px solid #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 20px rgba(0,0,0,0.5); pointer-events: none; }
.ba-label { position: absolute; top: 20px; font-family: var(--font-mono); font-size: 12px; background: #000; padding: 4px 8px; border-radius: 4px; }
.lbl-old { left: 20px; z-index: 4; }
.lbl-new { right: 20px; z-index: 4; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 50px; }
.tech-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 25px; border-radius: 16px; }
.tech-val { font-family: var(--font-mono); font-size: 2rem; color: #fff; display: block; margin-bottom: 5px; }
.tech-key { font-size: 0.9rem; color: #888; }
.tech-icon { font-size: 1.5rem; margin-bottom: 15px; color: #fff; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .bento-grid, .process-wrapper, .contact-grid, .footer-grid, .form-row { display: flex; flex-direction: column; }
    .nav-menu { display: none; }
    .hero-title { font-size: 3.5rem; }
    .ba-container { height: 300px; }
    .separator { display: none; }
    .process-wrapper { gap: 40px; }
    .slide-card { width: 300px; }
    .office-widget { bottom: 10px; left: 10px; transform: scale(0.9); }
}

/* --- POP-UP MODAL ONARIM PAKETİ (KESİN ÇÖZÜM) --- */

/* 1. Modal Dış Katman (Karanlık Perde) */
.modal-overlay {
    background: rgba(0, 0, 0, 0.7) !important; /* Arka planı koyulaştır */
    backdrop-filter: blur(5px); /* Arkadaki siteyi bulandır */
    z-index: 99999 !important; /* En, en üstte olsun */
    display: flex !important; /* İçeriği ortalamak için şart */
    align-items: center;
    justify-content: center;
    /* Başlangıçta gizli */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    position: fixed; inset: 0;
}

/* Aktif olunca görünür yap */
.modal-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* 2. Modal Kutusu (Beyaz Kart) */
.modal-content {
    background-color: #ffffff !important; /* Varsayılan Beyaz */
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3) !important;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    margin: auto; /* Ortalamayı garantiye al */
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* 3. Dark Mode Uyumluluğu (Eğer karanlık mod açıksa kutu koyu olsun) */
body.dark-mode .modal-content {
    background-color: #1a1a1a !important; /* Koyu Gri Kutu */
    border: 1px solid #333 !important;
    color: #fff !important;
}

/* 4. Başlıklar ve Yazılar */
body.dark-mode .modal-title { color: #fff !important; }
body.dark-mode .modal-desc { color: #aaa !important; }

/* 5. Form Inputları (Görünmez olmasınlar) */
.offer-form input, 
.offer-form select {
    width: 100%;
    padding: 15px 0;
    background: transparent !important;
    border: none;
    border-bottom: 1px solid #ddd;
    outline: none;
    font-size: 1rem;
    color: #000; /* Light modda siyah yazı */
}

/* Dark Mode Inputları */
body.dark-mode .offer-form input,
body.dark-mode .offer-form select {
    color: #fff !important; /* Dark modda beyaz yazı */
    border-bottom-color: #444 !important;
}

/* Placeholder (Silik yazı) Rengi */
::placeholder { color: #999; opacity: 1; }

/* Select içindeki seçenekler (Dropdown) */
.offer-form option {
    color: #000; /* Seçenekler her zaman siyah olsun (okunabilirlik için) */
    background: #fff;
}

/* 6. Kapatma Butonu (X) */
.close-modal {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: 0.3s;
}
.close-modal:hover { color: #000; }
body.dark-mode .close-modal:hover { color: #fff; }

/* 7. Gönder Butonu */
.modal-content .btn-submit {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    margin-top: 20px;
    /* Light Mode */
    background-color: #000 !important;
    color: #fff !important;
}

/* Dark Mode Butonu */
body.dark-mode .modal-content .btn-submit {
    background-color: #fff !important;
    color: #000 !important;
}
body.dark-mode .modal-content .btn-submit:hover {
    background-color: #ddd !important;
}

/* --- DARK MODE HEADER & ICON DÜZELTMESİ --- */

/* 1. Header Genişlik Sorunu Çözümü */
body.dark-mode .navbar {
    background-color: transparent !important; /* Dış katman şeffaf kalsın */
    width: 100%;
    padding: 0 20px; /* Kenar boşluklarını koru */
}

body.dark-mode .nav-container {
    background-color: rgba(10, 10, 10, 0.9) !important; /* Rengi sadece buraya ver */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    max-width: 1200px !important; /* Genişliği sabitle */
    margin: 0 auto !important; /* Ortala */
    width: 100%;
    border-radius: 50px !important; /* Ovalliği koru */
}

/* 2. Eski Şık İkonlar İçin Ayar (Daha parlak ve belirgin) */
body.dark-mode .theme-btn i {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6); /* Hafif parlama */
    font-size: 1.3rem; /* Biraz büyüt */
}

/* 3. Buton Çerçevesi (Daha zarif) */
body.dark-mode .theme-btn {
    border-color: rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}
body.dark-mode .theme-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* --- SLIDER DÜZELTMESİ (RESİMLERİ PASİF YAP) --- */
.ba-img {
    pointer-events: none !important; /* Fare resme takılmasın */
    user-select: none !important;    /* Resim seçilmesin */
}

.ba-container {
    cursor: ew-resize !important; /* Fare imleci sağ-sol oku olsun */
    touch-action: none; /* Mobilde sayfa kaymasını engelle */
}

.ba-handle {
    pointer-events: none !important; /* Tutacak da engellemesin */
}

