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

:root {
    --primary-purple: #9d4edd;
    --dark-purple: #7b2cbf;
    --light-purple: #c77dff;
    --black: #0a0a0a;
    --dark-gray: #1a1a1a;
    --gray: #2a2a2a;
    --light-gray: #3a3a3a;
    --white: #ffffff;
    --text-light: #e0e0e0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--black);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(157, 78, 221, 0.2);
}

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

.logo {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-purple);
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(157, 78, 221, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

.logo-subtitle {
    font-size: 0.7rem;
    font-weight: 300;
    color: var(--light-purple);
    letter-spacing: 4px;
    margin-top: -5px;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(157, 78, 221, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(157, 78, 221, 0.8), 0 0 40px rgba(157, 78, 221, 0.5);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

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

.nav-menu a:hover {
    color: var(--primary-purple);
}

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

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

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
}

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

#particleCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-content {
    text-align: center;
    z-index: 10;
    padding: 0 20px;
}

.hero-title {
    font-size: 8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--light-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(157, 78, 221, 0.5);
    animation: titleAppear 1s ease-out;
}

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

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    color: var(--white);
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(157, 78, 221, 0.5);
}

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

.btn-secondary:hover {
    background: var(--primary-purple);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.3);
}

.btn-small {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-purple);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--primary-purple);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        top: 8px;
        opacity: 1;
    }
    100% {
        top: 25px;
        opacity: 0;
    }
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--dark-gray);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-purple), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 1rem;
    position: relative;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple), var(--light-purple));
    margin: 0 auto;
    border-radius: 2px;
}

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

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-purple);
    margin-bottom: 1.5rem;
}

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

.about-text strong {
    color: var(--primary-purple);
}

.stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

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

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-card {
    width: 300px;
    height: 300px;
    position: relative;
    background: linear-gradient(135deg, var(--gray), var(--dark-gray));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-purple);
    overflow: hidden;
    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.card-glow {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-purple) 0%, transparent 70%);
    opacity: 0.3;
    animation: rotate 10s linear infinite;
}

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

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

.game-icon {
    font-size: 6rem;
    animation: bounce 2s ease-in-out infinite;
}

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

/* Games Section */
.games {
    padding: 100px 0;
    background: var(--black);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.game-card {
    perspective: 1000px;
    height: 500px;
}

.game-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.game-card:hover .game-card-inner {
    transform: rotateY(180deg);
}

.game-card-front,
.game-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    background: var(--dark-gray);
    border: 2px solid var(--gray);
    transition: all 0.3s ease;
}

.game-card-front {
    display: flex;
    flex-direction: column;
}

.game-card:hover .game-card-front {
    border-color: var(--primary-purple);
    box-shadow: 0 20px 60px rgba(157, 78, 221, 0.3);
}

.game-card-back {
    transform: rotateY(180deg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--gray), var(--dark-gray));
    border-color: var(--primary-purple);
}

.game-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
}

.game-placeholder {
    font-size: 8rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.5;
}

.game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--dark-gray), transparent);
}

.game-info {
    padding: 2rem;
}

.game-info h3 {
    font-size: 1.8rem;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.game-genre {
    color: var(--text-light);
    opacity: 0.7;
}

.game-card-back h3 {
    font-size: 2rem;
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.game-card-back p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.game-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    padding: 0.5rem 1rem;
    background: rgba(157, 78, 221, 0.2);
    border: 1px solid var(--primary-purple);
    border-radius: 20px;
    color: var(--primary-purple);
    font-size: 0.8rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--dark-gray);
}

.contact-content {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.contact-info {
    max-width: 600px;
    text-align: center;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(157, 78, 221, 0.2);
    border-radius: 15px;
    border: 2px solid var(--primary-purple);
}

.contact-item h4 {
    color: var(--primary-purple);
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
}

.contact-form-container {
    background: var(--gray);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid var(--light-gray);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--dark-gray);
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--black);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--gray);
}

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

.footer-brand p {
    color: var(--text-light);
    opacity: 0.7;
    margin-top: 1rem;
}

.footer-links h4 {
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

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

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

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-purple);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray);
    color: var(--text-light);
    opacity: 0.5;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 1rem;
        border-bottom: 2px solid var(--primary-purple);
    }

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

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

    .stats {
        justify-content: space-around;
        gap: 1rem;
    }

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

    .game-card {
        height: 400px;
    }

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

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

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}