/* --- Global Styles & Theme Variables --- */
:root {
    --primary-color: #0f172a; /* Deep dark blue */
    --secondary-color: #8b5cf6; /* Vibrant purple */
    --accent-color: #1e293b; /* Dark blue accent */
    --text-color: #e2e8f0;
    --light-gray: #334155;
    --white: #ffffff;
    --font-family: 'Rajdhani', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #020617;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--white);
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: var(--white);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(45deg, var(--secondary-color), #7c3aed);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn:hover:before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.4);
}

.btn-primary {
    background: linear-gradient(45deg, var(--secondary-color), #7c3aed);
    font-size: 18px;
    padding: 16px 36px;
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}

section {
    padding: 80px 0;
}

/* --- Button Row / Flex Button Group --- */
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.button-row .btn {
    flex: 1;
    min-width: 150px;
    text-align: center;
}

/* --- Header & Navigation --- */
header {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--secondary-color);
    font-size: 32px;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
    position: relative;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover:after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--white);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.7)), url('https://picsum.photos/seed/virtualworld/1920/1080.jpg') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 150px 0;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(2, 6, 23, 0.8) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 60px;
    color: var(--white);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.hero .subtitle {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    font-size: 22px;
    max-width: 700px;
    margin: 0 auto 30px auto;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    background-color: var(--secondary-color);
    border-radius: 50%;
    opacity: 0.5;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* --- Features Section --- */
.features {
    background-color: var(--accent-color);
    text-align: center;
    position: relative;
}

.features h2 {
    font-size: 40px;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.features h2:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    bottom: -10px;
    left: 25%;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}

.feature-item {
    background: rgba(30, 41, 59, 0.7);
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
}

.feature-item.visible {
    animation: fadeInUp 0.6s forwards;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.2);
    border-color: var(--secondary-color);
}

.feature-item i {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.feature-item h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

/* --- Event Section --- */
.event {
    background-color: var(--primary-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.event h2 {
    font-size: 40px;
    margin-bottom: 30px;
}

.event-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.event-image {
    width: 100%;
    max-width: 800px;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-image:hover img {
    transform: scale(1.05);
}

.event-text {
    max-width: 800px;
}

.event-text p {
    font-size: 18px;
    margin-bottom: 30px;
}

.event-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
    width: 100%;
    max-width: 900px;
}

.event-highlight {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
}

.event-highlight.visible {
    animation: fadeInUp 0.6s forwards;
}

.event-highlight:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-5px);
}

.event-highlight i {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.event-highlight h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

/* --- Community Section --- */
.community {
    background-color: var(--primary-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.community h2 {
    font-size: 40px;
    margin-bottom: 30px;
}

.community-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.community-image {
    width: 100%;
    max-width: 600px;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.community-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.community-image:hover img {
    transform: scale(1.05);
}

.community-text {
    max-width: 700px;
}

.community-text p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* --- Games Section --- */
.games {
    background-color: var(--accent-color);
    text-align: center;
}

.games h2 {
    font-size: 40px;
    margin-bottom: 50px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
}

.game-item {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
}

.game-item.visible {
    animation: fadeInUp 0.6s forwards;
}

.game-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.2);
    border-color: var(--secondary-color);
}

.game-item i {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.game-item h3 {
    font-size: 18px;
}

/* --- Footer --- */
footer {
    background-color: var(--primary-color);
    color: var(--light-gray);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 22px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--light-gray);
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #334155;
    padding-top: 20px;
    font-size: 14px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    color: var(--white);
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--white);
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* --- New Epic Animations --- */
.glow-text {
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.7);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(139, 92, 246, 0.7);
    }
    to {
        text-shadow: 0 0 20px rgba(139, 92, 246, 0.9), 0 0 30px rgba(139, 92, 246, 0.7);
    }
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://picsum.photos/seed/gamingbg/1920/1080.jpg') no-repeat center center/cover;
    opacity: 0.1;
    z-index: -1;
    will-change: transform;
}

.stagger-animation {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-animation.visible {
    animation: fadeInUp 0.6s forwards;
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.rotate-on-hover {
    transition: transform 0.3s ease;
}

.rotate-on-hover:hover {
    transform: rotate(5deg);
}

.shake-on-hover {
    transition: transform 0.3s ease;
}

.shake-on-hover:hover {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.pulse-on-hover {
    transition: transform 0.3s ease;
}

.pulse-on-hover:hover {
    animation: pulse-hover 0.5s;
}

@keyframes pulse-hover {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .features-grid, .event-highlights, .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        flex-direction: column;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 0;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid var(--light-gray);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .features-grid, .event-highlights, .footer-content {
        grid-template-columns: 1fr;
    }
}