﻿/* Genel sıfırlama */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    font-family: 'Arial', sans-serif;
}

/* Navbar */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 10%;
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    height: 90px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 60px;
}

/* Navigation links */
ul.nav-links {
    display: flex;
    list-style-type: none;
    gap: 60px;
    justify-content: center;
    flex: 1;
    transform: translateY(5px);
}

    /* Nav items */
    ul.nav-links li {
        position: relative;
        padding: 10px 0;
    }

        ul.nav-links li a, .dropbtn {
            color: black;
            text-decoration: none;
            font-weight: bold;
            cursor: pointer;
        }

            ul.nav-links li a:hover, .dropbtn:hover {
                color: rgb(0, 0, 128);
                transition: 0.3s;
            }

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(255, 255, 255, 0.9);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 8px;
    z-index: 1000;
}

    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

        .dropdown-content a:hover {
            background-color: rgba(0, 0, 0, 0.1);
        }

.dropdown:hover .dropdown-content {
    display: block;
}

/* Button */
button {
    background-color: rgb(0, 0, 128);
    color: white;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
}

    button:hover {
        transform: scale(1.05);
    }

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

    .hamburger div {
        width: 25px;
        height: 3px;
        background-color: black;
        border-radius: 3px;
    }

@media (max-width: 768px) {
    nav {
        padding: 20px 5%;
    }

    .hamburger {
        display: flex;
    }

    ul.nav-links {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        height: 100%;
        flex-direction: column;
        align-items: center; /* ORTALAMA */
        justify-content: flex-start;
        background-color: rgb(0, 0, 90);
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        padding-top: 2rem;
        gap: 2rem;
        z-index: 999;
        text-align: center; /* yazılar ortalanır */
    }

        ul.nav-links.open {
            transform: translateX(0%);
        }

        ul.nav-links li a,
        .dropbtn {
            color: white; /* Menü yazıları beyaz */
            font-size: 1.1rem;
        }

            ul.nav-links li a:hover,
            .dropbtn:hover {
                color: white; /* Hover da beyaz kalsın */
                background-color: rgba(255, 255, 255, 0.2); /* İsteğe bağlı arka plan */
                transition: 0.3s;
            }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown-content {
        position: static;
        background-color: transparent;
        box-shadow: none;
        padding-left: 0;
        margin-top: 10px;
        text-align: center;
    }

        .dropdown-content a {
            color: white;
            padding: 0.5rem 0;
        }

            .dropdown-content a:hover {
                color: white;
                background-color: rgba(255, 255, 255, 0.1);
            }

    .dropbtn::after {
        content: " ▼";
        font-size: 0.7rem;
    }

    button {
        display: none;
    }

    .dropdown-content.open {
        display: block !important;
    }
}



/* Video ayarları */
#bg-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: -1;
    /*pointer-events: none;  Videonun tıklamaya engel olmasını önler */
}

/* Mobil ve tablet cihazlar için özel ayarlar 
@media (max-width: 768px) {
  #bg-video {
    object-position: center center;
  }
}*/


/*FOOTER*/

footer {
    background-color: rgb(0, 0, 67);
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: auto;
    font-size: 0.9rem;
}

body, html {
    height: 100%;
}

.social-links a {
    color: #FFF;
    background-color: rgba(255, 255, 255, 0.2);
    display: inline-block;
    height: 35px;
    width: 35px;
    border-radius: 50%;
    text-align: center;
    margin: 0 10px 10px 0;
    line-height: 35px;
    transition: all 0.5s ease;
}

    .social-links a:hover {
        color: #151515;
        background-color: #FFF;
    }

@media (max-width: 430px) {
    footer {
        width: 100%;
        padding: 20px 10px;
        font-size: 0.85rem;
    }
}

@media (min-width: 431px) and (max-width: 767px) {
    footer {
        width: 100%;
        padding: 20px;
    }
}
