/* ==========================================================================
   Design System & Properties
   ========================================================================== */
:root {
    /* Color Palette */
    --color-bg-dark: #0a0b10;
    --color-bg-lighter: #151722;
    --color-bg-glass: rgba(21, 23, 34, 0.7);
    --color-bg-glass-hover: rgba(30, 33, 48, 0.8);

    --color-primary: #8a2be2;
    /* Vibrant Purple */
    --color-primary-glow: rgba(138, 43, 226, 0.5);
    --color-secondary: #00e5ff;
    /* Cyan */
    --color-accent: #ff007f;
    /* Pink */

    --color-text-main: #f0f2f5;
    --color-text-muted: #a0a4b8;

    /* Steam Button */
    --color-steam: #2a475e;
    --color-steam-hover: #171a21;
    --color-steam-text: #c7d5e0;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions & Borders */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Z-Index */
    --z-header: 1000;
    --z-modal: 2000;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    visibility: hidden;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
    visibility: visible;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.highlight {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center {
    text-align: center;
}

.mt-xl {
    margin-top: 4rem;
}

.w-full {
    width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.125rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #6018a3);
    color: #fff;
    box-shadow: 0 4px 20px var(--color-primary-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--color-primary-glow);
}

.btn-secondary {
    background: var(--color-bg-glass);
    color: var(--color-text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--color-bg-glass-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-steam {
    background: linear-gradient(to right, var(--color-steam), var(--color-steam-hover));
    color: #fff;
    gap: 0.75rem;
}

.btn-steam:hover {
    background: var(--color-steam-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(42, 71, 94, 0.4);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-header);
    transition: all var(--transition-normal);
    padding: 1.5rem 0;
}

#main-header.scrolled {
    background: rgba(10, 11, 16, 0.85);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

#primary-navigation {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-text-muted);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    display: inline-flex;
    align-items: center;
    background-color: #0d1117;
    border-radius: 50px;
    padding: 4px;
    gap: 2px;
    margin-left: 20px;
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #888;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
}

.lang-btn.active {
    color: #ffffff;
    background-color: #003366;
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.4);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 100%;
    background: #0d1117;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    padding: 4px;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.language-switcher:hover .lang-dropdown-menu,
.lang-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-btn {
    background: transparent;
    color: #888;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.lang-dropdown-btn:hover {
    color: #ffffff;
    background-color: rgba(0, 51, 102, 0.5);
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    bottom: 8px;
}

.hamburger::after {
    top: 8px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 229, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.hero-title {
    font-size: clamp(3rem, 5vw + 1rem, 5rem);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-inline: auto;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
    animation: bounce 2s infinite;
    z-index: 10;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid #fff;
    border-radius: 13px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* ==========================================================================
   Sections Standard
   ========================================================================== */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(138, 43, 226, 0.2);
    color: var(--color-primary);
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Bubble Hero Section
   ========================================================================== */
.game-section {
    background-color: var(--color-bg-lighter);
}

.game-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.game-features {
    margin-bottom: 2.5rem;
}

.game-features li {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.game-features span {
    font-size: 1.5rem;
}

.glass-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 1rem;
    position: relative;
    backdrop-filter: blur(10px);
}

.game-img {
    border-radius: var(--radius-md);
    width: 100%;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform var(--transition-slow);
}

.glass-container:hover .game-img {
    transform: perspective(1000px) rotateY(0deg);
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%);
    background: var(--color-primary);
    filter: blur(100px);
    opacity: 0.2;
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   Serious Games Section
   ========================================================================== */
.serious-games-section {
    position: relative;
    overflow: hidden;
}

/* FAQ Section */
#faq {
    background-color: var(--color-bg-dark);
}

.text-center {
    text-align: center;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.serious-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.serious-card {
    background: var(--color-bg-lighter);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
}

.serious-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-secondary);
    box-shadow: 0 10px 40px rgba(0, 229, 255, 0.1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.rounded-img {
    border-radius: var(--radius-lg);
    width: 100%;
}

.shadow-lg {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Services Section & Accordion
   ========================================================================== */
.services-section {
    background-color: var(--color-bg-lighter);
}

.services-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.accordion {
    margin-top: 2.5rem;
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-header {
    width: 100%;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: color var(--transition-fast);
}

.accordion-header:hover {
    color: var(--color-secondary);
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform var(--transition-normal);
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
    color: var(--color-secondary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
    /* arbitrary max height */
}

.accordion-content p {
    color: var(--color-text-muted);
    padding-bottom: 1.5rem;
}

/* Contact Form */
.glass-card {
    background: var(--color-bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: 3rem;
}

.contact-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font-body);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--color-text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 1.5rem;
}

.footer-links ul li,
.footer-social ul li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-social a {
    color: var(--color-text-muted);
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* ==========================================================================
   Animations (Reveal on Scroll)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {

    .game-wrapper,
    .services-wrapper,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .game-wrapper .game-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
        z-index: 1001;
    }

    #primary-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        bottom: 0;
        width: 80%;
        max-width: 400px;
        background: rgba(10, 11, 16, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        padding: 6rem 2rem;
        transition: right var(--transition-normal);
        z-index: 1000;
    }

    #primary-navigation[data-visible="true"] {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 2rem;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .mobile-nav-toggle[aria-expanded="true"] .hamburger {
        background: transparent;
    }

    .mobile-nav-toggle[aria-expanded="true"] .hamburger::before {
        transform: rotate(45deg);
        bottom: 0;
    }

    .mobile-nav-toggle[aria-expanded="true"] .hamburger::after {
        transform: rotate(-45deg);
        top: 0;
    }
}