/* Genel Ayarlar */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

.about {
    margin: 40px;
}

body {
    display: flex;
    flex-direction: column; /* Flexbox ile dikey düzen */
    min-height: 100vh; /* Tüm görünüm yüksekliği */
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    font-size: 16px;
    color: #333;
    background: linear-gradient(135deg, #d4f1f4 0%, #ffffff 100%);
    box-sizing: border-box;
}

.logo{
    text-decoration: none;
    color: inherit;
}

*, *::before, *::after {
    box-sizing: border-box;
}

main {
    flex: 1; /* Ana içerik esnek olarak büyür */
}

/* Site Header */
.site-header {
    background: linear-gradient(90deg, #003366 0%, #6699cc 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header .logo img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
}

.site-header .nav-link {
    color: #fff !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.site-header .nav-link:hover {
    color: #002244 !important;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Footer */
footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    font-size: 1em;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    margin-top: auto; /* İçerik kısa olduğunda footer'ı alta iter */
}

footer p {
    margin: 0;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


/* Tema Butonu (Gündüz Modu) */
#theme-toggle {
    padding: 10px 15px;
    font-size: 1em;
    font-weight: bold;
    background: linear-gradient(135deg, #000000, #000000); /* Yeşil (gündüz modu) */
    color: #ffffff;
    border: none;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

#theme-toggle:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #260000, #260000); /* Daha koyu yeşil */
}

.social-icon {
    display: inline-block;
    margin-top: 10px; /* Yazı ile logo arasında boşluk bırakır */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icon img.instagram-logo {
    width: 30px; /* Logo boyutu */
    height: auto;
    filter: grayscale(100%); /* Gri tonlama efekti */
    transition: filter 0.3s ease, transform 0.3s ease;
}

.social-icon:hover img.instagram-logo {
    filter: none; /* Gri tonlama kaldırılır */
    transform: scale(1.1); /* Hafif büyütme efekti */
}

/* 📌 Hamburger Menü Butonu - Sadece mobilde görünür */
.hamburger-menu {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1001;
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: block; /* Mobilde hamburger butonunu göster */
    }
}

/* 📌 Mobil Menü - Varsayılan olarak gizli */
.mobile-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    background: rgba(0, 51, 102, 0.95);
    text-align: center;
    padding: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* 📌 Mobil menü içindeki linkler */
.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav ul li {
    padding: 15px 0;
}

.mobile-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: block;
    transition: background 0.3s;
}

.mobile-nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 📌 Açıldığında mobil menüyü göster */
.mobile-nav.show {
    display: flex;
}


/* 📌 Mobil menüde tema butonunu stilize et */
.theme-toggle-mobile {
    display: block;
    margin: 20px auto; /* Ortala */
    padding: 10px 15px;
    font-size: 1em;
    font-weight: bold;
    background: linear-gradient(135deg, #000000, #333333);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

/* 📌 Tema butonuna hover efekti */
.theme-toggle-mobile:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #444444, #666666);
}

/* 📌 Mobilde masaüstü tema butonunu gizle */
@media (max-width: 768px) {
    #theme-toggle {
        display: none;
    }
}

/* 📌 Mobil menü açıldığında tema butonunu göster */
.mobile-nav.show .theme-toggle-mobile {
    display: block !important; /* Tema butonunu göster */
}
@media (max-width: 768px) {
    .desktop-nav {
        display: none; /* Mobilde masaüstü menüyü gizle */
    }
}

@media (max-width: 768px) {
    .site-header {
        min-height: 80px; /* Header yüksekliğini artır */
        display: flex;
        align-items: center;
        padding: 10px 15px;
    }

    /* 📌 LOGO ve BAŞLIK ORTALANSIN */
    .site-header .logo {
        display: flex;
        align-items: center;
    }

    /* 📌 MOBİL NAV MENÜ YÜKSEKLİĞİ ARTIR */
    .mobile-nav {
        padding-top: 20px;
    }

    /* 📌 MOBİL TEMA BUTONUNUN ALANI ARTIR */
    .mobile-nav .theme-toggle-mobile {
        padding: 12px 18px;
        font-size: 1.1em;
    }
}