@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary: #00a8ff;
    --primary-dark: #005aa3;
    --secondary: #0f172a;
    --accent: #00d2d3;
    --light: #f8fafc;
    --text: #475569;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.90);
    --gradient: linear-gradient(135deg, #00a8ff 0%, #00d2d3 100%);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* --- Temel Ayarlar --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    background-color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--secondary);
    font-weight: 700;
}

a { text-decoration: none; transition: all 0.3s ease; }

/* --- Preloader --- */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--white); z-index: 9999;
    display: flex; justify-content: center; align-items: center;
}
.loader {
    width: 48px; height: 48px;
    border: 5px solid var(--primary);
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
}
@keyframes rotation { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- Navbar (Premium Glass) --- */
.navbar {
    padding: 1.2rem 0;
    position: fixed; w-100; z-index: 1000;
    transition: all 0.4s ease;
    background: transparent;
}
.navbar.scrolled {
    background: var(--glass);
    backdrop-filter: blur(12px);
    padding: 0.8rem 0;
    box-shadow: var(--shadow-sm);
}
.navbar-brand {
    font-size: 1.8rem; font-weight: 800; color: var(--white);
    letter-spacing: -1px;
}
.navbar.scrolled .navbar-brand { color: var(--primary-dark); }
.nav-link {
    color: var(--white) !important; font-weight: 500; margin: 0 12px; opacity: 0.9;
}
.navbar.scrolled .nav-link { color: var(--secondary) !important; }
.nav-link:hover { opacity: 1; color: var(--accent) !important; }
.btn-nav {
    background: var(--white); color: var(--primary) !important;
    padding: 10px 25px; border-radius: 50px; font-weight: 700;
}
.navbar.scrolled .btn-nav { background: var(--gradient); color: white !important; }

/* --- Hero Section (Sinematik) --- */
.hero {
    position: relative; height: 110vh; min-height: 700px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; text-align: center; color: white;
}
.hero-video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -2;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(0, 168, 255, 0.4));
    z-index: -1;
}
.hero h1 {
    font-size: 4.5rem; line-height: 1.1; margin-bottom: 1.5rem;
    color: white; text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.btn-main {
    background: var(--gradient); border: none; padding: 16px 40px;
    font-size: 1.1rem; font-weight: 700; border-radius: 50px;
    color: white; box-shadow: 0 10px 30px rgba(0, 168, 255, 0.4);
    display: inline-block; transition: transform 0.3s;
}
.btn-main:hover { transform: translateY(-5px); color: white; box-shadow: 0 15px 35px rgba(0, 168, 255, 0.6); }

/* --- Cards (Modern Hover) --- */
.feature-card {
    background: white; padding: 2.5rem; border-radius: 20px;
    box-shadow: var(--shadow-sm); transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03); height: 100%;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 168, 255, 0.2);
}
.icon-wrapper {
    width: 70px; height: 70px; border-radius: 18px;
    background: rgba(0, 168, 255, 0.1); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; margin-bottom: 1.5rem; transition: 0.3s;
}
.feature-card:hover .icon-wrapper {
    background: var(--gradient); color: white; transform: rotate(10deg);
}

/* --- Section Styling --- */
.section-title { margin-bottom: 4rem; text-align: center; }
.section-title span {
    color: var(--primary); text-transform: uppercase; font-size: 0.9rem;
    font-weight: 700; letter-spacing: 2px; display: block; margin-bottom: 10px;
}
.section-title h2 { font-size: 2.8rem; }

/* --- Contact Form & Footer --- */
.contact-box {
    background: white; padding: 3rem; border-radius: 24px;
    box-shadow: var(--shadow-lg);
}
.form-control {
    padding: 15px; border-radius: 12px; border: 2px solid #e2e8f0;
    background: #f8fafc; font-weight: 500;
}
.form-control:focus {
    border-color: var(--primary); box-shadow: none; background: white;
}
footer { background: var(--secondary); color: #94a3b8; }
footer h4 { color: white; }
footer a { color: #94a3b8; }
footer a:hover { color: var(--accent); padding-left: 5px; }

/* --- Mobile Fixes --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .section-title h2 { font-size: 2rem; }
    .navbar-collapse {
        background: white; padding: 20px; border-radius: 15px;
        margin-top: 15px; box-shadow: var(--shadow-lg);
    }
    .nav-link { color: var(--secondary) !important; margin: 5px 0; }
    .btn-nav { background: var(--primary); color: white !important; text-align: center; display: block; }
}

/* Floating Action Button */
.fab-container { position: fixed; bottom: 30px; right: 30px; z-index: 99; display: flex; flex-direction: column; gap: 15px; }
.fab { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: transform 0.3s; }
.fab:hover { transform: scale(1.1); color: white; }
.fab-wa { background: #25D366; }
.fab-call { background: var(--primary); }

/* --- ALT SAYFA ÖZEL STİLLERİ (Mevcut CSS'in altına ekle) --- */

/* Page Header (Parallax & Modern) */
.page-header {
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax etki */
    position: relative;
    padding: 160px 0 100px 0;
    margin-bottom: 0;
}
.page-header::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(0, 168, 255, 0.4));
}
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }
.breadcrumb-item.active { color: var(--accent); }

/* About Page - Feature Boxes */
.icon-box-modern {
    background: white; padding: 2rem; border-radius: 15px;
    box-shadow: var(--shadow-sm); transition: 0.3s;
    border-bottom: 4px solid transparent;
}
.icon-box-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--primary);
}

/* Services Page - Premium Cards */
.service-card-premium {
    background: white; border-radius: 20px; overflow: hidden;
    transition: all 0.4s ease; height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex; flex-direction: column;
}
.service-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.service-img-wrap { overflow: hidden; height: 250px; position: relative; }
.service-img-wrap img { transition: 0.5s; width: 100%; height: 100%; object-fit: cover; }
.service-card-premium:hover .service-img-wrap img { transform: scale(1.1); }
.service-icon-float {
    position: absolute; bottom: -20px; right: 20px;
    width: 60px; height: 60px; background: var(--gradient);
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; color: white; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Contact Page - Floating Box */
.contact-wrapper {
    margin-top: -80px; /* Header'ın üzerine biner */
    position: relative; z-index: 5;
}
.contact-info-card {
    background: var(--secondary); color: white;
    border-radius: 20px; padding: 3rem; height: 100%;
}

/* Blog List Style */
.blog-card {
    border: none; background: transparent;
}
.blog-img {
    border-radius: 20px; overflow: hidden; height: 240px; margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-date {
    font-size: 0.85rem; font-weight: 600; color: var(--primary);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; display: block;
}

/* Blog Detail Typography */
.blog-content p { margin-bottom: 1.5rem; }
.blog-content h3, .blog-content h4 {
    color: var(--secondary); font-weight: 800; margin-top: 2.5rem; margin-bottom: 1rem;
}
.tracking-wider { letter-spacing: 2px; text-transform: uppercase; }

/* Accordion Active State */
.accordion-button:not(.collapsed) {
    background-color: rgba(0, 168, 255, 0.1);
    color: var(--primary);
}
.accordion-button:focus { box-shadow: none; border-color: rgba(0,0,0,0.1); }

/* Logo Geçiş Efekti */
.transition-logo {
    transition: opacity 0.3s ease;
}

/* Navbar Scrolled durumunda link renklerini sabitlemek için (varsa) */
.navbar.scrolled .nav-link {
    color: var(--secondary) !important; /* Koyu renk */
}
.navbar.scrolled .nav-link:hover {
    color: var(--primary) !important;
}
.navbar.scrolled .navbar-toggler {
    border-color: rgba(0,0,0,0.1);
}
.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Tıklanabilir Link Efektleri */
.transition-colors { transition: color 0.3s ease; }
.transition-transform { transition: transform 0.3s ease; }

/* Contact Page Hover */
.group-hover:hover .icon-square {
    transform: scale(1.1);
    background-color: white !important;
    color: var(--primary) !important;
}
.group-hover:hover .hover-text-primary {
    color: var(--primary) !important;
}

/* Footer Hover */
.group-hover:hover .hover-text-white {
    color: white !important;
}

/* Review Card Hover Effect */
.review-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #f8fafc; /* Hafif gri */
}
.review-card:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* Mobilde Slider Düzenlemesi */
@media (max-width: 991px) {
    /* Mobilde 2. ve 3. kartı gizle, sadece 1 tane göster */
    /* Bu sayede slider çok uzamaz, tek tek geçer gibi görünür */
    .carousel-item .col-lg-4:nth-child(2),
    .carousel-item .col-lg-4:nth-child(3) {
        display: none;
    }
    
    /* Kart genişliğini mobilde tam yap */
    .carousel-item .col-lg-4 {
        width: 100%;
        flex: 0 0 100%;
    }
}

.custom-nav-btn {
    width: 35px !important;
    height: 35px !important;
    background-color: var(--primary) !important; /* Mavi Arkaplan */
    border-radius: 50% !important;
    opacity: 1 !important; /* Solukluğu kaldır */
    top: 50% !important;   /* Dikeyde tam orta */
    transform: translateY(-50%) !important; /* Tam ortalamayı matematiksel olarak sağlar */
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.4);
    border: 2px solid white;
    transition: all 0.3s ease;
    
    /* İçindeki ikonu ortala */
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* Mobilde ve Masaüstünde Kenar Boşlukları */
.carousel-control-prev.custom-nav-btn {
    left: -20px; /* Soldan hafif dışarı taşır (Şık görünüm) */
}
.carousel-control-next.custom-nav-btn {
    right: -20px; /* Sağdan hafif dışarı taşır */
}

/* Hover Efekti */
.custom-nav-btn:hover {
    background-color: var(--secondary) !important; /* Koyu Mavi */
    transform: translateY(-50%) scale(1.1) !important; /* Hafif büyüme */
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* İkon Rengi ve Boyutu */
.custom-nav-btn i {
    color: white;
    font-size: 18px;
}

/* Mobilde butonları içeri al (Ekrandan taşmasın) */
@media (max-width: 991px) {
    .carousel-control-prev.custom-nav-btn { left: 0; }
    .carousel-control-next.custom-nav-btn { right: 0; }
}


/* Custom Header Görseli */

/* Varsayılan (Masaüstü) */
.custom-header-bg {
    background-image: url('img/header.webp'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Mobil (768px ve altı) */
@media (max-width: 768px) {
    .custom-header-bg {
        background-image: url('img/header-mobile.webp');
        background-position: top center;
    }
}