/* ============================== Global Reset ============================== */
@font-face {
    font-family: 'GreatVictorian';
    src: url('assets/fonts/GreatVictorian-Standard.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'GreatVictorian', sans-serif;
    font-weight: bold;
    background: radial-gradient(circle at top, #12233a 0%, #0b1220 60%);
    color: #e6edf7;
    line-height: 1.6;
    font-size: 40px;
}

/* ============================== Header ============================== */
header {
    font-family: 'GreatVictorian', sans-serif;
    font-weight: bold;
    font-size: 40px;
    position: fixed;
    top: 0;
    width: 100%;
    height: 120px;
    padding: 0 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(11, 18, 32, 0.75);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(47, 109, 246, 0.25);
    z-index: 100;
}

/* ============================== Logo area ============================== */
.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 100px;
    width: 200px;
    object-fit: cover;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.studio-name {
    letter-spacing: 1px;
    color: #ffb86b;
}

/* ============================== Center navigation ============================== */
.main-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.main-nav a {
    font-family: 'GreatVictorian', sans-serif;
    font-weight: bold;
    font-size: 35px;
    margin: 0 25px;
    text-decoration: none;
    color: #a9b7d0;
    transition: 0.2s ease;
    letter-spacing: 2px;
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
}

.main-nav a:hover {
    color: #ff9a3c;
}

/* ============================== Hero Section ============================== */
.hero {
    height: 100vh;
    background-image: url("assets/LibraryHero.png");
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-home {
    background-image: url("assets/Screenshot_MainMenu.png");
}

.hero-spectral {
    background-image: url("assets/Screenshot_Mansion.png");
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(11,18,32,0.7),
        rgba(11,18,32,0.5)
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 0 20px;
}

.hero-logo {
    max-width: 700px;
    width: 100%;
    height: auto;
    margin-top: 50px;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 25px rgba(0,0,0,0.6));
}

.hero h1 {
    font-family: 'GreatVictorian', sans-serif;
    font-weight: normal;
    font-size: 150px;
    margin-bottom: 20px;
    letter-spacing: 3px;
    color: #ff9a3c;
    text-shadow: 0 0 25px rgba(255,154,60,0.4);
}

.hero p {
    font-family: 'Noto Serif', serif;
    font-weight: normal;
    font-size: 18px;
    color: #c7d4ec;
}

/* ============================== Content Sections ============================== */
.content {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 0px 0px;
}

section {
    padding: 20px 0;
}

h2 {
    font-size: 2rem;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #ff9a3c;
    letter-spacing: 2px;
    text-shadow:
        -0.5px -0.5px 0 #000,
         0.5px -0.5px 0 #000,
        -0.5px  0.5px 0 #000,
         0.5px  0.5px 0 #000;
}

p {
    font-family: 'Noto Serif', serif;
    font-weight: normal;
    font-size: 18px;
    margin-bottom:20px;
    color: #a9b7d0;
}

ul {
    font-family: 'Noto Serif', serif;
    font-weight: normal;
    font-size: 18px;
    margin-left: 40px;
    color: #a9b7d0;
}

a {
    font-family: 'Noto Serif', serif;
    font-weight: normal;
    font-size: 18px;
    color: #a9b7d0;
    text-decoration: none;
}

/* ============================== Games Grid ============================== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    color: #a9b7d0;
}

.game-card {
    background: rgba(18, 35, 58, 0.6);
    border: 1px solid rgba(47, 109, 246, 0.25);
    padding: 30px;
    border-radius: 16px;
    transition: 0.3s ease;
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: #ff9a3c;
    box-shadow: 0 10px 30px rgba(255,154,60,0.15);
}

.game-thumb {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* ============================== Buttons ============================== */
.button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    padding: 12px 28px;
    width: 100%;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, #203f68, #203f68);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s ease;
    color: #ffffff;
    letter-spacing: 0.2px;
    text-shadow:
        -0.5px -0.5px 0 #000,
         0.5px -0.5px 0 #000,
        -0.5px  0.5px 0 #000,
         0.5px  0.5px 0 #000;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(47,109,246,0.4);
}

/* ============================== Screenshots ============================== */
.screenshot-section {
    padding: 0px 0;
}

.screenshot-section h2 {
    margin-bottom: 20px;
}

.slideshow {
    width: 100%;
    position: relative;
    aspect-ratio: 16 / 9;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;

    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* ============================== Trailer ============================== */
.video-section {
    padding-top: 20px;
    height: 100%;
    text-align: center;
}
.video-section h2 {
    max-width: 1100px;
    margin: 0 auto 20px auto;
    padding: 0 0px;
    text-align: left;
}

.video-container {
    width: 80%;
    max-width: 1100px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

/* ============================== Contact ============================== */
.header-socials {
    display: flex;
    gap: 25px;
    align-items: center;
}

.header-socials a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    border-radius: 10px;

    transition: all 0.25s ease;
}

.header-socials img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: brightness(1);
    transition: 0.25s ease;
}

.header-socials a:hover {
    transform: translateY(-3px);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 40px rgba(47, 109, 246, 0.7);
    filter: brightness(2);
}

/* ============================== Footer ============================== */
footer {
    text-align: center;
    padding: 60px 20px;
    color: #6b7a94;
}

.footer-link {
    font-family: 'GreatVictorian', sans-serif;
    font-weight: bold;
    font-size: 30px;
    letter-spacing: 1px;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
}

.footer-link:hover {
    color: #ff9a3c;
}

/* ============================== Mobile ============================== */
@media screen and (max-width: 1300px) {
    
    body {
        font-size: 22px;
    }

    header {
        height: auto;
        padding: 20px;
        flex-direction: column;
        position: relative;
        gap: 15px;
        background: rgba(11, 18, 32, 0.95);
    }

    .logo {
        height: 60px;
        width: auto;
        object-fit: contain;
    }

    .main-nav {
        position: static;
        transform: none;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .main-nav a {
        font-size: 22px;
        margin: 0 15px;
    }

    .hero {
        height: auto;
        min-height: 70vh;
        padding: 80px 20px;
        display: flex;
        align-items: center;
    }

    .hero-logo {
        max-width: 80%;
        height: auto;
    }

    .content {
        padding: 60px 20px; 
        max-width: 100%;
    }

    section {
        margin-bottom: 40px;
    }

    h2 {
        font-size: 1.8rem;
        margin-top: 0;
    }

    .games-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .game-card {
        width: 100%;
        padding: 20px;
    }
}