/* Modern Game Development Portfolio - Refined Design */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
    /* Primary Color Palette */
    --primary-blue: #00d4ff;
    --primary-dark: #0099cc;
    --secondary-blue: #0066ff;
    --accent-purple: #8b5cf6;
    --accent-purple-dark: #7c3aed;
    --accent-green: #10b981;
    --accent-green-dark: #059669;
    --accent-orange: #f59e0b;
    --accent-orange-dark: #d97706;
    
    /* Background Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-card: rgba(26, 26, 46, 0.8);
    --bg-card-hover: rgba(26, 26, 46, 0.95);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --text-accent: #00d4ff;
    
    /* Border & Shadow Colors */
    --border-primary: #334155;
    --border-accent: #00d4ff;
    --shadow-primary: 0 4px 20px rgba(0, 212, 255, 0.15);
    --shadow-hover: 0 8px 30px rgba(0, 212, 255, 0.25);
    --shadow-purple: 0 4px 20px rgba(139, 92, 246, 0.15);
    --shadow-green: 0 4px 20px rgba(16, 185, 129, 0.15);
    --shadow-orange: 0 4px 20px rgba(245, 158, 11, 0.15);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-purple) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--accent-green) 0%, var(--primary-blue) 100%);
    --gradient-bg: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    --gradient-card: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--gradient-bg);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* All content loads normally without loading states */

/* Enhanced animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
    background-size: 120px 120px, 180px 180px, 150px 150px;
    animation: enhancedFloat 40s ease-in-out infinite;
    z-index: -1;
}

@keyframes enhancedFloat {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg) scale(1); 
        opacity: 0.8;
    }
    25% { 
        transform: translate(15px, -15px) rotate(1deg) scale(1.02); 
        opacity: 1;
    }
    50% { 
        transform: translate(-10px, 10px) rotate(-1deg) scale(0.98); 
        opacity: 0.9;
    }
    75% { 
        transform: translate(5px, -5px) rotate(0.5deg) scale(1.01); 
        opacity: 0.95;
    }
}

.navbar {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 0.6rem 0; /* Reduced from 1rem to 0.6rem */
    position: relative; /* Changed to relative so it scrolls with content */
    z-index: 1000;
    border-bottom: 2px solid var(--border-accent);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.nav-logo {
    color: var(--text-accent);
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem; /* Reduced from 1.8rem */
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.3rem 0; /* Reduced from 0.5rem */
    position: relative;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.nav-logo:hover {
    color: var(--accent-purple);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
    transform: scale(1.02);
}

.nav-logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

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

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem; /* Reduced from 1.1rem */
    transition: color 0.2s ease, background-color 0.2s ease;
    padding: 0.4rem 0.8rem; /* Reduced from 0.5rem 1rem */
    position: relative;
    border-radius: 6px;
    /* Completely static - no animations, no transforms */
    opacity: 1;
    transform: none;
    border: none;
    background: transparent;
}

.nav-link:hover {
    color: var(--text-accent);
    background: rgba(0, 212, 255, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.nav-link:active {
    transform: translateY(0px);
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.1);
}

.nav-link.active {
    color: var(--text-accent);
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
    animation: activePulse 2s ease-in-out infinite;
}

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

header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

h1 {
    color: var(--text-accent);
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 25px rgba(0, 212, 255, 0.4);
    letter-spacing: 3px;
    animation: enhancedGlow 4s ease-in-out infinite alternate;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    width: 100%;
    display: block;
}

@keyframes enhancedGlow {
    from { 
        text-shadow: 0 0 25px rgba(0, 212, 255, 0.4);
        transform: scale(1);
    }
    to { 
        text-shadow: 0 0 35px rgba(0, 212, 255, 0.6), 0 0 45px rgba(0, 212, 255, 0.3);
        transform: scale(1.02);
    }
}

@keyframes activePulse {
    0%, 100% { 
        opacity: 0.6;
        transform: translateX(-50%) scaleX(0.6);
    }
    50% { 
        opacity: 1;
        transform: translateX(-50%) scaleX(1);
    }
}

h2 {
    color: var(--accent-purple);
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    letter-spacing: 2px;
}

h3 {
    color: var(--accent-green);
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-link {
    color: var(--primary-blue);
    font-size: 2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 50%;
    border: 1px solid transparent;
}

.social-link:hover {
    color: var(--accent-purple);
    border-color: var(--accent-purple);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
    transform: scale(1.15) rotate(8deg) translateY(-2px);
    background: rgba(139, 92, 246, 0.1);
}

.social-link:active {
    transform: scale(1.05) rotate(4deg) translateY(0px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.content {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

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

.content:hover::before {
    left: 100%;
}

.intro, .skills {
    margin-bottom: 2rem;
}

.skills ul {
    list-style: none;
    padding-left: 0;
}

.skills li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
    border-radius: 0 12px 12px 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.skills li:hover::before {
    left: 100%;
}

.skills li:hover {
    background: rgba(16, 185, 129, 0.15);
    border-left-color: var(--text-accent);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
    transform: translateX(12px) scale(1.02);
}

.skills li:active {
    transform: translateX(6px) scale(1.01);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-primary);
}

.game-info {
    margin-top: 2rem;
}

.game-description {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.game-details ul {
    list-style: none;
    padding-left: 0;
}

.game-details li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--accent-purple);
    background: rgba(139, 92, 246, 0.1);
    border-radius: 0 12px 12px 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-details li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
    transition: left 0.5s ease;
}

.game-details li:hover::before {
    left: 100%;
}

.game-details li:hover {
    background: rgba(139, 92, 246, 0.15);
    border-left-color: var(--text-accent);
    box-shadow: var(--shadow-purple);
    transform: translateX(8px);
}

/* Games page specific styles */
.games-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.games-header {
    text-align: center;
    margin-bottom: 3rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.games-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 0.8rem;
    opacity: 0.8;
    font-weight: 400;
    text-align: center;
    width: 100%;
}

.games-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    justify-items: center;
    align-items: start;
    width: 100%;
    max-width: 1200px;
}

.game-card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-primary);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.game-card:hover::before {
    transform: translateX(100%);
}

.game-card:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: var(--border-accent);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
    background: var(--bg-card-hover);
}

.game-card:active {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 12px 25px rgba(0, 212, 255, 0.15);
}

.game-card h2 {
    color: var(--text-accent);
    margin-bottom: 1rem;
    font-family: 'Orbitron', monospace;
}

.game-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--text-accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 1rem 2rem;
    border: 2px solid var(--border-accent);
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.1);
    position: relative;
    overflow: hidden;
}

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

.game-link:hover::before {
    left: 100%;
}

.game-link:hover {
    color: var(--accent-purple);
    border-color: var(--accent-purple);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.15);
    transform: scale(1.08) translateY(-2px);
}

.game-link:active {
    transform: scale(1.02) translateY(0px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.store-badges {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    justify-content: center;
    align-items: center;
}

.store-badge {
    display: inline-block;
    height: 50px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.store-badge:hover {
    transform: scale(1.1) translateY(-3px);
    filter: drop-shadow(0 8px 20px rgba(0, 212, 255, 0.5));
}

.store-badge:active {
    transform: scale(1.05) translateY(-1px);
    filter: drop-shadow(0 4px 12px rgba(0, 212, 255, 0.3));
}

.store-badge img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* Enhanced Privacy Policy Styling - Modern Design */
.privacy-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
}

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

.privacy-content:hover::before {
    left: 100%;
}

.last-updated {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 2.5rem;
    text-align: center;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    background: rgba(148, 163, 184, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.policy-section {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: rgba(26, 26, 46, 0.3);
    border-radius: 15px;
    border: 1px solid var(--border-primary);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.policy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.policy-section:hover::before {
    transform: translateX(100%);
}

.policy-section:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--border-accent);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.15);
    background: rgba(26, 26, 46, 0.5);
}

.policy-section h2 {
    color: var(--text-accent);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.policy-section h2::before {
    content: '';
    width: 4px;
    height: 1.8rem;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.policy-section h3 {
    color: var(--accent-purple);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.3rem;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.policy-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.policy-section ul {
    list-style-type: none;
    margin: 1rem 0;
    padding: 0;
}

.policy-section li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    padding: 1.2rem 1.8rem;
    border-left: 4px solid var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
    border-radius: 0 12px 12px 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
}

.policy-section li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.2), transparent);
    transition: left 0.5s ease;
}

.policy-section li:hover::before {
    left: 100%;
}

.policy-section li:hover {
    background: rgba(16, 185, 129, 0.15);
    border-left-color: var(--text-accent);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
    transform: translateX(8px) scale(1.02);
}

.contact-email {
    color: var(--text-accent);
    font-weight: 600;
    margin-top: 1rem;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    padding: 1rem 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--border-accent);
    border-radius: 12px;
    display: inline-block;
    transition: all 0.3s ease;
}

.contact-email:hover {
    background: rgba(0, 212, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.privacy-link {
    display: inline-block;
    margin: 0.5rem 0;
    color: var(--text-accent);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-accent);
    border-radius: 8px;
    background: rgba(0, 212, 255, 0.1);
    position: relative;
    overflow: hidden;
}

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

.privacy-link:hover::before {
    left: 100%;
}

.privacy-link:hover {
    color: var(--text-primary);
    border-color: var(--text-accent);
    box-shadow: var(--shadow-primary);
    background: rgba(0, 212, 255, 0.15);
    transform: translateY(-2px);
}

.game-gallery {
    margin: 2rem 0;
    width: 100%;
}

.game-gallery h2 {
    color: var(--accent-purple);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-family: 'Orbitron', monospace;
    text-align: center;
}

.gallery-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
    padding: 1rem 0;
}

.gallery-item {
    flex: 0 0 13% !important;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--border-primary);
    box-shadow: var(--shadow-primary);
    transition: all 0.4s ease;
    width: auto !important;
    max-width: none !important;
    position: relative;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover {
    transform: translateY(-15px) scale(1.08);
    border-color: var(--border-accent);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.25);
}

.gallery-item:active {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 25px rgba(0, 212, 255, 0.15);
}

.gallery-item img,
.gallery-item picture {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 0;
}

.gallery-item img {
    object-fit: cover;
}

/* Support Page Specific Styles */
.support-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.support-section h2 {
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.support-section > p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

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

.contact-method {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-primary);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.contact-method:hover::before {
    transform: translateX(100%);
}

.contact-method:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--border-accent);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
    background: var(--bg-card-hover);
}

.contact-method:active {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 12px 25px rgba(0, 212, 255, 0.15);
}

.contact-method h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-method h3::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.5rem;
}

.contact-method h3:first-of-type::before {
    content: '\f0e0'; /* Email icon */
    color: var(--accent-green);
}

.contact-method h3:last-of-type::before {
    content: '\f0c1'; /* Link icon */
    color: var(--accent-purple);
}

.contact-method p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.contact-link {
    display: inline-block;
    color: var(--text-accent);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border: 2px solid var(--border-accent);
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.contact-link:hover::before {
    left: 100%;
}

.contact-link:hover {
    color: var(--accent-purple);
    border-color: var(--accent-purple);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.15);
    transform: scale(1.08) translateY(-2px);
}

.contact-link:active {
    transform: scale(1.02) translateY(0px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.contact-method .social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-method .social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-accent);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1rem 2rem;
    border: 2px solid var(--border-accent);
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.contact-method .social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.contact-method .social-link:hover::before {
    left: 100%;
}

.contact-method .social-link:hover {
    color: var(--accent-purple);
    border-color: var(--accent-purple);
    box-shadow: var(--shadow-purple);
    background: rgba(139, 92, 246, 0.1);
    transform: scale(1.02);
}

.contact-method .social-link i {
    font-size: 1.3rem;
}

.support-info {
    margin-top: 3rem;
    padding: 2.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--accent-green);
    border-radius: 20px;
    box-shadow: var(--shadow-green);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.support-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.2), transparent);
    transition: left 0.8s ease;
}

.support-info:hover::before {
    left: 100%;
}

.support-info h3 {
    color: var(--accent-green);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.support-info p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Staggered Entrance Animations */
/* ============================= */

/* Performance optimization for animations */
.skills li, .game-details li, .game-card, .gallery-item, .social-link, .store-badge, .contact-method, .support-info, .content, header {
    will-change: opacity, transform;
}

/* Base animation classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 0.8s ease forwards;
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    animation: scaleIn 0.8s ease forwards;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Staggered delays for skills list */
.skills li:nth-child(1) { animation-delay: 0.1s; }
.skills li:nth-child(2) { animation-delay: 0.2s; }
.skills li:nth-child(3) { animation-delay: 0.3s; }
.skills li:nth-child(4) { animation-delay: 0.4s; }

/* Staggered delays for game details */
.game-details li:nth-child(1) { animation-delay: 0.1s; }
.game-details li:nth-child(2) { animation-delay: 0.2s; }
.game-details li:nth-child(3) { animation-delay: 0.3s; }

/* Staggered delays for game cards */
.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }
.game-card:nth-child(5) { animation-delay: 0.5s; }
.game-card:nth-child(6) { animation-delay: 0.6s; }
.game-card:nth-child(7) { animation-delay: 0.7s; }
.game-card:nth-child(8) { animation-delay: 0.8s; }
.game-card:nth-child(9) { animation-delay: 0.9s; }
.game-card:nth-child(10) { animation-delay: 1.0s; }

/* Staggered delays for gallery items */
.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }

/* Staggered delays for social links */
.social-link:nth-child(1) { animation-delay: 0.1s; }
.social-link:nth-child(2) { animation-delay: 0.2s; }
.social-link:nth-child(3) { animation-delay: 0.3s; }

/* Staggered delays for store badges */
.store-badge:nth-child(1) { animation-delay: 0.1s; }
.store-badge:nth-child(2) { animation-delay: 0.2s; }

/* Staggered delays for contact methods */
.contact-method:nth-child(1) { animation-delay: 0.1s; }
.contact-method:nth-child(2) { animation-delay: 0.2s; }

.skills li, .game-details li {
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInLeft 0.8s ease forwards;
}

.game-card {
    opacity: 0;
    transform: scale(0.8);
    animation: scaleIn 0.8s ease forwards;
}

.gallery-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.social-link {
    opacity: 0;
    transform: scale(0.8);
    animation: scaleIn 0.8s ease forwards;
}

.store-badge {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.contact-method {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

/* Support info animation */
.support-info {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

/* Content sections */
.content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

header {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

/* Games page specific animations */
.games-grid {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

/* Enhanced Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

body {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevents horizontal scroll */
}

/* Smooth scroll for all elements */
* {
    scroll-behavior: smooth;
}

/* Images load normally without animation */
img {
    opacity: 1;
}

/* Intersection Observer fallback */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .container {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* Games page specific container override - remove container entirely on mobile */
    .games-page .container {
        display: none;
    }
    
    /* Direct content styling for mobile games page */
    .games-page > .content {
        margin: 0;
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    h1 {
        font-size: 2.5rem;
        letter-spacing: 2px;
        text-align: center;
        width: 100%;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    
    h2 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .gallery-grid {
        gap: 0.5rem;
        overflow-x: auto;
    }
    
    .gallery-item {
        flex: 0 0 25% !important;
    }

    .store-badges {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-methods {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-method {
        padding: 1.5rem;
    }

    .contact-method .social-link {
        min-width: 180px;
        padding: 0.8rem 1.2rem;
    }
    
    /* Privacy policy mobile optimizations */
    .privacy-content {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .policy-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .policy-section h2 {
        font-size: 1.5rem;
    }
    
    .policy-section h3 {
        font-size: 1.2rem;
    }
    
    .policy-section li {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .contact-email {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }
    
    /* Games page mobile optimizations */
    .games-page {
        align-items: center;
        padding: 0;
    }
    
    .games-header {
        text-align: center;
        margin-bottom: 2rem;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
    
    .games-subtitle {
        font-size: 1rem;
        color: var(--text-secondary);
        margin-top: 0.5rem;
        opacity: 0.8;
        text-align: center;
        width: 100%;
    }
    
    .games-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
    }
    
    .games-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 1.5rem;
        width: 100%;
        max-width: 400px;
        overflow: hidden;
        align-items: center;
        padding: 0;
    }
    
    .game-card {
        padding: 1.5rem;
        border-radius: 16px;
        margin: 0 auto;
        width: 100%;
        max-width: 400px;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .game-card h2 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
        letter-spacing: 1px;
    }
    
    .game-card p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .game-link {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
        display: block;
        margin-top: 1rem;
    }
    
    .game-link:hover {
        transform: scale(1.02) translateY(-1px);
    }
    
    .game-link:active {
        transform: scale(0.98) translateY(0px);
    }
}

/* Additional mobile optimizations for very small screens */
@media (max-width: 480px) {
    /* Prevent any transform changes during touch scrolling */
    .game-card {
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
    }
    
    .game-card:hover {
        transform: none !important;
    }
    
    .game-card:active {
        transform: scale(0.98) !important;
    }
    
    .game-link {
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
    }
    
    .game-link:hover {
        transform: none !important;
    }
    
    .game-link:active {
        transform: scale(0.95) !important;
    }
    
    /* Disable all pseudo-element animations */
    .game-card::before,
    .game-card::after,
    .game-link::before,
    .game-link::after {
        transition: none !important;
        animation: none !important;
        transform: translateX(-100%) !important;
    }
    .container {
        padding: 0.8rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* Games page specific container override - remove container entirely on mobile */
    .games-page .container {
        display: none;
    }
    
    /* Direct content styling for mobile games page */
    .games-page > .content {
        margin: 0;
        padding: 0.8rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    h1 {
        font-size: 2rem;
        letter-spacing: 1px;
        text-align: center;
        width: 100%;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    
    .games-page {
        align-items: center;
        padding: 0;
    }
    
    .games-header {
        margin-bottom: 2rem;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
    
    .games-subtitle {
        font-size: 0.9rem;
        margin-top: 0.5rem;
        text-align: center;
        width: 100%;
    }
    
    .games-page .content {
        padding: 1.5rem;
        border-radius: 16px;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .games-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
    }
    
    .games-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
        width: 100%;
        max-width: 350px;
        overflow: hidden;
        align-items: center;
        padding: 0;
    }
    
    .game-card {
        padding: 1.2rem;
        border-radius: 12px;
        margin: 0 auto;
        width: 100%;
        max-width: 350px;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .game-card h2 {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }
    
    .game-card p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }
    
    .game-link {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .games-page .content {
        padding: 1.2rem;
        border-radius: 12px;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Touch-friendly optimizations for mobile devices */
@media (hover: none) and (pointer: coarse) {
    /* Disable ALL animations and transitions on touch devices */
    .game-card,
    .game-card *,
    .game-link,
    .game-link * {
        transform: none !important;
        transition: none !important;
        animation: none !important;
        will-change: auto !important;
    }
    
    .game-card:hover,
    .game-card:hover * {
        transform: none !important;
        box-shadow: var(--shadow-primary) !important;
    }
    
    .game-card:active,
    .game-card:active * {
        transform: scale(0.98) !important;
        box-shadow: 0 8px 20px rgba(0, 212, 255, 0.15) !important;
    }
    
    .game-link:hover,
    .game-link:hover * {
        transform: none !important;
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2) !important;
    }
    
    .game-link:active,
    .game-link:active * {
        transform: scale(0.95) !important;
        box-shadow: 0 2px 10px rgba(139, 92, 246, 0.15) !important;
    }
    
    /* Completely disable ALL pseudo-element effects */
    .game-card::before,
    .game-card::after,
    .game-link::before,
    .game-link::after {
        transition: none !important;
        animation: none !important;
        transform: translateX(-100%) !important;
        opacity: 0 !important;
    }
    
    .game-card:hover::before,
    .game-card:hover::after,
    .game-link:hover::before,
    .game-link:hover::after {
        transform: translateX(-100%) !important;
        opacity: 0 !important;
    }
    
    .game-card:active::before,
    .game-card:active::after,
    .game-link:active::before,
    .game-link:active::after {
        transform: translateX(-100%) !important;
        opacity: 0 !important;
    }
    
    /* Disable entrance animations on touch devices */
    .fade-in-up,
    .fade-in-left,
    .fade-in-right,
    .scale-in {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Disable staggered animations */
    .game-card:nth-child(1),
    .game-card:nth-child(2),
    .game-card:nth-child(3),
    .game-card:nth-child(4),
    .game-card:nth-child(5),
    .game-card:nth-child(6),
    .game-card:nth-child(7),
    .game-card:nth-child(8),
    .game-card:nth-child(9),
    .game-card:nth-child(10) {
        animation-delay: 0s !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

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

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-blue) 0%, var(--accent-purple) 100%);
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-purple) 0%, var(--accent-green) 100%);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

::-webkit-scrollbar-corner {
    background: var(--bg-primary);
}

/* Scroll to top button styles */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
    border: none;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-green));
}

/* Enhanced navbar scroll effects */
.navbar {
    transition: backdrop-filter 0.3s ease, background-color 0.3s ease;
}

/* Smooth section transitions */
section, .content {
    transition: opacity 0.6s ease, transform 0.6s ease;
} 

/* Button Ripple Effects - Modern Interaction Feedback */
/* ================================================== */

/* Base ripple container styles */
.ripple-container {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Ripple effect element */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
    z-index: 1;
}

/* Ripple animation keyframes */
@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced ripple for different button types */
.nav-link.ripple-container .ripple {
    background: rgba(0, 212, 255, 0.4);
}

.game-link.ripple-container .ripple {
    background: rgba(139, 92, 246, 0.4);
}

.contact-link.ripple-container .ripple {
    background: rgba(16, 185, 129, 0.4);
}

.social-link.ripple-container .ripple {
    background: rgba(245, 158, 11, 0.4);
}

.store-badge.ripple-container .ripple {
    background: rgba(0, 212, 255, 0.3);
}

/* Ripple effect for active states */
.ripple-container:active .ripple {
    background: rgba(255, 255, 255, 0.5);
    animation-duration: 0.3s;
}

/* Ensure ripple effects work with existing button styles */
.nav-link.ripple-container,
.game-link.ripple-container,
.contact-link.ripple-container,
.social-link.ripple-container,
.store-badge.ripple-container,
.game-card.ripple-container,
.gallery-item.ripple-container,
.contact-method.ripple-container,
.support-info.ripple-container {
    position: relative;
    overflow: hidden;
}

/* Privacy policy specific animations */
.privacy-content {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced privacy policy title */
.privacy-content h1 {
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    animation: enhancedGlow 3s ease-in-out infinite alternate;
}

.policy-section {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: calc(var(--section-index, 0) * 0.1s);
    opacity: 1;
    transform: translateY(0);
}

.contact-email {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s;
    opacity: 1;
    transform: translateY(0);
}

/* Ensure privacy policy elements are not affected by ripple effects */
.privacy-content,
.policy-section,
.contact-email {
    pointer-events: auto;
    user-select: text;
    will-change: auto;
}

/* Prevent flickering on privacy policy page */
/* Loading states removed - content loads normally */

/* Prevent ripple from interfering with existing pseudo-elements */
.ripple-container::before,
.ripple-container::after {
    z-index: 2;
}

.ripple {
    z-index: 1;
}

/* Multiple ripple support */
.ripple-container .ripple:nth-child(2) {
    animation-delay: 0.1s;
}

.ripple-container .ripple:nth-child(3) {
    animation-delay: 0.2s;
}

/* Disabled state */
.ripple-container:disabled {
    cursor: not-allowed;
    pointer-events: none;
}

.ripple-container:disabled .ripple {
    display: none;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .ripple-container {
        -webkit-tap-highlight-color: transparent;
    }
    
    .ripple {
        animation-duration: 0.4s;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .ripple {
        animation: none;
        opacity: 0;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ripple {
        background: rgba(255, 255, 255, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.8);
    }
}

/* Global ripple disabled state */
body.ripple-disabled .ripple {
    display: none !important;
}

body.ripple-disabled .ripple-container {
    cursor: pointer;
} 

/* Glitch Effects - Cyberpunk Visual Distortion */
/* ============================================= */

/* Glitch animation keyframes */
@keyframes glitch-shift {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-2px, 1px); }
    20% { transform: translate(2px, -1px); }
    30% { transform: translate(-1px, 2px); }
    40% { transform: translate(1px, -2px); }
    50% { transform: translate(-2px, -1px); }
    60% { transform: translate(2px, 1px); }
    70% { transform: translate(-1px, -2px); }
    80% { transform: translate(1px, 2px); }
    90% { transform: translate(-2px, 0); }
}

@keyframes glitch-flicker {
    0%, 100% { opacity: 1; }
    5% { opacity: 0.8; }
    10% { opacity: 1; }
    15% { opacity: 0.9; }
    20% { opacity: 1; }
    25% { opacity: 0.7; }
    30% { opacity: 1; }
    35% { opacity: 0.95; }
    40% { opacity: 1; }
    45% { opacity: 0.85; }
    50% { opacity: 1; }
    55% { opacity: 0.9; }
    60% { opacity: 1; }
    65% { opacity: 0.75; }
    70% { opacity: 1; }
    75% { opacity: 0.8; }
    80% { opacity: 1; }
    85% { opacity: 0.9; }
    90% { opacity: 1; }
    95% { opacity: 0.85; }
}

@keyframes glitch-disappear {
    0%, 100% { opacity: 1; visibility: visible; }
    5% { opacity: 0; visibility: hidden; }
    10% { opacity: 1; visibility: visible; }
    15% { opacity: 0; visibility: hidden; }
    20% { opacity: 1; visibility: visible; }
    25% { opacity: 0; visibility: hidden; }
    30% { opacity: 1; visibility: visible; }
    35% { opacity: 0; visibility: hidden; }
    40% { opacity: 1; visibility: visible; }
    45% { opacity: 0; visibility: hidden; }
    50% { opacity: 1; visibility: visible; }
    55% { opacity: 0; visibility: hidden; }
    60% { opacity: 1; visibility: visible; }
    65% { opacity: 0; visibility: hidden; }
    70% { opacity: 1; visibility: visible; }
    75% { opacity: 0; visibility: hidden; }
    80% { opacity: 1; visibility: visible; }
    85% { opacity: 0; visibility: hidden; }
    90% { opacity: 1; visibility: visible; }
    95% { opacity: 0; visibility: hidden; }
}

@keyframes glitch-color-shift {
    0%, 100% { 
        filter: hue-rotate(0deg) saturate(1);
        text-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    }
    10% { 
        filter: hue-rotate(10deg) saturate(1.2);
        text-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
    }
    20% { 
        filter: hue-rotate(-5deg) saturate(0.8);
        text-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    }
    30% { 
        filter: hue-rotate(15deg) saturate(1.1);
        text-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
    }
    40% { 
        filter: hue-rotate(-10deg) saturate(0.9);
        text-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    }
    50% { 
        filter: hue-rotate(5deg) saturate(1.3);
        text-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
    }
    60% { 
        filter: hue-rotate(-15deg) saturate(0.7);
        text-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    }
    70% { 
        filter: hue-rotate(20deg) saturate(1.4);
        text-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
    }
    80% { 
        filter: hue-rotate(-20deg) saturate(0.6);
        text-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    }
    90% { 
        filter: hue-rotate(25deg) saturate(1.5);
        text-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
    }
}

/* Glitch effect classes */
.glitch-shift {
    animation: glitch-shift 0.3s ease-in-out;
    animation-delay: var(--glitch-delay, 0s);
    animation-iteration-count: var(--glitch-iterations, 1);
}

.glitch-flicker {
    animation: glitch-flicker 0.2s ease-in-out;
    animation-delay: var(--glitch-delay, 0s);
    animation-iteration-count: var(--glitch-iterations, 1);
}

.glitch-disappear {
    animation: glitch-disappear 0.15s ease-in-out;
    animation-delay: var(--glitch-delay, 0s);
    animation-iteration-count: var(--glitch-iterations, 1);
}

.glitch-color {
    animation: glitch-color-shift 0.4s ease-in-out;
    animation-delay: var(--glitch-delay, 0s);
    animation-iteration-count: var(--glitch-iterations, 1);
}

/* Glitch effect triggers for different elements */
.nav-logo.glitch-trigger:hover {
    animation: glitch-shift 0.2s ease-in-out 2;
}

.nav-link.glitch-trigger:hover {
    animation: glitch-flicker 0.15s ease-in-out 1;
}

.game-card.glitch-trigger:hover {
    animation: glitch-shift 0.3s ease-in-out 1;
}

.social-link.glitch-trigger:hover {
    animation: glitch-color 0.25s ease-in-out 1;
}

.policy-section.glitch-trigger:hover {
    animation: glitch-flicker 0.2s ease-in-out 1;
}

/* Random glitch effects that trigger occasionally */
.glitch-random {
    position: relative;
}

.glitch-random::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    color: var(--text-accent);
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    animation: glitch-random-top 3s infinite;
    opacity: 0;
}

.glitch-random::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    color: var(--accent-purple);
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    animation: glitch-random-bottom 3s infinite;
    opacity: 0;
}

@keyframes glitch-random-top {
    0%, 100% { opacity: 0; transform: translate(0, 0); }
    2% { opacity: 1; transform: translate(2px, 0); }
    4% { opacity: 0; transform: translate(-2px, 0); }
    6% { opacity: 1; transform: translate(0, 0); }
    8% { opacity: 0; transform: translate(0, 0); }
}

@keyframes glitch-random-bottom {
    0%, 100% { opacity: 0; transform: translate(0, 0); }
    2% { opacity: 0; transform: translate(0, 0); }
    4% { opacity: 1; transform: translate(-2px, 0); }
    6% { opacity: 0; transform: translate(2px, 0); }
    8% { opacity: 1; transform: translate(0, 0); }
}

/* Subtle background glitch effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 98%, rgba(0, 212, 255, 0.1) 100%);
    background-size: 100px 100%;
    animation: glitch-scan 8s linear infinite;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
}

@keyframes glitch-scan {
    0% { 
        transform: translateY(-100%);
        opacity: 0;
    }
    10% { 
        opacity: 0.3;
    }
    20% { 
        opacity: 0;
    }
    100% { 
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Glitch effect for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .glitch-shift,
    .glitch-flicker,
    .glitch-disappear,
    .glitch-color,
    .glitch-random::before,
    .glitch-random::after,
    body::after {
        animation: none !important;
    }
}

/* Enhanced glitch effects for specific elements */
.nav-logo.glitch-managed {
    position: relative;
}

.nav-logo.glitch-managed::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    color: var(--accent-purple);
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
    animation: glitch-random-top 4s infinite;
    opacity: 0;
}

.nav-logo.glitch-managed::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    color: var(--accent-green);
    clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
    animation: glitch-random-bottom 4s infinite;
    opacity: 0;
}

/* Subtle glitch effect for text elements */
h1.glitch-managed,
h2.glitch-managed {
    position: relative;
}

h1.glitch-managed::before,
h2.glitch-managed::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    color: var(--text-accent);
    clip-path: polygon(0 0, 100% 0, 100% 60%, 0 60%);
    animation: glitch-random-top 6s infinite;
    opacity: 0;
}

h1.glitch-managed::after,
h2.glitch-managed::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    color: var(--accent-purple);
    clip-path: polygon(0 40%, 100% 40%, 100% 100%, 0 100%);
    animation: glitch-random-bottom 6s infinite;
    opacity: 0;
}

/* Glitch effect for cards */
.game-card.glitch-managed,
.policy-section.glitch-managed,
.contact-method.glitch-managed {
    position: relative;
    overflow: hidden;
}

.game-card.glitch-managed::before,
.policy-section.glitch-managed::before,
.contact-method.glitch-managed::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.8s ease;
    z-index: 1;
}

.game-card.glitch-managed:hover::before,
.policy-section.glitch-managed:hover::before,
.contact-method.glitch-managed:hover::before {
    left: 100%;
}

/* Scan line effect enhancement */
.glitch-scan-line {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
    filter: blur(0.5px);
} 

/* Paperbound Dynamic Background System */
/* ==================================== */

/* Paperbound page specific background */
.paperbound-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Restored to proper layer ordering */
    overflow: hidden;
    pointer-events: none;
}

/* Static floating image elements - No animations */
.floating-image {
    position: fixed;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.2);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
    pointer-events: none;
    z-index: 5;
    /* Removed all transitions and animations */
}

/* Removed hover effects for better performance */

/* Different sizes for variety */
.floating-image.small {
    width: 70px;
    height: 70px;
}

.floating-image.medium {
    width: 100px;
    height: 100px;
}

.floating-image.large {
    width: 130px;
    height: 130px;
}

/* Floating animations removed for better performance */

/* Keyframe animations removed for better performance */

/* Static background image layers - No animations */
.bg-layer {
    position: absolute;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.05;
    filter: blur(2px) brightness(0.6);
    /* Removed transitions for better performance */
}

/* Static layers for depth effect - No animations */
.bg-layer-1 {
    top: -10%;
    left: -5%;
    width: 110%;
    height: 120%;
    opacity: 0.08;
    filter: blur(2px) brightness(0.6);
    /* Removed animation for better performance */
}

.bg-layer-2 {
    top: -15%;
    left: 10%;
    width: 90%;
    height: 130%;
    opacity: 0.06;
    filter: blur(3px) brightness(0.5);
    /* Removed animation for better performance */
}

.bg-layer-3 {
    top: 5%;
    left: -10%;
    width: 120%;
    height: 90%;
    opacity: 0.04;
    filter: blur(4px) brightness(0.4);
    /* Removed animation for better performance */
}

.bg-layer-4 {
    top: -20%;
    left: 5%;
    width: 95%;
    height: 140%;
    opacity: 0.05;
    filter: blur(2.5px) brightness(0.55);
    /* Removed animation for better performance */
}

.bg-layer-5 {
    top: 10%;
    left: -15%;
    width: 130%;
    height: 80%;
    opacity: 0.03;
    filter: blur(3.5px) brightness(0.45);
    /* Removed animation for better performance */
}

/* All floating animations removed for better performance */

/* Hover effects removed for better performance */

/* Parallax effect on scroll */
.bg-layer-parallax {
    will-change: transform;
}

/* Background overlay for better text readability */
.paperbound-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(10, 10, 15, 0.3) 50%, rgba(10, 10, 15, 0.7) 100%);
    z-index: -1;
}

/* Enhanced content styling for Paperbound page */
.paperbound-page .content {
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.paperbound-page .content::before {
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.15), transparent);
}

/* Responsive background adjustments */
@media (max-width: 768px) {
    .bg-layer {
        opacity: 0.05;
        filter: blur(1.5px) brightness(0.6);
    }
    
    .bg-layer-1 { opacity: 0.06; }
    .bg-layer-2 { opacity: 0.04; }
    .bg-layer-3 { opacity: 0.03; }
    .bg-layer-4 { opacity: 0.04; }
    .bg-layer-5 { opacity: 0.02; }
    
    .paperbound-background:hover .bg-layer-1 { opacity: 0.08; }
    .paperbound-background:hover .bg-layer-2 { opacity: 0.06; }
    .paperbound-background:hover .bg-layer-3 { opacity: 0.04; }

    /* Mobile floating images */
    .floating-image {
        width: 70px;
        height: 70px;
        opacity: 0.75;
    }
    
    .floating-image.small {
        width: 50px;
        height: 50px;
    }
    
    .floating-image.medium {
        width: 70px;
        height: 70px;
    }
    
    .floating-image.large {
        width: 90px;
        height: 90px;
    }
}

/* Enhanced floating image effects */
.floating-image::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.3), rgba(139, 92, 246, 0.3));
    border-radius: 17px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-image:hover::before {
    opacity: 1;
}

/* Glitch effect for floating images */
.floating-image.glitch {
    animation: floating-glitch 0.5s ease-in-out;
}

@keyframes floating-glitch {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-3px, 2px) rotate(1deg); }
    50% { transform: translate(3px, -2px) rotate(-1deg); }
    75% { transform: translate(-2px, 3px) rotate(0.5deg); }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    .bg-layer,
    .floating-image {
        animation: none !important;
        transition: none !important;
    }
}

/* Low-end device optimizations */
@media (max-width: 768px) {
    .floating-image {
        animation-duration: 8s !important; /* Slower animations on mobile */
    }
    
    .bg-layer {
        animation-duration: 15s !important; /* Slower background animations */
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .floating-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .bg-layer {
        animation: none !important;
        transition: none !important;
    }
} 