/* --- VARIABLES & RESET --- */
:root {
    --bg-color: #120e16; 
    --card-bg: #1e1825;
    --accent: #8e44ad;
    --accent-glow: #a569bd;
    --text-main: #ffffff;
    --text-sec: #b0a0b9; 
    --font: 'Montserrat', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font);
    overflow-x: hidden;
}

html { scroll-behavior: smooth; }
a { text-decoration: none; color: inherit; }

/* --- HEADER --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(18, 14, 22, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(142, 68, 173, 0.2);
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    transition: opacity 0.3s;
}
.logo-link:hover { opacity: 0.8; }

.logo-img {
    max-height: 50px;
    width: auto;
}

nav a {
    margin-left: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
    position: relative;
}
nav a:hover { color: var(--accent-glow); }

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}
nav a:hover::after { width: 100%; }

/* --- HERO SECTION --- */
.hero {
    height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background: radial-gradient(circle at center, #2e1a36 0%, #120e16 70%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(142, 68, 173, 0.3);
}
.hero h1 span { color: var(--accent-glow); }

.hero p {
    color: var(--text-sec);
    max-width: 600px;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.btn {
    padding: 15px 45px;
    background: linear-gradient(45deg, var(--accent), #6c3483);
    color: #fff;
    font-weight: 800;
    border-radius: 50px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(142, 68, 173, 0.4);
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(165, 105, 189, 0.6);
}

/* --- GAMES SECTION --- */
.games-section {
    padding: 80px 0;
    background-color: #120e16;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}
.section-title span { border-bottom: 3px solid var(--accent); }

/* Horizontal Scroller */
.games-scroller {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 0; /* No side padding for full scroll */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 60px;
}

/* Centering Logic for Scroller */
.games-scroller::before,
.games-scroller::after {
    content: '';
    margin: auto; 
}

/* --- GAME CARD --- */
.game-card {
    flex: 0 0 340px;
    background: var(--card-bg);
    border-radius: 24px;
    overflow: visible;
    scroll-snap-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    position: relative;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

/* Banner with Blur Effect */
.card-banner {
    height: 160px;
    background-color: #2a2d38;
    border-radius: 24px 24px 0 0;
    position: relative;
    overflow: hidden;
}

.blur-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(1px);
    transform: scale(1.2);
    opacity: 0.8;
}

.card-banner::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 60%;
    background: linear-gradient(to top, var(--card-bg), transparent);
    z-index: 1;
}

/* Header Row (Icon + Title) */
.card-header-row {
    display: flex;
    align-items: flex-end;
    padding: 0 20px;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.game-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    border: 3px solid var(--card-bg);
    background-color: #000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    object-fit: cover;
    flex-shrink: 0;
}

.card-title-block {
    margin-left: 15px;
    margin-bottom: 5px;
}
.card-title-block h3 { font-size: 1.2rem; line-height: 1.2; color: #fff; }
.card-title-block .developer { font-size: 0.8rem; color: var(--accent); font-weight: 700; }

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-content p {
    color: var(--text-sec);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Badges */
.badge {
    position: absolute;
    top: 15px; right: 15px;
    background: rgba(0,0,0,0.8);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.75rem; font-weight: 700;
    z-index: 5;
}
.badge.new { color: #00ff88; border: 1px solid #00ff88; }
.badge.soon { color: #ffcc00; border: 1px solid #ffcc00; }

/* Buttons */
.play-btn {
    display: flex; align-items: center; justify-content: center;
    background: transparent; color: #fff; padding: 12px;
    border-radius: 12px; font-weight: 700; transition: 0.3s;
    border: 1px solid rgba(142, 68, 173, 0.5);
}
.play-btn:hover {
    background: var(--accent); border-color: var(--accent);
    box-shadow: 0 0 15px rgba(142, 68, 173, 0.4);
}
.play-btn.disabled {
    border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.3); cursor: default;
}
.play-btn.disabled:hover { background: transparent; box-shadow: none; }

/* --- DOWNLOAD WRAPPER (Hover Swap Effect) --- */
.download-wrapper {
    position: relative;
    width: 100%;
    height: 46px;
}

/* Trigger Button */
.download-trigger {
    width: 100%;
    position: absolute;
    top: 0; left: 0;
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
    z-index: 2;
    cursor: pointer;
}
.download-wrapper:hover .download-trigger {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

/* Options (Store Icons) */
.download-options {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    position: absolute;
    top: 0; left: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1;
}
.download-wrapper:hover .download-options {
    opacity: 1;
    transform: translateY(0);
    z-index: 3;
}

/* --- STORE BUTTONS (CSS MASK METHOD) --- */
.store-btn {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    transition: 0.3s;
}

/* Icon Mask Logic */
.icon-mask {
    width: 24px;
    height: 24px;
    background-color: #fff;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

/* Icon Paths */
.icon-google {
    mask-image: url('icons/stores/google-play.svg');
    -webkit-mask-image: url('icons/stores/google-play.svg');
}
.icon-apple {
    mask-image: url('icons/stores/app-store.svg');
    -webkit-mask-image: url('icons/stores/app-store.svg');
}

/* Hover Effects */
.store-btn.google:hover {
    background: #00d4ff;
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}
.store-btn.google:hover .icon-mask { background-color: #000; }

.store-btn.apple:hover {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}
.store-btn.apple:hover .icon-mask { background-color: #000; }

.store-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    filter: grayscale(100%);
}

/* --- SECRET CARD STYLES --- */
.secret-blur {
    color: transparent;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    user-select: none;
    cursor: default;
}

.secret-icon-placeholder {
    width: 80px;
    height: 80px;
    background: #15101a;
    border: 2px dashed var(--text-sec);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-sec);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    border: 3px solid var(--card-bg);
}

.secret-icon-placeholder span {
    z-index: 2;
    text-shadow: 0 0 15px var(--accent);
    animation: pulse-secret 3s infinite;
}

@keyframes pulse-secret {
    0% { opacity: 0.6; }
    50% { opacity: 1; text-shadow: 0 0 20px var(--accent); }
    100% { opacity: 0.6; }
}

/* --- ABOUT SECTION --- */
.about-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, var(--bg-color), #1a1020);
    position: relative;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}

.about-text-block {
    flex: 1 1 400px;
}

.about-text-block h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}
.about-text-block p {
    color: var(--text-sec);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.contact-btn {
    margin-top: 10px;
    background: transparent;
    border: 2px solid var(--accent);
    color: #fff;
}
.contact-btn:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px rgba(142, 68, 173, 0.4);
}

/* Stats */
.about-stats {
    display: flex;
    gap: 20px;
    flex: 1 1 auto;
    justify-content: center;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    min-width: 100px;
    transition: transform 0.3s;
}
.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 5px;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-sec);
    text-transform: uppercase;
    font-weight: 700;
}

/* --- FOOTER --- */
footer {
    background-color: #08060a;
    padding: 30px 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* --- LANGUAGE SWITCHER --- */
.lang-switch {
    display: flex;
    gap: 10px;
    margin-left: 30px;
    border-left: 1px solid rgba(255,255,255,0.2);
    padding-left: 20px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-sec);
    font-family: var(--font);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
}

.lang-btn:hover {
    color: #fff;
}

.lang-btn.active {
    color: var(--accent);
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .game-card { flex: 0 0 290px; }
    .card-banner { height: 140px; }
    
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .about-text-block { flex: 1 1 auto; }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .lang-switch {
        margin-left: 15px;
        padding-left: 10px;
    }
}

