/* ============================================
   THE LEAF SOFTWARE - OPTIMIZED MASTER CSS v3
   Status: High Performance | Ultimate Bug Fix | Mobile Ready
   ============================================ */
:root {
    --primary-color: #00e676;
    --primary-dark: #00c853;
    --secondary-color: #0f1419;
    --dark-bg: #0A0D0F;
    --dark-bg-light: #151b20;
    --dark-bg-lighter: #1f2329;
    --text-primary: #00e676;
    --text-secondary: #ffffff;
    --text-muted: #b0b0b0;
    --border-color: #333333;
}

/* ================= 1. RESET & TYPOGRAPHY ================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;   overscroll-behavior-y: none; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem; line-height: 1.6; color: var(--text-secondary);
    background: var(--dark-bg); overflow-x: hidden; min-height: 100vh;
    overscroll-behavior-y: none; /* Sayfa sonu yaylanmasındaki beyazlığı engeller */
}

h1, h2, h3, h4, h5, h6 { color: var(--primary-color); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
h1, .h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2, .h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3, .h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4, .h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h5, .h5 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h6, .h6 { font-size: clamp(1rem, 2vw, 1.25rem); }
p { color: var(--text-secondary); margin-bottom: 1rem; }
a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary-dark); }

.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.bg-dark { background-color: var(--dark-bg); }
.bg-dark-light { background-color: var(--dark-bg-light); }

/* Bütün sayfalardaki yazıları her cihazda beyaz yap */
.card-body p, .card-body span, .text-light, .text-muted, .text-secondary, .lead, .team-description { 
    color: #ffffff !important; opacity: 1 !important; 
}

/* Standart Animasyon (En alta atılan kör edici kod silindi, orijinal haline döndü) */
.fade-in-up { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.fade-in-up.animate { opacity: 1; transform: translateY(0); }

/* ================= 2. LAYOUT & NAVBAR ================= */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.section { padding: clamp(3rem, 8vw, 6rem) 0; position: relative; }
.section.bg-dark-light { background: rgba(21, 27, 32, 0.5); }

.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background-color: rgba(10, 10, 10, 0.95); backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3); transition: all 0.3s ease; padding: 1rem 0;
}
.navbar.scrolled { background-color: rgba(10, 10, 10, 0.98); box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5); }
.navbar-brand { font-weight: 700; font-size: 1.5rem; color: var(--primary-color) !important; transition: transform 0.3s ease; }
.navbar-brand:hover { transform: scale(1.05); }
.nav-link { position: relative; padding: 0.5rem 1rem; color: var(--text-secondary) !important; transition: color 0.3s ease; }
.nav-link.active, .nav-link:hover { color: var(--primary-color) !important; }
.navbar-toggler { border-color: rgba(0, 230, 118, 0.3); padding: 0.5rem; }

/* ================= 3. HERO & BUTTONS ================= */
.hero-section { min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; position: relative; background: #0A0D0F; }
.hero-section .col-lg-6 { position: relative; z-index: 2; display: block; }
.hero-title { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700; color: var(--primary-color); margin-bottom: 1rem; line-height: 1.1; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--text-secondary); margin-bottom: 2rem; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; font-size: 1rem; font-weight: 600; border-radius: 8px; border: none; cursor: pointer; transition: all 0.3s ease; text-decoration: none;
}
.btn-success, .btn-primary { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: #000; box-shadow: 0 4px 12px rgba(0, 230, 118, 0.3); }
.btn-success:hover, .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 230, 118, 0.4); color: #000; }
.btn-outline-success { background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); }
.btn-outline-success:hover { background: var(--primary-color); color: #000; }
.btn-modern {
    background: transparent; border: 1px solid var(--primary-color); color: var(--primary-color);
    border-radius: 50px; padding: 0.5rem 1.5rem; font-size: 0.85rem; text-transform: uppercase;
    letter-spacing: 1px; transition: all 0.3s ease; margin-top: 1rem;
}
.btn-modern:hover { background: var(--primary-color); color: #000; box-shadow: 0 0 15px rgba(0, 230, 118, 0.4); transform: translateY(-2px); }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.expand-btn { cursor: pointer; display: inline-flex; }

/* ================= 4. CARDS ================= */
.card {
    background: linear-gradient(145deg, rgba(21, 27, 32, 0.8), rgba(10, 13, 15, 0.9));
    border: 1px solid rgba(0, 230, 118, 0.3); border-radius: 16px; padding: clamp(1.5rem, 3vw, 2rem);
    transition: all 0.4s ease; position: relative; overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); max-width: 100%; word-wrap: break-word;
    will-change: transform;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent); opacity: 0; transition: opacity 0.4s ease;
}
.card:hover::before { opacity: 1; }

.service-card { text-align: center; height: 100%; background: #151b20; border: 1px solid rgba(255, 255, 255, 0.05); }
.service-icon { font-size: clamp(3rem, 6vw, 4rem); color: var(--primary-color); margin-bottom: 1.5rem; filter: drop-shadow(0 4px 12px rgba(0, 230, 118, 0.3)); transition: transform 0.4s ease; }
.service-title { font-size: clamp(1.25rem, 3vw, 1.5rem); font-weight: 600; margin-bottom: 1rem; color: var(--primary-color); }
.service-description { color: var(--text-secondary); margin-bottom: 1.5rem; }
.service-features { list-style: none; text-align: left; padding: 0; margin-bottom: 1rem; }
.service-features li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; color: var(--text-secondary); }
.service-features li::before { content: '✓'; position: absolute; left: 0; color: var(--primary-color); font-weight: bold; }

.team-card {
    background: linear-gradient(145deg, rgba(15, 20, 25, 0.9), rgba(10, 13, 15, 0.95));
    border: 2px solid rgba(0, 230, 118, 0.2); text-align: center; border-radius: 16px; padding: 2rem 1.5rem; overflow: visible; transition: all 0.4s ease;
}
.team-avatar-placeholder {
    width: 120px; height: 120px; margin: 0 auto 1.5rem; background: linear-gradient(135deg, rgba(0, 230, 118, 0.1), rgba(0, 200, 100, 0.05));
    border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 3px solid rgba(0, 230, 118, 0.3); transition: all 0.3s ease;
}
.team-name { color: var(--primary-color); font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
.team-position { color: rgba(255, 255, 255, 0.7); font-size: 1rem; margin-bottom: 1rem; font-weight: 500; }
.team-expertise { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }

/* HOVER EFFECTS */
.card:hover, .team-card:hover, .service-card:hover, .process-step-item .card:hover {
    transform: translateY(-8px) !important; border-color: var(--primary-color) !important; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}
.process-step-item .card:hover { background-color: rgba(15, 28, 25, 1) !important; }
.team-card:hover .team-avatar-placeholder { transform: scale(1.1) !important; border-color: var(--primary-color) !important; box-shadow: 0 8px 24px rgba(0, 230, 118, 0.3) !important; }
.service-card:hover .service-icon { transform: scale(1.1) rotateY(360deg) !important; }
.visual-icon-hover:hover { color: var(--primary-color) !important; opacity: 1 !important; transform: scale(1.1); text-shadow: 0 0 30px rgba(0, 230, 118, 0.4); }

/* ================= 5. PROCESS, METRICS & CASE STUDIES ================= */
.process-card-dark { background: linear-gradient(180deg, rgba(20, 20, 20, 0.9) 0%, rgba(0, 230, 118, 0.08) 100%); border: 1px solid rgba(0, 230, 118, 0.15); border-radius: 16px; transition: all 0.4s ease; box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.process-card-dark:hover { transform: translateY(-5px); border-color: var(--primary-color) !important; background: linear-gradient(180deg, rgba(20, 20, 20, 0.95) 0%, rgba(0, 230, 118, 0.15) 100%); box-shadow: 0 10px 40px rgba(0, 230, 118, 0.1) !important; }
.process-card-matte { background: #151b20; border: 1px solid rgba(255, 255, 255, 0.08) !important; border-radius: 16px; transition: all 0.4s ease; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.process-card-matte:hover { transform: translateY(-5px); border-color: var(--primary-color) !important; background: #1a2026; box-shadow: 0 10px 30px rgba(0, 230, 118, 0.1) !important; }

.icon-box-glow { width: 60px; height: 60px; background: rgba(0, 230, 118, 0.1); border: 1px solid rgba(0, 230, 118, 0.2); transition: all 0.3s ease; }
.process-card-dark:hover .icon-box-glow { background: var(--primary-color); box-shadow: 0 0 15px rgba(0, 230, 118, 0.4); }
.icon-box-minimal { width: 60px; height: 60px; background: #0A0D0F; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50%; transition: all 0.3s ease; }
.process-card-matte:hover .icon-box-minimal { background: var(--primary-color); border-color: var(--primary-color); }
.process-card-dark:hover .icon-box-glow i, .process-card-matte:hover .icon-box-minimal i { color: #000 !important; }

.visual-circle, .visual-circle-minimal { width: 200px; height: 200px; border: 2px dashed rgba(0, 230, 118, 0.3); opacity: 0.5; transition: all 0.5s ease; border-radius: 50%; }
.visual-circle-minimal { border: 1px dashed rgba(255, 255, 255, 0.1); opacity: 0.3; }
.process-step-item:hover .visual-circle, .process-step-item:hover .visual-circle-minimal { opacity: 1; border-color: var(--primary-color); transform: scale(1.05); box-shadow: 0 0 30px rgba(0, 230, 118, 0.1); }
.process-step-item:hover .visual-circle-minimal i { color: var(--primary-color) !important; }

#processFilterControls .btn { border-radius: 50px; padding: 0.5rem 1.5rem; transition: all 0.3s ease; border: 1px solid var(--primary-color); color: var(--primary-color); background: transparent; }
#processFilterControls .btn.active, #processFilterControls .btn:hover { background: var(--primary-color); color: #000; box-shadow: 0 0 15px rgba(0, 230, 118, 0.4); }

.metric-card { text-align: center; padding: 2rem 1rem; background: linear-gradient(145deg, rgba(21, 27, 32, 0.6), rgba(10, 13, 15, 0.8)); border: 1px solid rgba(51, 51, 51, 0.5); border-radius: 16px; height: 100%; transition: transform 0.3s ease; }
.metric-card:hover { transform: translateY(-5px); border-color: var(--primary-color); }
.metric-icon { font-size: 3rem; margin-bottom: 1rem; display: inline-block; color: var(--primary-color);}
.metric-number { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.metric-label { font-weight: 600; margin-bottom: 0.5rem; color: var(--primary-color); }

.testimonial-card { background: var(--dark-bg-light); border: 1px solid var(--border-color); border-radius: 16px; padding: 2rem; height: 100%; display: flex; flex-direction: column; transition: all 0.3s ease; }
.testimonial-card:hover { transform: translateY(-5px); border-color: var(--primary-color); box-shadow: 0 10px 30px rgba(0, 230, 118, 0.1); }
.testimonial-text { color: var(--text-secondary); font-style: italic; line-height: 1.6; margin-bottom: 1.5rem; }

.case-study-icon-lg { font-size: 2.5rem; }
.badge { background: linear-gradient(145deg, var(--dark-bg-light), var(--dark-bg)); border: 1px solid rgba(0, 230, 118, 0.4); color: var(--primary-color); padding: 0.4rem 0.8rem; font-size: 0.85rem; font-weight: 500; border-radius: 6px; }
.badge.bg-success { background: var(--primary-color); color: #000; border-color: var(--primary-color); }
.badge-outline { background: transparent; border: 1px solid var(--border-color); color: var(--text-secondary); }

/* ================= 6. FORMS & FOOTER ================= */
.form-control, .form-select { 
    width: 100%; padding: 0.75rem 1rem; background: var(--dark-bg-light); 
    border: 1px solid var(--border-color); border-radius: 8px; 
    color: #ffffff !important; transition: all 0.3s ease; 
}
.form-control:focus, .form-select:focus { 
    outline: none; border-color: var(--primary-color); 
    box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.1); 
    background: var(--dark-bg-light) !important; 
    color: #ffffff !important; 
}
.form-label { color: var(--primary-color); font-weight: 500; margin-bottom: 0.5rem; }

.site-footer { background: linear-gradient(180deg, transparent 0%, rgba(10, 13, 15, 0.8) 100%); border-top: 1px solid rgba(0, 230, 118, 0.2); margin-top: auto; }
.footer-main { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.footer-section { margin-bottom: 2rem; }
.footer-brand { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.footer-brand i { font-size: 2.5rem; color: var(--primary-color); }
.footer-title { color: var(--primary-color); font-size: 1.25rem; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-link { color: var(--text-secondary); transition: all 0.3s ease; position: relative; display: inline-block; }
.footer-link:hover { color: var(--primary-color); transform: translateX(0.5rem); }
.social-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.social-link { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(0, 230, 118, 0.1); border: 1px solid rgba(0, 230, 118, 0.3); border-radius: 50%; color: var(--primary-color); transition: all 0.3s ease; }
.social-link:hover { background: var(--primary-color); color: #000; transform: translateY(-3px); }
.footer-bottom { background: rgba(0, 0, 0, 0.4); border-top: 1px solid rgba(0, 230, 118, 0.2); padding: 1.5rem 0; text-align: center; }
.footer-copyright { color: var(--text-muted); font-size: 0.9rem; margin-top: 1rem; }

.btn-scroll-top { position: fixed; bottom: 2rem; right: 2rem; width: 50px; height: 50px; display: none; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); border: none; border-radius: 50%; color: #000; cursor: pointer; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); transition: all 0.3s ease; z-index: 999; }
.btn-scroll-top.show { display: flex; }
.btn-scroll-top:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0, 230, 118, 0.4); }

/* ================= 7. CRITICAL FIXES ================= */
.hero-title, .hero-subtitle, .hero-content, .fade-in-up, .adventure-title, .service-card, .case-study-card, .team-card, .team-avatar-placeholder, .btn, .btn-modern, .expand-btn, .process-card-dark, .process-card-matte, .process-step-item, .process-card h3, .process-card p, .metric-card, .testimonial-card, .portfolio-card {
    opacity: 1 !important; visibility: visible !important; transform: none !important; animation: none !important; min-height: auto !important;
}

.case-study-card .card-title, .case-study-card .case-study-title, .case-study-card h4, .card-body h4 {
    color: #ffffff !important; opacity: 1 !important; visibility: visible !important; font-weight: 700 !important; text-shadow: 0 2px 10px rgba(0,0,0,0.5); 
}

@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0px); } }

/* ================= 8. RESPONSIVE ================= */
@media (max-width: 991px) {
    .navbar-collapse { background-color: rgba(10, 10, 10, 0.98); border-radius: 12px; margin-top: 1rem; padding: 1rem; border: 1px solid rgba(0, 230, 118, 0.2); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }
    .nav-link { padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 0.25rem; }
    .nav-link:hover, .nav-link.active { background: rgba(0, 230, 118, 0.1); }
    .footer-section { text-align: center; }
    .footer-brand { justify-content: center; }
    .social-links { justify-content: center; }
}

@media (max-width: 768px) {
    body { padding-top: 70px; }
    .section { padding: clamp(2rem, 6vw, 4rem) 0; }
    .hero-section { min-height: auto; padding: clamp(3rem, 8vw, 5rem) 0; }
    .btn { width: 100%; }
    .btn-scroll-top { bottom: 1rem; right: 1rem; width: 44px; height: 44px; }
    .footer-bottom { padding: 1rem 0; }
    .footer-copyright { margin-top: 0.5rem; }
    
    .navbar, .card { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
    .navbar { background-color: rgba(10, 10, 10, 1); } 
}

/* ================= 9. ALIGNMENT & OVERSCROLL FIXES (THE LEAF EXCLUSIVE) ================= */

/* Overscroll (Beyaz Boşluk) Koruması */
html {
    background-color: var(--dark-bg) !important;
}

/* 1. Hizmetler Kartı Buton Hizalama */
.service-card .card-body {
    display: flex;
    flex-direction: column;
}
.service-card .card-body > .btn {
    margin-top: auto !important;
}

/* 2. Referanslar (Case Study) Kartı Buton Hizalama & Metin Temas Koruması */
.case-study-card {
    height: 100% !important; /* H-100 zorunluluğu */
    display: flex;
    flex-direction: column;
}
.case-study-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.case-study-content .mt-3 {
    margin-top: auto !important;
    padding-top: 1.5rem !important; /* Butonun üstündeki metinle temasını kesin olarak keser */
}

/* ========================================================
   BOOTSTRAP ALERT OVERRIDES (KVKK, Gizlilik, Koşullar İçin)
   ======================================================== */
.alert-info {
    background: linear-gradient(145deg, rgba(15, 20, 25, 0.95), rgba(10, 13, 15, 0.98)) !important;
    border: 1px solid rgba(0, 230, 118, 0.2) !important;
    border-left: 4px solid var(--primary-color) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.alert-info h5 {
    color: var(--primary-color) !important;
    font-weight: 600;
    margin-bottom: 0.75rem !important;
}

.alert-info h5 i {
    color: var(--primary-color) !important;
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}

.alert-info p.mb-0 {
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ========================================================
   BOOTSTRAP ALERT-SUCCESS OVERRIDES (İletişim Kutusu İçin)
   ======================================================== */
.alert-success {
    background: linear-gradient(145deg, rgba(15, 25, 20, 0.95), rgba(10, 13, 15, 0.98)) !important;
    border: 1px solid rgba(0, 230, 118, 0.2) !important;
    border-left: 4px solid var(--primary-color) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.alert-success h5 {
    color: var(--primary-color) !important;
    font-weight: 600;
    margin-bottom: 0.75rem !important;
}

.alert-success h5 i {
    color: var(--primary-color) !important;
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}

.alert-success p.mb-0 {
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.6;
    font-size: 0.95rem;
}

.alert-success a.text-success {
    color: var(--primary-color) !important;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: all 0.3s ease;
}

.alert-success a.text-success:hover {
    color: #ffffff !important;
    text-shadow: 0 0 15px rgba(0, 230, 118, 0.6);
}

/* ========================================================
   CUSTOM DARK DROPDOWN (Dil Seçimi İçin)
   ======================================================== */
.custom-dark-dropdown {
    background-color: #151b20 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
    padding: 8px 0 !important;
}

.custom-dark-dropdown .dropdown-item {
    color: #adb5bd !important;
    padding: 10px 20px !important;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
}

.custom-dark-dropdown .dropdown-item:hover {
    background-color: rgba(0, 230, 118, 0.08) !important;
    color: #00e676 !important;
    transform: translateX(4px);
}

.custom-dark-dropdown .dropdown-item.active {
    background-color: transparent !important;
    color: #00e676 !important;
    font-weight: 700;
    border-left: 3px solid #00e676;
}

@media (max-width: 576px) { .container { padding: 0 15px; } }
@media print { .navbar, .footer, .btn-scroll-top { display: none !important; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }