@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,900;1,900&display=swap');

:root {
    /* Global Neutral Palette - Deeper Dark */
    --bg-color: #020203;
    --surface-color: #0a0a0c;
    --text-primary: #ffffff;
    --text-secondary: #8e8e93;

    /* Logo-Matched Blue Palette */
    --accent-primary: #0078FF;
    /* Corporate Blue */
    --accent-secondary: #00BDFF;
    /* Cyan Highlight */
    --accent-glow: rgba(0, 120, 255, 0.3);

    /* Professional System */
    --nav-height: 65px;
    --container-width: 1400px;
    --border-radius: 12px;
    --glass-bg: rgba(2, 2, 3, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
    --transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Nav Styles */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Anchor for absolute centered title */
    height: 100%;
}

@media (max-width: 768px) {
    .nav-container {
        grid-template-columns: 1fr auto;
        padding: 0 1rem;
    }
}

/* Col 1: Utilities (Left in RTL) */
.nav-utilities {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 5;
}

[dir="ltr"] .nav-utilities {
    grid-column: 3;
    justify-self: end;
}

[dir="rtl"] .nav-utilities {
    grid-column: 3;
    justify-self: end; /* Consistent with RTL logic, child 3 is left */
}

/* --- Premium Hamburger Menu --- */
.hamburger-btn {
    width: 42px;
    height: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    z-index: 2100;
    transition: var(--transition);
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

.h-line {
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hamburger to X Animation */
.hamburger-btn.active .h-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active .h-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger-btn.active .h-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Premium Sidebar Drawer --- */
.sidebar-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 320px;
    background: rgba(2, 2, 3, 0.9);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    z-index: 2000;
    padding: 35px 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--border-color);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Positioning based on direction */
[dir="rtl"] .sidebar-drawer {
    left: 0; /* Slide from left in RTL */
    right: auto;
    transform: translateX(-105%);
    border-left: none;
    border-right: 1px solid var(--border-color);
}

[dir="ltr"] .sidebar-drawer {
    right: 0;
    left: auto;
    transform: translateX(105%);
}

.sidebar-drawer.active {
    transform: translateX(0) !important;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    transition: var(--transition);
    opacity: 0.6;
    text-transform: uppercase;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    opacity: 1;
    color: var(--accent-primary);
    transform: translateX(10px);
}

[dir="rtl"] .sidebar-nav a:hover,
[dir="rtl"] .sidebar-nav a.active {
    transform: translateX(-10px);
}

/* Sidebar Footer area for language */
.sidebar-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.sidebar-lang-btn {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 14px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 3px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 120, 255, 0.2);
}

.sidebar-lang-btn:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 15px 40px var(--accent-glow);
}

/* Backdrop Overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.nav-links {
    display: none; /* Hide top links, moving to sidebar for clean look */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--accent-primary);
    transform: translateY(-1px);
}

.lang-switcher {
    display: none; /* Hide top lang switcher, moving to sidebar */
}

/* Col 2: Brand Text (Center) */
.nav-title-link {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-decoration: none;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* Col 3: Logo Icon (Right in RTL) */
.nav-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 5;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.35em;
    color: #ffffff !important; /* Force pure white */
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.nav-title-link:hover .logo-text {
    color: var(--accent-primary) !important; /* Subtle blue only on hover if desired, or keep white */
    opacity: 0.9;
}

[dir="ltr"] .nav-logo-link {
    grid-column: 1;
    justify-self: start;
}

[dir="rtl"] .nav-logo-link {
    grid-column: 1;
    justify-self: start; 
}


.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-primary);
    transform: translateY(-1px);
}

/* Logo Styles */
.nav-logo-img {
    height: 32px;
    width: auto;
    display: block;
    margin: 0;
    filter: brightness(1.1) contrast(1.1);
}

.hero-logo-img {
    width: 220px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 30px var(--accent-glow)) brightness(1.2) contrast(1.2);
    animation: float 6s ease-in-out infinite;
}

/* CSS Logo - Grid/Code Fallback */
.css-logo {
    width: 45px;
    height: 45px;
    position: relative;
    display: flex;
    /* Flex will be toggled by JS/HTML fallback */
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    /* Safe Fallback for visibility */
    color: var(--accent-primary);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    filter: drop-shadow(0 0 15px var(--accent-glow));
    border: 2px solid rgba(0, 120, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 120, 255, 0.1);
}

/* Ensure text fill is supported, otherwise fallback to solid color */
@supports (-webkit-background-clip: text) or (background-clip: text) {
    .css-logo {
        -webkit-text-fill-color: transparent;
    }
}


.css-logo::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 8px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-primary), transparent, var(--accent-secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.hero-logo-large.css-logo {
    width: 120px;
    height: 120px;
    font-size: 5rem;
    border-width: 4px;
    margin: 0 auto 2rem;
    /* Center explicitly */
    animation: float 6s ease-in-out infinite;
}

/* Hero Section - Creative Cyber Grid */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
    background: #020203;
    perspective: 1000px;
}

.hero-background {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(rgba(0, 120, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 120, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    transform: rotateX(60deg);
    animation: grid-move 20s linear infinite;
    opacity: 0.3;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, #020203 90%);
    z-index: 1;
}

@keyframes grid-move {
    0% {
        transform: rotateX(60deg) translateY(0);
    }

    100% {
        transform: rotateX(60deg) translateY(50px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6rem);
    margin-bottom: 1.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -2px;
    text-shadow: 0 0 20px rgba(0, 120, 255, 0.5);
    animation: glow-pulse 3s infinite alternate;
}

@keyframes glow-pulse {
    0% {
        text-shadow: 0 0 20px rgba(0, 120, 255, 0.5);
    }

    100% {
        text-shadow: 0 0 50px rgba(0, 189, 255, 0.8), 0 0 100px rgba(0, 120, 255, 0.3);
    }
}

/* Typography for App name and rating */

.lang-switcher button {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 0.6rem 1.25rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: var(--transition);
    border-radius: 4px;
}

.lang-switcher button:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Sections & Typography */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    color: #fff;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 2px;
}

/* About & Services Professional */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 5rem;
}

.service-card {
    background: var(--surface-color);
    padding: 4rem 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 120, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card .icon {
    width: 60px;
    height: 60px;
    margin-bottom: 25px;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 15px var(--accent-glow));
    transition: var(--transition);
}

.service-card .icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

.service-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent-secondary);
}

/* ==========================================================================
   GAMES SHOWCASE - AAA CINEMATIC ARCHITECTURE
   ========================================================================== */

:root {
    --game-card-aspect: 16/9;
    --game-accent-glow: rgba(0, 120, 255, 0.4);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    --premium-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

.games-page-main {
    padding-top: var(--nav-height);
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgba(0, 120, 255, 0.05), transparent 40%),
        radial-gradient(circle at bottom left, rgba(0, 189, 255, 0.03), transparent 40%);
}

.games-hero-v2 {
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.premium-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    background: linear-gradient(to bottom, #fff 30%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.premium-subtitle {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto;
    letter-spacing: 0.05em;
    font-weight: 300;
}

/* Master Grid Structure */
.premium-games-container {
    padding: 4rem 0 8rem;
}

.master-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* Base Card Style */
.premium-game-card {
    grid-column: span 1;
    position: relative;
    border-radius: 20px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.premium-game-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 120, 255, 0.3);
    box-shadow: var(--card-shadow), 0 0 30px rgba(0, 120, 255, 0.1);
}

/* Card Image Area */
.game-visual-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #050507;
}

.game-visual-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.premium-game-card:hover .game-visual-box img {
    transform: scale(1.05);
}

.game-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--surface-color) 0%, transparent 40%);
    pointer-events: none;
}

/* Card Content Area */
.game-content-box {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.game-tag {
    font-size: 0.65rem;
    color: var(--accent-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.game-heading {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
}

.game-summary {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.game-footer-meta {
    margin-top: auto;
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-pill {
    font-size: 0.7rem;
    color: var(--text-primary);
    opacity: 0.6;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

.meta-pill span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-primary);
}

/* Breakpoint: Tablet */
@media (max-width: 1023px) {
    .master-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .premium-games-container {
        padding: 2rem 0 4rem;
    }

    .game-content-box {
        padding: 1.5rem;
    }
}

/* Breakpoint: Mobile */
@media (max-width: 767px) {
    .master-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .premium-title {
        font-size: 2rem;
    }

    .game-visual-box {
        aspect-ratio: 1 / 1;
    }

    .game-content-box {
        padding: 1rem;
        gap: 0.35rem;
    }

    .game-heading {
        font-size: 1.1rem;
    }

    .game-summary {
        font-size: 0.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .game-footer-meta {
        gap: 0.75rem;
        padding-top: 1rem;
    }

    .meta-pill {
        font-size: 0.65rem;
    }
}

/* Reveal Animation */
/* Only hide if JS is ready to animate them */
.js-ready .reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js-ready .reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}


.app-card {
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.app-card:hover {
    border-color: rgba(0, 120, 255, 0.4);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.app-info {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.app-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 120, 255, 0.2);
}

.app-tags {
    display: flex;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.app-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-secondary);
}

/* Animations Reveal Refined */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}



/* Footer Professional */
.footer {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
    background: #010101;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    height: 35px;
}


@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .games-grid,
    .apps-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Buttons & UI Elements */
.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.btn {
    padding: 1.25rem 3rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    transition: var(--transition);
    border-radius: var(--border-radius);
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #fff;
}

.btn-primary:hover {
    box-shadow: 0 0 40px var(--accent-glow);
    transform: translateY(-5px);
    background-color: var(--accent-secondary);
}

.btn-outline {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 120, 255, 0.05);
    transform: translateY(-5px);
}

/* RTL Support */
[dir="rtl"] body {
    font-family: 'Inter', sans-serif;
}

[dir="rtl"] .section-title::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

[dir="rtl"] .app-icon {
    box-shadow: -5px 10px 20px rgba(0, 120, 255, 0.2);
}

/* Final Layout Polish */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 4rem;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section {
        padding: 6rem 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 3rem auto 0;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* --- Premium Game Detail Architecture (AAA Standard) --- */

.game-detail-main {
    min-height: 100vh;
    background: #020203;
    overflow-x: hidden;
}

/* Atmospheric Backdrop */
.game-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.backdrop-blur {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(80px) brightness(0.3) saturate(1.5);
    opacity: 0.6;
}

.backdrop-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, #020203 95%);
}

/* Layered Hero Content */
.game-hero-v3 {
    padding: 12rem 0 6rem;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.hero-artwork-frame {
    position: relative;
    width: 100%;
    max-width: 450px;
    /* Reduced from 900px for better 1:1 harmony */
    aspect-ratio: 1 / 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    /* More rounded for premium feel */
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 120, 255, 0.1);
    transition: var(--transition);
}

.hero-artwork-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.hero-artwork-frame::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 120, 255, 0.3), transparent, rgba(0, 189, 255, 0.3));
    z-index: -1;
    opacity: 0.5;
}

.hero-text-block {
    text-align: center;
}

.game-title-large {
    font-size: clamp(3rem, 10vw, 6rem);
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-weight: 700;
    background: linear-gradient(to bottom, #fff, #555);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Tech-Panel Spec Grid */
.tech-spec-container {
    padding: 4rem 0;
    position: relative;
    z-index: 10;
}

.tech-panel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-panel-item {
    background: rgba(10, 10, 12, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.tech-panel-item:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 120, 255, 0.05);
}

.tech-panel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.panel-label {
    display: block;
    font-size: 0.65rem;
    color: var(--accent-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 0.75rem;
}

.panel-value {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
}

/* Content Sections */
.game-brief-sec {
    padding: 6rem 0;
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.brief-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-secondary);
    font-weight: 300;
}

.game-action-footer {
    padding: 4rem 0 10rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .game-hero-v3 {
        padding: 8rem 0 4rem;
        gap: 2.5rem;
    }

    .tech-panel-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 1rem;
    }
}

@media (max-width: 600px) {
    .tech-panel-grid {
        grid-template-columns: 1fr;
    }

    .game-title-large {
        letter-spacing: 0.2em;
    }

    .hero-artwork-frame {
        border-radius: 8px;
    }
}

/* --- Premium Download Portal Architecture (V4) --- */

.download-portal-sec {
    padding: 6rem 0;
    position: relative;
    z-index: 10;
}

.download-main-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 6rem;
}

.btn-download-mega {
    position: relative;
    padding: 1.5rem 4rem;
    background: linear-gradient(135deg, var(--accent-primary), #00b0ff);
    border: none;
    border-radius: 100px;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0, 120, 255, 0.3), 0 0 0 0 rgba(0, 120, 255, 0.2);
}

.btn-download-mega:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 120, 255, 0.5), 0 0 20px rgba(0, 120, 255, 0.4);
}

.btn-download-mega i {
    font-size: 1.8rem;
}

/* Supported Systems Grid */
.systems-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.system-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.8;
    transition: var(--transition);
}

.system-badge.active {
    opacity: 1;
    color: var(--accent-primary);
}

.system-badge i {
    font-size: 2.5rem;
}

.system-name {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* ELO Specialized Technical Card */
.elo-tech-display {
    max-width: 600px;
    margin: 4rem auto;
    padding: 3rem;
    background: rgba(15, 15, 20, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.elo-tech-display::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(0, 120, 255, 0.1), transparent 70%);
}

.elo-version-highlight {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
    text-shadow: 0 0 30px rgba(0, 120, 255, 0.4);
}

.elo-subtitle {
    display: block;
    color: var(--accent-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
}

/* Meta Info Grid (Cleaner) */
.info-pills-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 4rem;
}

.info-pill-large {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pill-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.pill-value {
    color: #fff;
    font-weight: 600;
}

@media (max-width: 767px) {
    .btn-download-mega {
        padding: 1.25rem 2.5rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    .systems-grid {
        gap: 1.5rem;
    }

    .system-badge i {
        font-size: 2rem;
    }

    .elo-version-highlight {
        font-size: 3rem;
    }
}

/* Game Story Typography */
.game-story-sec {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
    padding: 0 2rem;
}

.story-text {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-secondary);
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

[dir='rtl'] .story-text {
    font-size: 1.25rem;
    line-height: 2.2;
}

@media (max-width: 767px) {
    .game-story-sec {
        margin-bottom: 3rem;
        padding: 0 1.5rem;
    }

    .story-text {
        font-size: 1rem;
        line-height: 1.8;
    }

    [dir='rtl'] .story-text {
        font-size: 1.1rem;
        line-height: 2;
    }
}

/* Force Centering for Narrative */
.game-story-sec.container {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}


/* Premium Modal Architecture */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-glass {
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background: rgba(15, 15, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    position: relative;
    padding: 3rem;
    transform: scale(0.9);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-glass {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
    z-index: 100;
}

.close-modal:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-content {
    overflow-y: auto;
    padding-right: 1rem;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent-primary);
    font-family: 'Space Grotesk', sans-serif;
}

.modal-body {
    color: var(--text-secondary);
    line-height: 1.8;
}

.modal-body h3 {
    color: #fff;
    margin: 2rem 0 1rem;
    font-size: 1.25rem;
}

.modal-body ul {
    padding-right: 1.5rem;
    margin: 1rem 0;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

.btn-text-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.7;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.btn-text-link:hover {
    opacity: 1;
    border-bottom-color: var(--accent-primary);
}

/* Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 10px;
}


/* Vertical Action Stack */
.page-actions-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin-top: 4rem;
    text-align: center;
    width: 100%;
}

.privacy-link-container {
    opacity: 0.8;
    transition: var(--transition);
}

.privacy-link-container:hover {
    opacity: 1;
}

/* News Section */
.news-section {
    padding: 100px 0;
    background: radial-gradient(circle at bottom left, rgba(0, 120, 255, 0.05), transparent 50%);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.news-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-primary) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.news-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.news-card:hover::before {
    opacity: 0.05;
}

.news-card-content {
    position: relative;
    z-index: 1;
}

.news-date {
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.news-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
}

.news-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.news-card-footer {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
    gap: 0.5rem;
}

.news-card-footer i {
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-footer i {
    transform: translateX(5px);
}


/* --- Premium App Store Grid --- */
.premium-apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Balanced 2-col on mobile */
    gap: 30px 20px;
    padding: 0 15px;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .premium-apps-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 40px;
        padding: 0;
    }
}

.premium-app-card {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    width: 100%;
}

.premium-app-card:hover {
    transform: translateY(-8px);
}

.premium-app-icon-container {
    width: 140px;  /* Maximized icons for bold look */
    height: 140px;
    border-radius: 22.5%; /* Squircle Feel */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 auto 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .premium-app-icon-container {
        width: 195px; /* Massive desktop icons */
        height: 195px;
    }
}

.premium-app-card:hover .premium-app-icon-container {
    box-shadow: 0 15px 40px rgba(0, 120, 255, 0.25);
    border-color: rgba(0, 120, 255, 0.4);
    transform: scale(1.05);
}

.premium-app-icon-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premium-app-icon-text {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.premium-app-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.premium-app-title {
    font-size: 1.15rem; /* Even larger bold title */
    font-weight: 900;
    margin: 0;
    color: #fff;
    line-height: 1.3;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    width: 100%;
    text-transform: none; /* Disable global h3 uppercase */
    letter-spacing: normal;
}

.premium-app-subtitle {
    font-size: 0.7rem;
    color: #888;
    margin: 0;
    text-align: center;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    width: 100%;
}


/* Badge Positioning */
.zero-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #00C8FF 100%);
    color: #fff;
    font-size: 0.55rem;
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 700;
    z-index: 20;
    box-shadow: 0 4px 10px rgba(0, 120, 255, 0.4);
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.2);
}

[dir="rtl"] .zero-badge {
    right: auto;
    left: -5px;
}

/* Reveal Animations */
.reveal, .reveal-up, .reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active, .reveal-up.active, .reveal-text.active {
    opacity: 1;
    transform: translateY(0);
}


/* App grid cleanup */

/* Premium Buttons Styling */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 0 25px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-lg {
    font-size: 1.25rem;
    padding: 1.2rem 3rem;
    letter-spacing: 0.1em;
    font-weight: 900;
}

/* --- Apps Page Cinematic Hero --- */
.apps-hero-v2 {
    padding: 10rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(0, 120, 255, 0.08) 0%, transparent 70%);
}

.apps-hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 120, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 120, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.apps-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(0, 120, 255, 0.1);
    border: 1px solid rgba(0, 120, 255, 0.2);
    border-radius: 100px;
    color: var(--accent-primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    box-shadow: 0 0 20px rgba(0, 120, 255, 0.1);
}

.apps-count-badge i {
    font-size: 0.9rem;
}

.apps-hero-v2 .section-title {
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 10vw, 4.5rem);
    background: linear-gradient(to bottom, #fff 40%, rgba(255, 255, 255, 0.6) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.apps-hero-v2 .section-desc {
    max-width: 650px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

[dir="rtl"] .apps-count-badge {
    letter-spacing: normal;
}


/* --- ZERO Services Page --- */
.services-hero {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 4rem;
}

.service-card-premium {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card-premium:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 188, 212, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 188, 212, 0.1);
}

/* Staggered Entrance Animation */
.entrance-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.entrance-item.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ZERO Service Badge (Interactive) */
.zero-service-link {
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
}

.zero-service-link:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 188, 212, 0.3);
}

.zero-service-link:active {
    transform: scale(0.95);
}


/* --- FAQ Accordion --- */
.faq-section {
    max-width: 800px;
    margin: 4rem auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 188, 212, 0.2);
}

.faq-trigger {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: right;
    font-family: inherit;
}

.faq-trigger i {
    font-size: 0.9rem;
    color: #00BCD4;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-trigger i {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.1);
}

.faq-item.active .faq-content {
    max-height: 500px; /* Adjust as needed */
    padding: 0 25px 25px;
}

.faq-content p {
    color: #aaa;
    line-height: 1.8;
    font-size: 0.95rem;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.03);
}


/* --- Professional Games Showcase (Google Play Style) --- */
.games-page-main {
    padding-top: 70px; /* matches nav height */
    background: #050505;
    min-height: 100vh;
}

.games-hero-v3 {
    text-align: center;
    padding: 40px 20px 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    margin-bottom: 20px;
}

.games-hero-v3::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(0, 188, 212, 0.08) 0%, transparent 70%);
    filter: blur(30px);
    z-index: 0;
}

.games-hero-v3 > * {
    position: relative;
    z-index: 1;
}

.hero-badge-v2 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(0, 188, 212, 0.08);
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: 100px;
    color: #00BCD4;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.games-hero-v3 .section-title {
    font-size: clamp(2rem, 9vw, 4rem);
    background: linear-gradient(160deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.games-hero-v3 .section-title::after {
    display: none;
}

.games-hero-v3 .section-desc {
    max-width: 550px;
    color: #555;
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0 auto;
}

.professional-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile as requested */
    gap: 15px;
    padding: 0 15px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .professional-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
        padding: 0 40px 100px;
    }
}

.premium-game-card-v2 {
    position: relative;
    background: #111;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
}

.premium-game-card-v2.in-view {
    opacity: 1;
    transform: translateY(0);
}

.premium-game-card-v2:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 188, 212, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 188, 212, 0.1);
}

.game-card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; /* Standard Google Play Portrait Ratio */
    overflow: hidden;
    background: #000;
}

.game-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.premium-game-card-v2:hover .game-card-img-wrapper img {
    transform: scale(1.1);
}

.game-card-overlay-v2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, #111 0%, transparent 100%);
    z-index: 1;
}

.game-card-info-v2 {
    padding: 15px;
    background: #111;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-card-title-v2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    font-family: 'Space Grotesk', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card-category-v2 {
    font-size: 0.7rem;
    color: #00BCD4;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.game-card-meta-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.game-elo-badge-v2 {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.game-rating-v2 {
    color: #ffd700;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.game-os-v2 {
    font-size: 0.65rem;
    color: #555;
    margin-left: auto;
}

/* Mobile-Specific Refinement (2 column spacing) */
@media (max-width: 768px) {
    .professional-games-grid {
        gap: 12px;
        padding: 0 10px 40px;
    }
    
    .game-card-info-v2 {
        padding: 10px;
    }
    
    .game-card-title-v2 {
        font-size: 0.9rem;
    }
    
    .game-card-category-v2 {
        font-size: 0.65rem;
    }
}

/* --- PREMIUM SIDEBAR OVERHAUL --- */
.sidebar-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.8rem !important;
    padding: 0 !important;
}

.sidebar-nav a {
    text-decoration: none !important;
    color: var(--text-primary) !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    padding: 14px 20px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    opacity: 0 !important;
    transform: translateX(30px) !important;
    pointer-events: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

[dir="rtl"] .sidebar-nav a {
    transform: translateX(-30px) !important;
}

.sidebar-drawer.active .sidebar-nav a {
    opacity: 1 !important;
    transform: translateX(0) !important;
    pointer-events: auto !important;
    transition-delay: calc(var(--i) * 0.08s) !important;
}

.sidebar-nav a i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--accent-primary);
    transition: transform 0.4s;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--accent-primary) !important;
    color: #fff !important;
    box-shadow: 0 10px 25px rgba(0, 120, 255, 0.15) !important;
    transform: scale(1.02) !important;
}

[dir="ltr"] .sidebar-nav a:hover { transform: scale(1.02) translateX(5px) !important; }
[dir="rtl"] .sidebar-nav a:hover { transform: scale(1.02) translateX(-5px) !important; }

.sidebar-nav a:hover i {
    transform: scale(1.2);
    color: var(--accent-secondary);
}

.sidebar-nav a.active {
    background: linear-gradient(90deg, rgba(0, 120, 255, 0.15), rgba(0, 120, 255, 0.05)) !important;
    border-color: var(--accent-primary) !important;
    color: #fff !important;
    opacity: 1 !important;
}

[dir="ltr"] .sidebar-nav a.active {
    border-left: 4px solid var(--accent-primary) !important;
}

[dir="rtl"] .sidebar-nav a.active {
    border-right: 4px solid var(--accent-primary) !important;
}

/* --- PREMIUM LANGUAGE SWITCHER OVERHAUL --- */
.sidebar-footer {
    margin-top: auto !important;
    padding-top: 1.25rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.sidebar-lang-btn {
    width: 100% !important;
    padding: 16px 20px !important;
    background: rgba(0, 120, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(0, 120, 255, 0.3) !important;
    border-radius: 14px !important;
    color: #fff !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    
    opacity: 0 !important;
    transform: translateY(20px) !important;
}

.sidebar-drawer.active .sidebar-lang-btn {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition-delay: calc(var(--i) * 0.08s) !important;
}

.sidebar-lang-btn i {
    font-size: 1.1rem;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sidebar-lang-btn:hover {
    background: rgba(0, 120, 255, 0.2) !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 10px 25px rgba(0, 120, 255, 0.3) !important;
    transform: translateY(-2px) !important;
}

.sidebar-lang-btn:hover i {
    transform: rotate(360deg) scale(1.2);
}

.sidebar-lang-btn:active {
    transform: scale(0.98) translateY(0) !important;
}

/* --- PREMIUM ABOUT PAGE STYLING --- */
.about-hero-sec {
    position: relative;
    padding: 160px 0 100px;
    background: #000;
    text-align: center;
    overflow: hidden;
}

.about-hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 120, 255, 0.08) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.about-page-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -0.05em;
    color: #fff;
    text-transform: uppercase;
}

.about-page-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: #888;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-mission-sec {
    padding-top: 0;
}

.about-bio-sec {
    padding-top: 0;
}

.bio-card {
    max-width: 1100px;
    margin: -100px auto 100px;
    text-align: center;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.bio-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
    text-shadow: 0 0 30px rgba(255,255,255,0.1);
}

.bio-line {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    margin: 0 auto 40px;
    border-radius: 4px;
}

.bio-text {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    line-height: 1.4;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-shadow: 0 10px 40px rgba(0,0,0,0.5);
    max-width: 950px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .bio-title { font-size: 2.2rem; }
    .bio-text { font-size: 1.25rem; line-height: 1.5; }
}



/* Standards Grid */
.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.std-item {
    display: flex;
    gap: 25px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.std-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(0, 120, 255, 0.2);
}

.std-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #fff;
}

.std-content p {
    color: #888;
    line-height: 1.6;
}

/* Timeline */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, rgba(0, 120, 255, 0.5), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
}

.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }

.timeline-dot {
    position: absolute;
    top: 30px;
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-primary);
    z-index: 5;
}

.timeline-item.left .timeline-dot { right: -8px; }
.timeline-item.right .timeline-dot { left: -8px; }

.timeline-content {
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-date {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: #fff;
}

.timeline-content p {
    color: #888;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline-line { left: 30px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 20px; text-align: left !important; }
    .timeline-item.right { left: 0; }
    .timeline-item.left .timeline-dot, .timeline-item.right .timeline-dot { left: 22px; right: auto; }
}

/* Large Logo in About Hero */
.about-main-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    animation: aboutLogoReveal 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.about-main-logo {
    width: clamp(120px, 25vw, 200px);
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0, 120, 255, 0.2));
}

@keyframes aboutLogoReveal {
    0% { opacity: 0; transform: translateY(30px) scale(0.9); filter: blur(10px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* --- Departments Ecosystem Styles --- */
.about-depts-sec {
    background: radial-gradient(circle at center, #050510 0%, #000 100%);
    padding: 120px 0;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.02);
}

.ecosystem-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 600px;
    margin: 60px auto 0;
}

.eco-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.eco-path {
    fill: none;
    stroke: rgba(0, 120, 255, 0.4);
    stroke-width: 2;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 2s ease-out;
}

.reveal.active .eco-path {
    stroke-dashoffset: 0;
}

.eco-hub {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.eco-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 120, 255, 0.05);
    border: 1px solid rgba(0, 120, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.eco-logo-main {
    width: 60px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(0, 120, 255, 0.5));
}

.eco-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent-primary);
    border-radius: 50%;
    animation: hubPulse 3s infinite;
}

@keyframes hubPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.8); opacity: 0; }
}

.eco-node {
    position: absolute;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    backdrop-filter: blur(20px);
    transition: all 0.4s ease;
    cursor: default;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.eco-node:hover {
    background: rgba(0, 120, 255, 0.1);
    border-color: var(--accent-primary);
    transform: translate(-50%, -50%) scale(1.1) !important;
    box-shadow: 0 0 30px rgba(0, 120, 255, 0.3);
}

.eco-node i {
    color: var(--accent-primary);
    font-size: 1.1rem;
}


/* --- Neural Hub (Interactive) Base --- */
.ecosystem-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 600px;
    margin: 40px auto;
    overflow: visible;
}

.eco-svg-dynamic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.eco-dynamic-path {
    fill: none;
    stroke: var(--accent-primary);
    stroke-width: 2.5;
    stroke-linecap: round;
    filter: drop-shadow(0 0 10px rgba(0, 120, 255, 0.6));
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
}

.eco-node {
    position: absolute;
    padding: 14px 28px;
    background: rgba(10, 10, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    backdrop-filter: blur(25px);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, filter 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: grab;
    user-select: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    opacity: 0;
    transform: translate(-50%, -50%); /* Crucial for JS centering */
    touch-action: none;
}

.eco-node.is-dragging {
    cursor: grabbing;
    z-index: 100;
    box-shadow: 0 0 50px rgba(0, 120, 255, 0.6);
    transform: translate(-50%, -50%) scale(1.1);
}

.is-off {
    filter: grayscale(1) brightness(0.5);
    border-color: rgba(255, 255, 255, 0.05);
    opacity: 0.4;
}

.is-on {
    filter: grayscale(0) brightness(1);
    border-color: var(--accent-primary);
    opacity: 1;
    box-shadow: 0 0 40px rgba(0, 120, 255, 0.3);
}

.eco-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 140px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 120, 255, 0.08);
    border: 2px solid rgba(0, 120, 255, 0.3);
    border-radius: 50%;
    backdrop-filter: blur(15px);
    z-index: 11;
    transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 50px rgba(0, 120, 255, 0.2);
}

.eco-center.active {
    transform: translate(-50%, -50%) scale(1);
}

/* Positioning Satellites */
.node-games   { top: 15%; left: 50%; }
.node-apps    { top: 40%; left: 80%; }
.node-ar      { top: 40%; left: 20%; }
.node-ai      { top: 85%; left: 30%; }
.node-testing { top: 85%; left: 70%; }

@media (max-width: 768px) {
    .ecosystem-wrapper { 
        height: 850px; 
        margin: 30px auto; 
    }
    
    .eco-node { 
        padding: 10px 18px; 
        font-size: 0.8rem; 
    }
    
    .eco-center { 
        width: 100px; 
        height: 100px; 
    }

    /* Mobile Pattern to avoid overlap */
    .node-games   { top: 28%; left: 50%; }
    .node-ar      { top: 42%; left: 22%; }
    .node-apps    { top: 42%; left: 78%; }
    .node-ai      { top: 72%; left: 25%; }
    .node-testing { top: 72%; left: 75%; }
}/* --- Portal-to-Detail Cinematic Effects --- */
.eco-node.is-zooming {
    z-index: 1000;
    transform: translate(-50%, -50%) scale(15);
    opacity: 0;
    pointer-events: none;
    transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.8s ease-in;
}

#deptModal.modal-overlay {
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 2000;
}

#deptModal.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.portal-content {
    background: rgba(10, 10, 20, 0.9);
    border: 1px solid rgba(0, 120, 255, 0.3);
    box-shadow: 0 0 100px rgba(0, 120, 255, 0.1);
    max-width: 700px;
    width: 90%;
    padding: 60px 40px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 20px;
    position: relative;
}

#deptModal.modal-overlay.active .portal-content {
    transform: scale(1);
}

.portal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.portal-divider {
    width: 60px;
    height: 4px;
    background: var(--accent-primary);
    margin: 0 auto 30px;
    border-radius: 2px;
}

.portal-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #eee;
}

.portal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portal-close:hover {
    background: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
}

[dir="rtl"] .portal-description {
    line-height: 2;
}

/* ==========================================================================
   PREMIUM TOAST NOTIFICATION
   ========================================================================== */
.premium-toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid var(--accent-primary);
    padding: 16px 32px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

.premium-toast.visible {
    bottom: 40px;
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.toast-content i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}
