/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-darkest: #050d1a;
    --bg-dark: #0a1929;
    --bg-medium: #102a43;
    --bg-light: #1a3a5c;
    --primary: #1e40af;
    --primary-light: #3b82f6;
    --accent: #60a5fa;
    --accent-glow: #93c5fd;
    --text-primary: #e0e7ff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --gradient: linear-gradient(135deg, #3b82f6 0%, #1e40af 50%, #0c1e3e 100%);
    --gradient-text: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #1e40af 100%);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-darkest);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(30, 64, 175, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

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

/* ===== Typography ===== */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow-glow);
}


.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(96, 165, 250, 0.4);
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.1rem 2.25rem;
    font-size: 1.05rem;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 0;
    z-index: 1000;
    background: rgba(5, 13, 26, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(5, 13, 26, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
    flex-shrink: 0;
}

.logo-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s ease, background-color 0.25s ease;
    position: relative;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    display: inline-block;
}

.nav-link:hover {
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link.btn-primary {
    color: white;
    padding: 0.6rem 1.25rem;
    margin-left: 0.25rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}



.nav-link.btn-primary:hover {
    color: white;
    text-shadow: none;
    background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
    transform: translateY(-2px);
    box-shadow: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    border: 0;
    background: transparent;
    padding: 0.35rem;
    font: inherit;
}

.hamburger span {
    width: 25px;
    height: 2.5px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: var(--primary-light);
    bottom: -50px;
    left: -50px;
    animation-delay: 2s;
}

.circle-3 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    animation-delay: 4s;
    opacity: 0.2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: fadeInLeft 0.8s ease-out;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 540px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(59, 130, 246, 0.15);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.25rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(96, 165, 250, 0.25);
    background: rgba(10, 25, 41, 0.55);
    animation: glowPulse 3s ease-in-out infinite;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease-out;
    position: relative;
}

.phone-mockup {
    position: relative;
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #1a3a5c, #0a1929);
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 0 0 2px rgba(96, 165, 250, 0.3),
        0 30px 80px rgba(59, 130, 246, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    animation: floatPhone 4s ease-in-out infinite;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    background: var(--bg-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-fallback {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.phone-glow {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 60%);
    z-index: -1;
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
}

/* ===== Sections Common ===== */
.about, .features, .gallery, .download {
    padding: 6rem 0;
    position: relative;
}

/* ===== About Section ===== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-card {
    background: linear-gradient(145deg, rgba(16, 42, 67, 0.6), rgba(10, 25, 41, 0.6));
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: var(--shadow-glow);
}

.about-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    display: inline-block;
    transition: var(--transition);
}

.about-card:hover .card-icon {
    transform: scale(1.15) rotate(-5deg);
}

.about-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Features Section ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    background: rgba(10, 25, 41, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-item:hover {
    background: rgba(16, 42, 67, 0.7);
    border-color: rgba(96, 165, 250, 0.4);
    transform: translateY(-5px);
}

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 1.6rem;
}

.feature-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===== Games Section ===== */
.games {
    background: linear-gradient(180deg, rgba(5, 13, 26, 0), rgba(16, 42, 67, 0.22), rgba(5, 13, 26, 0));
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.game-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.25rem;
    align-items: center;
    background: rgba(10, 25, 41, 0.62);
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 18px;
    padding: 1rem;
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.42);
    box-shadow: var(--shadow-glow);
}

.game-card img {
    width: 140px;
    height: auto;
    aspect-ratio: 9 / 19.5;
    object-fit: contain;
    object-position: top center;
    border-radius: 16px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    background: var(--bg-medium);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.game-card span {
    display: inline-block;
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.game-card h3 {
    color: var(--text-primary);
    font-size: 1.22rem;
    line-height: 1.2;
    margin-bottom: 0.55rem;
}

.game-card p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.65;
}

/* ===== Gallery ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    grid-auto-rows: 220px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(145deg, var(--bg-medium), var(--bg-dark));
    border: 1px solid rgba(59, 130, 246, 0.15);
    transition: var(--transition);
}

.gallery-item.img-fallback {
    background: linear-gradient(135deg, var(--primary), var(--bg-medium));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.gallery-item.img-fallback::before {
    content: '🎮';
    opacity: 0.6;
}

.gallery-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(5, 13, 26, 0.95), transparent);
    color: white;
    transform: translateY(20%);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===== Download ===== */
.download-box {
    background: linear-gradient(145deg, rgba(30, 64, 175, 0.3), rgba(10, 25, 41, 0.8));
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 30px;
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

.download-content {
    position: relative;
    z-index: 1;
}

.download-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(5, 13, 26, 0.8);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: white;
    padding: 0.85rem 1.5rem;
    border-radius: 14px;
    text-decoration: none;
    transition: var(--transition);
    min-width: 180px;
}

.store-btn-disabled {
    cursor: default;
    opacity: 0.82;
}

.store-btn:hover {
    background: rgba(30, 64, 175, 0.4);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent);
}

.store-btn.store-btn-disabled:hover {
    background: rgba(5, 13, 26, 0.8);
    transform: none;
    box-shadow: none;
    border-color: rgba(96, 165, 250, 0.3);
}

.store-btn small {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.store-btn strong {
    font-size: 1rem;
    font-weight: 700;
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(to top, var(--bg-dark), transparent);
    border-top: 1px solid rgba(59, 130, 246, 0.15);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin: 1rem 0 1.5rem;
    max-width: 320px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-3px);
    border-color: transparent;
}

.footer-links h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-inline {
    margin-top: 0.55rem;
}

.legal-inline a {
    color: var(--text-secondary);
    text-decoration: none;
}

.legal-inline a:hover {
    color: var(--accent);
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
}

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

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 50%, #93c5fd 100%);
    z-index: 9999;
    transition: width 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.7), 0 0 24px rgba(59, 130, 246, 0.4);
    border-radius: 0 4px 4px 0;
    will-change: width;
}

/* ===== Particle Canvas ===== */
.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

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

.hero-bg {
    z-index: 1;
}

/* ===== Cursor Glow ===== */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, rgba(59, 130, 246, 0.08) 35%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease;
    opacity: 0;
    mix-blend-mode: screen;
    will-change: transform;
}

.cursor-glow.active {
    opacity: 1;
}

@media (max-width: 968px) {
    .cursor-glow {
        display: none;
    }
    .particles-canvas {
        opacity: 0.4;
    }
}

/* ===== 3D Tilt Cards ===== */
.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
    will-change: transform;
}

.tilt-card .card-icon,
.tilt-card h3,
.tilt-card p {
    transform: translateZ(30px);
}

/* ===== Magnetic Buttons ===== */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ===== Text Reveal Animation ===== */
.text-reveal {
    display: inline-block;
    overflow: hidden;
    position: relative;
}

.text-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    transform: translateX(-101%);
    animation: textReveal 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.text-reveal.revealed::after {
    transform: translateX(101%);
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

@keyframes textReveal {
    0% { transform: translateX(-101%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(101%); }
}

/* ===== Glow Pulse Effect ===== */
.glow-pulse {
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3),
                    0 0 40px rgba(59, 130, 246, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.6),
                    0 0 80px rgba(59, 130, 246, 0.4);
    }
}

@keyframes glowPulseBg {
    0%, 100% {
        background: radial-gradient(circle, rgba(59, 130, 246, 0.7) 0%, transparent 70%);
        opacity: 0.3;
    }
    50% {
        background: radial-gradient(circle, rgba(59, 130, 246, 0.7) 0%, transparent 70%);
        opacity: 0.8;
    }
}

/* ===== Ripple Effect on Click ===== */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: rippleEffect 0.8s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

@keyframes floatPhone {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.05); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .phone-mockup {
        width: 220px;
        height: 440px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

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

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

    .gallery-large {
        grid-column: span 2;
    }

    .gallery-wide {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(5, 13, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.4s;
        border-left: 1px solid rgba(59, 130, 246, 0.2);
    }

    .nav-menu.active {
        right: 0;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    .about, .features, .gallery, .download {
        padding: 4rem 0;
    }

    .download-box {
        padding: 3rem 1.5rem;
    }

    .game-card {
        grid-template-columns: 120px 1fr;
    }

    .game-card img {
        width: 120px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .gallery-large,
    .gallery-wide {
        grid-column: span 1;
    }

    .game-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .game-card img {
        width: min(100%, 200px);
    }
}

/* ===== Modern Particle Network & Spotlight ===== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}

.cursor-spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.14) 0%, rgba(59, 130, 246, 0.06) 40%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease;
    opacity: 0;
    mix-blend-mode: screen;
    will-change: transform;
}

.cursor-spotlight.active {
    opacity: 1;
}

@media (max-width: 768px) {
    .cursor-spotlight {
        display: none;
    }
    #particles-canvas {
        opacity: 0.4;
    }
}

/* Animated text shimmer */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.shimmer-text {
    background: linear-gradient(
        90deg,
        var(--accent) 0%,
        #ffffff 25%,
        var(--accent-glow) 50%,
        #ffffff 75%,
        var(--accent) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* 3D Tilt Effect */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    will-change: transform;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateY(var(--tilt-y, 0deg)) rotateX(var(--tilt-x, 0deg)) translateZ(20px);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
}

.tilt-card .card-icon,
.tilt-card .feature-icon-wrap {
    transform: translateZ(40px);
}

.tilt-card h3,
.tilt-card p {
    transform: translateZ(25px);
}

/* Floating glow ring on hero */
@keyframes glowRing {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.1) rotate(180deg);
        opacity: 0.6;
    }
}

.hero-glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    border: 2px solid rgba(96, 165, 250, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: glowRing 8s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.hero-glow-ring::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid transparent;
    border-top-color: var(--accent);
    border-right-color: var(--accent);
    border-radius: 50%;
    animation: glowRing 4s linear infinite;
}
