* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to bottom, #721010, #3a0e0e);
    color: #f2f2f2;
    min-height: 100vh;
    transition: background 1s ease;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(0, 0, 0, 0.6);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.hamburger {
    cursor: pointer;
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger div {
    height: 4px;
    background: #f2f2f2;
    border-radius: 2px;
}

nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100%;
    background-color: #2b0d0d;
    transition: right 0.4s ease;
    padding: 2rem;
    z-index: 999;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.6);
}

nav ul {
    list-style: none;
}

nav ul li {
    margin: 1.5rem 0;
}

nav ul li a {
    color: #f2f2f2;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.2s;
}

nav ul li a:hover {
    color: #c73f3f;
}

nav.active {
    right: 0;
}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }

    nav {
        position: static;
        width: auto;
        height: auto;
        background: none;
        box-shadow: none;
        display: flex;
        align-items: center;
        padding: 0;
    }

    nav ul {
        display: flex;
        gap: 2rem;
    }
}

main {
    flex: 1;
}

/*FOOTER*/

footer {
    background-color: rgba(0, 0, 0, 0.6);
    color: #e6e6e6;
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 15px;
    width: 100%;
    margin-top: auto;
}

.footerlogo {
    height: 90px;
    width: auto;
}

.footerimg {
    display: flex;
    gap: 9px;
    height: 30px;
    justify-content: center;
    align-items: center;
}

.footerimg img {
    height: 30px;
    width: auto;
}

.footeriletisim {
    text-align: center;
    margin: 5px 0;
}

.image-container {
    position: relative;
    width: 90px;
    height: 90px;
}

.image-container img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 3s ease-in-out;
}

.fade-out {
    opacity: 0;
}

/*Scrol bar*/

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.9);
    border-radius: 10px;
    background-color: #8d8e93;
}

::-webkit-scrollbar {
    width: 10px;
    background-color: #300303;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: #380606;
    background-image: -webkit-linear-gradient(90deg,
            transparent,
            rgba(0, 0, 0, 0.4) 50%,
            transparent,
            transparent)
}

#loader {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: #111;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner {
    border: 6px solid #444;
    border-top: 6px solid crimson;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* DARK MODE V2 BAŞLANGIÇ */
body.dark-mode {
    background: linear-gradient(to bottom, #0e0e0e, #1a1a1a);
    color: #e0e0e0;
}

body.dark-mode header {
    background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .hamburger div {
    background: #e0e0e0;
}

body.dark-mode nav ul li a {
    color: #e0e0e0;
}

body.dark-mode nav ul li a:hover {
    color: #ff5555;
}

body.dark-mode footer {
    background-color: rgba(255, 255, 255, 0.05);
    color: #cccccc;
}

body.dark-mode .footerimg img {
    filter: brightness(0.8);
}

body.dark-mode::-webkit-scrollbar-track {
    background-color: #333;
    -webkit-box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.2);
}

body.dark-mode::-webkit-scrollbar {
    background-color: #1a1a1a;
}

body.dark-mode::-webkit-scrollbar-thumb {
    background-color: #2c1010;
    background-image: -webkit-linear-gradient(90deg,
            transparent,
            rgba(53, 16, 16, 0.2) 50%,
            transparent,
            transparent);
}

body.dark-mode #loader {
    background-color: #000;
    color: #eee;
}

body.dark-mode .spinner {
    border: 6px solid #555;
    border-top: 6px solid #ff5555;
}
/* DARK MODE V2 BİTİŞ */

#mode-toggle {
    width: 60px;
    height: 28px;
    background-color: #444;
    border: 2px solid #888;
    border-radius: 90px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background-color 0.4s, border-color 0.4s;
}

#mode-toggle::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    width: 25px;
    height: 25px;
    background-color: #eee;
    border-radius: 90px;
    transition: transform 0.4s, background-color 0.4s, box-shadow 0.4s;
}

body.dark-mode #mode-toggle {
    background-color: #111;
    border-color: crimson;
}

body.dark-mode #mode-toggle::before {
    content: "";
    transform: translateX(32px);
    background-color: crimson;
    box-shadow: 0 0 10px crimson;
}