/* ========================= */
/*      GLOBAL STYLES        */
/* ========================= */

/* Basic page settings */
body {

    margin: 0;

}

/* Removes default browser spacing and prevents horizontal scrolling */
html,
body{

    margin: 0;

    padding: 0;

    background: black;

    overflow-x: hidden;

}

/* Homepage hero section with slideshow background */
#topBackground {

    background-image: url("images/game1-hero.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    height: 80vh;
    width: 100%;
    padding-top: 20px;

}

/* ========================= */
/*      NAVIGATION MENU      */
/* ========================= */

/* Main navigation bar */
#topMenu {

    background-color: #8b0000;

    border-radius: 25px;

    margin: 0 20px;
    padding: 20px 30px;

}



#topMenu nav {

    display: flex;

    align-items: center;
    justify-content: space-between;

}

/* Container for the dropdown menu */
.dropdown{

    position: relative;

}

/* Hidden dropdown links shown on hover */
.dropdownContent{

    position: absolute;

    top: calc(100% + 10px);
    left: 0;

    min-width: 180px;

    background: #8b0000;

    border-radius: 12px;

    overflow: hidden;

    opacity: 0;

    visibility: hidden;

    transform: translateY(-15px);

    transition: 0.3s;

    z-index: 999;

}

.dropdownContent a{

    display: block;

    padding: 15px 20px;

    color: white;

    text-decoration: none;

    font-family: Arial, sans-serif;

}


.dropdownContent a:hover{

    background: rgba(255, 255, 255, 0.1);

}

/* Displays the dropdown menu when hovered */
.dropdown:hover .dropdownContent{

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

}


.menuButton {

    color: white;
    text-decoration: none;
    font-weight: bold;
    font-family: Arial, sans-serif;

    padding: 10px 15px;

    transition: 0.3s;

}


.menuButton:hover {
    /* special effects? */
}

/* Hamburger button shown on smaller screens */
.hamburger{

    display: none;

    background: none;

    border: none;

    color: white;

    font-size: 32px;

    cursor: pointer;

}

.mobileMenu{

    display: block;

    position: absolute;

    left: 0;
    top: 100%;

    width: 100%;

    background: #8b0000;

    z-index: 999;

    max-height: 0;

    opacity: 0;

    overflow: hidden;

    transform: translateY(-10px);

    transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;

}

.mobileMenu a{

    display: block;

    padding: 18px;

    text-align: center;

    text-decoration: none;

    color: white;

    font-family: Arial, sans-serif;

}

/* Shows the mobile menu when activated with JavaScript */
.mobileMenu.active{

    max-height: 500px;

    opacity: 1;

    transform: translateY(0);

}




.logo img {

    display: block;

    max-width: 240px;
    height: auto;

}


/* ========================= */
/*      STUDIO SECTION       */
/* ========================= */

/* Layout for the studio information section */
#studioSection {

	display:flex;

    min-height: 80vh;
    background:#8b0000;

    align-items:center; /* align-items: center for text to be in middle of photo */

    padding:100px 60px;

    box-sizing:border-box;

}

/* Text content about the studio */
#studioInfo{

	flex:1;

    padding-right:40px;

    color: white;
    text-decoration: none;
    font-weight: bold;
    font-family: Arial, sans-serif;

    min-height: 300px; /* same as image */

    display: flex;
    flex-direction: column;

    font-size: 18px;
    line-height: 1.7;

    justify-content: space-between;


}

#studioInfo h2{

    font-size: 48px;

    margin-top: 0;

    margin-bottom: 30px;

    font-family: Arial, sans-serif;

    font-weight: bold;

}

/* Container for the studio image */
#studioSectionArt{

    flex:1;
    display:flex;

    justify-content:center;

}

#studioSectionArt img{

    width:100%;
    max-width:800px;

    border-radius: 18px;

}





footer{

   background: black;

   padding: 40px;

    
}

.footerContent img{

    width: 180px;
    max-width: 70vw;
    height: auto;

}

.footerLinks{

    display: flex;

    gap: 30px;

}

.footerLinks a{

    color: white;

    text-decoration: none;

    font-family: Arial, sans-serif;

}

.footerInfo{

    color: white;

    font-family: Arial, sans-serif;

    text-align: center;

}

.footerContent{

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    gap: 25px;

    max-width: 1400px;

    margin: 0 auto;

}

#mainGameShowcase1,
#mainGameShowcase2{

    background-color:#8b0000;

    display:flex;

    justify-content:space-evenly;
    align-items:center;

    padding:60px;
    gap:40px;

}

/* ========================= */
/*        GAME CARDS         */
/* ========================= */

/* Reusable game card component */
.gameCard{

    position:relative;
    
    overflow:hidden;
    cursor: pointer;

    border-radius: 18px;

    text-decoration: none;

    color: inherit;

}


.gameCard img{

    width:100%;
    height:100%;

    display:block;

    object-fit: cover;

    transition:0.4s ease;

}

/* Overlay shown when hovering over a game card */
.overlay{


    position:absolute;
    inset: 0;
    top:0;
    left:0;
    width:100%;
    height:100%;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    text-align:center;
    color:white;
    font-family:Arial, sans-serif;

    opacity:0; /* Used to make the overlay invisible at first */
    transition:0.4s ease;

    background:rgba(0,0,0,0);

}

/* Darkens and zooms the image on hover */
.gameCard:hover img{

    filter:brightness(45%);
    transform:scale(1.03); /* Used to zoom slightly in */

}

/* Makes the overlay visible on hover */
.gameCard:hover .overlay{

    opacity:1;
    background:rgba(0,0,0,0.35); /* Semi-transparent black background */

}


.overlay h2{

    margin:0;

    font-size:38px;
    font-weight:bold;

}

.overlay p{

    margin-top:12px;

    font-size:20px;

}

#topBackground{

    position: relative;

    transition: background-image 0.8s ease-in-out;

}

#topBackground::after {

    pointer-events: none;
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);

}

/* ========================= */
/*     HOMEPAGE SLIDER       */
/* ========================= */

/* Text box updated by the slideshow */
#heroInfo {

    position: absolute;
    bottom: 60px;
    left: 40px;

    background: darkblue;
    color: white;

    padding: 20px 40px;
    width: min(640px, calc(100% - 80px));
    box-sizing: border-box;

    border-radius: 12px;
    font-family: Arial, sans-serif;

    box-shadow: 0 10px 25px rgba(0,0,0,0.4);

    z-index: 2;

}

/* Slider navigation buttons */
#prevBtn,
#nextBtn {

position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 2;

background: rgba(0,0,0,0.5);
color: white;
border: none;

font-size: 28px;
padding: 12px 16px;

cursor: pointer;
border-radius: 8px;

}

 #prevBtn {
    left: 20px; 
}
 #nextBtn { 
    right: 20px; 
}

#topMenu{

    position: relative;

    z-index: 10;

    padding: 15px 20px;

}

/* Hero section for the games page */
.gamesHero{

    position: relative;

    height: 70vh;

    background-image: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0, 0, 0, 0.2)), url("images/game2-hero.jpg");

    background-size: cover;
    background-position: center;

    padding-top: 20px;

}

.gamesHeroText{

    position: absolute;

    bottom: 80px;
    left: 60px;

    color: white;

    font-family: Arial, sans-serif;


}

.gamesHeroText h1{

    margin: 0;

    font-size: 72px;

}

.gamesHeroText p{

    margin-top: 15px;

    font-size: 22px;

}

/* Large featured game showcase */
.featuredSection{

    background: #8b0000;

    padding: 120px 60px 100px 60px;

    display: flex;
    justify-content: center;

}

.featuredCard{

    width: 100%;

    max-width: none;

    height: min(720px, 70vh);

    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);



}

.featuredCard img{

    object-position: center 85%;

}

.gamesRow{

    display: flex;

    gap: 40px;

    padding: 0 60px 80px 60px;

    background:  #8b0000;

}

.mediumCard{

    flex: 1;

    height: 600px;

}

/* Grid layout for additional games */
.gamesGrid{

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    justify-content: center;

    gap: 40px;

    

    padding: 40px 60px 140px 60px;

    background: #8b0000;

    margin: 0 auto;

}

.smallCard{

    width: 100%;

    height: 320px;

}

.gameCard:hover img{

    transform: scale(1.05);

    filter: brightness(45%);

}

.gameCard:hover .overlay{

    opacity: 1;

    background: rgba(0, 0, 0, 0.35);

}

/* ========================= */
/*        ABOUT PAGE         */
/* ========================= */

.aboutHero{

    position: relative;

    height: 75vh;

    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2)),
    url("images/game3-hero.jpg");

    background-size: cover;
    background-position: center;

    padding-top: 20px;

}

.aboutHeroText{

    position: absolute;

    bottom: 100px;
    left: 60px;

    color: white;

    font-family: Arial, sans-serif;

    max-width: 700px;

    z-index: 2;

}

.aboutHeroText h1{

    margin: 0;

    font-size: 88px;

    line-height: 0.95;

}

.aboutHeroText p{

    margin-top: 25px;

    font-size: 24px;

    line-height: 1.6;

}

.aboutStudioSection{

    display: flex;

    align-items: center;

    gap: 60px;

    padding: 120px 60px;

    background: #8b0000;

}

.aboutStudioInfo{

    flex: 1;

    color: white;

    font-family: Arial, sans-serif;

}

.aboutStudioInfo h2{

    font-size: 56px;

    margin-bottom: 30px;

}

.aboutStudioInfo p{

    font-size: 20px;

    line-height: 1.8;

    margin-bottom: 25px;

}

.aboutStudioArt {

    flex: 1;

}

.aboutStudioArt img{

    width: 100%;

    border-radius: 18px;

    display: block;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);

}

/* Studio values cards */
.studioValues{

    display: flex;

    gap: 40px;

    padding: 40px 60px 120px 60px;

    background: #8b0000;

}

.studioValues .mediumCard{

    height: 420px;

    flex: 1;

}

/* Large quote banner */
.quoteSection{

    display: flex;

    justify-content: center;
    align-content: center;

    text-align: center;

    height: 60vh;

    padding: 0 40px;

    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4)),
    url("images/game2-hero.jpg");

    background-size: cover;
    background-position: center;


}

.quoteSection h2{

    color: white;

    font-size: 72px;

    font-family: Arial, sans-serif;

    max-width: 1100px;

}

.promoSection{

    background: #8b0000;

    padding: 140px 40px;

    text-align: center;

    font-family: Arial, sans-serif;

    color: white;

}

.promoSection h2{

    font-size: 72px;

    margin-bottom: 20px;

}

.promoSection p{

    font-size: 24px;

    margin-bottom: 40px;

}

.promoButton{

    display: inline-block;

    padding: 18px 40px;

    background: white;

    color: black;

    text-decoration: none;

    font-weight: bold;

    border-radius: 12px;

    transition: 0.3s ease;

}

.promoButton:hover{

    transform: translateY(-3px);

    background: #ddd;

}

/* ===================== */
/*      GAME PAGE        */
/* ===================== */

/* Hero section for individual games */
.gameHero{

    position: relative;

    height: 75vh;

    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2)),
    url("https://dummyimage.com/1920x1080/000/fff");

    background-size: cover;
    background-position: center;

    padding-top: 20px;

}

.gameHeroText{

    position: absolute;

    left: 60px;
    bottom: 100px;

    color: white;

    font-family: Arial, sans-serif;

    max-width: 700px;

}

.gameHeroText h1{

    margin: 0;

    font-size: 88px;

    line-height: 0.95;

}

.gameHeroText p{

    margin-top: 20px;

    font-size: 24px;

    line-height: 1.6;


}

/* Content sections with text and images */
.gameInfoSection{

    display: flex;

    align-items: center;

    gap: 60px;

    padding: 120px 60px;

    background: #8b0000;

}

/* Reverses the layout order */
.reverseSection{

    flex-direction: row-reverse;

}

.gameText{

    flex: 1;

    color: white;
    font-family: Arial, sans-serif;

}

.gameText h2{

    font-size: 56px;

    margin-bottom: 30px;

}

.gameText p{

    font-size: 20px;

    line-height: 1.8;

    margin-bottom: 25px;

}

.gameImage{

    flex: 1;


}

.gameImage img{

    width: 100%;

    display: block;

    border-radius: 18px;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);


}

.fullImageSection{

    background: black;

    padding: 100px 0;

}

.fullImageSection img{

    width: 100%;

    display: block;


}



/* ==================== */
/*    CONTACT PAGE      */
/* ==================== */

/* Main contact page layout */
.contactSection{

    min-height: 80vh;

    background: black;

    padding-top: 20px;

    position: relative;

}

/* Centered message displayed on the page */
.contactText{

    display: flex;

    justify-content: center;
    align-items: center;

    text-align: center;

    height: 70vh;

    padding: 0 40px;

}

.contactText h1{

    color: white;
    
    font-size: 96px;
    font-family: Arial, sans-serif;
    font-weight: bold;

    line-height: 1.1;

    max-width: 1200px;

}





/* ======================= */
/*   MOBILE ADJUSTMENTS    */
/* ======================= */

/* Tablet and mobile adjustments */
@media (max-width:768px){

    .footerContent{

        flex-direction: column;

        text-align: center;

    }

    .footerLinks{

        flex-direction: column;

        gap: 15px;

    }

    .footerContent img{

    width: 120px;

    }

    .footerInfo{

        text-align: center;

    }

    .hamburger{

        display: block;

    }

    #topMenu{

        border-radius: 0;

    }

    .menuButton{

        display: none;

    }

    .dropdown{

        display: none;

    }

    .logo img{

        max-width: 140px;

    }

    #topMenu nav{

        justify-content: space-between;

    }

    #heroInfo{

        left: 20px;
        right: 20px;

        width: auto;

        padding: 15px 20px;

    }

    #heroTitle{

        font-size: 32px;

    }

    #heroDesc{

        font-size: 16px;
        line-height: 1.5;

    }

    .mediumCard{

        height: 280px;

    }

    .smallCard{

        height: 220px;

    }

}

/* Layout changes for smaller screens */
@media (max-width:992px){

    #studioSection,
    .aboutStudioSection,
    .gameInfoSection,
    .gamesRow,
    .studioValues{

        flex-direction: column;

        height: auto;

    }

    #studioInfo h2{

        font-size: 40px;

        text-align: center;

    }

    #studioSection,
    .aboutStudioSection,
    .gameInfoSection{


        padding:60px 30px;

    }

    

    .reverseSection{

        flex-direction: column;

    }

    .gamesGrid{

        grid-template-columns: repeat(2, 1fr);

    }

    #studioInfo{

        padding-right: 0;

    }

    #studioSectionArt{

        width: 100%;

        justify-content: center;

    }

    #mainGameShowcase1{

        padding-bottom: 20px;

    }

    #mainGameShowcase2{

        padding-top: 20px;

    }

    #mainGameShowcase1,
    #mainGameShowcase2{

        flex-direction: column;

    }

    #mainGameShowcase1 .gameCard,
    #mainGameShowcase2 .gameCard{

        

        width: 100%;

        height: 400px;

    }


}

/* Adjustments for smaller mobile phones */
@media (max-width:600px){

    .gamesGrid{

        grid-template-columns: 1fr;

        gap: 20px;

        padding: 30px 20px 80px 20px;

    }

    .gamesRow{

        padding: 0 20px 30px 20px;

    }

    .featuredCard,
    .gamesRow .mediumCard{

        display: block;

        width: calc(100vw - 40px);

        margin: 0 auto;

        flex: none;

    }

    .featuredSection{

        padding: 30px 20px;

    }

    .gamesHeroText,
    .aboutHeroText,
    .gameHeroText{

        left: 20px;
        right: 20px;

    }

    .gamesHeroText h1,
    .aboutHeroText h1,
    .gameHeroText h1{

        font-size: 48px;

    }

    #studioInfo h2{

        font-size: 32px;

        text-align: center;

    }

    #studioInfo{

        font-size: 16px;

        line-height: 1.6;

        text-align: center;

    }

    .contactText h1{

        font-size: 48px;

    }

    .quoteSection h2{

        font-size: 36px;

    }

    .featuredCard{

        height: 350px;

    }

    .promoSection h2{

        font-size: 36px;

        line-height: 1.1;

    }

    
}

.mobileMenu{

    font-family: Arial, sans-serif;
    font-weight: bold;

}

/* Adjustments for medium-sized screens */
@media(max-width: 1200px){

    #studioSection{

        flex-direction: column;

        height: auto;

        padding: 80px 60px;

    }

    #studioSectionArt img{

        padding-top: 60px;

    }

    #studioInfo{

        padding-right: 0;

    }

    #studioSectionArt{

        width: 100%;

        justify-content: center;

    }

}