@import url('https://fonts.googleapis.com/css2?family=Kiwi+Maru:wght@300;400;500&family=Montserrat:wght@400;700&display=swap');

:root {
    --clr-primary: #e9c966;
    --clr-primary-hover: #c5970d;
    --clr-bg-dark: #000000;
    --clr-bg-gray: #1e1e1e;
    --clr-text-light: #ffffff;
    --clr-text-dark: #333333;
    --clr-text-muted: #a0a0a0;
    
    --font-main: 'Montserrat', sans-serif;
    --font-alt: 'Kiwi Maru', serif;
    
    --transition: 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px; 
}

body {
    font-family: var(--font-main);
    color: var(--clr-text-light);
    background-color: #f8f9fa; 
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }

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

.section { padding: 80px 0; }
.section--dark { background-color: var(--clr-bg-gray); color: var(--clr-text-light); }
.text-dark { color: var(--clr-text-dark) !important; }

.section-header { text-align: center; margin-bottom: 50px; }
.section-title { font-size: 2.5rem; color: var(--clr-primary); margin-bottom: 10px; font-family: var(--font-alt); }
.section-subtitle { color: var(--clr-text-muted); font-size: 1.1rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn--primary {
    background-color: var(--clr-primary);
    color: var(--clr-bg-dark);
    box-shadow: 0 4px 15px rgba(233, 201, 102, 0.3);
}

.btn--primary:hover {
    background-color: var(--clr-primary-hover);
    box-shadow: 0 6px 20px rgba(233, 201, 102, 0.5);
    transform: translateY(-2px);
}

.btn--outline {
    background-color: transparent;
    border: 2px solid var(--clr-primary);
    color: var(--clr-primary);
}

.btn--outline:hover {
    background-color: var(--clr-primary);
    color: var(--clr-bg-dark);
}

.btn--small { padding: 8px 16px; font-size: 0.8rem; }
.btn--large { padding: 15px 40px; font-size: 1.2rem; }

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav__logo img { height: 50px; }

.nav__menu {
    display: flex;
    gap: 30px;
}

.nav__link {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--clr-text-light);
    transition: var(--transition);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.nav__link:hover, .nav__link--active {
    color: var(--clr-primary);
    border-bottom: 2px solid var(--clr-primary);
}

.nav__burger { display: none; background: transparent; flex-direction: column; gap: 5px; }
.nav__burger span { width: 25px; height: 3px; background: var(--clr-primary); transition: 0.3s; }

.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/bg1.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 0 5%;
    margin-top: 0; 
}

.hero__content { max-width: 600px; padding-top: 80px; }

.hero__subtitle { font-size: 2rem; color: var(--clr-text-light); font-weight: 400; margin-bottom: 10px; }
.hero__title { font-size: 4.5rem; color: var(--clr-primary); font-family: var(--font-alt); line-height: 1.1; margin-bottom: 20px; text-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.hero__desc { font-size: 1.2rem; margin-bottom: 30px; color: #ddd; }

.about { background-color: var(--clr-bg-dark); }
.about__container { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.about__img-wrapper { flex: 1; text-align: center; }
.about__img { border-radius: 20px; box-shadow: 0 10px 30px rgba(233, 201, 102, 0.2); }
.about__text-wrapper { flex: 1; }

.feature { margin-bottom: 30px; }
.feature__title { font-size: 1.5rem; color: var(--clr-primary); margin-bottom: 10px; }
.feature__text { color: var(--clr-text-muted); }

.games__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center;
}

.game-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(233, 201, 102, 0.3);
}

.game-card__img-box { height: 200px; overflow: hidden; }
.game-card__img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.game-card:hover .game-card__img { transform: scale(1.1); }

.game-card__info {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
    background: #fff;
}

.game-card__title { font-size: 1.2rem; color: var(--clr-bg-dark); }

.platform__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.platform__card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(233, 201, 102, 0.1);
    transition: var(--transition);
}

.platform__card:hover { border-color: var(--clr-primary); background: rgba(255, 255, 255, 0.1); }
.platform__card h3 { color: var(--clr-primary); margin-bottom: 15px; font-size: 1.3rem; }
.platform__card p { color: var(--clr-text-muted); }

.cta { background: linear-gradient(45deg, var(--clr-bg-dark), #1a1a1a); text-align: center; }
.cta__container h2 { font-size: 3rem; color: var(--clr-primary); margin-bottom: 20px; font-family: var(--font-alt); }
.cta__container p { font-size: 1.2rem; margin-bottom: 30px; }

.footer { background: #050505; padding: 40px 0; text-align: center; border-top: 1px solid #222; }
.footer__container { display: flex; flex-direction: column; gap: 15px; align-items: center; color: var(--clr-text-muted); }
.footer__links { display: flex; gap: 20px; }
.footer__links a:hover { color: var(--clr-primary); }

.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    visibility: hidden; opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-active { visibility: visible; opacity: 1; }

.modal__overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(5px);
}

.modal__content {
    position: relative;
    width: 950px;
    max-width: 95%; 
    height: 850px;
    max-height: 90vh; 
    background: #000;
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.modal.is-active .modal__content { transform: scale(1); }

.modal__close-btn {
    position: absolute;
    top: 15px; right: 15px;
    width: 40px; height: 40px;
    background: var(--clr-primary);
    color: #000;
    font-size: 1.5rem;
    border-radius: 50%;
    z-index: 10;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.modal__close-btn:hover { background: #fff; transform: rotate(90deg); }

.modal__iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal__iframe-container {
    width: 100%;
    height: 100%; 
    display: flex;
}

.modal__iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block; 
}

.modal__content {
    position: relative;
    width: 950px;
    max-width: 95vw;
    height: 850px; 
    max-height: 90vh;
    background: #000;
    border-radius: 15px;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
}

@media (max-width: 992px) {
    .hero__title { font-size: 3.5rem; }
    .about__container { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
    .nav__menu {
        position: absolute; top: 80px; left: -100%;
        width: 100%; height: calc(100vh - 80px);
        background: rgba(0,0,0,0.98);
        flex-direction: column; align-items: center; justify-content: center;
        transition: 0.4s;
    }
    .nav__menu.is-active { left: 0; }
    .nav__burger { display: flex; }
    
    .hero__title { font-size: 2.5rem; }
    .hero__subtitle { font-size: 1.5rem; }
    
    .cta__container h2 { font-size: 2rem; }
    .footer__links { flex-direction: column; gap: 10px; }
}

@media (max-width: 480px) {
    .hero__title { font-size: 2rem; }
    .section { padding: 50px 0; }
    .btn { width: 100%; } 
}