@font-face {
    font-family: 'Chreed';
    src: url('./fonts/Chreed-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'Lato', Helvetica, Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2d3436;
    background-color: #0a0a0a;
}

.trailer-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0px;
}

.trailer-section iframe {
    width: 100%;
    height: 400px;
}

.reveal-section {
    opacity: 0;
    transform: translateY(60px) scale(0.98);
    transition: opacity 0.9s cubic-bezier(0.33, 1, 0.68, 1), transform 0.9s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: opacity, transform;
}

.reveal-section.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: #000000;
    color: #ffffff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
}

.steam-image {
    filter: invert();
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.nav a img {
    height: 20px;
}

.nav a:hover {
    color: #ffe66d;
}

.grid-wrapper {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 800px;
    margin: auto;
    margin-bottom: 20px;
}

.computer-tagline {
    font-family: 'Chreed', Helvetica, Tahoma, Geneva, Verdana, sans-serif;
    font-size: 80px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .2px;
    text-align: center;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    position: relative;
    z-index: 3;
}

.screenshot-card {
    width: 50%;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.12), rgba(12, 12, 12, 0.8));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: inherit;
    pointer-events: none;
}

.screenshot-border {
    position: absolute;
    inset: 0;
    border: 10px solid black;
    pointer-events: none;
}

.screenshot-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    padding: 6rem 0;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
    border: 10px solid black;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Goudy Bookletter 1911', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title span {
    font-family: helvetica;
}


.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.cta-button {
    background: #0f036e;
    color: #ffffff;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
    -webkit-appearance: none;
    border: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.4);
}

.about {
    padding: 4rem 0;
    background: #000000;
}

.about h2 {
    font-family: 'Inria Serif', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #ffffff;
}

.about p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
    color: #ffffff;
}

.games {
    padding: 4rem 0;
    background: #0f0f0f;
}

.games h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #ffffff;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: auto;
}

.game-card {
    background: #202020;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.2);
    background: #292929;
}

.game-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.game-image {
    width: 110%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    transform: translateX(-5%);
}

.game-card:hover .game-image {
    transform:  translateX(-5%) scale(1.05);
}

.game-info {
    padding: 1.5rem;
}

.game-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.game-description, .game-designer {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.6;
}

.game-designer {
    margin-top: 10px;
}

#contact {
    width: 100%;
    height: 500px;
}
#contact iframe {
    width: 100%;
    filter: invert();
}

.footer {
    background: #161616;
    color: #ffffff;
    padding: 2rem 0;
    text-align: center;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(45, 52, 54, 0.9);
    animation: fadeIn 0.3s;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    top: 50%;
    transform: translateY(-50%);
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: -10px;
    right: 10px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .logo img {
        display: none;
    }
    .logo h1 {
        font-size: 15px;
    }
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .nav {
        gap: 1rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .computer-wrapper {
        grid-template-columns: 1fr;
    }

    .computer-tagline {
        font-size: 3rem;
    }
}
