/* Genel Stiller ve Değişkenler */
:root {
    --color-primary: #00A79D; /* Yeni: Ana renk (teal) */
    --color-primary-rgb: 0, 167, 157;
    --color-secondary: #6A67E6; /* Yeni: Vurgu/Aksiyon rengi (mor) */
    --color-secondary-rgb: 106, 103, 230;
    --color-background: #F7F8FC; /* Yeni: Sayfa arka planı */
    --color-background-rgb: 247, 248, 252;
    --color-dark: #343a40; /* Mevcut koyu griyi koru, genel metinler için */
    --color-dark-rgb: 52, 58, 64;
    --color-light: #ffffff; /* Beyaz olarak koru */
    --color-light-rgb: 255, 255, 255;
    --color-muted: #adb5bd; /* Mevcut nötr griyi koru */
    --color-section-bg: #e9ecef; /* Mevcut hafif griyi koru */
    
    /* Eski renkler ve accent kaldırıldı */
    /* --color-accent: #17a2b8; */
    /* --color-accent-rgb: 23, 162, 184; */

    --max-width-content: 1120px; /* İçerik için maksimum genişlik */

    --border-radius-sm: 8px;
    --border-radius-md: 16px; /* rounded-xl eşdeğeri */
    --border-radius-lg: 24px; /* rounded-2xl eşdeğeri */
    --border-radius-xl: 16px; /* Ekstra tanım, md ile aynı */
    --border-radius-2xl: 24px; /* Ekstra tanım, lg ile aynı */

    --shadow-light: 0 4px 18px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 12px 36px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 24px 72px rgba(0, 0, 0, 0.15);

    /* Yeni font ve genel boyutlar */
    --font-size-base: 16px;
    --font-size-h1: 3.5rem;
    --font-size-h2: 2.5rem;
    --font-size-h3: 1.75rem;
    --font-size-p: 1.1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif; /* Fontu Inter olarak güncellendi */
    line-height: 1.6;
    color: var(--color-dark);
    background: var(--color-background); /* Arka plan rengini güncellendi */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary); /* Yeni vurgu rengi */
    text-decoration: underline;
}

ul {
    list-style: none;
}

h1, h2, h3 {
    color: var(--color-dark); /* Koyu gri */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); margin-bottom: 30px; margin-top: 40px; }
h3 { font-size: var(--font-size-h3); }
p { font-size: var(--font-size-p); margin-bottom: 15px; color: var(--color-dark); }

.text-center {
    text-align: center;
}

.text-light {
    color: var(--color-light);
}

.text-primary { color: var(--color-primary); }

.bg-light { background-color: var(--color-section-bg); }
.bg-dark { background-color: var(--color-dark); }

.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Genel Buton Stilleri */
.btn-primary,
.btn-secondary,
.btn-explore,
.btn-request-demo,
.btn-cta-voice,
.btn-cta-chat,
.btn-got-it {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: var(--border-radius-2xl); /* Oval butonlar */
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    border: none; /* Çift kenarlık sorununu önler */
    cursor: pointer;
    box-shadow: var(--shadow-light);
    gap: 10px; /* İkon ile metin arası boşluk */
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-light); /* Açık renk metin */
}

.btn-primary:hover {
    background: #0056b3; /* Daha koyu mavi */
    transform: translateY(-5px) scale(1.01); /* Daha belirgin */
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--color-light); /* Açık arka plan */
    color: var(--color-dark); /* Koyu metin */
    border: 2px solid var(--color-muted); /* Nötr gri kenarlık */
}

.btn-secondary:hover {
    background: var(--color-section-bg); /* Hafif gri arka plan */
    transform: translateY(-5px) scale(1.01); /* Daha belirgin */
    box-shadow: var(--shadow-medium);
}

.btn-explore {
    background: var(--color-accent); /* Aqua vurgu rengi */
    color: var(--color-light); /* Açık renk metin */
    padding: 12px 28px;
    border-radius: var(--border-radius-2xl);
}

.btn-explore:hover {
    background: #117a8b; /* Daha koyu aqua */
    transform: translateY(-5px) scale(1.01); /* Daha belirgin */
    box-shadow: var(--shadow-medium);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.15rem;
}

.btn-request-demo {
    background: var(--color-dark); /* Koyu arka plan */
    color: var(--color-light); /* Açık renk metin */
}

.btn-request-demo:hover {
    background: var(--color-secondary); /* Nötr gri */
    transform: translateY(-5px) scale(1.01); /* Daha belirgin */
    box-shadow: var(--shadow-medium);
}

.btn-cta-voice,
.btn-cta-chat {
    background-color: var(--color-primary);
    color: var(--color-light);
    margin: 10px;
}

.btn-cta-voice:hover,
.btn-cta-chat:hover {
    background-color: #0056b3; /* Daha koyu mavi */
    transform: translateY(-8px) scale(1.02); /* Daha dinamik */
    box-shadow: var(--shadow-heavy); /* Daha belirgin */
}

.btn-got-it {
    background-color: var(--color-accent); /* Aqua vurgu rengi */
    color: var(--color-light);
    margin-top: 20px;
}

.btn-got-it:hover {
    background-color: #117a8b; /* Daha koyu aqua */
    transform: translateY(-5px) scale(1.01); /* Daha belirgin */
    box-shadow: var(--shadow-medium);
}

/* Header Stilleri */
.header {
    background: var(--color-dark); /* Arka plan rengini güncellendi */
    padding: 12px 0;
    box-shadow: var(--shadow-medium); /* Daha belirgin gölge */
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    /* max-width: var(--max-width-content); */ /* İçerik genişliğine göre */
    /* margin: 20px auto 0 auto; */ /* Sayfada ortala ve üstten boşluk */
    z-index: 1000; /* Chatbot'tan üstte */
    border-radius: 0 0 var(--border-radius-2xl) var(--border-radius-2xl); /* Sadece alt kenarlar yuvarlak */
    transition: all 0.3s ease; /* Yumuşak geçiş */
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 40px; /* Logo boyutunu ayarladım */
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.05));
}

.nav ul {
    display: flex;
    align-items: center;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    color: var(--color-light); /* Koyu arka plan üzerinde açık metin */
    font-weight: 500;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav ul li a:hover {
    color: var(--color-secondary); /* Yeni vurgu rengi */
    text-decoration: none;
    transform: translateY(-4px); /* Daha belirgin yükselme efekti */
}

/* Hero Section Stilleri */
.hero {
    background-size: cover;
    background-position: center bottom; /* Resmi alt kısma odakladım */
    color: #fff;
    text-align: center;
    padding: 150px 0 80px 0; /* Üst padding artırıldı, alt azaltıldı */
    min-height: 85vh; /* Daha büyük hero alanı */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1; /* Altındaki section ile çakışmaması için */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(var(--color-background-rgb), 0.05) 0%, rgba(var(--color-dark-rgb), 0.7) 30%, rgba(var(--color-dark-rgb), 0.5) 100%); /* Yeni RGB değişkenleri kullanıldı */
    z-index: -1; /* İçeriğin arkasında kalması için */
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: var(--font-size-h1);
    margin-bottom: 20px;
    color: var(--color-light); /* Açık renk metin */
    text-shadow: 0 4px 8px rgba(0,0,0,0.4); /* Daha belirgin gölge */
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: rgba(var(--color-light-rgb),0.95); /* Yeni RGB değişkeni kullanıldı */
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Gölge eklendi */
}

.hero .description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: rgba(var(--color-light-rgb),0.9); /* Yeni RGB değişkeni kullanıldı */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2); /* Gölge eklendi */
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
    margin: 0 15px;
}

/* Genel Bölüm Stilleri */
.section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(30px); /* Hafif animasyon */
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 1;
}

.section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.section h2 {
    margin-bottom: 25px;
    position: relative;
    color: var(--color-dark);
}

.section h2::after {
    content: '';
    display: block;
    width: 70px; /* Daha uzun çizgi */
    height: 4px;
    background-color: var(--color-primary); /* Ana renk */
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

.section.bg-light h2::after {
    background-color: var(--color-accent); /* Vurgu rengi */
}

/* Products Test Section */
.products-test .products-actions {
    margin-top: 30px;
    margin-bottom: 20px;
}

.products-test .btn-cta-voice,
.products-test .btn-cta-chat {
    min-width: 180px;
}

.products-test .tip {
    font-size: 1rem;
    color: var(--color-muted); /* Nötr gri */
    margin-bottom: 25px;
}

/* Widget Showcase Section */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.showcase-item {
    background-color: var(--color-background);
    padding: 30px;
    border-radius: var(--border-radius-xl); /* Güncellendi */
    box-shadow: var(--shadow-light);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-item:hover {
    transform: translateY(-5px); /* Daha az belirgin */
    box-shadow: var(--shadow-medium);
}

.showcase-item h3 {
    color: var(--color-primary); /* Ana renk */
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.showcase-item ul {
    text-align: left;
    margin: 20px 0;
    padding-left: 0; /* Liste işaretlerini ikonla değiştireceğim */
    color: var(--color-dark);
}

.showcase-item ul li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.showcase-item ul li::before {
    content: ''; /* Varsayılan işareti kaldır */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f00c'; /* check-circle ikon */
    color: var(--color-primary); /* Ana renk */
    margin-right: 10px;
}

.widget-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-xl); /* Güncellendi */
    margin-top: 25px;
    box-shadow: var(--shadow-light);
}

/* Why Choose Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    background-color: var(--color-background);
    padding: 30px;
    border-radius: var(--border-radius-xl); /* Güncellendi */
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px); /* Daha az belirgin */
    box-shadow: var(--shadow-medium);
}

.feature-item h3 {
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: 15px;
    display: flex; /* İkonu ve metni yan yana hizalamak için */
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.feature-item h3 i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.feature-item:hover h3 i {
    transform: scale(1.1) rotate(5deg); /* Hafif büyütme ve dönme */
    color: var(--color-primary); /* Ana renk */
}

.benefits-list {
    margin-top: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--color-background);
    padding: 40px;
    border-radius: var(--border-radius-xl); /* Güncellendi */
    box-shadow: var(--shadow-light);
}

.benefits-list ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.benefits-list ul li {
    font-size: 1.05rem;
    color: var(--color-dark);
    display: flex;
    align-items: center;
}

.benefits-list ul li::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f058'; /* check-circle ikonu */
    color: var(--color-primary); /* Ana renk */
    margin-right: 12px;
    font-size: 1.3rem;
}

/* Use Cases Section */
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.case-item {
    background-color: var(--color-background);
    padding: 30px;
    border-radius: var(--border-radius-xl); /* Güncellendi */
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-item:hover {
    transform: translateY(-5px); /* Daha az belirgin */
    box-shadow: var(--shadow-medium);
}

.case-item h3 {
    font-size: 1.4rem;
    color: var(--color-dark);
    margin-bottom: 10px;
    display: flex; /* İkonu ve metni yan yana hizalamak için */
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.case-item h3 i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.case-item:hover h3 i {
    transform: scale(1.1) rotate(-5deg); /* Hafif büyütme ve ters dönme */
    color: var(--color-secondary); /* Vurgu rengi */
}

/* Testimonials Section */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-item {
    background-color: var(--color-background);
    padding: 35px;
    border-radius: var(--border-radius-xl); /* Güncellendi */
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px); /* Daha az belirgin */
    box-shadow: var(--shadow-medium);
}

.testimonial-item blockquote {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-muted); /* Nötr gri */
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-item cite {
    display: block;
    text-align: right;
    font-weight: 600;
    color: var(--color-primary); /* Ana renk */
    font-size: 0.95rem;
}

/* Contact Form Section */
.modern-form {
    max-width: 650px;
    margin: 40px auto 0 auto;
    padding: 40px;
    background-color: var(--color-background);
    border-radius: var(--border-radius-xl); /* Güncellendi */
    box-shadow: var(--shadow-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-dark); /* Koyu metin */
    font-size: 1rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-muted); /* Nötr gri kenarlık */
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: var(--color-primary); /* Ana renk */
    outline: none;
    box-shadow: 0 0 0 5px rgba(var(--color-primary-rgb), 0.2); /* Yeni RGB değişkeni kullanıldı */
}

.modern-form button[type="submit"] {
    width: auto;
    padding: 14px 35px;
    font-size: 1.1rem;
    border-radius: var(--border-radius-lg); /* Oval buton */
    box-shadow: var(--shadow-light);
}

/* FAQ Section */
.faq-items {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background-color: var(--color-background);
    margin-bottom: 15px;
    padding: 25px;
    border-radius: var(--border-radius-xl); /* Güncellendi */
    box-shadow: var(--shadow-light);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-medium);
}

.faq-item h3 {
    font-size: 1.4rem;
    color: var(--color-dark); /* Koyu metin */
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item h3 i {
    transition: transform 0.3s ease;
}

.faq-item h3.active i {
    transform: rotate(180deg);
}

.faq-item p {
    font-size: 1rem;
    color: var(--color-muted); /* Nötr gri */
    line-height: 1.7;
    display: none; /* Varsayılan olarak gizli */
    padding-top: 10px;
}

/* FAQ Accordion Animasyonu */
.faq-item p.faq-answer {
    max-height: 0; /* Başlangıçta gizli */
    overflow: hidden; /* Taşmayı gizle */
    transition: max-height 0.4s ease-out, padding-top 0.4s ease-out;
}

.faq-item p.faq-answer.show {
    max-height: 200px; /* Cevabın maksimum yüksekliği, içeriğe göre ayarlayın */
    padding-top: 10px; /* Animasyonla birlikte padding de gelsin */
}

/* Project CTA Section */
.project-cta {
    padding: 100px 0;
    margin-top: 60px;
    background: linear-gradient(rgba(var(--color-dark-rgb),0.8), rgba(var(--color-dark-rgb),0.8)), url('../images/1.avif') no-repeat center center/cover; /* Yeni RGB değişkenleri kullanıldı */
    background-attachment: fixed; /* Parallax efekti */
    color: var(--color-light); /* Açık metin */
    border-radius: var(--border-radius-2xl); /* Yuvarlak köşeler */
    max-width: var(--max-width-content); /* İçerik genişliğine göre */
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-medium); /* Gölge eklendi */
}

.project-cta h2 {
    font-size: var(--font-size-h2);
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--color-light); /* Açık metin */
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Footer Stilleri */
.footer {
    background: var(--color-dark); /* Koyu arka plan */
    color: var(--color-light); /* Açık metin */
    padding: 35px 0;
    text-align: center;
    border-top-left-radius: var(--border-radius-2xl); /* Güncellendi */
    border-top-right-radius: var(--border-radius-2xl); /* Güncellendi */
    max-width: var(--max-width-content); /* İçerik genişliğine göre */
    margin: 40px auto 20px auto; /* Sayfada ortala ve boşluklar */
    box-shadow: var(--shadow-medium); /* Gölge eklendi */
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer p {
    margin-bottom: 15px;
    color: var(--color-light); /* Açık metin */
}

.social-links a {
    color: var(--color-light); /* Açık metin */
    margin: 0 12px;
    font-size: 1.3rem;
    transition: color 0.3s ease, transform 0.3s ease; /* Transform için de geçiş eklendi */
}

.social-links a:hover {
    color: var(--color-primary); /* Ana renk */
    transform: translateY(-3px); /* Hafif yükselme efekti */
}

/* Ahmet Akaslan Section Stilleri */
.ahmet-akaslan-section {
    padding: 60px 0;
    background-color: var(--color-dark); /* Koyu arka plan */
    color: var(--color-light); /* Açık metin */
    border-radius: var(--border-radius-2xl); /* Daha da yuvarlak */
    max-width: var(--max-width-content); /* İçerik genişliğine göre */
    margin: 60px auto; /* Üstte ve altta daha fazla boşluk */
    box-shadow: var(--shadow-heavy); /* Daha belirgin gölge */
}

.ahmet-akaslan-section h3 {
    color: var(--color-light); /* Açık metin */
    margin-bottom: 25px;
    font-size: 2rem;
}

.ahmet-akaslan-section .btn-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-primary); /* LinkedIn mavisi yerine ana renk */
    color: var(--color-light);
    border: none;
    border-radius: var(--border-radius-2xl);
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ahmet-akaslan-section .btn-linkedin:hover {
    background-color: #0056b3; /* Daha koyu mavi */
    transform: translateY(-6px) scale(1.03); /* Daha belirgin */
    box-shadow: var(--shadow-medium);
}

/* Chatbot Widget Stilleri */
.chatbot-container {
    position: fixed !important; /* Mutlaka sabit konum */
    bottom: 30px !important;
    right: 30px !important;
    z-index: 2000; /* Her şeyin üzerinde */
    /* Nabız efekti için gereklidir */
    /* position: relative;  kaldırıldı: absolute çocuklar için gerekirse ilgili elemana verilir */
}

.chatbot-launcher {
    width: 64px;
    height: 64px;
    background: var(--color-secondary, #6A67E6);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 4px 24px rgba(106,103,230,0.18);
    cursor: pointer;
    position: relative;
    z-index: 1;
    padding: 0;
    transition: transform 0.18s cubic-bezier(0.25,0.8,0.25,1), box-shadow 0.18s cubic-bezier(0.25,0.8,0.25,1);
}

.chatbot-launcher i {
    font-size: 1.7rem;
    color: #fff;
    z-index: 2;
}

.chatbot-launcher:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 32px rgba(106,103,230,0.22);
    background-color: #5a57cc;
}

.chatbot-window {
    display: none;
    background-color: var(--color-background); /* Beyaz arka plan */
    border-radius: var(--border-radius-2xl); /* Güncellendi */
    box-shadow: var(--shadow-heavy);
    width: 450px;
    height: 520px; /* Biraz daha kısa yapıldı */
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: calc(100% + 20px);
    right: 0;
    transform-origin: bottom right;
    /* animation: fadeInUp 0.4s ease-out forwards; */ /* Kaldırıldı, yerine transition kullanılacak */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(100%) scale(0.8); /* Başlangıç durumu (kapalı) */
    opacity: 0; /* Başlangıçta gizli */
    border: 1px solid rgba(var(--color-dark-rgb), 0.1); /* Yeni RGB değişkeni kullanıldı */
}

.chatbot-window.open {
    transform: translateY(0) scale(1); /* Açıldığında tam boyut */
    opacity: 1; /* Açıldığında görünür */
}

/* Minimize edildiğinde artık bar görünmeyecek; sadece launcher kullanılacak */
.chatbot-window.minimized {
    display: none !important;
}

.chatbot-window.minimized .chatbot-header { display: none; }

.chatbot-window.minimized .chatbot-header h3 { display: none; }

.chatbot-window.minimized .chatbot-actions { display: none; }

.chatbot-window.minimized .chatbot-body,
.chatbot-window.minimized .chatbot-footer { display: none; }

.chatbot-header {
    background-color: var(--color-dark); /* Koyu arka plan */
    color: var(--color-light); /* Açık metin */
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(var(--color-dark-rgb), 0.1);
    border-top-left-radius: var(--border-radius-2xl); /* Güncellendi */
    border-top-right-radius: var(--border-radius-2xl); /* Güncellendi */
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: white;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chatbot-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chatbot-actions button {
    background: none;
    border: none;
    color: rgba(var(--color-light-rgb),0.8); /* Açık renk */
    font-size: 1.2rem;
    cursor: pointer;
    width: 32px; /* Buton boyutunu artırdım */
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm); /* Daha yumuşak köşeler */
    transition: background-color 0.2s ease, color 0.2s ease;
}

.chatbot-actions button:hover {
    background-color: rgba(var(--color-light-rgb), 0.15); /* Yeni RGB değişkeni kullanıldı */
    color: var(--color-light); /* Açık renk */
}

.chatbot-body {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: var(--color-section-bg); /* Section arka planı */
    display: flex;
    flex-direction: column;
}

.message {
    padding: 12px 18px;
    border-radius: var(--border-radius-md); /* Güncellendi */
    margin-bottom: 10px;
    max-width: 85%; /* Mesaj genişliğini artırdım */
    word-wrap: break-word;
    line-height: 1.5;
    font-size: 0.95rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08); /* Hafif gölge */
}

.bot-message {
    background-color: var(--color-light); /* Açık renk arka plan */
    color: var(--color-dark); /* Koyu metin */
    align-self: flex-start;
    border-bottom-left-radius: 8px; /* Köşe inceliği */
}

.user-message {
    background-color: var(--color-primary); /* Ana renk */
    color: var(--color-light); /* Açık metin */
    align-self: flex-end;
    border-bottom-right-radius: 8px;
}

.chatbot-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid rgba(0,0,0,0.05);
    background-color: var(--color-background);
    gap: 12px;
    align-items: flex-end;
}

.chatbot-footer textarea#chatbot-input {
    flex-grow: 1;
    resize: none; /* kullanıcı sürüklemesin */
    overflow-y: auto; /* taşan metin dikeyde yeni satıra sarılsın, gerekli olunca scrollbar çıksın */
    height: 44px; /* sabit yükseklik */
    line-height: 1.4;
    border: 1px solid var(--color-muted);
    border-radius: var(--border-radius-lg);
    padding: 10px 18px;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.chatbot-footer textarea#chatbot-input:focus {
    border-color: var(--color-primary); /* Ana renk */
    outline: none;
    box-shadow: 0 0 0 5px rgba(var(--color-primary-rgb), 0.15); /* var(--color-primary) RGB değerleri kullanıldı */
}

.chatbot-footer button {
    background-color: var(--color-primary);
    color: var(--color-light);
    border: none;
    border-radius: 999px; /* yuvarlak ikon tuşu */
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex-shrink: 0; /* Buton küçülmesin */
}
.chatbot-footer button i { 
    color: #fff; 
    font-size: 1.1rem;
    display: block;
}
.chatbot-footer button span {
    display: none !important; /* Yazıyı gizle, sadece ikon göster */
}
.chatbot-footer button {
    font-size: 0; /* Buton içindeki tüm yazıları gizle */
}

.chatbot-footer button:hover {
    background-color: #0056b3; /* Daha koyu mavi */
    transform: translateY(-2px) scale(1.01); /* Hafif büyütme */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Data Table Stilleri - Modern ve Renkli */
.table-responsive-wrapper {
    overflow-x: auto;
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: var(--border-radius-xl);
    border: 1px solid rgba(0,0,0,0.08);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    display: block !important;
    visibility: visible !important;
    backdrop-filter: blur(10px);
}

.table-responsive-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px; /* Gölgenin genişliği */
    height: 100%;
    background: linear-gradient(to left, rgba(0,0,0,0.1), rgba(0,0,0,0));
    pointer-events: none; /* Etkileşimleri engelle */
    opacity: 0; /* Başlangıçta gizli */
    transition: opacity 0.3s ease-out;
}

.table-responsive-wrapper.scrolled::after {
    opacity: 1; /* Kaydırıldığında görünür */
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 500px;
    font-size: 0.9rem;
    display: table !important;
    visibility: visible !important;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.data-table th,
.data-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.data-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: sticky;
    top: 0;
    z-index: 1;
    user-select: none;
}

.data-table th:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.data-table th.sorted {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.data-table th.sorted:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.data-table th::after {
    content: '↕';
    position: absolute;
    right: 8px;
    opacity: 0.7;
    font-size: 0.8rem;
}

.data-table th.sorted-asc::after {
    content: '↑';
    opacity: 1;
}

.data-table th.sorted-desc::after {
    content: '↓';
    opacity: 1;
}

.data-table td {
    background: white;
    color: #2d3748;
    font-weight: 400;
}

.data-table tbody tr {
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.data-table tr:nth-child(even) {
    background: #fafafa;
}

.data-table tr:nth-child(even):hover {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
}

/* Medya Sorguları (Responsive Tasarım) */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    p { font-size: 1rem; }

    .hero {
        padding: 100px 0 60px 0;
    }
    
    .hero .subtitle {
        font-size: 1.3rem;
    }

    .hero .description {
        font-size: 1rem;
    }

    .section {
        padding: 60px 0;
    }

    .showcase-item h3 { font-size: 1.4rem; }
    .feature-item h3 { font-size: 1.3rem; }
    .benefits-list ul {
        grid-template-columns: 1fr;
    }

    .project-cta h2 {
        font-size: 2.2rem;
    }

    .header {
        margin: 0; /* Mobil için margin'i kaldır */
        width: 100%; /* Tam genişlik */
        border-radius: 0 0 var(--border-radius-md) var(--border-radius-md); /* Mobil için alt kenarlar yuvarlak */
    }

    .project-cta,
    .footer,
    .ahmet-akaslan-section {
        width: calc(100% - 20px); /* Kenarlardan boşluk bırak */
        border-radius: var(--border-radius-md); /* Mobil için daha küçük yuvarlaklık */
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }

    .nav ul {
        margin-top: 15px;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .nav ul li {
        margin-left: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .hero .description {
        font-size: 0.95rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-explore,
    .btn-request-demo,
    .btn-cta-voice,
    .btn-cta-chat,
    .btn-got-it {
        width: 100%;
        margin-bottom: 10px;
        padding: 12px 20px;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        margin: 5px 0;
    }

    h2 {
        font-size: 2rem;
    }

    .showcase-grid,
    .features-grid,
    .use-case-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .chatbot-window {
        width: 90vw;
        height: 75vh;
        bottom: 20px;
        right: 5vw;
        left: 5vw;
    }
    
    .chatbot-launcher {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .chatbot-window.minimized {
        width: 180px;
        height: 50px;
        padding: 0 10px;
    }

    .chatbot-window.minimized .chatbot-header h3 {
        font-size: 0.9rem;
    }

    .data-table {
        min-width: 100%; /* Mobil cihazlarda tam genişlik */
        font-size: 0.85rem;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
    }

    .modern-form {
        padding: 25px;
    }

    .form-group label { font-size: 0.9rem; }
    .form-group input, .form-group textarea { font-size: 0.9rem; padding: 10px; }
    .modern-form button[type="submit"] { padding: 10px 25px; font-size: 1rem; }

    .project-cta h2 {
        font-size: 1.8rem;
    }

    .footer p { font-size: 0.9rem; }
    .social-links a { font-size: 1.1rem; }

    .project-cta,
    .footer,
    .ahmet-akaslan-section {
        width: calc(100% - 20px);
        margin: 20px auto;
    }
}

/* Tablo Modalı Stilleri */
.table-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(34, 40, 49, 0.75);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}
.table-modal-content {
    background: var(--color-background);
    border-radius: var(--border-radius-2xl); /* Güncellendi */
    box-shadow: var(--shadow-heavy);
    padding: 32px 32px 24px 32px;
    max-width: 90vw;
    max-height: 80vh;
    overflow: auto;
    position: relative;
    min-width: 600px;
    resize: both;
    /* Kullanıcı köşeden sürükleyerek boyutlandırabilir */
}
.close-modal-btn {
    position: absolute;
    top: 18px;
    right: 24px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    z-index: 10;
}
.close-modal-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #e53935 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}
#modal-table-container {
    margin-top: 16px;
}

/* Chatbot pencere büyütme (expanded) */
.chatbot-window.expanded {
    width: 90vw !important;
    height: 80vh !important;
    max-width: 1200px;
    max-height: 90vh;
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%) !important;
    position: fixed !important;
    z-index: 2500;
    box-shadow: var(--shadow-heavy);
    border-radius: var(--border-radius-2xl); /* Güncellendi */
    animation: fadeInUp 0.4s ease-out forwards;
}

@media (max-width: 700px) {
    .table-modal-content {
        min-width: 0;
        width: 98vw;
        padding: 12px 4px 8px 4px;
    }
    .chatbot-window.expanded {
        width: 98vw !important;
        height: 90vh !important;
        min-width: 0;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) !important;
    }
}

/* Chatbot Loading Dots (Animasyonlu) */
.chatbot-loading-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    margin: 8px 0 8px 0;
    padding: 0 8px;
}
.chatbot-loading-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.7;
    animation: chatbot-dot-bounce 1.1s infinite cubic-bezier(0.6, 0.05, 0.6, 0.95);
}
.chatbot-loading-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}
.chatbot-loading-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes chatbot-dot-bounce {
    0%, 80%, 100% {
        transform: scale(0.7);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.table-modal-content .data-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
    font-size: 1.05rem;
}
.table-modal-content .data-table th, .table-modal-content .data-table td {
    padding: 16px 18px;
    font-size: 1.05rem;
}
@media (max-width: 700px) {
    .table-modal-content .data-table th, .table-modal-content .data-table td {
        padding: 8px 6px;
        font-size: 0.95rem;
    }
}

/* Yeni Mesaj Animasyonu */
@keyframes message-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.animate-fade-in {
    animation: message-fade-in 0.3s ease-out forwards;
}

/* Chat Button Pulse Animasyonu */
.chat-button-pulse {
    position: relative;
}

.chat-button-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%; /* Düğme ile aynı başlangıç boyutu */
    height: 100%; /* Düğme ile aynı başlangıç boyutu */
    border-radius: 50%;
    background-color: var(--color-secondary, #6A67E6); /* Nabız için arka plan rengi */
    transform: translate(-50%, -50%); /* Merkezi konumlandırma */
    animation: pulse-ring 2s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1; /* Düğmenin arkasında kalmasını sağlar */
    opacity: 0.5;
    border: none; /* Kenarlığı kaldır */
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(0.9); /* Düğmeye yakın başlayarak yayılma */
    opacity: 0.7; /* Başlangıç opaklığını artır */
  }
  80%, 100% {
    transform: translate(-50%, -50%) scale(1.5); /* Daha büyük bir yayılma */
    opacity: 0;
  }
}

  /* Ensure chatbot launcher is fixed bottom right */
#chatbot-launcher {
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  top: auto !important;          /* üst konumu temizle */
  left: auto !important;         /* sol konumu temizle */
  margin: 0 !important;          /* olası dış boşlukları sıfırla */
  transform: none !important;    /* konumu bozan çevirileri kaldır */
  width: 64px !important;
  height: 64px !important;
  background: var(--color-secondary) !important;
  color: #fff !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 9999 !important; /* En üstte olmasını sağlar */
  opacity: 1 !important;
  box-shadow: 0 4px 24px rgba(var(--color-secondary-rgb),0.18) !important;
  padding: 0 !important;
  border: none !important;
  cursor: pointer; /* Tıklanabilir olmasını sağlar */
  position: relative !important; /* ::before için referans noktası */
}
/* Güvenli alanlar için mobil kenar boşluğu desteği */
@supports (bottom: env(safe-area-inset-bottom)) {
  #chatbot-launcher {
    bottom: calc(env(safe-area-inset-bottom) + 20px) !important;
    right: calc(env(safe-area-inset-right) + 20px) !important;
  }
}

#chatbot-launcher i {
  font-size: 1.7rem !important;
  color: #fff !important;
  position: relative; /* İkonun z-index ile önde kalmasını sağlar */
  z-index: 1; 
}
