@import url('ags/fonts.css');
@import url('ags/colors.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--text-color);
    font-family: "Figtree";
    scroll-behavior: smooth;
    /* Performance optimizations */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
    width: 0.3125rem;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--theme);
    border-radius: 0.3125rem;
}


body {
    background: linear-gradient(rgba(0, 0, 0, 0.70), rgba(0, 0, 0, 0.70)), url(https://i.hizliresim.com/sb8pthr.gif) no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav__expand_screen {
    display: flex;
    align-items: center;
    flex-direction: column;
    position: fixed;
    width: 80px;
    padding: 1% 0%;
    gap: 2rem;
    left: 1%;
    bottom: 2.5%;
    height: 95%;
    border-radius: 20px;
    z-index: 1000;
}

.navigation_menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(100%);
    gap: 2rem;
}

.navigation_menu a {
    padding: 10px;
    color: var(--text-color);
    border-radius: 10px;
    transition: color 0.3s ease;
}

.logo img {
    width: 60px;
    height: 60px;
}


.hero {
    display: flex;
    justify-content: center;
    /* yatay */
    align-items: center;
    /* dikey */

    color: var(--text-color);
    position: relative;
    padding: 0 20px;
    height: 100vh;
    /* dikey ortalama için şart */
}

.hero .title {
    font-family: 'Azonix', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.description {
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.projects {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project_area {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.project {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    margin-top: 40px;
    width: 300px;
    height: 300px;
    padding: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-radius: 30px;
    backdrop-filter: blur(20px);
}

.top-img {
    position: relative;
    /* child'ı absolute yapabilmek için */
    width: 300px;
    top: 0;
    /* istediğin genişlik */
    height: 120px;
    /* görselden biraz büyük olmalı */
}

.top-img img {
    position: absolute;
    /* top ve left ile merkezleme */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* tam merkez */
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0;
    /* ekstra boşluk olmasın */
    display: block;
    /* inline img sorunlarını kapatır */
}


.project:hover {
    transform: translateY(-10px);
}

.texts {
    padding: 15px;
    display: flex;
    gap: 10px;
    flex-direction: column;
    justify-content: center;
}

.project img {
    width: 100px;
    height: 100px;
    display: flex;
    border-radius: 10px;
    margin-bottom: 15px;
}

.box {
    gap: 1rem;
    width: 100%;
}

@media screen and (min-width: 1024px) {
    .nav {
        display: none;
    }

    .section_all {

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        width: calc(100% - 1% - 80px);
        left: calc(1% + 80px);

    }
}

@media screen and (max-width: 768px) {
    .hero,
    .projects {
        position: relative;
        /* position: static da olur */
        left: auto;
        /* Desktop’tan kalan left’i kaldır */
        width: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .project_area {
        justify-content: center;
        /* kutucukları ortala */
        flex-wrap: wrap;
        gap: 20px;
        /* kutucuklar arası boşluk */
        padding: 0 10px;
        /* kenarlara biraz boşluk */
        width: 100%;
        box-sizing: border-box;
    }

    .project {
        margin: 0 auto;
        margin-top: 40px;
        /* her kutucuğu ortala */
    }

    .hero .logo {
        width: 70%;
    }

    .nav__expand_screen {
        display: none;
    }
}