@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;600;700&display=swap');

@font-face {
    font-family: 'Fontum'; /* Fontun adı */
    src: url('/Fonts/Abel-Regular.ttf') format('truetype'); /* Font dosyalarının yolu ve formatı */
}

/* Genel Stiller */
* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    margin: 0;
}

/* Gezinme Çubuğu */
nav {
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}

nav img {
    width: 150px;
}

.yazi1 {
    margin-top: 200px;
}

/* Hero Butonu */
.hero-btn {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
    margin-top: 50px;
}

.hero-btn:hover {
    border: 1px solid #f44336;
    background: #f44336;
    transition: 1s;
}

/* Ana Başlık */
.başlik {
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)),
        url(../img/AnaSayfaArkaPlan.png);
    background-position: center;
    background-size: cover;
    position: relative;
    overflow-x: hidden;
}

/* Başlık Metinleri ve Buton */
.text-box {
    width: 90%;
    color: #fff;
    position: absolute;
    top: 53%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    margin-top: 100px;
}

.text-box h1 {
    font-size: 62px;
}

.text-box p {
    margin: 10px 0 40px;
    font-size: 14px;
    color: #fff;
}


/* Başlık Stilleri */
h2 {
    font-size: 3rem;
    color: #ffffff;
    opacity: 0;
    animation: fadeIn 2s ease forwards;
    margin-top: 1rem;
}

p {
    font-size: 2rem;
    color: #ffffff;
    opacity: 0;
    animation: fadeInText 2s ease forwards 1s;
    margin-top: 1rem;
}

.intro {
    height: 100vh;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Ana İçerik Bölümü */
main {
    position: absolute;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 2s ease-in forwards 2s;
    overflow: hidden;
}

.intro h2 {
    font-size: 3rem;
    color: #ffffff;
    margin-top: 1rem;
}


@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/* Sayfa Gezinme Menüsü */
.sayfalar ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.sayfalar ul li a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
}

.sayfalar ul li::after {
    content: "";
    width: 0%;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.5s;
    
}

.sayfalar ul li:hover::after {
    width: 100%;
}

.sayfalar {
    flex: 1;
    text-align: right;
}

/* Sayfa Gezinme Menüsü Linkleri */
.sayfalar ul li a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
}

/* Logo Stili */
.logo {
    max-width: 100%;
    height: auto;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
}

.logo {
    width: 500px;
    margin-top: 40px;
}
/* Hamburger Menü Düğmesi */
.hamburger-menu {
    display: none; /* Başlangıçta gizli tutulur */
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.hamburger-icon {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 6px 0;
    transition: 0.4s;
}

.hamburger-icon span {
    width: 100%;
    height: 3px;
    background-color: #f44336;
}

/* Açılır Menü (Modal) */
.modal {
    display: none; /* Başlangıçta gizli tutulur */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9998;
}

.modal ul {
    list-style: none;
    padding: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.modal ul li {
    margin: 20px 0;
}

.modal ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
}


/* Medya Sorgusu: Mobil Cihazlar */
@media (max-width: 768px) {
    .hamburger-menu {
        top: 5%;
    }
    .hamburger-menu {
        display: block; /* Mobil cihazlarda görünür olur */
    }

    /* Hamburger Menü İkonu (Açık Durum) */
    .hamburger-menu.open .hamburger-icon:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger-menu.open .hamburger-icon:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.open .hamburger-icon:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .modal {
        display: block; /* Mobil cihazlarda görünür olur */
    }
}

@media (max-width: 700px) {

    .text-box h1 {
        font-size: 20px;
    }
    .logo {
        width: 400px;
    }
}

@media screen and (max-width: 320px) {
    .text-box h1 {
        font-size: 10px;
    }
    .logo {
        width: 200px;
    }
}



@media (max-width: 1000px) {

    .sayfalar ul li {
        display: block;
    }

    .sayfalar {
        position: fixed;
        background: #f44336;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;
    }

    nav .fas {
        display: block;
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }

    .sayfalar ul {
        padding: 30px;
    }
}

