/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00ff88;
    --secondary: #ff0080;
    --accent: #00d4ff;
    --dark: #0a0e27;
    --darker: #050714;
    --light: #ffffff;
    --gray: #8892b0;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-glow: linear-gradient(135deg, var(--primary), var(--accent));
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--darker);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(125deg, #0a0e27 0%, #050714 50%, #0a0e27 100%);
    overflow: hidden;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite;
}

.particle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 20%;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    animation-delay: 5s;
}

.particle:nth-child(3) {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 50%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    animation-delay: 10s;
}

.particle:nth-child(4) {
    width: 180px;
    height: 180px;
    top: 40%;
    left: 70%;
    animation-delay: 15s;
}

.particle:nth-child(5) {
    width: 220px;
    height: 220px;
    bottom: 30%;
    right: 10%;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    animation-delay: 8s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 50px) scale(0.9);
    }
    75% {
        transform: translate(40px, 30px) scale(1.05);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 14, 39, 0.95);
    box-shadow: 0 5px 30px rgba(0, 255, 136, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo-alpha {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary);
}

.logo-blitz {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-glow);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 40px 40px;
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.glitch {
    position: relative;
    color: var(--light);
    letter-spacing: 8px;
    animation: glitch-1 2s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--secondary);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--primary);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-3 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(90px, 9999px, 85px, 0); }
    40% { clip: rect(10px, 9999px, 140px, 0); }
    60% { clip: rect(60px, 9999px, 95px, 0); }
    80% { clip: rect(25px, 9999px, 120px, 0); }
    100% { clip: rect(85px, 9999px, 65px, 0); }
}

@keyframes glitch-3 {
    0% { clip: rect(30px, 9999px, 90px, 0); }
    20% { clip: rect(80px, 9999px, 50px, 0); }
    40% { clip: rect(20px, 9999px, 110px, 0); }
    60% { clip: rect(70px, 9999px, 60px, 0); }
    80% { clip: rect(40px, 9999px, 100px, 0); }
    100% { clip: rect(90px, 9999px, 70px, 0); }
}

.subtitle {
    font-size: 2rem;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--gray);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.5s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.8s both;
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-glow);
    color: var(--dark);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.4);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.3);
}

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

/* Game Controller Visual */
.hero-visual {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.1;
    animation: rotate3d 20s infinite linear;
}

.game-controller {
    width: 300px;
    height: 200px;
    position: relative;
}

.controller-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.3);
}

.dpad {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
}

.dpad::before,
.dpad::after {
    content: '';
    position: absolute;
    background: var(--dark);
}

.dpad::before {
    width: 60px;
    height: 20px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.dpad::after {
    width: 20px;
    height: 60px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.buttons {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
}

.buttons span {
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--dark);
}

.btn-a { bottom: 0; right: 50%; transform: translateX(50%); }
.btn-b { right: 0; top: 50%; transform: translateY(-50%); }
.btn-x { left: 0; top: 50%; transform: translateY(-50%); }
.btn-y { top: 0; right: 50%; transform: translateX(50%); }

@keyframes rotate3d {
    0% { transform: translateY(-50%) rotateY(0deg); }
    100% { transform: translateY(-50%) rotateY(360deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    width: 3px;
    height: 15px;
    background: var(--primary);
    border-radius: 3px;
    animation: scrollPulse 1.5s infinite;
}

.scroll-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Section Styles */
section {
    padding: 100px 40px;
    position: relative;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    color: var(--light);
}

.title-line {
    flex: 1;
    max-width: 200px;
    height: 2px;
    background: var(--gradient-glow);
}

/* About Section */
.about {
    background: rgba(10, 14, 39, 0.5);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
}

.lead {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.2);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--gray);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.product-card {
    position: relative;
    background: rgba(10, 14, 39, 0.8);
    border-radius: 30px;
    padding: 50px 40px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: all 0.5s ease;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-card:hover .card-glow {
    opacity: 1;
    animation: cardGlow 3s infinite;
}

@keyframes cardGlow {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-10%, -10%); }
    50% { transform: translate(10%, 10%); }
    75% { transform: translate(-10%, 10%); }
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.3);
    border-color: var(--primary);
}

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

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    color: var(--primary);
    filter: drop-shadow(0 0 20px var(--primary));
}

.card-logo {
    width: 200px;
    height: 120px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 255, 136, 0.3));
}

.product-card:hover .card-logo {
    transform: scale(1.1);
}

.product-card:hover .card-logo img {
    filter: drop-shadow(0 10px 30px rgba(0, 255, 136, 0.5));
}

.card-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-description {
    color: var(--gray);
    text-align: center;
    line-height: 1.8;
    margin-bottom: 30px;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.feature-tag {
    padding: 8px 16px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
}

.card-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 15px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.card-btn:hover {
    background: var(--primary);
    color: var(--dark);
    transform: scale(1.05);
}

/* Contact Section */
.contact {
    background: rgba(10, 14, 39, 0.5);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: rgba(0, 255, 136, 0.05);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateX(10px);
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.2);
}

.info-icon {
    width: 40px;
    height: 40px;
    color: var(--primary);
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.info-card p {
    color: var(--gray);
    line-height: 1.8;
}

.info-card a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-card a:hover {
    color: var(--primary);
}

/* Contact Form */
.contact-form-wrapper {
    background: rgba(0, 255, 136, 0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(10, 14, 39, 0.8);
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 10px;
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--gray);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -10px;
    left: 10px;
    font-size: 0.85rem;
    color: var(--primary);
    background: var(--dark);
    padding: 0 10px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: rgba(10, 14, 39, 0.9);
    padding: 40px;
    border-top: 1px solid rgba(0, 255, 136, 0.1);
}

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

.footer-brand h3 {
    font-size: 1.3rem;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-copyright p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-visual {
        opacity: 0.05;
    }

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

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 14, 39, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        padding: 40px 0;
        border-top: 1px solid rgba(0, 255, 136, 0.2);
    }

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

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translateY(8px);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);
    }

    .hero-title {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.3rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }

    .title-line {
        max-width: 50px;
    }

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

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

    .product-card {
        min-width: unset;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

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

    .glitch {
        letter-spacing: 4px;
    }

    .subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    section {
        padding: 60px 20px;
    }

    .nav-container {
        padding: 20px;
    }

    .card-logo {
        width: 150px;
        height: 90px;
    }
}
