*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
}

@font-face {
  font-family: 'Neue Haas Grotesk';
  src: url('fonts/neue-haas-grotesk.woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap; /* Shows a fallback font until NHG loads */
}

:root{
    --text-color: #fff;
    --bg-color: #1b1f24;
    --second-bg-color: #22282f;
    --main-color: #13bbff;
    --other-color: #c3cad5;

    --h1-font: 4.5rem;
    --h2-font: 2.9rem;
    --p-font: 1rem;
}

/*asdf*/

body{
    color: var(--text-color);
    background: var(--bg-color);
}

header{
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 16%;
    background: transparent;
    transition: all .50s ease;
}

.logo{
    font-size: 36px;
    color: var(--text-color);
    font-weight: 600;
}

span{
    color: var(--main-color);
}

.navlist{
    display: flex;
}

.navlist a{
    font-size: var(--p-font);
    font-weight: 500;
    color: var(--other-color);
    margin-right: 40px;
    transition: all .50s ease;
}

.navlist a:hover{
    color: var(--main-color);
    text-shadow: 3px 3px 20px var(--main-color), -2px 1px 30px var(--text-color);
}

/* Selector de Idiomas */
.language-selector {
    position: absolute;
    display: flex;
    justify-content: flex-end;
    align-items: right;
    right: 25%;
    gap: 8px;
}

.lang-btn {
    font-size: 14px;
    font-weight: 700;
    color: var(--other-color);
    transition: all .50s ease;
    letter-spacing: 1px;
}

.lang-btn:hover {
    color: var(--main-color);
    text-shadow: 0 0 10px var(--main-color);
}

.lang-btn.active {
    color: var(--main-color);
    border-bottom: 2px solid var(--main-color);
}

.lang-separator {
    color: var(--other-color);
    opacity: 0.3;
    font-size: 14px;
}

#menu-icon{
    font-size: 35px;
    z-index: 10001;
    cursor: pointer;
    display: none;
}


.h-btn{
    display: inline-block;
    padding: 11px 26px;
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all .50s ease;
}

.h-btn:hover{
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--main-color);
    transform: scale(1.1);
}


section{
    padding: 110px 16% 90px;
}

.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative; 
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Center-aligned for better balance */
    width: 100%;
    position: relative;
    z-index: 5;
    gap: 2rem;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;        /* Background layer */
}

/* This is the important part for your text readability */
.hero .main-content {
    position: relative;
    z-index: 5;        /* Makes sure text stays on top of the image */
}

/* Update these specific properties in your style.css */

.btns {
    display: flex;
    flex-direction: row; /* Changed from column to row */
    gap: 20px;           /* Space between the buttons */
    align-items: center; 
    justify-content: flex-start; /* Aligns them to the left under the text */
    margin-top: 25px;    /* Adds some breathing room below the paragraph */
}

.btn {
    display: inline-block;
    width: auto;         /* Changed from 280px to auto for better fit */
    padding: 15px 30px;  /* Added horizontal padding since width is now auto */
    text-align: center;
    background: var(--main-color);
    color: var(--bg-color);
    border: 2px solid var(--main-color);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    transition: all .50s ease;
}
.main-btn {
    position: relative;
    z-index: 5;
}

.btns .game {
    background-color: #4acc6d;
    border: 2px solid #4acc6d;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(9, 3, 33, 0.8); /* Adjust opacity as needed */
    z-index: 2;        /* Sits between the image and the text */
}


.main-content {
    flex: 1; 
    max-width: 600px;
}


.main-content h4{
    font-size: 1.6rem;
}

.main-content h1{
    font-size: var(--h1-font);
    font-weight: 700;
    margin: 20px 0px 20px;
    line-height: 1;
}

.main-content p{
    font-size: 1.2rem;
    font-weight: 400;
    width: 620px;
    max-width: 100%;
    color: var(--other-color);
    line-height: 30px;
    margin-bottom: 15px;
}

.social{
    margin-bottom: 40px;
}

.social i{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--main-color);
    border-radius: 50%;
    backdrop-filter: brightness(88%);
    font-size: 20px;
    margin-right: 17px;
    box-shadow: 0 0 20px transparent;
    cursor: pointer;
    transition: all .50s ease;
}

.social i:hover{
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--main-color);
}

/* This targets the container holding the image */
.hero-img {
    flex: 1;             /* Tells this div to take up the remaining space */
    display: flex;       /* Allows us to center the <img> inside this div */
    
    justify-content: center; 
    align-items: center;
    z-index: 3;
}

/* This targets the actual image file */
.hero-img img {
    max-width: 110%;     /* Ensures it doesn't overflow the container */
    margin-right: 250px;
    margin-top: 100px;
    height: auto;
    max-height: 1200px;   /* Prevents the image from being too tall */
    /* Optional: add a slight tilt for a more 'dynamic' game dev look */
    transform: perspective(1000px) rotateY(-10deg); 

    filter: 
    brightness(1.05) 
    contrast(1.1) 
    saturate(1.5) 
    /* Increased hue-rotate to push colors further into the blues/cyans */
    hue-rotate(180deg) 
    /* Added opacity for transparency */
    opacity(0.8)
    /* Boosted the shadow for a deeper blue glow */
    drop-shadow(0 0 8px rgba(0, 100, 255, 0.9));
}

.hero-img::before {
  content: " ";
  position: absolute;
  inset: 0;
  /* Scanlines + Grain */
  background: 
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%),
    linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 3px, 3px 100%;
  z-index: 2;
  pointer-events: none;
}

.btn:hover{

    background: transparent;
    color: var(--main-color);
    box-shadow: 0 0 20px var(--main-color);
}

.game:hover{
    
    background: transparent;
    color: #4acc6d;
    box-shadow: 0 0 20px #4acc6d;
}

.btn2{
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    margin-left: 15px;
    transition: all .50 ease;
}

.btn2:hover{
    background: var(--main-color);
    color: var(--bg-color);  
}

header.sticky{
    background: var(--bg-color);
    box-shadow: 0 .1rem 1rem rgba(0, 0, 0, .2);
    padding: 16px 16%;
}

.about{
    background: var(--second-bg-color);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 1rem;
}

.about-img img{
    width: 90%;
    height: 477px;
    max-width: 477px;
    border-radius: 50%;
    object-fit: cover;
    border: 7px solid var(--main-color);
    box-shadow: 0 0 20px var(--main-color);
}

.about-text h2{
    font-size: var(--h2-font);
    line-height: 1.3;
    margin-bottom: 20px;
}

.exp-area{
    margin-bottom: 50px;
}

.exp-area p{
    color: var(--text-color);
    font-weight: 600;
    font-size: 19px;
    line-height: 42px;
}

.exp-area p span{
    color: var(--other-color);
    font-size: var(--p-font);
    font-weight: 400;
    margin-left: 8px;
}

.center-text{
    text-align: center;
}
.center-text h2{
    font-size: var(--h2-font);
}

.services-content{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, auto));
    align-items: center;
    gap: 2.3rem;
    margin-top: 4.2rem;
}

.box{
    padding: 80px 40px 66px;
    background: #2d343f;
    border-radius: 28px;
    /* Add These Lines */
    width: 380px;           /* Sets a fixed width */
    height: 580px;          /* Sets a fixed height */
    border: 1px solid transparent;
    box-shadow: 0 0 5px var(--main-color);
    transition: all .50s ease;
    cursor: pointer;
}

.box img{
    margin-bottom: 20px;
}

.box h3{
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
}

.box p{
    font-size: var(--p-font);
    font-weight: 400;
    color: var(--other-color);
    line-height: 30px;
    margin-bottom: 20px;
}

.box a{
    display: inline-block;
    font-size: 22px;
    line-height: 1.273em;
    font-weight: 700;
    padding: 7px 0;
    color: var(--text-color);
    border-bottom: 2px solid #5d6c83;
    transition: all .50s ease;
}

.box i{
    vertical-align: middle;
    font-size: 25px;
    color: var(--main-color);
    margin-left: 5px;
}

.box a:hover{
    border-bottom: 2px solid var(--main-color);
}

.box:hover{
    border: 1px solid var(--main-color);
    transform: translateY(-5px) scale(1.03);
}

.portfolio{
    background: var(--second-bg-color);
}

.Portfolio-content{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, auto));
    align-items: center;
    gap: 2.3rem;
    margin-top: 4.2rem;
}

.row img{
    height: auto;
    width: 100%;
    border-radius: 28px;
    margin-bottom: 1.4rem;
}

.row{
    background: #2d343f;
    border-radius: 28px;
    border: 1px solid transparent;
    box-shadow: 0 0 5px var(--main-color);
    padding: 20px;
    transition: all .50s ease;
}

.main-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.row h5{
    font-size: 20px;
    font-weight: 600;
    color: var(--other-color);
}

.row i{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    font-size: 27px;
    border-radius: 50%;
    color: var(--text-color);
    background: #075fe4;
}

.row h4{
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.row:hover{
    border: 1px solid var(--main-color);
    transform: translateY(-5px) scale(1.03);
    cursor: pointer;
}

.contact-form{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4.2rem;
}

.contact-form form{
    position: relative;
    width: 600px;
}

form input,
form textarea{
    width: 100%;
    padding: 20px;
    border: none;
    outline: none;
    box-shadow: 0 0 5px var(--main-color);
    background: #2d343f;
    color: var(--text-color);
    margin-bottom: 20px;
    border-radius: 8px;
}

form input::placeholder,
form textarea::placeholder{

    color: var(--other-color);
    font-size: 15px;

}

form .send-btn{
    display: inline-block;
    padding: 11px 26px;
    background: var(--main-color);
    color: var(--bg-color);
    border: 2px solid var(--main-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all .50s ease;
    width: 30%;
}

form .send-btn:hover{
    background: transparent;
    color: var(--main-color);
    box-shadow: 0 0 20px var(--main-color);
    cursor: pointer;
}

.footer{
    padding: 22px 16%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.copyright p{
    font-size: 15px;
    font-weight: 400;
    color: var(--other-color);
}

.scroll-top i{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #075fe4;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: var(--text-color);
    font-size: 27px;
}

@media (max-width: 1700px){

    header{
        padding: 20px 8%;
    }

    header.sticky{
        padding: 14px 8%;
    }

    section{
        padding: 90px 8% 80px;
    }

    .footer{
        padding: 18px 8%;
    }

    .logo{
        font-size: 28px;
    }

}

@media (max-width: 1380px){

    header{
        padding: 20px 5%;
    }

    header.sticky{
        padding: 14px 5%;
    }

    section{
        padding: 90px 5% 80px;
    }

    .footer{
        padding: 18px 5%;
    }

    .hero{
        height: 90vh;
        background-position: center;
    }

}

@media (max-width: 1290px){
    .box{
        padding: 40px 40px 46px;
    }

    .box img{
        width: 100%;
        height: 60px;
        max-width: 60px;
    }

    .box h3{
        font-size: 21px;
    }
}

@media (max-width: 1240px){
    .about{
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-img img{
        text-align: center;
        width: 100%;
        height: 400px;
        max-width: 400px;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 auto;
    }

    :root{
        --h1-font: 4rem;
        --h2-font: 2.2rem;
        --p-font: 15px;
    }
}

@media (max-width: 950px){
    :root{
        --h1-font: 3.5rem;
    }
    .social{
        margin-bottom: 20px;
    }

    .hero-img {
        display: none;
    }
    .hero-container {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }
    
    .btns {
        align-items: flex-start; /* Align left on mobile for better flow */
        margin-top: 20px;
    }

    #menu-icon{
        display: block;
    }
    .navlist{
        position: absolute;
        top: 100%;
        right: -100%;
        width: 255px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        background: var(--bg-color);
        transition: all .50s ease;
    }

    .navlist a{
        display: block;
        padding: 17px;
        font-size: 22px;
    }

    .navlist.active{
        right: 0;
    }
}

@media (max-width: 680px){
    .main-content p{
        width: 100%;
    }
    .hero-img {
        display: none;
    }
}

@media (max-width: 470px){
    :root{
        --h1-font: 3rem;
        --h2-font: 2rem;
    }
    .about-img img{
        text-align: center;
        width: 120%;
        height: 300px;
        max-width: 300px;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 auto;
    }
    .hero-img {
        display: none;
    }
}



#about-section {
    display: block; /* Ensure the span has a layout */
    position: relative;
    top: -100px; /* Offset the section upwards by 100px */
}

#services-section {
    display: block; /* Ensure the span has a layout */
    position: relative;
    top: -50px; /* Offset the section upwards by 100px */
}

#portfolio-section {
    display: block; /* Ensure the span has a layout */
    position: relative;
    top: -90px; /* Offset the section upwards by 100px */
}

.sanctuary-ascent {
    color: #427ec3;
    font-size: 30px;
}

.sicario {
    color: #ad4793;
    font-size: 30px;
}

.btn-game {
    display: inline-block;
    padding: 11px 26px;
    background: var(--main-color);
    color: var(--bg-color);
    border: 2px solid var(--main-color);
    border-radius: 8px;
    font-size: 20px;
    font-weight: 600;
    transition: all .50s ease;
}

.btn-game:hover{

    background: transparent;
    color: var(--main-color);
    box-shadow: 0 0 20px var(--main-color);
}