/* === AJANSAI ANA STİL DOSYASI (SON STABİL VERSİYON) === */

/* --- Değişkenler ve Temel Ayarlar --- */
:root {
    --primary-color: #007bff;
    --accent-color: #6c5ce7;
    --dark-bg-1: #0A0A1F; /* Ana Koyu */
    --dark-bg-2: #141432; /* Orta Koyu */
    --card-bg: #1B1B4A;
    --text-color-light: #E0E0E0;
    --text-color-dark: #A0A0B0;
    --border-color: #303060;
    --gradient-blue: linear-gradient(90deg, #007bff 0%, #00c6ff 100%);
    --gradient-purple: linear-gradient(90deg, #6c5ce7 0%, #a29bfe 100%);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg-1);
    color: var(--text-color-light);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

.container { width: 90%; max-width: 1200px; margin: auto; }

/* --- Preloader (Yükleme Ekranı) Stilleri --- */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--dark-bg-1); z-index: 99999; display: flex; justify-content: center; align-items: center; transition: opacity 0.7s ease-out, visibility 0.7s ease-out; }
#preloader.loaded { opacity: 0; visibility: hidden; }
.spinner { width: 60px; height: 60px; border: 5px solid rgba(0, 123, 255, 0.3); border-top-color: var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* --- Navbar Stilleri --- */
.navbar { background: var(--dark-bg-1); padding: 1rem 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); border-bottom: 1px solid var(--border-color); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.navbar .logo { color: #fff; text-decoration: none; font-size: 1.6rem; font-weight: 700; display: flex; align-items: center; letter-spacing: 1px; }
.navbar .logo-img { height: 35px; margin-right: 10px; }
.navbar .nav-links { list-style: none; display: flex; padding: 0; margin: 0; }
.navbar .nav-links li { margin-left: 2.5rem; }
.navbar .nav-links a { color: var(--text-color-light); text-decoration: none; font-weight: 600; padding: 0.5rem 0; position: relative; transition: color 0.3s ease; }
.navbar .nav-links a:hover, .navbar .nav-links a.active { color: var(--primary-color); }
.navbar .nav-links a::after { content: ''; position: absolute; width: 0; height: 3px; background: var(--gradient-blue); left: 0; bottom: -8px; transition: width 0.3s ease-in-out; border-radius: 2px; }
.navbar .nav-links a:hover::after, .navbar .nav-links a.active::after { width: 100%; }

/* Mobil Hamburger Menü İkonu */
.mobile-menu-icon { display: none; font-size: 2rem; color: #fff; cursor: pointer; }

/* --- Hero Section (Ana Sayfa) --- */
#hero {
    height: 90vh; display: flex; justify-content: center; align-items: center; text-align: center; 
    /* VİDEO OLMADIĞI İÇİN SABİT GRADYAN GEREKİR */
    background: linear-gradient(135deg, var(--dark-bg-1) 0%, var(--dark-bg-2) 100%); 
    position: relative; overflow: hidden; padding: 4rem 0;
    z-index: 1; 
}
/* HERO İÇİ VİDEO KONUMU - SADECE INDEX.PHP'YE ÖZEL */
#hero-video-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 1; }
#hero-video { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 100%; min-height: 100%; width: auto; height: auto; object-fit: cover; opacity: 0.2; filter: blur(2px) brightness(0.7); } /* Opaklık ve Blur Azaltıldı */
#hero-video-wrapper::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); z-index: 2; }
.ai-brain-container { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 400px; height: 400px; z-index: 5; opacity: 0.1; filter: saturate(1.5) blur(1px); }
.ai-brain-graphic { width: 100%; height: 100%; background: url('images/ai-brain.svg') no-repeat center center; background-size: contain; position: relative; }
.ai-brain-graphic::before, .ai-brain-graphic::after { content: ''; position: absolute; border-radius: 50%; border: 2px solid; animation: pulse 4s infinite ease-out; }
.hero-content { z-index: 10; position: relative; }
.main-title { font-size: 3.8rem; color: #fff; margin-bottom: 1.5rem; font-weight: 800; line-height: 1.2; text-transform: uppercase; text-shadow: 0 0 15px rgba(0, 123, 255, 0.4); border-right: 4px solid rgba(0, 198, 255, .75); padding-right: 8px; white-space: nowrap; overflow: hidden; display: inline-block; }
.hero-subtitle { font-size: 1.4rem; color: var(--text-color-dark); max-width: 800px; margin: 0 auto 3rem auto; font-weight: 400; }
.btn-primary { display: inline-block; background: var(--gradient-blue); color: #fff; padding: 16px 36px; text-decoration: none; border-radius: 30px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4); border: none; cursor: pointer; transition: all 0.4s ease; position: relative; overflow: hidden; }
.btn-primary:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 12px 30px rgba(0, 123, 255, 0.6); background: var(--gradient-purple); }

/* --- Diğer Sayfalar için Hero (about.php, portfolio.php) --- */
.page-hero { padding-top: 100px; padding-bottom: 50px; background: var(--dark-bg-2); text-align: center; border-bottom: 1px solid var(--border-color); }
.page-hero .main-title { border: none; animation: none; }

/* --- Genel Bölüm Başlıkları --- */
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 4rem; color: #fff; font-weight: 700; text-transform: uppercase; position: relative; padding-bottom: 20px; letter-spacing: 1.5px; }
.section-title::after { content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 100px; height: 5px; background: var(--gradient-blue); border-radius: 3px; }

/* --- Hizmetler Bölümü (index.php) --- */
#services { padding: 8rem 0; background-color: var(--dark-bg-2); position: relative; z-index: 10; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; justify-content: center; align-items: start; }
.service-card { background: var(--card-bg); padding: 3rem 2rem; border-radius: 15px; border: 1px solid var(--border-color); transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease; text-align: center; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 250px; }
.service-card:hover { transform: translateY(-15px); box-shadow: 0 20px 40px rgba(0, 123, 255, 0.3); border-color: var(--primary-color); }
.icon-wrapper { width: 90px; height: 90px; background: rgba(0, 123, 255, 0.1); border-radius: 50%; display: flex; justify-content: center; align-items: center; margin-bottom: 1.5rem; border: 1px solid rgba(0, 123, 255, 0.3); box-shadow: 0 0 15px rgba(0, 123, 255, 0.2); }
.service-card i { font-size: 3.5rem; color: var(--primary-color); line-height: 1; }
.service-card h3 { font-size: 1.7rem; color: #fff; margin-bottom: 0.5rem; font-weight: 600; }
.service-card p { color: var(--text-color-dark); font-size: 1rem; }

/* --- Rakamlarla Biz (Sayaç) Bölümü --- */
.stats-counter-section { padding: 6rem 0; background-color: var(--dark-bg-1); position: relative; z-index: 10; }
.stats-counter-section .section-title { color: #fff; margin-bottom: 4rem; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; color: #fff; }
.stat-box { background: var(--card-bg); padding: 2.5rem 2rem; border-radius: 12px; border: 1px solid var(--border-color); }
.stat-box i { font-size: 3.5rem; color: var(--primary-color); margin-bottom: 1rem; display: block; }
.stat-box .counter-number { font-size: 3.5rem; font-weight: 700; margin: 0; }
.stat-box p { color: var(--text-color-dark); margin: 0; }

/* --- Müşterilerimiz (Logo Karuseli) Stilleri --- */
.clients-section { padding: 4rem 0 6rem 0; background-color: var(--dark-bg-1); position: relative; z-index: 10; border-top: 1px solid var(--border-color); }
.clients-section .section-title { color: #fff; margin-bottom: 3rem; }
.logo-carousel-container { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%); }
.logo-carousel-track { display: flex; width: max-content; animation: scroll 30s linear infinite; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.client-logo { height: 60px; margin: 0 40px; display: flex; align-items: center; flex-shrink: 0; }
.client-logo img { height: 100%; max-width: 180px; width: auto; filter: grayscale(100%) opacity(60%); transition: filter 0.3s ease, transform 0.3s ease; }
.logo-carousel-container:hover .logo-carousel-track { animation-play-state: paused; }
.client-logo:hover img { filter: grayscale(0%) opacity(100%); transform: scale(1.1); }

/* --- İletişim Formu (index.php) --- */
#contact { padding: 8rem 0; background-color: var(--dark-bg-2); position: relative; z-index: 10; }
.contact-form { max-width: 700px; margin: auto; background: var(--card-bg); padding: 3rem; border-radius: 15px; border: 1px solid var(--border-color); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.contact-form input, .contact-form textarea { background: var(--dark-bg-1); border: 1px solid var(--border-color); color: var(--text-color-light); padding: 1.2rem; margin-bottom: 1.5rem; border-radius: 8px; font-size: 1rem; transition: border-color 0.3s ease, box-shadow 0.3s ease; width: 90%; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary-color); outline: none; box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.2); }
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form .btn-primary { width: 100%; text-align: center; border-radius: 8px; box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3); }
.contact-form .btn-primary:hover { transform: translateY(-3px) scale(1.0); box-shadow: 0 8px 20px rgba(108, 92, 231, 0.4); }

/* --- Diğer Sayfalar --- */
.about-section { padding: 4rem 0; background-color: var(--dark-bg-1); position: relative; z-index: 10; }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; color: var(--text-color-light); }
.about-content img { width: 100%; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.about-text h2 { font-size: 2.5rem; color: #fff; margin-top: 0; border-bottom: 3px solid var(--primary-color); padding-bottom: 10px; display: inline-block; }
.about-text-content { font-size: 1.1rem; line-height: 1.8; color: var(--text-color-dark); }
.portfolio-section { padding: 4rem 0; background-color: var(--dark-bg-1); position: relative; z-index: 10; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2.5rem; }
.project-card { background: var(--card-bg); border-radius: 12px; border: 1px solid var(--border-color); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.project-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 123, 255, 0.2); }
.project-image { width: 100%; height: 220px; object-fit: cover; border-bottom: 1px solid var(--border-color); }
.project-content { padding: 1.5rem 2rem; }
.project-content h3 { font-size: 1.8rem; color: #fff; margin-top: 0; margin-bottom: 0.8rem; }
.project-link { display: inline-block; background: var(--primary-color); color: #fff; padding: 10px 20px; text-decoration: none; border-radius: 5px; font-weight: 600; transition: background-color 0.3s ease; }
.project-link:hover { background-color: var(--accent-color); }
.no-projects { text-align: center; color: #fff; grid-column: 1 / -1; font-size: 1.2rem; }


/* --- Footer (Yeni Çok Sütunlu) --- */
footer { background: var(--dark-bg-2); color: var(--text-color-dark); padding: 4rem 0 2rem 0; border-top: 1px solid var(--border-color); position: relative; z-index: 10; }
.footer-container { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border-color); }
.footer-about .footer-logo { max-height: 40px; margin-bottom: 1.5rem; filter: brightness(0) invert(1) opacity(0.8); }
.footer-about .contact-item { display: flex; align-items: center; margin-bottom: 1rem; color: var(--text-color-light); font-size: 0.95rem; }
.footer-about .contact-item i { width: 20px; margin-right: 15px; font-size: 1.1rem; color: var(--primary-blue); text-align: center; }
.footer-widget h4 { font-size: 1.4rem; color: #fff; margin-bottom: 1.5rem; font-weight: 600; }
.footer-widget ul { list-style: none; padding: 0; }
.footer-widget ul li { margin-bottom: 1rem; }
.footer-widget ul li a { color: var(--text-color-dark); text-decoration: none; transition: color 0.3s ease; }
.footer-widget ul li a:hover { color: var(--primary-blue); padding-left: 5px; }
.footer-bottom { text-align: center; font-size: 0.9rem; }

/* --- Sohbet Robotu Stilleri --- */
.chatbot-bubble { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: var(--primary-color); color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 28px; cursor: pointer; box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4); z-index: 9998; transition: transform 0.3s ease; }
.chatbot-bubble:hover { transform: scale(1.1); }
.chat-widget { position: fixed; bottom: 100px; right: 30px; width: 350px; max-width: 90%; height: 450px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); z-index: 9999; display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateY(20px); visibility: hidden; transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s; }
.chat-widget.open { opacity: 1; transform: translateY(0); visibility: visible; }
.chat-header { background: var(--dark-bg-2); color: #fff; padding: 15px; border-bottom: 1px solid var(--border-color); text-align: center; font-weight: bold; }
.chat-header .close-chat { position: absolute; top: 10px; right: 15px; color: var(--text-color-dark); font-size: 24px; cursor: pointer; line-height: 1; }
.chat-header .close-chat:hover { color: #fff; }
.chat-body { flex-grow: 1; padding: 15px; overflow-y: auto; }
.chat-message { margin-bottom: 15px; display: flex; }
.chat-message p { padding: 12px; border-radius: 10px; line-height: 1.5; margin: 0; font-size: 0.95rem; max-width: 85%; }
.chat-message.bot p { background: var(--dark-bg-2); color: var(--text-color-light); border-bottom-left-radius: 2px; }
.chat-message.user { justify-content: flex-end; }
.chat-message.user p { background: var(--primary-color); color: #fff; border-bottom-right-radius: 2px; }
.chat-message.bot p a { color: var(--primary-color); text-decoration: underline; }
.chat-message.bot ul { padding-left: 20px; margin: 10px 0 0 0; }
.chat-footer { padding: 10px; border-top: 1px solid var(--border-color); display: flex; }
.chat-footer input { flex-grow: 1; background: var(--dark-bg-1); border: 1px solid var(--border-color); color: var(--text-color-light); padding: 12px; border-radius: 20px; font-size: 1rem; outline: none; }
.chat-footer input:focus { border-color: var(--primary-color); }
.chat-footer button { background: transparent; border: none; color: var(--primary-color); font-size: 24px; padding: 0 10px; cursor: pointer; }

/* --- Typing Effect İmleci --- */
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: rgba(0, 198, 255, .75) } }

/* ==============================================
   MOBİL UYUMLULUK (RESPONSIVE) @media 
==============================================
*/
@media (max-width: 992px) {
    .mobile-menu-icon { display: block; }
    .navbar .nav-links { 
        position: fixed; top: 0; right: 0; height: 100vh; width: 300px; background: var(--dark-bg-2); flex-direction: column; padding-top: 80px; 
        transform: translateX(100%); visibility: hidden; transition: transform 0.4s ease-in-out; z-index: 9990; 
    }
    .navbar .nav-links.open { transform: translateX(0); visibility: visible; box-shadow: -5px 0 15px rgba(0,0,0,0.3); }
    .navbar .nav-links.open::before { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: -1; }
    .navbar .nav-links li { margin: 0; text-align: center; border-bottom: 1px solid var(--border-color); }
    .navbar .nav-links li:last-child { border-bottom: none; }
    .navbar .nav-links a { padding: 1.2rem 0; width: 100%; }
    .navbar .nav-links a::after { display: none; }
    .main-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-title { font-size: 2rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .about-content { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .ai-brain-container { width: 300px; height: 300px; }
}
@media (max-width: 480px) {
    .main-title { font-size: 2rem; }
    .stat-box { padding: 1.5rem 1rem; }
    .stat-box .counter-number { font-size: 2.5rem; }
    .contact-form { padding: 1.5rem; }
}