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

:root {
    --pulse-pink: #ff007a;
    --neon-teal: #00ffd1;
    --ink-black: #0b0b13;
    --graphite-gray: #1a1a22;
    --glow-white: #f2f2f2;
    --gradient-primary: linear-gradient(135deg, var(--pulse-pink), var(--neon-teal));
    --gradient-dark: linear-gradient(135deg, var(--ink-black), var(--graphite-gray));
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--ink-black);
    color: var(--glow-white);
    overflow-x: hidden;
    cursor: none;
    line-height: 1.6;
}

/* Custom Cursor */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--neon-teal), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
    opacity: 0.8;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, var(--pulse-pink) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--neon-teal) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, var(--pulse-pink) 0%, transparent 30%),
        var(--ink-black);
    opacity: 0.1;
    z-index: -1;
    animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 11, 19, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--pulse-pink);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px var(--neon-teal);
}

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

.nav-links a {
    color: var(--glow-white);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--neon-teal);
    background: rgba(0, 255, 209, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 209, 0.3);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--neon-teal);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--neon-teal);
}

/* Main Content */
.main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 20px var(--pulse-pink)); }
    50% { filter: drop-shadow(0 0 40px var(--neon-teal)); }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--glow-white);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(255, 0, 122, 0.5);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(255, 0, 122, 0.8);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 400px;
}

/* New Hexagon Animation */
.neon-hexagon {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hex-layer {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 3px solid;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: hexRotate 8s linear infinite;
}

.hex-1 {
    border-color: var(--neon-teal);
    animation-duration: 8s;
}

.hex-2 {
    border-color: var(--pulse-pink);
    width: 150px;
    height: 150px;
    animation-duration: 6s;
    animation-direction: reverse;
}

.hex-3 {
    border-color: var(--neon-teal);
    width: 100px;
    height: 100px;
    animation-duration: 4s;
}

.hex-center {
    position: relative;
    z-index: 10;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(0, 255, 209, 0.8);
    animation: centerPulse 2s ease-in-out infinite;
}

.game-icon {
    font-size: 2rem;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes hexRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes centerPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 30px rgba(0, 255, 209, 0.8);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 50px rgba(255, 0, 122, 0.8);
    }
}

/* Section Styles */
.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Featured Games */
.featured-games {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

.game-card {
    position: relative;
    background: var(--graphite-gray);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--neon-teal);
    box-shadow: 0 20px 40px rgba(0, 255, 209, 0.3);
}

.game-image-container {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1a1a22, #2a2a32);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: linear-gradient(135deg, #1a1a22, #2a2a32);
    padding: 1rem;
}

.friend-frenzy-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(1.2) contrast(1.1);
}

.game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(11, 11, 19, 0.95));
    padding: 2rem;
    transform: translateY(50%);
    transition: all 0.3s ease;
}

.game-card:hover .game-overlay {
    transform: translateY(0);
}

.game-overlay h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--neon-teal);
}

.play-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--pulse-pink);
    color: var(--glow-white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 0, 122, 0.5);
}

.play-button:hover {
    background: var(--neon-teal);
    box-shadow: 0 0 30px rgba(0, 255, 209, 0.8);
}

/* About Section */
.about {
    padding: 4rem 2rem;
    background: rgba(26, 26, 34, 0.5);
    margin: 2rem 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Disclaimer Section */
.disclaimer {
    padding: 3rem 2rem;
    background: rgba(255, 0, 122, 0.1);
    border: 2px solid var(--pulse-pink);
    margin: 2rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.disclaimer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 0, 122, 0.05), transparent);
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.disclaimer-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.disclaimer-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

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

.disclaimer-content h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--pulse-pink);
    text-shadow: 0 0 20px var(--pulse-pink);
}

.disclaimer-text p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.disclaimer-symbols {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.symbol {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.symbol:nth-child(2) {
    animation-delay: 1s;
}

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

/* Footer */
.footer {
    background: var(--graphite-gray);
    padding: 2rem;
    text-align: center;
    border-top: 2px solid var(--neon-teal);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--neon-teal);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--pulse-pink);
    text-shadow: 0 0 10px var(--pulse-pink);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--glow-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(255, 0, 122, 0.5);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 122, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .hero-visual {
        margin-top: 2rem;
        height: 300px;
    }
    
    .neon-hexagon {
        width: 250px;
        height: 250px;
    }
    
    .hex-layer {
        width: 150px;
        height: 150px;
    }
    
    .hex-2 {
        width: 100px;
        height: 100px;
    }
    
    .hex-3 {
        width: 50px;
        height: 50px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .disclaimer {
        margin: 1rem;
        padding: 2rem 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 1rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .disclaimer-content h3 {
        font-size: 1.5rem;
    }
}

/* Game Pages Specific Styles */
.game-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.game-header {
    text-align: center;
    margin-bottom: 2rem;
}

.game-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.back-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--graphite-gray);
    color: var(--glow-white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--neon-teal);
    margin-bottom: 2rem;
}

.back-button:hover {
    background: var(--neon-teal);
    color: var(--ink-black);
    box-shadow: 0 0 20px var(--neon-teal);
}

.game-frame {
    width: 100%;
    height: 70vh;
    border: 2px solid var(--pulse-pink);
    border-radius: 10px;
    background: var(--graphite-gray);
}

.lg-object {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--neon-teal);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--graphite-gray);
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--glow-white);
    font-family: inherit;
    transition: all 0.3s ease;
}

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

.submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    color: var(--glow-white);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 0, 122, 0.5);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 122, 0.8);
}

/* Profile Pages */
.profile-card {
    background: var(--graphite-gray);
    border: 2px solid var(--neon-teal);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 255, 209, 0.3);
}

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

.stat-item {
    background: rgba(255, 0, 122, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--pulse-pink);
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--pulse-pink);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Terms and Privacy Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(26, 26, 34, 0.8);
    border-radius: 20px;
    border: 2px solid var(--neon-teal);
}

.legal-content h2 {
    color: var(--pulse-pink);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: 'Orbitron', monospace;
}

.legal-content h3 {
    color: var(--neon-teal);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 80px);
        background: rgba(11, 11, 19, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: right 0.3s ease;
        border-left: 2px solid var(--neon-teal);
    }
    
    .nav-links.active {
        right: 0;
        display: flex;
    }
    
    .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, -6px);
    }
}