/* Genel Renk Tanımları */
:root {
    --primary-color: #3a7d44; /* Zeberced taşı yeşil-turkuaz */
    --secondary-color: #285430; /* Daha koyu ton */
    --light-color: #f9f9f9; /* Açık arka plan rengi */
    --dark-color: #1c1c1c; /* Koyu arka plan rengi */
    --text-color: #555; /* Ana metin rengi */
    --muted-text-color: #777; /* Daha açık metin rengi */
    --white: #ffffff;
}


/* Top Bar Genel */
#top-bar {
    background-color: #3a7d44; /* Zeberced taşı rengi */
    font-size: 14px;
    line-height: 1.6;
}

/* Telefon ve Mail */
.contact-info {
    font-size: 14px;
    display: flex;
    gap: 15px; /* İki bilgi arasındaki boşluk */
    color: #ffffff;
}

.contact-info i {
    color: #ffffff;
}

/* Dil Seçici */
.language-switcher .language-icon {
    width: 25px; /* Bayrak genişliği */
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.language-switcher .language-icon:hover {
    transform: scale(1.1); /* Hover efekti */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Mobil Düzen */
@media (max-width: 768px) {
    #top-bar {
        text-align: left; /* Mobilde ortala */
    }

    .contact-info {
        justify-content:left; /* Telefon ve maili ortala */
        gap: 5px; /* Mobilde daha küçük boşluk */
    }

    .language-switcher {
        margin-top: 5px; /* Bayrağı altına yerleştir */
    }
}

/* Navbar Genel */
#navbar {
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #ddd;
    transition: top 0.3s;
}

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
}

.sticky + * {
    margin-top: 70px; /* Navbar yüksekliği */
}

/* Navbar Toggler (Mobil Menü Butonu) */
#navbar .navbar-toggler {
    border: none;
    background-color: #3a7d44;
    color: #fff;
    font-size: 1.2rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#navbar .navbar-toggler:hover {
    background-color: #02a42a78;
}

/* Navbar Bağlantıları */
#navbar .navbar-nav .nav-link {
    color: #333;
    border-radius: 5px;
    text-align: center; /* Mobil uyumluluk */
    padding: 10px 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#navbar .navbar-nav .nav-link:hover,
#navbar .navbar-nav .nav-link:focus {
    background-color: #285430;
    color: #fff;
}

/* Dropdown Menü */
#navbar .dropdown-menu {
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
}

#navbar .dropdown-menu .dropdown-item {
    font-size: 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#navbar .dropdown-menu .dropdown-item:hover {
    background-color: #285430;
    color: #fff;
}

/* Navbar Brand */
.navbar-brand img {
    height: 60px;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.1);
}

/* Mobil Menü Animasyonu */
.collapse:not(.show) {
    transition: height 0.3s ease-out;
}

.collapse.show {
    transition: height 0.3s ease-in;
}

/* Slider Genel Ayarları */
.carousel-item img {
    height: auto;
    max-height: 600px; /* Geniş ekran sınırı */
    object-fit: cover;
}

@media (max-width: 768px) {
    .carousel-item img {
        max-height: 400px; /* Mobil sınırı */
        width: 100%; /* Tam genişlik */
        height: auto; /* Görsel oranını koru */
    }
}
@media (max-width: 768px) {
    .navbar-brand {
        display: flex; /* Flexbox düzeni */
        align-items: center; /* Dikeyde ortala */
    }

    .navbar-brand img {
        height: 60px; /* Logoyu küçült */
        width: 60px;
    }

    .navbar-brand h2 {
        font-size: 18px; /* Başlık yazı boyutunu küçült */
        margin: 0; /* Fazla boşlukları kaldır */
        line-height: 3; /* Metni dikeyde ortala */
    }

    .navbar-toggler {
        margin-left: auto; /* Toggle butonunu sağa hizala */
        display: flex;
        align-items: center; /* Dikeyde ortala */
    }

    .container {
       /*  display: flex; Flexbox düzeni */
        align-items: center; /* Dikeyde ortala */
        justify-content: space-between; /* Elemanları yatayda dağıt */
    }
}


/* Slider Resimleri */
.carousel-item img {
    width: 100%;
    height: auto; /* Varsayılan */
    object-fit: cover;
}

@media (max-width: 768px) {
    .carousel-item img {
        height: auto; /* Görsel oranı korunsun */
        aspect-ratio: 9/16; /* 9:16 oranı */
    }
}

/* Slider Caption (Başlık ve Metinler) */
.carousel-caption {
    position: absolute;
    bottom: 20%; /* Metinlerin yerini ayarla */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6); /* Yarı saydam arka plan */
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 100%; /* Metin genişliğini sınırlı tut */
}

.carousel-caption h5 {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.carousel-caption p {
    font-size: 16px;
    color: #f1f1f1;
}

/* Mobil İçin Slider Caption */
@media (max-width: 768px) {
    .carousel-caption {
        bottom: 10%; /* Mobilde metin ekranın daha altına yaklaşsın */
        padding: 10px 15px;
        max-width: 100%; /* Mobilde tam genişlik kullan */
    }

    .carousel-caption h5 {
        font-size: 18px; /* Başlık boyutu mobil için küçültüldü */
    }

    .carousel-caption p {
        font-size: 14px; /* Metin boyutu mobil için küçültüldü */
    }
}


/* Çalışma Alanları */
.work-area-icon {
    width: 200px;
    height: 200px;
    background-color: #3a7d44;
    color: white;
    font-size: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    transition: transform 0.3s, box-shadow 0.3s;
}

.work-area-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-inner .row {
    margin: 0 auto;
    justify-content: center;
}

p {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}


@media (max-width: 768px) {
/* Çalışma Alanları */
.work-area-icon {
    width: 100px;
    height: 100px;
    background-color: #3a7d44;
    color: white;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    transition: transform 0.3s, box-shadow 0.3s;
}

.work-area-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-inner .row {
    margin: 0 auto;
    justify-content: center;
}

p {
    font-size: 12px;
    font-weight: bold;
    color: #333;
}


}


/* Biten Projeler */
/* Kartların Genel Stili */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Kart yüksekliğini tam yap */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    height: 180px;
    object-fit: cover;
}

.card-body {
    flex: 1; /* Kartın kalan alanını doldur */
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* İçeriği yukarı ve aşağı yay */
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

.card-text {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

.btn-primary {
    background-color: #007bff;
    border: none;
    transition: background-color 0.3s ease;
    align-self: flex-start; /* Butonu sola hizala */
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Mobil Görünüm Ayarları */
@media (max-width: 768px) {
    .card {
        margin-bottom: 20px; /* Kartlar arasında boşluk */
    }

    .card-img-top {
        height: 50px; /* Mobil için daha küçük resim boyutu */
    }

    .card-body {
        padding: 10px; /* Mobilde daha kompakt padding */
    }

    .card-title {
        font-size: 16px; /* Başlık boyutunu küçült */
    }

    .card-text {
        font-size: 13px; /* Metin boyutunu küçült */
        margin-bottom: 10px; /* Metin altındaki boşluk */
    }

    .btn-primary {
        padding: 8px 12px; /* Buton boyutunu küçült */
        font-size: 14px;
    }
}


/* Hakkımızda Bölümü */
img.img-fluid {
    max-height: 400px;
    object-fit: cover;
}

h2 {
    font-size: 28px;
    font-weight: bold;
    color: #285430;
    margin-bottom: 15px;
}

p {
    line-height: 1.6;
}

.btn-primary {
    background-color: #285430;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Genel Ayarlar */
.about-section {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 50px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    color: #285430;
    margin-bottom: 20px;
}

.lead {
    font-size: 18px;
    line-height: 1.8;
    color: #fff4f4;
}

.text-muted {
    font-size: 16px;
    color: #ffffff;
}

/* Görsel Alanı */
.about-image-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.about-image-wrapper:hover img {
    transform: scale(1.05);
}

.about-image-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 5px;
}

.about-image-overlay h3 {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin: 0;
}

/* Buton */
.btn-primary {
    background-color: #285430;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Hizmetler Bölümü */
.services-section .service-item {
    position: relative;
    display: block;
    overflow: hidden;
}

.services-section .service-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.services-section .service-item:hover img {
    transform: scale(1.1); /* Hover zoom efekti */
}

.services-section .service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Koyu şeffaf katman */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.services-section .service-item:hover .service-overlay {
    opacity: 1; /* Hover olunca görünür */
}

.services-section .service-overlay h3 {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    text-align: center;
}
/* Footer Genel */
.footer {
    background-color: #285430;
    color: #d3d3d3;
    font-size: 14px;
    line-height: 1.6;
}

.footer h5 {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
}

.footer a {
    color: #d3d3d3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #285430;
}

.footer ul {
    padding: 0;
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer .social-media a {
    font-size: 18px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer .social-media a:hover {
    transform: scale(1.2);
    color: #285430;
}

.footer p {
    margin: 0;
    font-size: 13px;
    color: #aaa;
}

.position-relative:hover .overlay {
    opacity: 1;
}

.overlay {
    opacity: 0;
    background: rgba(1, 86, 18, 0.5);
    transition: opacity 0.3s ease-in-out;
}
.position-relative:hover .overlay {
    opacity: 1;
}
