/* -------------------------
   :root - RENK PALETİ ve FONT
   ------------------------- */
:root {
    --primary-color: #00aaff;
    --secondary-color: #ffc107; /* Vurgu Rengi (Altın/Sarı) */
    --dark-bg: #121212;
    --dark-surface: #1e1e1e;
    --darker-footer: #1a1a1a;
    --light-text: #f0f0f0;
    --muted-text: #888;
    --border-color: #333;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;

    --bs-body-bg: var(--dark-bg);
    --bs-body-color: var(--light-text);
    --bs-dark: var(--dark-surface);
    --bs-primary: var(--primary-color);
}

/* -------------------------
   Temel Ayarlar
   ------------------------- */
body {
    font-family: var(--font-body);
    font-weight: 300;
    background-color: var(--dark-bg);
    color: var(--light-text);
    font-size: 0.95rem;
    padding-top: 106px; /* Ticker (36px) + Navbar (70px) */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--light-text);
}
h2 { font-size: 2.25rem; }
.accent-icon { color: var(--secondary-color); }
p { font-size: 0.95rem; font-weight: 300; }
p.lead { font-size: 1.1rem; font-weight: 300; }

/* -------------------------
   1. En Üst Kayan Yazı (Ticker)
   ------------------------- */
.top-ticker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 36px;
    background-color: #ffffff;
    color: var(--secondary-color); /* YAZI RENGİ SARI OLDU */
    z-index: 1050;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid #000; /* Siyah Çizgi */
    border-bottom: 1px solid #000; /* Siyah Çizgi */
}
.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-scroll 20s linear infinite;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 36px;
}
.ticker-content span { margin-right: 50px; }
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* -------------------------
   2. "Eşsiz" Header (Menü)
   ------------------------- */
.navbar {
    background-color: var(--dark-surface);
    height: 70px;
    position: fixed;
    top: 36px; /* Ticker'ın altında */
    left: 0;
    right: 0;
    z-index: 1040;
    border-bottom: 1px solid var(--border-color);
}
.navbar-brand { padding: 0; }
.navbar-logo {
    max-height: 40px;
    margin-right: 20px;
}
.navbar .nav-link {
    color: var(--muted-text);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 6px 12px !important; /* Hap (Pill) için ayar */
    margin: 0 5px;
    border: 2px solid transparent;
    border-radius: 20px; /* Hap (Pill) kenarları */
    transition: all 0.3s;
}
.navbar .nav-link:hover {
    color: var(--light-text);
    background-color: rgba(255, 255, 255, 0.05);
}
.navbar .nav-link.active {
    background-color: var(--secondary-color); /* Vurgu Rengi */
    color: var(--dark-bg);
    border-color: var(--secondary-color);
}
.navbar-toggler { border: none; font-size: 1.5rem; color: var(--primary-color); }
.navbar-toggler:focus { box-shadow: none; }

/* Mobil Menü Arka Planı */
@media (max-width: 991px) {
    .navbar-collapse.show {
        background-color: var(--dark-surface);
        padding: 15px;
        border-radius: 8px;
        margin-top: 10px;
        border: 1px solid var(--border-color);
    }
    .navbar-collapse .navbar-nav {
        align-items: center; /* Mobilde ortala */
    }
    .navbar-collapse .nav-item {
        width: 100%;
        text-align: center;
    }
}


/* -------------------------
   3. Pop-up (İNCELTİLMİŞ Fontlar)
   ------------------------- */
.modal-light-override {
    background-color: #ffffff;
    color: #121212;
    border: 2px solid #000000;
    border-radius: 8px;
}
.modal-light-override .modal-title {
    color: #000000;
    font-weight: 500; /* İnceltildi */
}
.modal-light-override .modal-body,
.modal-light-override .modal-footer { border-color: #eee; color: #333; }
.modal-light-override .modal-body p {
    font-size: 0.95rem;
    color: #333;
    font-weight: 300; /* İnceltildi */
}
.modal-light-override .btn-close { background-color: #ccc; }
.modal-light-override img.modal-img { border-radius: 8px 8px 0 0; }
.modal-light-override .modal-footer { background-color: #f9f9f9; }
.custom-btn-light-modal {
    background-color: var(--primary-color);
    color: #fff; border: none; font-family: var(--font-heading);
}

/* -------------------------
   4. Cookie Kartı
   ------------------------- */
#cookie-card {
    display: none; position: fixed; bottom: 20px; left: 20px;
    width: 300px; background-color: #ffffff; border-radius: 8px;
    z-index: 1050; border: 1px solid #000;
}
#cookie-card p {
    color: #333; font-family: var(--font-body);
    font-size: 0.9rem; margin: 0;
}
#cookie-card .btn-dark {
    background-color: #121212; color: #fff; border: none;
    font-family: var(--font-heading);
}

/* -------------------------
   5. Scroll to Top Butonu
   ------------------------- */
#backToTopButton {
    position: fixed; bottom: 20px; right: 20px; z-index: 1040;
    width: 50px; height: 50px;
    background-color: var(--secondary-color);
    color: var(--dark-bg);
    border: none; border-radius: 50%;
    display: none;
    justify-content: center; align-items: center;
    font-size: 2rem; text-decoration: none;
    transition: all 0.3s ease;
}
#backToTopButton:hover {
    background-color: #ffda6a;
    transform: translateY(-5px);
}


/* -------------------------
   6. YENİ: Kısaltılmış ve Gelişmiş Slider
   ------------------------- */
.home-section { background-color: var(--dark-bg); }
#heroCarousel, .carousel-item {
    height: 650px; /* Masaüstü Yüksekliği KISALTILDI */
    min-height: 450px;
}
#heroCarousel .container,
#heroCarousel .row {
    height: 100%;
}
.carousel-item {
    background-size: cover;
    background-position: center;
    position: relative;
}
.carousel-item::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 0.8));
}

/* YENİ: Gelişmiş Slider İçeriği (Sol/Sağ) */
.hero-slide-content-left {
    z-index: 10;
}
.hero-slide-image {
     z-index: 5;
}
.hero-slide-image img {
    max-height: 450px;
    width: auto;
}
.hero-slide-content-left .slide-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 15px; 
    display: inline-block;
}
.hero-slide-content-left h1 {
    font-weight: 800;
    font-size: 3rem;
    color: #fff;
    /* YENİ: Okunabilirlik için Arka Plan */
    background-color: rgba(18, 18, 18, 0.7);
    padding: 5px 15px;
    border-radius: 5px;
    display: inline-block; /* Arka planı yazıya sığdır */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.hero-slide-content-left p.lead {
    font-weight: 300;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    /* YENİ: Okunabilirlik için Arka Plan */
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}
.btn-custom-slider {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 8px 20px; /* Küçültüldü */
    font-size: 0.9rem; /* Küçültüldü */
}
.btn-custom-slider:hover {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
}


/* YENİ: Slider Animasyonları */
.animated-text { opacity: 0; animation-duration: 1s; animation-fill-mode: both; }
.animated-text.slide-in-up { animation-name: slideInUp; }
.animated-text.slide-in-down { animation-name: slideInDown; } /* YENİ */
.animated-text.slide-in-right { animation-name: slideInRight; } /* YENİ */
.animated-text.delay-1 { animation-delay: 0.3s; }
.animated-text.delay-2 { animation-delay: 0.6s; }

@keyframes slideInUp {
    from { transform: translate3d(0, 100px, 0); opacity: 0; }
    to { transform: translate3d(0, 0, 0); opacity: 1; }
}
@keyframes slideInDown { /* YENİ */
    from { transform: translate3d(0, -100px, 0); opacity: 0; }
    to { transform: translate3d(0, 0, 0); opacity: 1; }
}
@keyframes slideInRight { /* YENİ */
    from { transform: translate3d(100px, 0, 0); opacity: 0; }
    to { transform: translate3d(0, 0, 0); opacity: 1; }
}

/* -------------------------
   7. Bölüm Ayırıcılar (SVG Dalga)
   ------------------------- */
.section-divider {
    height: 100px; background: var(--dark-bg);
    overflow: hidden; position: relative; width: 100%;
}
.section-divider::before {
    content: ""; position: absolute; left: 0; width: 100%; height: 100px;
}
.wave-1::before { background: var(--dark-surface); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.wave-2 { background: var(--dark-surface); }
.wave-2::before { background: var(--darker-footer); clip-path: polygon(0 0, 0 100%, 100% 100%); }
.wave-3 { background: var(--darker-footer); }
.wave-3::before {
    background: var(--dark-bg);
    clip-path: polygon(
        0% 100%, 0% 0%, 10.0% 5.9%, 20.0% 11.2%, 30.0% 15.3%, 40.0% 17.6%, 50.0% 18.0%,
        60.0% 16.2%, 70.0% 12.6%, 80.0% 7.9%, 90.0% 2.8%, 100.0% 0%, 100% 100%
    );
}
.wave-4 { background: var(--dark-bg); }
.wave-4::before { background: var(--darker-footer); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.wave-5 { background: var(--darker-footer); }
.wave-5::before { background: var(--darker-footer); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }

/* -------------------------
   8. Geliştirilmiş Hizmet Kartları (v2)
   ------------------------- */
#services { background: var(--dark-surface); }
.service-card-v2 {
    background-color: var(--dark-bg);
    padding: 30px; border-radius: 10px;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}
.service-card-v2 .card-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all 0.3s ease; /* İkon animasyonu */
}
.service-card-v2 h3 { font-family: var(--font-heading); margin-bottom: 15px; }
.service-card-v2 p { font-family: var(--font-body); color: var(--muted-text); margin-bottom: 20px; }
.service-card-v2 .read-more {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}
.service-card-v2 .read-more:hover { color: #ffda6a; }
.service-card-v2 .read-more i { transition: transform 0.3s; }
.service-card-v2:hover .read-more i { transform: translateX(5px); }
.service-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.2);
}
.service-card-v2:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--secondary-color);
}


/* -------------------------
   9. Referanslar (Hover'da Duraklatma)
   ------------------------- */
#references { background-color: var(--darker-footer); }
.logo-marquee-container {
    width: 100%; overflow: hidden; white-space: nowrap; position: relative;
}
.logo-marquee-container::before, .logo-marquee-container::after {
    content: ''; position: absolute; top: 0; width: 100px; height: 100%; z-index: 2;
}
.logo-marquee-container::before { left: 0; background: linear-gradient(to right, var(--darker-footer), transparent); }
.logo-marquee-container::after { right: 0; background: linear-gradient(to left, var(--darker-footer), transparent); }
.logo-marquee-track {
    display: flex;
    width: calc(150px * 10 + 40px * 10);
    animation: scroll-left 20s linear infinite;
}
.logo-marquee-container:hover .logo-marquee-track {
    animation-play-state: paused;
}
.logo-item { width: 150px; margin: 0 20px; flex-shrink: 0; }
.logo-item img { width: 100%; filter: grayscale(1) opacity(0.7); transition: filter 0.3s; }
.logo-item img:hover { filter: grayscale(0) opacity(1); }
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* -------------------------
   10. Sıkça Sorulan Sorular (SSS)
   ------------------------- */
#faq { background: var(--dark-bg); }
.accordion-item {
    background-color: var(--dark-surface);
    border: 1px solid var(--border-color);
    margin-bottom: 10px; border-radius: 8px;
}
.accordion-button {
    background-color: var(--dark-surface);
    color: var(--light-text);
    font-family: var(--font-heading); font-weight: 600;
}
.accordion-button:not(.collapsed) {
    background-color: var(--secondary-color);
    color: var(--dark-bg); box-shadow: none;
}
.accordion-button:focus { box-shadow: none; border-color: var(--secondary-color); }
.accordion-button::after {
    font-family: "bootstrap-icons"; content: "\F4FE"; /* + */
    font-weight: 900; background-image: none; transform: scale(1.2);
}
.accordion-button:not(.collapsed)::after {
    content: "\F463"; /* - */ background-image: none;
}
.accordion-body {
    background-color: var(--dark-bg);
    color: var(--muted-text); font-family: var(--font-body);
}
.accordion-button i { color: var(--primary-color); }
.accordion-button:not(.collapsed) i { color: var(--dark-bg); }


/* -------------------------
   11. 2 Kolonlu İletişim Formu (Güncellendi)
   ------------------------- */
#contact { background-color: var(--darker-footer); }
.contact-info-card {
    background-color: var(--dark-surface);
    padding: 30px; border-radius: 10px; border: 1px solid var(--border-color);
}
.representative-img {
    width: 150px; height: 150px; border-radius: 50%; object-fit: cover;
    border: 4px solid var(--secondary-color);
}
.form-control, .form-select {
    background-color: var(--dark-surface);
    border: 1px solid var(--border-color);
    color: var(--light-text); padding: 12px; font-family: var(--font-body);
}
.form-control:focus, .form-select:focus {
    background-color: var(--dark-surface);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
    color: var(--light-text);
}
.form-control::placeholder { color: var(--muted-text); }
.form-select { color: var(--muted-text); }
.form-select option { color: var(--light-text); }
.form-select option[disabled] { color: var(--muted-text); }
.custom-btn {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
    border: none; font-weight: 700; font-family: var(--font-heading);
    transition: all 0.3s ease;
}
.custom-btn:hover { background-color: #ffda6a; transform: scale(1.02); }

/* -------------------------
   12. Güncellenmiş Footer
   ------------------------- */
.footer { background-color: var(--darker-footer); padding-top: 0; }
.footer-logo { max-height: 40px; }
.footer-logo-small { max-height: 25px; }
.footer-slogan {
    color: var(--muted-text); font-style: italic; font-family: var(--font-body);
    font-size: 0.9rem; margin-top: 10px;
}
.map-container { border-radius: 8px; overflow: hidden; height: 150px; }
.map-container iframe { filter: grayscale(1) invert(0.9) contrast(0.9); height: 100%; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    text-decoration: none; color: var(--muted-text); font-family: var(--font-body);
    transition: color 0.3s; font-size: 0.9rem;
}
.footer-links a:hover { color: var(--secondary-color); }
.footer-bottom { border-color: var(--border-color) !important; font-size: 0.85rem; }

.footer-social-icons { margin-top: 20px; }
.footer-social-icons .social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background-color: var(--dark-surface);
    color: var(--muted-text);
    margin-right: 10px;
    text-decoration: none;
    transition: all 0.3s;
}
.footer-social-icons .social-icon:hover {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
}

/* -------------------------
   13. Sol Sabit İkonlar (Aşağıya Alındı)
   ------------------------- */
.floating-utils {
    position: fixed;
    top: 60%; /* Aşağıya alındı */
    left: 0;
    transform: translateY(-50%);
    z-index: 1020;
    display: flex; flex-direction: column; align-items: flex-start;
}
.floating-utils .util-icon {
    background-color: var(--primary-color);
    color: #fff; width: 45px; height: 45px;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem; margin-bottom: 5px; border-radius: 0 5px 5px 0;
    transition: all 0.3s ease; text-decoration: none;
}
.floating-utils .util-icon:hover { background-color: var(--primary-color-hover); transform: translateX(5px); }
.floating-utils .util-contact {
    writing-mode: vertical-rl; transform: rotate(180deg);
    background-color: var(--secondary-color);
    color: var(--dark-bg);
    padding: 10px 5px; font-weight: 700; text-decoration: none;
    border-radius: 5px 0 0 5px; margin-left: -5px;
    transition: background-color 0.3s; font-family: var(--font-heading);
}
.floating-utils .util-contact:hover { background-color: #ffda6a; }

/* -------------------------
   14. Mobil Alt Navigasyon (Güncellendi)
   ------------------------- */
.mobile-bottom-nav {
    display: none;
    position: fixed; bottom: 0; left: 0; width: 100%; height: 60px;
    background-color: var(--dark-surface);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3); z-index: 1000;
}
.mobile-bottom-nav .nav-item {
    flex: 1; display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    color: var(--muted-text); text-decoration: none;
    font-size: 0.75rem; font-family: var(--font-body);
    transition: color 0.3s;
}
.mobile-bottom-nav .nav-item i { font-size: 1.2rem; margin-bottom: 2px; }
.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item.active { color: var(--secondary-color); }

/* -------------------------
   MOBİL UYUMLULUK
   ------------------------- */
@media (max-width: 991px) { /* lg breakpoint (Masaüstü/Tablet ayrımı) */
    .hero-slide-content-left {
        text-align: center !important; /* Mobilde yazıyı ortala */
    }
}
@media (max-width: 767px) { /* md breakpoint (Tablet/Mobil ayrımı) */
    body { padding-top: 106px; }
    .mobile-bottom-nav { display: flex; }
    body { padding-bottom: 60px; }
    #cookie-card { bottom: 80px; left: 10px; width: auto; max-width: 95%; }
    
    .floating-utils {
        top: 75%; /* DÜZELTİLDİ: Mobilde de %60'da */
        transform: translateY(-50%) scale(0.8);
    }
    
    /* Mobil Slider Yüksekliği KISALTILDI */
    #heroCarousel, .carousel-item {
        height: 450px;
        min-height: 450px;
    }
    .hero-slide-content-left h1 { font-size: 1.8rem; }
    .hero-slide-content-left p.lead { font-size: 1rem; }

    #backToTopButton { bottom: 80px; }
    .ticker-content { font-size: 0.8rem; }
}

/* -------------------------
   Scroll Animasyonları
   ------------------------- */
.scroll-fade-in {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-fade-in.is-visible {
    opacity: 1; transform: translateY(0);
}