@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html{
    font-size: 62.5%;
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body{
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
}

/* HEADER */

header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 9%;
    background-color: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo{
    font-size: 3rem;
    color: #b74b4b;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
    white-space: nowrap;
}

.logo:hover{
    transform: scale(1.1);
}

nav{
    display: flex;
    align-items: center;
}

nav a{
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

nav a:hover,
nav a.active{
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}

/* GENEL SECTION */

section{
    min-height: 100vh;
    padding: 12rem 9% 5rem;
    overflow-x: hidden;
}

/* HOME */

.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: black;
    width: 100%;
}

.home-content{
    max-width: 60rem;
}

.home .home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span{
    color: #b74b4b;
}

.home-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p{
    font-size: 1.6rem;
    line-height: 1.8;
}

.home-img{
    border-radius: 50%;
    flex-shrink: 0;
}

.home-img img{
    position: relative;
    width: 32vw;
    max-width: 380px;
    min-width: 240px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s linear;
    display: block;
}

.home-img img:hover{
    transform: scale(1.02);
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #b74b4b;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #b74b4b;
}

.social-icons a:hover{
    color: black;
    transform: scale(1.15) translateY(-5px);
    background-color: #b74b4b;
    box-shadow: 0 0 25px #b74b4b;
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: black;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #b74b4b;
    letter-spacing: 0.2rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale(1.03);
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 25px #b74b4b;
}

.typing-text{
    font-size: 3.4rem;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span{
    position: relative;
    display: inline-block;
}

.typing-text span::before{
    content: "Game Developer";
    color: #b74b4b;
    animation: words 20s infinite;
}

.typing-text span::after{
    content: "";
    position: absolute;
    right: -8px;
    top: 0;
    width: 3px;
    height: 100%;
    background-color: #b74b4b;
    animation: blink 0.7s infinite;
}

@keyframes blink{
    0%{
        opacity: 1;
    }
    50%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}

@keyframes words{
    0%, 20%{
        content: "Game Developer";
    }
    21%, 40%{
        content: "Developer";
    }
    41%, 60%{
        content: "Lore Developer";
    }
    61%, 80%{
        content: "Youtuber";
    }
    81%, 100%{
        content: "Script Writer";
    }
}

/* GAMES */

.games{
    min-height: 100vh;
    padding: 12rem 9% 5rem;
    background-color: black;
}

.games-content{
    text-align: center;
    margin-bottom: 5rem;
}

.games-content h1{
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.games-content p{
    font-size: 1.6rem;
    max-width: 800px;
    margin: 0 auto;
    color: #d6d6d6;
    line-height: 1.8;
}

.games-list{
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.game-card{
    display: flex;
    align-items: center;
    gap: 3rem;
    background-color: #111;
    border: 2px solid transparent;
    border-radius: 2rem;
    padding: 2.5rem;
    transition: 0.3s ease;
    overflow: hidden;
}

.game-card:hover{
    border: 2px solid #b74b4b;
    box-shadow: 0 0 25px rgba(183, 75, 75, 0.35);
    transform: translateY(-5px);
}

.game-img{
    flex: 1;
    max-width: 320px;
    width: 100%;
}

.game-img img{
    width: 100%;
    display: block;
    border-radius: 1.5rem;
    object-fit: cover;
    border: 2px solid #b74b4b;
}

.game-info{
    flex: 2;
    min-width: 0;
}

.game-info h3{
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #b74b4b;
}

.game-info p{
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #e5e5e5;
}

/* JAMS */

.jams{
    min-height: 100vh;
    padding: 12rem 9% 5rem;
    background-color: black;
}

.jams-content{
    text-align: center;
    margin-bottom: 5rem;
}

.jams-content h1{
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.jams-content p{
    font-size: 1.6rem;
    max-width: 800px;
    margin: 0 auto;
    color: #d6d6d6;
    line-height: 1.8;
}

.jams-list{
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.jam-card{
    background-color: #111;
    border: 2px solid transparent;
    border-radius: 2rem;
    padding: 2.5rem;
    transition: 0.3s ease;
}

.jam-card:hover{
    border: 2px solid #b74b4b;
    box-shadow: 0 0 25px rgba(183, 75, 75, 0.35);
    transform: translateY(-5px);
}

.jam-info h3{
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #b74b4b;
}

.jam-info p{
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #e5e5e5;
}
.jam-rank{
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.6rem 1.4rem;
    border: 1px solid #b74b4b;
    border-radius: 2rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.jam-rank.gold{
    border-color: gold;
    color: gold;
}

.jam-rank.silver{
    border-color: silver;
    color: silver;
}

.jam-rank.bronze{
    border-color: #cd7f32;
    color: #cd7f32;
}

/* PAGINATION */

.pagination{
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.page-btn{
    width: 4.5rem;
    height: 4.5rem;
    background-color: black;
    border: 2px solid #b74b4b;
    border-radius: 50%;
    color: #b74b4b;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.page-btn:hover{
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 20px #b74b4b;
}

.active-page{
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 20px #b74b4b;
}

/* TABLET */

@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }
}

/* MOBILE */

@media(max-width:995px){
    header{
        padding: 1.5rem 0 1.5rem 5%;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
        background-color: rgba(0, 0, 0, 0.92);
    }

    nav{
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        width: 100%;
        gap: 1.2rem;
        padding: 0 5% 0 0;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    nav::-webkit-scrollbar{
        display: none;
    }

    nav a{
        flex: 0 0 auto;
        margin-left: 0;
        font-size: 1.5rem;
        white-space: nowrap;
    }

    section{
        padding: 18rem 5% 5rem;
    }

    .home{
        flex-direction: column;
        margin: 0;
        text-align: center;
        gap: 3rem;
        width: 100%;
    }

    .home-content{
        max-width: 100%;
    }

    .home .home-content h1{
        font-size: 4.2rem;
    }

    .home .home-content h3{
        font-size: 2.5rem;
    }

    .typing-text{
        font-size: 2.6rem;
    }

    .home-img{
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .home-img img{
        width: 70vw;
        max-width: 320px;
        min-width: 0;
        margin-top: 2rem;
    }

    .social-icons{
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .social-icons a{
        margin: 2rem 0.8rem 2rem 0.8rem;
    }

    .games-content h1,
    .jams-content h1{
        font-size: 4rem;
    }

    .game-card{
        flex-direction: column;
        text-align: center;
    }

    .game-img{
        max-width: 100%;
    }

    .game-info h3,
    .jam-info h3{
        font-size: 2.6rem;
    }
}

/* SMALL MOBILE */

@media(max-width:480px){
    html{
        font-size: 58%;
    }

    header{
        padding-top: 1.2rem;
    }

    section{
        padding: 17rem 5% 4rem;
    }

    .logo{
        font-size: 2.6rem;
    }

    .home .home-content h1{
        font-size: 3.6rem;
    }

    .home-content h3{
        font-size: 2.2rem;
    }

    .typing-text{
        font-size: 2.2rem;
    }

    .btn{
        padding: 1rem 2.2rem;
        font-size: 1.5rem;
    }

    .page-btn{
        width: 4rem;
        height: 4rem;
        font-size: 1.4rem;
    }
}
/* LORE */

.lore{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.lore-box h1{
    font-size: 5rem;
}

.lore-box p{
    font-size: 1.6rem;
    margin-top: 1rem;
    color: #ccc;
}

/* EXPERIENCE */

.experience{
    text-align: center;
}

.experience h1{
    font-size: 5rem;
    margin-bottom: 4rem;
}

.exp-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
}

.exp-card{
    background-color: #111;
    border-radius: 2rem;
    padding: 3rem;
    transition: 0.3s ease;
    border: 2px solid transparent;
}

.exp-card:hover{
    border: 2px solid #b74b4b;
    box-shadow: 0 0 20px rgba(183, 75, 75, 0.3);
    transform: translateY(-5px);
}

.exp-card i{
    font-size: 4rem;
    color: #b74b4b;
    margin-bottom: 1rem;
}

.exp-card h3{
    font-size: 2rem;
}

/* CONTACT */

.contact{
    text-align: center;
}

.contact h1{
    font-size: 5rem;
    margin-bottom: 2rem;
}

.contact p{
    font-size: 1.6rem;
    margin-bottom: 3rem;
    color: #ccc;
}
.contact form{
    max-width: 600px;
    margin: 3rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact input,
.contact textarea{
    width: 100%;
    padding: 1.5rem;
    border-radius: 1rem;
    background-color: #111;
    color: white;
    font-size: 1.5rem;
    border: 2px solid transparent;
    transition: 0.3s;
}

.contact input:focus,
.contact textarea:focus{
    border: 2px solid #b74b4b;
}

.contact textarea{
    min-height: 150px;
    resize: none;
}
