html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-family: Mulish,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.container{
    max-width: 800px;
}

.header-container {
    width: 100%;
    overflow: hidden;
}

.main-img {
    width: 100%;
    height: 60vh; /* Mobilde ideal bir yükseklik tutar */
    object-fit: cover; /* Yanlarda boşluk bırakmadan alanı tamamen kaplar */
    object-position: center; /* Görselin odağını merkezde tutar */
}

/* Masaüstü ve geniş ekranlarda görselin yüksekliğini artırmak için */
@media (min-width: 768px) {
    .main-img {
        height: 85vh; /* Tablet ve üstü ekranlarda daha geniş alan kaplar */
    }
}

@media (min-width: 1200px) {
    .main-img {
        height: 100vh; /* Büyük ekranlarda tam ekran boyuna ulaşır */
    }
}

.service-card {
    transition: 0.3s ease;
    background: #fff;

    a {
        text-decoration: none;
        color: #000;
    }
}

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    }

.service-row {
    padding: 4rem 0;
    border-bottom: 1px solid #dee2e6;
}

.service-icon {
    font-size: 2rem;
    color: #0d6efd;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.timeline-service {
    position: relative;
    margin: 50px 0;
}

    .timeline-service::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 0;
        width: 2px;
        height: 100%;
        background: #dee2e6;
    }

.service-item {
    width: 45%;
    padding: 20px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    margin-bottom: 30px;
}

    .service-item.left {
        float: left;
    }

    .service-item.right {
        float: right;
    }

.page-header {
    font-size: 40px;
    margin-bottom: 1.5rem;
    color: #243e8f;
}

.l-contact-header {
    color: #535658;
}

.l-contact {
    list-style: none;
    margin: 0;
    padding: 5px 0;
    margin-bottom: 2rem;

    li {
        margin-bottom: 20px;
        color: #666;
        font-size: 1rem;
        position: relative;
        padding-left: 2rem;

        i {
            display: block;
            padding: 0;
            width: 1.25rem;
            text-align: center;
            line-height: 1.5rem;
            font-size: 1.25rem;
            color: #333;
            position: absolute;
            left: 0;
            top: .125rem;
            z-index: 1;
        }

        a {
            color: #666;
            text-decoration: none;

            &:hover {
                color: #000;
                text-decoration: underline;
            }
        }
    }
}


.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* max 3 satır */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .project-card .p-3 {
        flex-grow: 1; /* açıklama alanı eşit yüksekliğe zorlanır */
    }

    .project-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    }

/* Resim wrapper */
.project-img-wrapper {
    position: relative;
    overflow: hidden;
}

/* Resim zoom efekti */
.project-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: 0.4s ease;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

/* Overlay text */
.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s ease;
    text-align: center;
    font-weight: 600;
}

.project-card:hover .project-overlay {
    opacity: 1;
}


.navbar-nav .nav-link {
    color: #fff;
    font-weight: 600;
    transition: all 0.5s ease; 
    padding-left: 15px !important;
    padding-right: 15px !important;
}

    .navbar-nav .nav-link:hover {
        color: #df291b;
        background-color: transparent;
    }

    .navbar-nav .nav-link:focus,
    .navbar-nav .nav-link.active {
        color: #df291b;
    }

/* --- SADECE INDEX (TRANSPARAN) İÇİN --- */
#mainNavbar.transition-nav {
    background-color: transparent !important; /* Başlangıçta tamamen şeffaf */
    transition: all 0.4s ease-in-out;
    border-bottom: none;
    padding-top: 15px;
    padding-bottom: 15px;
}

#mainNavbar.scrolled {
    /*background-color: rgba(36, 62, 143, 0.7) !important;*/ /* İstediğin hafif transparan lacivert */
    background-color: rgb(207 214 235 / 70%) !important; /* İstediğin hafif transparan lacivert */
    backdrop-filter: blur(8px); /* Cam efekti için arkadaki resmi hafif bulanıklaştırır */
    padding-top: 10px;
    padding-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* --- DİĞER SAYFALAR (STATİK BEYAZ) İÇİN --- */
/*#staticNavbar {
    background-color: white !important;
}
*/
    #staticNavbar.transition-nav {
        background-color: white !important;
        transition: all 0.4s ease-in-out;
        border-bottom: none;
        padding-top: 15px;
        padding-bottom: 15px;
    }

#staticNavbar.scrolled {
    /*background-color: rgba(36, 62, 143, 0.7) !important;*/ /* İstediğin hafif transparan lacivert */
    background-color: rgb(207 214 235 / 70%) !important; /* İstediğin hafif transparan lacivert */
    /*backdrop-filter: blur(8px);*/ /* Cam efekti için arkadaki resmi hafif bulanıklaştırır */
    padding-top: 10px;
    padding-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

    #staticNavbar .nav-link {
        color: #243e8f !important;  
    }

        #staticNavbar .nav-link:hover {
            color: #df291b !important;  
        }


@media (max-width: 575.98px) {
    .navbar-collapse {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        /* Soft ve şık görünüm için modern cam (glassmorphism) efekti */
        background-color: rgb(169 181 218 / 85%); /* Soft koyu mavi/lacivert */
        backdrop-filter: blur(10px); /* Arkadaki içeriği hafif bulanıklaştırır */
        -webkit-backdrop-filter: blur(10px); /* Safari desteği için */

        padding: 15px;
        border-radius: 12px;
        margin-top: 10px;
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2); /* Soft gölge */
    }

    .navbar-nav {
        align-items: center !important;
    }

        .navbar-nav .nav-link {
            padding-top: 10px !important;
            padding-bottom: 10px !important;
            font-size: 1.1rem;
        }
}

.container-margin {
    margin-top: 10rem !important;
}


/* Kayan Şerit Konteyneri */
.logo-slider {
    overflow: hidden;
    padding: 30px 0;
    background: #f8f9fa;
    white-space: nowrap;
    position: relative;
}

    /* Sol ve sağ kenarlara yumuşak solma (fade) efekti */
    .logo-slider::before,
    .logo-slider::after {
        position: absolute;
        top: 0;
        width: 100px;
        height: 100%;
        content: "";
        z-index: 2;
        pointer-events: none;
    }

    .logo-slider::before {
        left: 0;
        background: linear-gradient(to right, #f8f9fa 0%, transparent 100%);
    }

    .logo-slider::after {
        right: 0;
        background: linear-gradient(to left, #f8f9fa 0%, transparent 100%);
    }

/* Logoları Taşıyan İç Blok */
.logo-slide-track {
    display: inline-block;
    animation: 20s slide infinite linear;
}

/* Fare ile üzerine gelindiğinde kaymayı durdurur */
.logo-slider:hover .logo-slide-track {
    animation-play-state: paused;
}

/* Tekil Logo Görselleri */
.logo-slide-track img {
    height: 50px; /* Logoların yüksekliği */
    margin: 0 40px; /* Logolar arası yatay mesafe */
    vertical-align: middle;
    /*filter: grayscale(100%);*/ /* Logoları gri tonlamalı yapar (opsiyonel) */
    opacity: 0.7;
    transition: all 0.3s ease;
}

    /* Fare logosunun üzerine geldiğinde orijinal renge döner */
    .logo-slide-track img:hover {
        filter: grayscale(0%);
        opacity: 1;
    }

/* Sonsuz Kayma Animasyonu */
@keyframes slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


/* Filtre Dış Kapsayıcı */
.filter-wrapper {
    position: relative;
    width: 100%;
}

/* Mobilde yatay kaydırma imkanı sağlayan konteyner */
.filter-scroll-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 4px 16px 4px;
    scrollbar-width: thin; /* Firefox için ince scrollbar */
    -webkit-overflow-scrolling: touch;
}

/* Chrome, Edge ve Safari için custom scrollbar */
.filter-scroll-container::-webkit-scrollbar {
    height: 5px;
}

.filter-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.filter-scroll-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* Masaüstünde sığarsa alt satıra geçsin */
@media (min-width: 992px) {
    .filter-scroll-container {
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

/* Şık Buton Tasarımı */
.filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 50rem;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.filter-pill i {
    font-size: 1rem;
    color: #64748b;
    transition: color 0.25s ease;
}

/* Hover Efekti */
.filter-pill:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.filter-pill:hover i {
    color: #0d6efd; /* Bootstrap primary rengi */
}

/* Aktif Filtre Durumu */
.filter-pill.active {
    background-color: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.35);
}

.filter-pill.active i {
    color: #ffffff;
}