@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anta&display=swap');

@font-face {
    font-family: "HorizonCustom";
    src: url("../assets/horizon-font/Horizon-nMeM.ttf");
    font-display: swap;
    font-style: normal;
    font-weight: bold;
}

@font-face {
    font-family: "SpidermanCustom";
    src: url("../assets/Spider-Man/Spider-Man.ttf");
    font-display: swap;
    font-style: normal;
    font-weight: bold;
}

@font-face {
    font-family: "TLOUCustom";
    src: url("../assets/The\ Last\ Of\ Us\ Rough.ttf");
    font-display: swap;
    font-style: normal;
    font-weight: bold;
}

@font-face {
    font-family: "RatchetCustom";
    src: url("../assets/rg-future.otf");
    font-display: swap;
    font-style: normal;
    font-weight: bold;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body.index {
    background-color: black;
    color: white;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    overflow: hidden;
    position: fixed;
    touch-action: none;
}

::-webkit-scrollbar {
    display: none;
}

.scroll-container {
    display: grid;
    grid-template-columns: repeat(3, 100vw);
    grid-template-rows: repeat(3, 100vh);
    width: 300vw;
    height: 300vh;
    transition: transform 0.8s ease-in-out;
    transform: translate(-100vw, -100vh);
}

.section {
    width: 100vw;
    height: 100vh;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

#horizon, #spiderman, #tlou, #ratchet {
    justify-content: center;
    align-items: center;
    padding-top: 0;
}

#horizon {
    justify-content: flex-start;
    padding-top:80px;
}

.game-logo {
    position: relative;
    z-index: 10;
    max-width: clamp(280px, 35vw, 400px);
    height: auto;
    padding-bottom: 1em;
}

.section#home{
    background-image: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 80%), url(../img/backgroundsymbolshome.png);
    background-repeat: repeat;
    background-attachment: fixed, scroll;
}

#horizon   { grid-column: 2; grid-row: 1; } 
#spiderman { grid-column: 1; grid-row: 2; }
#home      { grid-column: 2; grid-row: 2; }
#tlou      { grid-column: 3; grid-row: 2; }
#ratchet   { grid-column: 2; grid-row: 3; }

.arrow {
    position: absolute;
    z-index: 10;
    transition: all 0.3s ease;
    filter: invert(100%);
    text-decoration: none;
    width: max-content;
}

.arrow img {
    width: clamp(35px, 10vw, 70px); 
    height: auto;
    display: block;
}

.arrow:hover {
    filter: invert(68%) sepia(74%) saturate(2811%) hue-rotate(152deg) brightness(101%) contrast(105%);
    transform: scale(1.15); 
}

.up { 
    top: 70px; 
    left: 0; 
    right: 0; 
    margin: auto; 
    width: max-content; 
}

.down { 
    bottom: 20px; 
    left: 0; 
    right: 0; 
    margin: auto; 
    width: max-content; 
}

.left { 
    left: 20px; 
    top: 0; 
    bottom: 0; 
    margin: auto; 
    height: max-content; 
}

.right { 
    right: 20px; 
    top: 0; 
    bottom: 0; 
    margin: auto; 
    height: max-content; 
}

.btn-more {
    display: inline-block;
    margin-top: clamp(0.5em, 2vh, 2em);
    padding: clamp(8px, 1.5vh, 12px) clamp(16px, 3vw, 24px);
    font-size: clamp(0.8em, 1.2vw, 1.2em);
    font-family: "Anta", sans-serif;
    color: white;
    text-decoration: none;
    border: 2px solid #ffffff;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: clamp(2px, 0.4vw, 4px);
}

.btn-more:hover {
    background-color: #00d4ff;
    color: black;
    box-shadow: 0 0 15px #00d4ff;
    transform: scale(1.05);
}

.index h1 {
    font-size: clamp(3em, 6vw, 5em);
    font-family: "Orbitron", sans-serif;
    font-weight: 500;
    margin-bottom: 0.25em;
}

.index p {
    font-size: clamp(1.1em, 1.5vw, 1.5em);
    font-family: "Anta", "Orbitron";
    font-weight: 300;
    line-height: 1.5em;
}

p {
    max-width: clamp(280px, 80vw, 1000px);
    margin-top: 1em;
}

#home p {
    max-width: 70%;
}

.intro-header {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    padding: 0 clamp(60px, 12vw, 120px);
    backdrop-filter: blur(5px) brightness(50%);
}

.section {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.section#ratchet {
    padding-top: clamp(100px, 18vh, 200px);
    padding-bottom: 30px;
}

#ratchet .game-logo {
    max-width: clamp(250px, 30vw, 350px);
    padding-bottom: 0;
    margin-bottom: 0.5em;
}

#ratchet p {
    margin-top: 0;
    margin-bottom: 1em; 
}

.section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(10px) brightness(65%);
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.section#horizon::before {
    background-image: url(../img/Games_Screenshots/Horizon_Forbidden_West/Horizon\ Forbidden\ West_20220221193153.jpg);
}

.section#spiderman::before {
    background-image: url(../img/Games_Screenshots/Marvels_Spider_Man_Miles_Morales/Marvels\ Spider-Man_\ Miles\ Morales_20201228193330.jpg);
    filter:blur(10px) brightness(90%)
}

.section#tlou::before {
    background-image: url(../img/Games_Screenshots/The_Last_of_Us_Part_II/The\ Last\ of\ Us™\ Part\ II_20210108184557.jpg);
    filter:blur(4px) brightness(90%);
}

.section#ratchet::before {
    background-image: url(../img/Games_Screenshots/Ratchet_Clank_Rift_Apart/Ratchet\ _\ Clank_\ Rift\ Apart_20210619213327.jpg);
    filter:blur(10px) brightness(65%);
}

.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 10px;
    z-index: 100;
    background-color: black;
    font-family: 'Anta', sans-serif;
}

.main-nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../img/backgroundsymbolsinfo.png);
    background-repeat: repeat;
    background-size: 150px;
    filter: blur(4px) invert(100%);
    background-position: center;
    z-index: -1;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,1) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,1) 100%);
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #00d4ff;
}

.main-nav a.active {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0,212,255,0.5);
    font-weight: bold;
}

footer {
    position: absolute;
    bottom: 20px;
    padding-left:2em;
    width: 100%;
    text-align: left;
    font-family: "Orbitron", sans-serif;
    font-size: 0.75em;
    opacity: 0.5;
}

@media (max-width: 1024px) {
    .index h1 { font-size: 3em; margin-bottom: 0; }
    .index p { font-size: 1em; margin-top: 0; }
    .game-logo { transform: scale(0.7); margin-bottom: 0; padding-bottom: 0; padding-top: 1em; }
    #horizon, #spiderman, #tlou, #ratchet { padding-top: 1em; }
}

@media (max-width: 767px) {
    .index h1 { font-size: 2.5em; }
    p, #home p { max-width: calc(100vw - 90px); }
    .game-logo { transform: scale(0.6); }
    .main-nav { gap: 20px; padding: 10px; }
    .main-nav a { font-size: 1em; }
    .arrow img { width: 35px; }
    .left { left: 5px; }
    .right { right: 5px; }
    .intro-header { padding: 0 60px; }
}

@media (max-width: 480px) {
    .index h1 { font-size: 2em; }
    .index p { font-size: 0.9em; }
    p, #home p { max-width: calc(100vw - 70px); margin-top: 0.5em; }
    .game-logo { transform: scale(0.5); }
    .main-nav { flex-direction: row; flex-wrap: wrap; justify-content: space-around; gap: 10px; }
    .arrow img { width: 25px; }
    .left { left: 5px; }
    .right { right: 5px; }
    .intro-header { padding: 0 50px; }
}