/* -------------------------- Genel Sayfa Ayarları ------------------------------ */

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #e6ebfa;
    box-sizing: border-box;
}

/* ------------------------------- Navbar --------------------------------------- */

nav {
    position: absolute;
    top: 40px;
    right: 30px;
    width: 45%;
    background: transparent; /* Transparan arka plan */
    backdrop-filter: blur(10px); /* Blur efekti */
    padding: 15px;
    display: flex;
    justify-content: center;
    border-radius: 25px;
    z-index: 100;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* Hafif gölge */
}

/* Menü listesi */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 20px;
}

nav ul li {
    display: inline;
}

/* Linkler */
nav ul li a {
    color: black;
    text-shadow: #333;
    font-size: 25px;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 20px;
    position: relative;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover Efekti: Yazı büyüme ve alt çizgi animasyonu */
nav ul li a:hover {
    transform: scale(1.1); /* Yazıyı büyüt */
    color: #0D98BA; /* Hafif renk değişimi */
}

/* Alt çizgi animasyonu */
nav ul li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0%; /* Başlangıçta görünmez */
    height: 3px;
    background: #0daaba; /* Çizgi rengi */
    transition: width 0.3s ease-out, left 0.3s ease-out;
}

/* Hover olunca çizgi ortadan yanlara genişlesin */
nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

/* Aktif link */
nav ul li a.active::after {
    width: 100%;
    left: 0;
}

/* Aktif menü stili */
nav ul.menu li a.aktif {
    color: #0daaba;
    font-weight: bold;
  }

.menu-toggle {
    display: none;
}

@media (max-width: 768px) {

    .menu-toggle {
        display: block;
        position: absolute;
        top: 5px;
        right: 10px;
        border: none;
        background: transparent;
        font-size: 30px;
        z-index: 101;
        color: #000;
        cursor: pointer;
    }

    nav {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 50%;
        padding: 0px;
    }

    nav ul.menu {
        flex-direction: column;
        display: none; /* Başlangıçta gizli */
        background: rgba(0, 0, 0, 0.8);
        padding: 25px;
        align-items: center;
        border-radius: 10px;
        position: absolute;
        top: 50px;
        right: 10px;
        width: 80%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    nav ul.menu.show {
        display: flex;
    }

    nav ul li a {
        font-size: 18px;
        padding: 10px;
        color: white;
    }

    /* Aktif menü stili */
    nav ul.menu li a.aktif {
        color: #0daaba;
        font-weight: bold;
      }
}

/* ------------------------------- Header --------------------------------------- */

header{
    max-width: 1600px;
    margin: 5px;
}

.container-header{
    background: url(resim/background33.jpg) no-repeat;
    background-size: cover;
    background-position: right top;
    border-radius: 10px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: left;
    padding: 50px;
}

.container-header h1{
    font-size: 50px;
    margin-bottom: 10px;
}

.name{
    font-size: 50px;
    text-decoration: none;
    box-shadow: 0px 3px 0px gray; /* Altında kırmızı bir gölge oluşturur */
    padding-bottom: 2px;
    width: 120%;
}

.work{
    font-size: 30px;
}

@media (max-width: 768px) {
    
    .container-header {
        background: url(resim/background33.jpg) no-repeat;
        background-size: cover;
        background-position: right top;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        padding: 10px;
        height: 200px;
        text-align: left;
        
    }

    .container-header h1,
    .name {
        font-size: 18px;
        width: 50%;
        margin-top: 40px;
    }

    .work {
        font-size: 12px;
    }
}

/* ------------------------------- Eğitim (sekme stili) --------------------------------------- */

.container-sekme {
    background: linear-gradient(135deg, #fff, #FFB6C1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 98%;
    padding: 20px 0 20px 0;
    border-radius: 8px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.1);
}

.dates {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: none;
    padding-bottom: 2px;
}

.date-btn {
    background-color: transparent;
    backdrop-filter: blur(10px); /* Blur efekti */
    border: none;
    border-bottom: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 30px;
    position: relative;
    transition: 0.3s;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.date-btn.active {
    background-color: transparent;
    /*background: linear-gradient(135deg, #fff, #FFB6C1); /* İçerik kutusundan biraz açık renk */
    border: 2px solid #ccc; /* Kenar çizgileri oluştur */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Hafif gölge */
    border-bottom: none; /* Alt kenar çizgisini kaldır */
    z-index: 2; /* Butonun üstte kalmasını sağlar */
    position: relative;
    border-radius: 15px 15px 0 0; /* Üst kenarları yuvarlat */
    overflow: hidden; /* Taşmaları önlemek için */
    transform: translateX(-7%);
}

/* İçerik kutusu */
.content-box {
    display: none; /* İçeriği başlangıçta gizle */
    position: relative; /* İçindeki absolute öğeler için referans noktası */
    /*background: linear-gradient(135deg, #fff, #FFB6C1); /* Arka plan rengi */
    padding: 60px;
    min-height: 500px;
    width: 90%;
    text-align: left;
    border-radius: 12px; /* Alt köşeleri yuvarlat */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: -3px; /* Buton ile arasındaki boşluğu kapat */
    border: 2px solid #ccc; /* Kenar çizgileri oluştur */
    z-index: 1;
}

.img-content1 {
    position: absolute;
    top: center;
    right: 50px;
    width: 300px;
    height: 400px;
    object-fit: none;
    background-color: transparent;
}

.img-content2 {
    position: absolute;
    top: 115px;
    right: 50px;
    width: 350px;
    height: 300px;
    object-fit: fill;
    background-color: transparent;
}

.img-content3 {
    position: absolute;
    top: 115px;
    right: 50px;
    width: 350px;
    height: 300px;
    object-fit: fill;
    background-color: transparent;
}

.img-content4 {
    position: absolute;
    top: 115px;
    right: 50px;
    width: 350px;
    height: 300px;
    object-fit: fill;
    background-color: transparent;
}

.content-box img:hover {
    transform: scale(1.15); /* Hover'da hafif büyütme efekti */
    cursor: pointer;
}

/* Görünür hale gelmesi için aktif sınıf */
.content-box.active {
    display: block;
}
.content-box h2 {
    margin-bottom: 10px;
    font-size: 30px;
}
.content-box h4 {
    width: 55%;
    margin-bottom: 10px;
    text-decoration: none;
    font-size: 15px;
    color: #777;
}
.content-box p {
    width: 55%;
    margin-top: 20px;
    font-size: 22px;
    line-height: 1.6;
    text-align: justify;
}


.content.active {
    display: block;
}

/* İçeriği başlangıçta gizli tut */
.content {
    display: none;
}

/* Butonun üzerine gelindiğinde ilgili içeriği göster */
.date-btn:hover ~ .content-box .content {
    display: none; /* Önce tüm içerikleri gizle */
}

.date-btn:hover[data-content="content1"] ~ .content-box #content1,
.date-btn:hover[data-content="content2"] ~ .content-box #content2,
.date-btn:hover[data-content="content3"] ~ .content-box #content3,
.date-btn:hover[data-content="content4"] ~ .content-box #content4{
    display: block; /* Sadece ilgili içeriği göster */
}

.egitim-mobile {
    display: none;
}

@media (max-width: 768px) {

    .container-sekme {
        display: none; /* Sekmeli görünüm mobilde gizlenir */
    }

    .egitim-mobile {
        display: block;
        padding: 5px;
        width: 100%;
        margin: 0;
    }

    .egitim-card {
        background: linear-gradient(135deg, #fff, #FFB6C1);
        border: 1px solid #ccc;
        border-radius: 10px;
        padding: 20px;
        margin-bottom: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .egitim-card img {
        width: 100%;
        height: auto;
        margin-top: 10px;
        border-radius: 8px;
    }

    .egitim-card h2 {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .egitim-card h4 {
        font-size: 14px;
        color: #888;
        margin-bottom: 10px;
    }

    .egitim-card p {
        font-size: 16px;
        text-align: justify;
    }
}

/* ------------------------------- Sertifika --------------------------------------- */

.container-sertifika {
    background: linear-gradient(135deg, #fff, #FFB6C1);
    text-align: center;
    margin: 50px auto;
    max-width: 98%;
    padding: 20px 0 20px 0;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);

}

.container-sertifika h2 {
    margin-top: 20px;
    margin-bottom: 40px;
    font-size: 30px;
}

.sertifika {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Yatayda 3 sütun */
    grid-template-rows: repeat(2, auto); /* Dikeyde 2 sıra */
    gap: 15px; /* Resimler arası boşluk */
    justify-content: center;
    margin-top: 20px;
    margin-left: 10px;
    margin-right: 10px;
}

.sertifika img {
    width: 100%; /* Resimler hücreye tam otursun */
    height: auto;
    border-radius: 10px; /* Köşeleri yuvarlat */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Hafif gölge */
    transition: transform 0.3s ease;
}

.sertifika img:hover {
    transform: scale(1.05); /* Hover'da hafif büyütme efekti */
    cursor: pointer;
}

/* Resim Çerçevesi */

.framed {
    border: 20px solid #8B5A2B; /* Ahşap çerçeve rengi */
    padding: 10px; /* İç boşluk */
    background: #D2B48C; /* Çerçeve iç dolgusu */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5); /* Derinlik efekti */
    border-radius: 5px;
}

@media (max-width: 768px) {

    .sertifika {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ------------------------------- Galeri --------------------------------------- */

.container-galeri {
    background: linear-gradient(135deg, #fff, #FFB6C1);
    text-align: center;
    margin: 50px auto;
    max-width: 98%;
    padding: 20px 0 20px 0;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;  /* Taşmaları önlemek için */
    position: relative;
}

.container-galeri h2 {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 30px;
}

.galeri {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

/* Resimler */

.galeri img {
    width: 350px; /* Sabit genişlik */
    height: 400px; /* Sabit yükseklik */
    object-fit: fill; /* Resmi kırpma */
    border-radius: 10px;
    margin: 20px 0 20px 0;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.galeri img:hover {
    transform: scale(1.15); /* Hover'da hafif büyütme efekti */
    cursor: pointer;
}

/* Kaydırma alanı */
.galeri-wrapper {
    display: flex;
    width: 200%; /* Resimleri iki kez tekrarlayarak sonsuz kaydırma yap */
    animation: slide 30s linear infinite; /* Animasyonu çalıştır */
} 

/* Kaydırma animasyonu */
@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Sol taraftan sağa kaydır */
    }
}

@media (max-width: 768px) {

    .galeri img {
        width: 50vw;
        height: auto;
        transition: transform 0.3s ease;
        margin: 10px 0 10px 0;
    }

    /* Otomatik kaydırma kaldırılıyor */
    .galeri-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        display: flex;
        scroll-behavior: smooth;
    }

    .galeri-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .galeri {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ------------------------------- Uzmanlık Alanı (kart tasarımı) --------------------------------------- */

.container-uzmanlik {
    background: linear-gradient(135deg, #fff, #FFB6C1);
    text-align: center;
    margin: 50px auto;
    max-width: 1200px;
    padding: 20px 0;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.container-uzmanlik h2 {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 30px;
}

.uzmanlik {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Her satıra 3'e kadar kart */
    gap: 20px;
    padding: 0 20px;
    justify-content: center;
}

/* Kart Tasarımı */
.uzmanlik-kart {
    background-color: #fbe7f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.uzmanlik-kart:hover {
    transform: translateY(-8px);
}

.kart-resim {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.kart-baslik {
    position: absolute;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.85);
    width: 100%;
    padding: 12px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    color: #6b0d57;
}

.kart-icerik {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kart-icerik h2 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #6b0d57;
}

.kart-icerik p {
    font-size: 0.95rem;
    margin-bottom: 16px;
    color: #333;
}

/* Buton */
.btn-detay {
    align-self: center;
    background: none;
    border: none;
    color: #6b0d57;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    padding-left: 24px;
    font-size: 1.2rem;
}

.btn-detay .circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #6b0d57;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.btn-detay .arrow {
    position: absolute;
    top: 50%;
    left: 5px;
    width: 5px;
    height: 5px;
    border-right: 2px solid #6b0d57;
    border-bottom: 2px solid #6b0d57;
    transform: translateY(-50%) rotate(-45deg);
}

.button-detay-text {
    padding-left: 6px;
}

/* Yön tuşları (isteğe bağlı) */
.btn-uzmanlik {
    position: relative;
    background: none;
    border: none;
    color: #6b0d57;
    font-weight: 600;
    cursor: pointer;
    padding-left: 24px;
    font-size: 1.2rem;
    margin-right: 20px;
}

.btn-uzmanlik .arrow {
    position: absolute;
    top: 50%;
    right: -15px;
    width: 10px;
    height: 10px;
    border-right: 2px solid #6b0d57;
    border-bottom: 2px solid #6b0d57;
    transform: translateY(-70%) rotate(45deg);
}

.btn-uzmanlik .arrow1 {
    position: absolute;
    top: 50%;
    right: 65px;
    width: 10px;
    height: 10px;
    border-right: 2px solid #6b0d57;
    border-bottom: 2px solid #6b0d57;
    transform: translateY(-70%) rotate(45deg);
}

/* 🔧 Mobil uyumluluk */
@media (max-width: 768px) {
    .container-uzmanlik {
        padding: 10px 0px;
    }

    .uzmanlik {
        grid-template-columns: 1fr;
    }

    .kart-icerik h2 {
        font-size: 1rem;
    }

    .kart-icerik p {
        font-size: 0.9rem;
    }
}

/* ----------------------------- Footer alanı ------------------------------- */

.background-footer {
    background-color: #937dd3;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 2 sütun: sol logo, sağ ikonlar */
    align-items: center;
    margin-top: 20px;
    padding: 10px;
    width: auto;
}

.footer-logo {  
    display: flex;
    justify-content: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.footer-nav ul li {
    display: inline;
}

.footer-nav ul li a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.footer-nav ul li a:hover {
    color: #c13584; /* Instagram rengi gibi */
}

.social-icons {
    padding-right: 50px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-icons a {
    color: #333;
    font-size: 24px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #c13584; /* Instagram rengi gibi */
}

footer p {
    text-align: center;
    font-size: 12px;
    color: #333;
    margin: 20px 0;
}

@media (max-width: 768px) {
    
    .background-footer {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px 10px;
        row-gap: 15px;
    }

    .footer-nav {
        justify-content: center;
        margin-bottom: 10px;
    }

    .social-icons {
        justify-content: center;
        padding-right: 0;
    }
}

/* --------------------------------------- Modal ---------------------------------- */

.modal {
    display: none; /* Başlangıçta gizli */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Arka planı koyulaştır */
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}
