/* CSS Variables for theme */
:root {
    --bg-color: #0a0a12;
    --primary-color: #ff3eac; /* Hot Pink */
    --secondary-color: #00f0ff; /* Electric Blue */
    --accent-color: #a162e8; /* Purple */
    --text-color: #ffffff;
    --card-bg: rgba(25, 20, 40, 0.7);
    --border-color: rgba(255, 62, 172, 0.5);
    --glitch-color-1: #ff3eac;
    --glitch-color-2: #00f0ff;
    --neon-glow: 0 0 10px var(--primary-color),
    0 0 20px var(--primary-color),
    0 0 30px var(--primary-color);
}

/* Basic Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
    transition: all 0.3s ease;
}

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;700&family=Orbitron:wght@400;500&display=swap');

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-image:
            radial-gradient(circle at 15% 50%, rgba(255, 62, 172, 0.1) 0%, transparent 25%),
            radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.1) 0%, transparent 25%);
}

/* Glitchy Background Effect */
.glitch-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            linear-gradient(90deg, rgba(255, 62, 172, 0.05) 0%, transparent 50%),
            linear-gradient(180deg, rgba(0, 240, 255, 0.05) 0%, transparent 50%);
    background-size: 10px 10px;
    animation: bg-scanline 1s infinite linear;
    z-index: -2;
    opacity: 0.3;
}

@keyframes bg-scanline {
    0% { background-position: 0 0; }
    100% { background-position: 0 10px; }
}

/* Grid overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
            linear-gradient(180deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
    pointer-events: none;
}

/* Glitch effect on elements */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--glitch-color-1);
    animation: glitch-anim-1 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 2px 0 var(--glitch-color-2);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(42px, 9999px, 44px, 0); }
    5% { clip: rect(12px, 9999px, 59px, 0); }
    10% { clip: rect(48px, 9999px, 29px, 0); }
    15% { clip: rect(42px, 9999px, 73px, 0); }
    20% { clip: rect(63px, 9999px, 27px, 0); }
    25% { clip: rect(34px, 9999px, 55px, 0); }
    30% { clip: rect(86px, 9999px, 73px, 0); }
    35% { clip: rect(20px, 9999px, 20px, 0); }
    40% { clip: rect(26px, 9999px, 60px, 0); }
    45% { clip: rect(25px, 9999px, 66px, 0); }
    50% { clip: rect(57px, 9999px, 98px, 0); }
    55% { clip: rect(5px, 9999px, 46px, 0); }
    60% { clip: rect(82px, 9999px, 31px, 0); }
    65% { clip: rect(54px, 9999px, 27px, 0); }
    70% { clip: rect(28px, 9999px, 99px, 0); }
    75% { clip: rect(45px, 9999px, 69px, 0); }
    80% { clip: rect(23px, 9999px, 85px, 0); }
    85% { clip: rect(54px, 9999px, 84px, 0); }
    90% { clip: rect(45px, 9999px, 47px, 0); }
    95% { clip: rect(37px, 9999px, 20px, 0); }
    100% { clip: rect(73px, 9999px, 99px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    5% { clip: rect(52px, 9999px, 74px, 0); }
    10% { clip: rect(79px, 9999px, 85px, 0); }
    15% { clip: rect(75px, 9999px, 5px, 0); }
    20% { clip: rect(67px, 9999px, 61px, 0); }
    25% { clip: rect(14px, 9999px, 79px, 0); }
    30% { clip: rect(1px, 9999px, 66px, 0); }
    35% { clip: rect(93px, 9999px, 59px, 0); }
    40% { clip: rect(98px, 9999px, 70px, 0); }
    45% { clip: rect(46px, 9999px, 36px, 0); }
    50% { clip: rect(34px, 9999px, 55px, 0); }
    55% { clip: rect(57px, 9999px, 97px, 0); }
    60% { clip: rect(35px, 9999px, 72px, 0); }
    65% { clip: rect(62px, 9999px, 10px, 0); }
    70% { clip: rect(30px, 9999px, 92px, 0); }
    75% { clip: rect(10px, 9999px, 14px, 0); }
    80% { clip: rect(57px, 9999px, 60px, 0); }
    85% { clip: rect(62px, 9999px, 71px, 0); }
    90% { clip: rect(31px, 9999px, 15px, 0); }
    95% { clip: rect(91px, 9999px, 92px, 0); }
    100% { clip: rect(72px, 9999px, 77px, 0); }
}

/* Header & Navigation */
header {
    width: 100%;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 18, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: var(--neon-glow);
    display: flex;
    align-items: center;
    gap: 10px;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

nav a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

nav a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-left: 30px;
}

.nav-icons a {
    color: var(--text-color);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.nav-icons a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
    transform: translateY(-3px);
}

/* Main Content */
main {
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-section {
    text-align: center;
    padding: 120px 0 80px;
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 5.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 62, 172, 0.5);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
}

.hero-section p {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-color);
    font-weight: 300;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 0 25px var(--primary-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    transition: all 0.4s ease;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 35px var(--primary-color), 0 0 35px var(--secondary-color);
}

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

.game-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    padding: 25px;
    position: relative;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(255, 62, 172, 0.2);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
}

.game-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), transparent, transparent);
    z-index: -1;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.game-card:hover::before {
    opacity: 1;
}

.game-card:hover {
    transform: translateY(-15px) rotateX(5deg) scale(1.03);
    border-color: var(--secondary-color);
    box-shadow: 0 0 30px var(--secondary-color);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    filter: grayscale(30%) contrast(120%);
    transition: filter 0.5s ease;
}

.game-card:hover img {
    filter: grayscale(0%) contrast(100%);
}

.game-card h3 {
    margin-top: 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
    font-family: 'Orbitron', sans-serif;
}

.game-card p {
    font-size: 1rem;
    margin: 15px 0 25px;
    color: var(--text-color);
    line-height: 1.7;
}

.game-card .play-button {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--text-color);
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 0 15px var(--primary-color);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.game-card .play-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.game-card .play-button:hover::before {
    opacity: 1;
}

.game-card .play-button:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px var(--secondary-color);
}

.game-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--bg-color);
    font-size: 0.8rem;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px var(--primary-color);
    z-index: 999;
}

/* Featured section */
.featured-title {
    text-align: center;
    font-size: 3rem;
    margin: 100px 0 50px;
    color: var(--secondary-color);
    text-shadow: 0 0 20px var(--secondary-color);
    font-family: 'Orbitron', sans-serif;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.featured-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

/* Footer */
footer {
    background: rgba(10, 10, 18, 0.9);
    padding: 60px 5% 30px;
    margin-top: 120px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-shadow: 0 0 8px var(--primary-color);
}

.footer-section p, .footer-section a {
    color: #ccc;
    margin-bottom: 12px;
    display: block;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-5px);
    box-shadow: 0 0 15px var(--primary-color);
}

.copyright {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: #888;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 4rem;
    }

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 1rem;
        padding: 6px 12px;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-section p {
        font-size: 1.2rem;
    }

    header {
        flex-direction: column;
        padding: 20px 5%;
        gap: 20px;
    }

    nav {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .nav-icons {
        margin-left: 0;
        margin-top: 15px;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 80px 0 60px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .featured-title {
        font-size: 2.2rem;
    }

    .game-card {
        padding: 20px;
    }

    .game-card h3 {
        font-size: 1.5rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
    box-shadow: 0 0 5px var(--secondary-color);
}

.active{
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}