/*
Colors
Primary: #ef8f19
Secondary: #fefefe;
Text: #2c2f34
Background: #fafafa

*/

*{
    margin: 0;
    padding: 0;
    font-family: 'Exo', sans-serif;
    box-sizing: border-box;
}

body {
    position: relative;
    background: #e89e66;
    background: radial-gradient(circle, rgba(232, 158, 102, 0.801) 0%, rgba(204, 78, 0, 0.863) 79%, rgba(80, 40, 22, 0.87) 98%);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #fefefe;
    margin-top: 1rem; 
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
    gap: 20px;
}

.card {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
}
img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    body {
        margin: 20px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .dil {
        position: static !important;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 12px auto 0 auto;
        background: rgba(44,47,52,0.92);
        box-shadow: 0 2px 12px #0002;
        border-radius: 12px;
        width: fit-content;
        z-index: 1;
    }
}
.navbar {
    width: 95% !important;
    color: #fefefe !important;
    margin: auto;
    padding: 10px 20px;
    background: rgba(39, 40, 41, 0.63);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}
.navbar:hover{
    box-shadow: 0 8px 40px rgba(224, 76, 7, 0.671);
}
.navbar ul .nav-link{
    color: #fefefe !important;
    transform: translateY(0rem);
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}
.navbar ul .nav-link:hover{
    color: #fefefe !important;
    transform: translateY(-0.2rem);  
    border-radius: 8px;

    
}
.navbar ion-icon{
    font-size: 1.4rem;
}
.active{
    color: #ef8f19 !important;
    background: #e2881a;
    border-radius: 8px;
}
.sticky-top{
    top: 0.5rem !important;
}

.dil{

    font-weight: bold;
    z-index: 1050;
    border-radius: 12px;


    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.6rem;
    padding: 0;
    margin:0;
}
.dil img{
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    box-shadow: 0 0 6px #0003;
}
.dil a{
    color: #ebebeb;
    text-decoration: none;
    margin: 0 2px;
    padding: 2px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}
.dil a.lang-active {

    color: #fff !important;
    border-radius: 200px;
    width: fit-content;
    padding: 0.4rem;
    border: 1px solid #ef8f19;
    background: #ef8f19;
    font-weight: bold;
    box-shadow: 0 0 6px #fff2;
}
.nav-item{
    margin: 0 0.2rem;
    border: 1px solid #fefefe3b;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}   
.nav-item:hover{
    background-color: transparent !important;
}
.navbar-nav{
    align-items: center;
    gap: 0.2rem;
}
.nav-link{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 1rem;
    gap: 0.3rem;

}
.navbar-toggler{
    width: fit-content !important;
}
.navbar-collapse{
    width: fit-content !important;
    flex-grow: 0 !important;
}

input[type="search"]{
    border-radius: 8px 0 0 8px !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 1rem !important;
    padding: 0.5rem 1rem !important;
    background: #ffffffb6 !important;
    color: #2c2f34 !important;
    transition: all 0.4s ease-in-out !important;
}
input[type="search"]:focus{
    box-shadow: 0 0 5px #ef8f19 !important;
    background: #fff !important;
    color: #2c2f34 !important;
}
input[type="search"]::placeholder{
    color: #666 !important;
}
input[type="search"]:hover{
    background: #fff !important;
    color: #2c2f34 !important;
}

.content{
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 2rem;
    color: #2c2f34 !important;
    width: 80%;
    /* From https://css.glass */
    background:#fff;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(240, 244, 249, 0.3);

}  
.content-main{
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 2rem;
    width: 80%;
    border-radius: 16px;

}  
.content h1{
    font-weight: bold;
    color: #fefefe;
    margin-bottom: 1rem;
}
/* whatsapp popup */
.whatsapp-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
        width: 60px;
    height: 60px;
    margin: 0;
    padding: 0;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}
.whatsapp-popup ion-icon {
    color: #fff;
    font-size: 32px;
    padding: 0 ;
    margin-top:5px ;
    margin-left:5px ;
    margin-right:5px ;
}
.whatsapp-popup:hover {
    background-color: #20b858;
    transform: scale(1.1);
}
.iletisim-btn {
    background-color: #25D366;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}
.iletisim-btn:hover {
    background-color: #20b858;
}


.content 
{
    padding: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.card {
    position: relative;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 1.5px 4px rgba(0, 0, 0, 0.10);
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 0;
    background: transparent;
    border: 1px solid #91919181;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.13);
}

.card-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    filter: brightness(0.92) contrast(1.05);
    transition: filter 0.2s;
}

.card:hover .card-img {
    filter: brightness(0.7) contrast(1.1) blur(1px);
}

.card-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 24px 20px 20px 20px;
    background: linear-gradient(0deg, rgba(20, 20, 20, 0.92) 60%, rgba(20, 20, 20, 0.0) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover .card-img-overlay {
    opacity: 1;
}

.card-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.card-text {
    color: #e0e0e0;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.card-link {
    color: #fff;
    background: #ef8f19;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.98rem;
    font-weight: 500;
    text-decoration: none;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.10);
    transition: background 0.18s, color 0.18s;
}

.card-link:hover {
    background: #b36b00;
    color: #fff;
}

/* SVG */
svg {
        max-width: 100%;
        height: auto;
        overflow: visible;
        filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.1)); /* Hafif bir gölge */
    }

    /* SVG içindeki yolların (path) genel stili */
    #svgg path {
        /* Başlangıçta sadece çizgi rengi olsun, dolgu olmasın */
        fill: #fff;
        fill-opacity: 0; 
        stroke: #fff; 
        stroke-width: 1.5;
        
        /* Çizim efekti için gerekli ayarlar */
        stroke-dasharray: 3000; /* Çizgi uzunluğu (tahmini büyük bir değer) */
        stroke-dashoffset: 3000; /* Çizgiyi tamamen gizle */
        
        /* Animasyon tanımları */
        animation: 
            cizimEfekti 3.5s ease-in-out infinite, /* 3.5 saniyede çiz ve doldur, sonsuz tekrar */
            yuzmeEfekti 6s ease-in-out infinite 3.5s; /* Sonrasında sonsuza kadar süzül */
    }

    /* 1. Animasyon: Çizerek Doldurma */
    @keyframes cizimEfekti {
        0% {
            stroke-dashoffset: 3000;
            fill-opacity: 0;
        }
        60% {
            stroke-dashoffset: 0; /* Çizgileri birleştir */
            fill-opacity: 0;
        }
        100% {
            stroke-dashoffset: 0;
            fill-opacity: 1; /* İçini tamamen doldur */
            stroke-width: 0; /* Çizgi kalınlığını kaldır (orijinal keskinlik için) */
        }
    }

    /* 2. Animasyon: Yüzme / Süzülme */
    @keyframes yuzmeEfekti {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-15px); /* Hafifçe yukarı kay */
        }
    }