/* ===================================== */
/* Global Styles and CSS Variables       */
/* ===================================== */

:root {
    /* Color Palette */
    --color-primary: #00ffff;
    --color-secondary: #ff00ff;
    --color-accent: #ffff00;
    --color-success: #00ff00;
    --color-danger: #ff0000;
    --color-dark: #0f0f0f;
    --color-gray-dark: #1a1a1a;
    --color-gray: #374151;
    --color-gray-light: #9ca3af;
    --color-white: #ffffff;
    
    /* Shadows and Effects */
    --shadow-primary: 0 0 30px var(--color-primary);
    --shadow-secondary: 0 0 30px var(--color-secondary);
    --shadow-accent: 0 0 30px var(--color-accent);
    --shadow-glow-multi: 0 0 40px #00ffff, 0 0 60px #ff00ff, 0 0 80px #ffff00;
    
    /* Typography */
    --font-main: 'Space Grotesk', sans-serif;
    --font-mono: 'Courier New', monospace;
}

/* ===================================== */
/* Base Styles                           */
/* ===================================== */

body {
    font-family: var(--font-main);
    background: var(--color-dark);
    color: var(--color-white);
    overflow-x: hidden;
}

/* Glass morphism effect */
.glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.37),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 80px rgba(120, 50, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.glass::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    pointer-events: none;
}

/* ===================================== */
/* Font Classes                          */
/* ===================================== */

.orbitron {
    font-family: 'Orbitron', monospace;
}

/* ===================================== */
/* Baroque/Art-Deco Frame Styles        */
/* ===================================== */

.baroque-frame {
    position: relative;
    border: 3px solid var(--color-primary);
    border-radius: 8px;
    box-shadow: 
        0 0 20px var(--color-primary),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.baroque-frame::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px solid var(--color-secondary);
    border-radius: 12px;
    opacity: 0.6;
    z-index: -1;
}

.baroque-frame::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid var(--color-accent);
    border-radius: 4px;
    opacity: 0.4;
    pointer-events: none;
}

.art-deco-corner {
    position: relative;
}

.art-deco-corner::before,
.art-deco-corner::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-primary);
}

.art-deco-corner::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.art-deco-corner::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

/* ===================================== */
/* Hero Section Styles                   */
/* ===================================== */

.hero-gradient {
    background: linear-gradient(135deg, #1a0033 0%, #330066 50%, #1a0033 100%);
}

.hero-title {
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px var(--color-primary));
}

.hero-image-glow {
    filter: drop-shadow(0 0 40px var(--color-primary)) 
            drop-shadow(0 0 60px var(--color-secondary)) 
            drop-shadow(0 0 80px var(--color-accent));
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 50px var(--color-primary), 
                inset 0 0 20px rgba(0, 255, 255, 0.2);
}

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

/* ===================================== */
/* Star Animation Styles                 */
/* ===================================== */

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    box-shadow: 0 0 10px white;
    animation: twinkle 3s infinite;
    border-radius: 50%;
}

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

/* ===================================== */
/* Navigation Styles                     */
/* ===================================== */

.fun-navbar {
    background: linear-gradient(90deg, #1e3a8a, #7c3aed, #ec4899);
    background-size: 400% 100%;
    animation: navGradient 15s linear infinite;
    box-shadow: 0 0 15px #ec4899;
}

@keyframes navGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

nav .nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    position: relative;
}

nav .nav-link:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 10px currentColor;
}

/* Enhanced Burger Menu Animation */
.burger-active {
    transform: rotate(90deg);
}

.burger-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: burgerPulse 1s infinite;
}

@keyframes burgerPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 0.1; }
}

/* Enhanced Dropdown Styles */
#gamesDropdownMenu, #games-dd {
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    width: 14rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 20, 40, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 255, 255, 0.3);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(0, 255, 255, 0.2),
        inset 0 0 20px rgba(0, 255, 255, 0.05);
    z-index: 1000;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    margin-bottom: 0.25rem;
    position: relative;
    overflow: hidden;
}

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

.dropdown-item:hover::before {
    left: 100%;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(255, 0, 255, 0.1) 100%);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

/* Mobile Menu Enhancements */
.mobile-menu-gradient {
    background: linear-gradient(to bottom, 
                rgba(0, 0, 0, 0.98), 
                rgba(20, 20, 40, 0.98));
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

/* Navigation Link Glow Effects */
nav a {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    transition: all 0.3s;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 100%;
    box-shadow: 0 0 10px currentColor;
}

/* Scroll Indicator Enhancements */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00ffff, #ff00ff, #ffff00);
    transform-origin: left;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Retro-Neon Button Effects */
.nav-button {
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.nav-button:hover::before {
    animation: shimmer 0.6s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

.nav-button:hover {
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.2), rgba(255, 0, 255, 0.2));
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
}


/* ===================================== */
/* Blog Page Styles                      */
/* ===================================== */

.space-grotesk {
    font-family: 'Space Grotesk', sans-serif;
}

.animated-bg {
    background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 50%, #ec4899 100%);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.blog-list-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
}

.blog-list-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(245, 158, 11, 0.3);
}

.blog-content {
    line-height: 1.8;
    font-size: 1.125rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content p:last-child {
    margin-bottom: 0;
}

/* Category badge colors */
.category-animals { background-color: rgba(251, 146, 60, 0.2); color: #fb923c; }
.category-gaming { background-color: rgba(168, 85, 247, 0.2); color: #a855f7; }
.category-art { background-color: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.category-family { background-color: rgba(34, 197, 94, 0.2); color: #22c55e; }
.category-adventure { background-color: rgba(236, 72, 153, 0.2); color: #ec4899; }

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Category filter styles */
.category-filter {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-filter:hover {
    background: rgba(255, 255, 255, 0.1);
}

.category-filter.active {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.5);
    color: #f59e0b;
}

/* Sort button styles */
.sort-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sort-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===================================== */
/* Admin Login Styles                    */
/* ===================================== */

.login-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.admin-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #f59e0b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

@keyframes roar {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(-5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.lion-emoji:hover {
    animation: roar 0.5s ease;
}

/* ===================================== */
/* 404 Page Styles                       */
/* ===================================== */

.blink {
    animation: blink 1s infinite;
}

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

/* Retro scanlines effect */
.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 255, 255, 0.03) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.3;
}

.retro-text {
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px #00ffff);
}

#gameCanvas {
    border: 2px solid #00ffff;
    box-shadow: 0 0 30px #00ffff;
    background: #000;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.pixel-dino {
    font-family: monospace;
    font-size: 40px;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.mobile-menu-gradient {
    background: linear-gradient(to bottom, 
                rgba(31, 41, 55, 0.98), 
                rgba(17, 24, 39, 0.98));
}

/* ===================================== */
/* Button Styles                         */
/* ===================================== */

.btn-primary {
    background: linear-gradient(45deg, var(--color-accent), #ffa500);
    color: black;
    font-weight: 600;
    border-radius: 9999px;
    padding: 0.75rem 2rem;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 0, 0.3);
}

.btn-secondary {
    background: linear-gradient(45deg, var(--color-primary), #0099ff);
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    padding: 0.75rem 2rem;
    transition: all 0.3s;
}

.btn-secondary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.btn-danger {
    background: var(--color-danger);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: #cc0000;
}

/* ===================================== */
/* Card Styles                           */
/* ===================================== */

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Override glass-card for gallery items */
.gallery-item-wrapper .glass-card {
    background: transparent !important;
    backdrop-filter: none !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.gallery-item-wrapper .glass-card img {
    opacity: 1 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    visibility: visible !important;
    z-index: 1;
}

/* Fix for gallery images loading */
#gallery .gallery-item-wrapper img {
    max-width: 100% !important;
    height: auto !important;
    min-height: 200px !important;
    position: relative !important;
    z-index: 10 !important;
}

.admin-card {
    background: rgba(55, 65, 81, 0.3);
    border: 1px solid rgba(156, 163, 175, 0.2);
}

/* ===================================== */
/* Section Title Styles                  */
/* ===================================== */

.section-title-gradient {
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px var(--color-primary));
}

.section-title-glow {
    color: var(--color-accent);
    text-shadow: 0 0 30px var(--color-accent);
}

/* ===================================== */
/* Interest Card Styles                  */
/* ===================================== */

.interest-card-animals {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8787 100%);
}

.interest-card-animals:hover {
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.3);
}

.interest-card-3d {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.interest-card-3d:hover {
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.interest-card-retro {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.interest-card-retro:hover {
    box-shadow: 0 20px 40px rgba(240, 147, 251, 0.3);
}

.interest-card-anime {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.interest-card-anime:hover {
    box-shadow: 0 20px 40px rgba(250, 112, 154, 0.3);
}

.interest-card-space {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.interest-card-space:hover {
    box-shadow: 0 20px 40px rgba(79, 172, 254, 0.3);
}

.interest-card-coding {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.interest-card-coding:hover {
    box-shadow: 0 20px 40px rgba(67, 233, 123, 0.3);
}

/* ===================================== */
/* Gallery Styles                        */
/* ===================================== */

.gallery-container {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(33, 33, 33, 0.8) 100%);
    border: 3px solid var(--color-primary);
    box-shadow: var(--shadow-primary), inset 0 0 50px rgba(0, 255, 255, 0.1);
}

.gallery-track {
    animation: scroll-left 60s linear infinite;
}

.gallery-track-reverse {
    animation: scroll-right 60s linear infinite;
}

/* CGE Watermark for Gallery Images */
.gallery-item-wrapper {
    position: relative;
}

.gallery-item-wrapper::after {
    content: 'CGE';
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 255, 255, 0.5);
    letter-spacing: 2px;
    pointer-events: none;
    z-index: 10;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===================================== */
/* Leaderboard Styles                    */
/* ===================================== */

.leaderboard-filter-btn {
    background-color: transparent;
    color: var(--color-gray-light);
    transition: all 0.3s;
}

.leaderboard-filter-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.leaderboard-filter-btn.active {
    background-color: var(--color-primary);
    color: var(--color-dark);
    font-weight: bold;
}

.leaderboard-entry {
    transition: all 0.3s;
}

.leaderboard-entry:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.rank-medal {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 50%;
}

.rank-1 { background: linear-gradient(135deg, #FFD700, #FFA500); color: #000; }
.rank-2 { background: linear-gradient(135deg, #C0C0C0, #808080); color: #000; }
.rank-3 { background: linear-gradient(135deg, #CD7F32, #8B4513); color: #000; }

@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.cge-signature {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.9);
    color: var(--color-accent);
    padding: 4px 8px;
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid var(--color-accent);
    text-shadow: 0 0 5px var(--color-accent),
                 0 0 10px var(--color-accent),
                 0 0 15px var(--color-accent);
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.5),
                inset 0 0 5px rgba(255, 255, 0, 0.3);
}

/* ===================================== */
/* Quiz Styles                           */
/* ===================================== */

.quiz-title {
    color: var(--color-accent);
}

.progress-bar {
    background: linear-gradient(to right, var(--color-accent), #ffa500);
}

/* ===================================== */
/* Game Section Styles                   */
/* ===================================== */

.game-section-title {
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px var(--color-secondary));
}

.game-title-pong {
    color: var(--color-primary);
    text-shadow: 0 0 20px var(--color-primary);
}

.game-title-plinko {
    color: var(--color-secondary);
    text-shadow: 0 0 20px var(--color-secondary);
}

.game-title-tunnel {
    color: var(--color-accent);
    text-shadow: 0 0 20px var(--color-accent);
}

.game-title-cyber {
    color: var(--color-success);
    text-shadow: 0 0 20px var(--color-success);
}

.game-title-cycles {
    color: var(--color-primary);
    text-shadow: 0 0 20px var(--color-primary);
}

.game-title-warlords {
    color: #ff8c00;
    text-shadow: 0 0 20px #ff8c00;
}

/* ===================================== */
/* Modal Styles                          */
/* ===================================== */

.modal-backdrop {
    background: rgba(0, 0, 0, 0.95);
}

.game-modal-content-container {
    width: 100%;
    height: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
}

.game-modal-border {
    background: linear-gradient(135deg, #1a0033 0%, #330066 25%, #660099 50%, #330066 75%, #1a0033 100%);
    border: 8px solid var(--color-accent);
    box-shadow: 0 0 50px var(--color-accent), 
                0 0 100px var(--color-secondary), 
                0 0 150px var(--color-primary), 
                inset 0 0 50px rgba(255, 255, 0, 0.3);
}

.pong-title-primary {
    color: var(--color-accent);
    text-shadow: 0 0 30px var(--color-accent), 0 0 60px var(--color-secondary);
    letter-spacing: 0.1em;
    transform: perspective(300px) rotateY(-15deg);
}

.pong-title-secondary {
    color: var(--color-primary);
    text-shadow: 0 0 40px var(--color-primary), 0 0 80px var(--color-secondary);
    letter-spacing: 0.2em;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pong-subtitle {
    color: #ffff99;
    text-shadow: 0 0 15px var(--color-accent);
}

.pong-high-score {
    color: var(--color-accent);
    text-shadow: 0 0 15px var(--color-accent);
}

.difficulty-indicator {
    color: var(--color-accent);
    text-shadow: 0 0 15px var(--color-accent);
}

/* ===================================== */
/* Scoreboard Styles                     */
/* ===================================== */

.scoreboard {
    background: linear-gradient(135deg, #1a0033 0%, #330066 50%, #1a0033 100%);
    border: 4px solid var(--color-accent);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 0 30px var(--color-accent), 
                inset 0 0 20px rgba(255, 255, 0, 0.3);
}

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

.score-value {
    color: var(--color-primary);
    text-shadow: 0 0 30px var(--color-primary);
}

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

.scoreboard-subtitle {
    color: var(--color-secondary);
    text-shadow: 0 0 15px var(--color-secondary);
}

/* ===================================== */
/* Canvas Styles                         */
/* ===================================== */

.game-canvas {
    background: #000;
    border: 4px solid var(--color-primary);
    box-shadow: 0 0 40px var(--color-primary), 
                inset 0 0 20px rgba(0, 255, 255, 0.2);
}

/* ===================================== */
/* Footer Styles                         */
/* ===================================== */

.footer-title {
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px var(--color-primary));
}

/* ===================================== */
/* Form Styles                           */
/* ===================================== */

.form-input {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.5);
    color: white;
    transition: all 0.3s;
}

.form-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(255, 255, 0, 0.1);
}

/* ===================================== */
/* Animation Utilities                   */
/* ===================================== */

.float {
    animation: float 6s ease-in-out infinite;
}

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

.hover-lift {
    transition: transform 0.3s;
}

.hover-lift:hover {
    transform: translateY(-10px);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================== */
/* Cyber Pet Styles                      */
/* ===================================== */

.cyber-pet-screen {
    background: #001a00;
    border: 4px solid var(--color-success);
    box-shadow: 0 0 40px var(--color-success), 
                inset 0 0 20px rgba(0, 255, 0, 0.2);
}

.pet-display {
    color: var(--color-success);
    font-family: var(--font-mono);
    font-size: 60px;
    text-shadow: 0 0 20px var(--color-success);
}

/* ===================================== */
/* Notification Styles                   */
/* ===================================== */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

.notification-success {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.notification-error {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===================================== */
/* Achievement Styles                    */
/* ===================================== */

.achievement-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    border: 3px solid var(--color-accent);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    z-index: 10000;
    animation: achievementBounce 0.5s ease;
}

@keyframes achievementBounce {
    0% { transform: translate(-50%, -50%) scale(0); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* ===================================== */
/* Blog Styles                           */
/* ===================================== */

.blog-card {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(75, 85, 99, 0.3);
    transition: all 0.3s;
}

.blog-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px rgba(255, 255, 0, 0.1);
}

.blog-tag {
    background: rgba(99, 102, 241, 0.2);
    color: #a78bfa;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

/* ===================================== */
/* Utility Classes                       */
/* ===================================== */

.text-gradient {
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.glow-text-secondary {
    color: var(--color-secondary);
    text-shadow: 0 0 20px var(--color-secondary);
}

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

.border-glow-primary {
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 20px var(--color-primary);
}

.border-glow-secondary {
    border: 2px solid var(--color-secondary);
    box-shadow: 0 0 20px var(--color-secondary);
}

.border-glow-accent {
    border: 2px solid var(--color-accent);
    box-shadow: 0 0 20px var(--color-accent);
}

/* ===================================== */
/* Responsive Styles                     */
/* ===================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title-gradient {
        font-size: 2.5rem;
    }
    
    .game-modal-border {
        margin: 1rem;
        padding: 1rem;
    }
}

/* ===================================== */
/* 404 Page Styles                       */
/* ===================================== */

.retro-text {
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px var(--color-primary));
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 255, 255, 0.03) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.3;
}

.blink {
    animation: blink 1s infinite;
}

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

#gameCanvas {
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 30px var(--color-primary);
    background: #000;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.pixel-dino {
    font-family: monospace;
    font-size: 40px;
    color: var(--color-success);
    text-shadow: 0 0 10px var(--color-success);
}

/* ===================================== */
/* Advanced Background Effects           */
/* ===================================== */

.card-hover {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff0080, #8000ff, #0080ff, #ff0080);
    background-size: 300% 300%;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: gradient-border 4s ease infinite;
    z-index: -1;
}

@keyframes gradient-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.card-hover:hover {
    transform: translateY(-5px) scale(1.02);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(120, 50, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.card-hover:hover::before {
    opacity: 0.3;
}

/* Section background animations */
section {
    position: relative;
    z-index: 2;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(119, 198, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

section:hover::before {
    opacity: 1;
}