html {
    font-family: 'Texturina', serif;
    background-image: linear-gradient(to bottom, #104256, #17384b, #1a2f3f, #1a2634, #181e28);
    background-image: url("./images/BG.png");
    background-position-x: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    overflow: hidden auto;
}

body {
    padding: 0 40px 20px 40px;
    max-width: 1030px;
    margin: 0 auto;
    min-height: 100vh;
    overflow: visible;
    position: relative;
}

header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 20px;
    position: relative;
    z-index: 1;
}

.header-logo {
    display: flex;
    align-items: center;
    font-size: 1rem;
    padding-bottom: 20px;
    font-weight: 800;
    font-family: 'IM Fell English SC', serif;
}

.header-logo img {
    height: 120px;
    padding-right: 10px;
}

h1 {
    font-size: 1.75rem;
    line-height: 1.25;
}

.header-nav {
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding-bottom: 20px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition-duration: 0.3s;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    border-bottom: 2px solid white;
}

.outer-socials {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.socials {
    padding-bottom: 0px;
}

.social-link {
    display: inline-block;
    margin-right: 30px;
    transition-duration: 0.3s;
}

.social-link:last-child {
     margin-right: 0px;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-link img {
    width: 42px;
    height: 42px;
}

h2 {
    font-weight: 400;
    font-size: 2.5rem;
    text-align: center;
    margin: 30px auto 20px;
    font-family: 'IM Fell English SC', serif;
}

h3 {
    font-weight: 400;
    font-size: 1.75rem;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    padding: 40px 0 30px;
    font-family: 'IM Fell English SC', serif;
}
#front {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -180px 0 0 50%;
    transform: translateX(-50%);
    overflow: hidden;
}

.front-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(50%);
}

#front h2 {
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
    text-align: center;
    margin: 0;
    font-weight: 400;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#front::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, rgb(0 0 0 / 0%), rgb(12 7 21));
    z-index: 2;
    pointer-events: none;
}
h4 {
    font-weight: 400;
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    font-family: 'IM Fell English SC', serif;
}

#games {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px 0;
}

.games-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
}

.game-card-link {
    display: flex;
    flex-direction: column;
    width: 420px;
    text-decoration: none;
    color: white;
    border-radius: 12px;
    overflow: hidden;
    transition-duration: 0.3s;
    box-shadow: 0px 0px 20px 0px rgb(149 184 240 / 25%);
    height: 100%;
}

.game-card-link:hover {
    transform: translateY(-8px);
    box-shadow: 0px 0px 32px 0px rgb(149 184 240 / 40%);
}

.game-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition-duration: 0.3s;
}

.game-card-link:hover .game-card-img {
    transform: scale(1.05);
}

.game-card-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.game-card-info p {
    font-weight: 300;
    font-size: 0.95rem;
    margin: 8px 0;
    line-height: 1.4;
}

.game-card-tag {
    display: inline-block;
    background: rgba(149, 184, 240, 0.2);
    border: 1px solid rgb(149, 184, 240);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 12px;
    width: fit-content;
}

#about-us {
    padding: 60px 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about-description {
    text-align: center;
    max-width: 600px;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    margin: 20px auto 0;
}

.pillars-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    width: 100%;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.pillar-card {
    display: flex;
    flex-direction: column;
    padding: 25px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(16, 66, 86, 0.3) 0%, rgba(26, 38, 52, 0.3) 100%);
    border: 1px solid rgba(149, 184, 240, 0.2);
    transition-duration: 0.3s;
}

.pillar-card:hover {
    background: linear-gradient(135deg, rgba(16, 66, 86, 0.5) 0%, rgba(26, 38, 52, 0.5) 100%);
    border-color: rgba(149, 184, 240, 0.4);
}

.pillar-card h4 {
    margin: 0 0 12px 0;
    font-size: 1.75rem;
}

.pillar-text {
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 15px 0;
    flex-grow: 1;
}

.pillar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pillar-tag {
    display: inline-block;
    background: rgba(149, 184, 240, 0.15);
    border: 1px solid rgba(149, 184, 240, 0.3);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

#contact {
    padding: 60px 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-cards {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
    margin-top: 30px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    width: 320px;
    padding: 30px;
    text-decoration: none;
    color: white;
    border-radius: 12px;
    overflow: hidden;
    transition-duration: 0.3s;
    box-shadow: 0px 0px 20px 0px rgb(149 184 240 / 25%);
    background: linear-gradient(135deg, rgba(16, 66, 86, 0.5) 0%, rgba(26, 38, 52, 0.5) 100%);
    border: 1px solid rgba(149, 184, 240, 0.2);
    position: relative;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 0px 32px 0px rgb(149 184 240 / 40%);
    border-color: rgba(149, 184, 240, 0.4);
}

.contact-card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    line-height: 1;
}

.contact-card h4 {
    margin: 0 0 15px 0;
    font-size: 1.25rem;
}

.contact-card p {
    font-weight: 300;
    font-size: 0.95rem;
    margin: 0 0 20px 0;
    line-height: 1.5;
    flex-grow: 1;
}

.contact-button {
    display: inline-block;
    background: rgba(149, 184, 240, 0.15);
    border: 1px solid rgb(149, 184, 240);
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition-duration: 0.3s;
    text-decoration: none;
    color: white;
    margin-top: auto;
}

.contact-card:hover .contact-button {
    background: rgba(149, 184, 240, 0.25);
}

footer {
    margin: 100px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media screen and (min-height: 800px) and (min-width: 800px){
    h1 {
        font-size: 2.25rem;
    }
}

@media only screen and (max-width: 730px){
    header {
        justify-content: center;
        flex-direction: column;
    }
    
    #front {
        margin: -230px 0 0 50%;
    }
}


@media only screen and (max-width: 555px){
    html {
        font-size: 14px;
        line-height: 1.2;
    }
    body {
        padding: 15px 20px;
    }

    .header-logo {
        padding-bottom: 0;
    }
    .header-logo img {
        height: 80px;
    }

    .social-link img {
        width: 30px;
        height: 30px;
    }

    .pillars-container {
        gap: 15px;
        grid-template-columns: repeat(1, 1fr);
    }
    .pillar-card {
        padding: 15px;
    }
   
}

@media only screen and (max-width: 555px){
    html {
        font-size: 13px;
    }
}