/* 🌟 JEFF HULFORD DOT COM - CSS STYLES 🌟 */
/* Making the web more awesome since 2025! */

/* Import fonts for that authentic retro feel - mobile optimized */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Orbitron:wght@400;700;900&family=JetBrains+Mono:wght@400;600&display=swap');

/* CSS Variables for easy theme switching */
:root {
    /* Gawdy Mode Colors (Default) */
    --bg-primary: linear-gradient(45deg, #ff00ff, #00ffff, #ffff00, #ff00ff);
    --bg-secondary: #000080;
    --text-primary: #ffff00;
    --text-secondary: #00ff00;
    --text-accent: #ff69b4;
    --border-color: #ff00ff;
    --card-bg: rgba(0, 0, 128, 0.8);
    --button-bg: linear-gradient(45deg, #ff1493, #00bfff);
    --shadow-color: #ff00ff;
    --rainbow-animation: rainbow-gawdy 3s ease-in-out infinite alternate;
    
    /* Fonts - Mobile Friendly */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Orbitron', 'Arial Black', sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;
    
    /* Sizes */
    --border-radius: 15px;
    --box-shadow: 0 0 20px var(--shadow-color);
    --text-shadow: 2px 2px 4px #000, 0 0 10px var(--shadow-color);
}

/* Good Retro Mode Variables */
.good-retro {
    --bg-primary: linear-gradient(135deg, #2d1b69, #11998e);
    --bg-secondary: #1a1a2e;
    --text-primary: #eee;
    --text-secondary: #16213e;
    --text-accent: #0f3460;
    --border-color: #e94560;
    --card-bg: rgba(26, 26, 46, 0.9);
    --button-bg: linear-gradient(45deg, #e94560, #0f3460);
    --shadow-color: #e94560;
    --rainbow-animation: rainbow-good 4s ease-in-out infinite alternate;
    --text-shadow: 1px 1px 2px #000;
}

/* Natural Theme Variables */
.natural-theme {
    --bg-primary: #1a2f1a; /* Static dark forest green background */
    --bg-secondary: #0f1f0f;
    --text-primary: #e6f2e6;
    --text-secondary: #a3c2a3;
    --text-accent: #4a7c59;
    --border-color: #2d5a3d;
    --card-bg: rgba(13, 26, 13, 0.7);
    --button-bg: linear-gradient(45deg, #2d5a3d, #1a3d2e);
    --shadow-color: #4a7c59;
    --rainbow-animation: none; /* No busy animations */
    --text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
    --border-radius: 12px;
}

/* Kawaii K-Pop Theme Variables */
.kawaii-theme {
    --bg-primary: linear-gradient(135deg, #ff9a9e 0%, #fecfef 25%, #fad0c4 50%, #ffd1ff 75%, #ff9a9e 100%);
    --bg-secondary: #ffb3c6;
    --text-primary: #2c1810;
    --text-secondary: #5a3a2a;
    --text-accent: #d84d8f;
    --border-color: #f8bbd9;
    --card-bg: rgba(255, 240, 245, 0.9);
    --button-bg: linear-gradient(45deg, #ff6b9d, #c44569);
    --shadow-color: #ff9ff3;
    --rainbow-animation: kawaii-sparkle 3s ease infinite;
    --text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
    --border-radius: 20px;
}

/* Geocities Theme Variables */
.geocities-theme {
    --bg-primary: linear-gradient(45deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff);
    --bg-secondary: #00ff00;
    --text-primary: #ffff00;
    --text-secondary: #00ffff;
    --text-accent: #ff00ff;
    --border-color: #ffffff;
    --card-bg: rgba(255, 255, 0, 0.8);
    --button-bg: linear-gradient(45deg, #ff0000, #ffff00);
    --shadow-color: #ff00ff;
    --rainbow-animation: geocities-flash 1s ease infinite;
    --text-shadow: 2px 2px 4px #000;
    --border-radius: 0px;
}

/* Angelfire Theme Variables */
.angelfire-theme {
    --bg-primary: #000000;
    --bg-secondary: #1a0d00;
    --text-primary: #ff6600;
    --text-secondary: #ff9933;
    --text-accent: #ffcc00;
    --border-color: #ff4500;
    --card-bg: rgba(26, 13, 0, 0.9);
    --button-bg: linear-gradient(45deg, #ff4500, #ff6600);
    --shadow-color: #ff4500;
    --rainbow-animation: flame-flicker 2s ease infinite;
    --text-shadow: 2px 2px 6px #ff4500;
    --border-radius: 8px;
}

/* Gawdy Mode with High Frequency Random Emojis */
body:not(.good-retro):not(.natural-theme) {
    /* Enhanced sparkle frequency in gawdy mode will be handled by JavaScript */
}

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

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    background-size: 200% 200%;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px; /* Better base font size for mobile */
    -webkit-text-size-adjust: 100%; /* Prevent iOS font scaling */
    text-size-adjust: 100%;
}

/* Only animate background in gawdy mode - prevents Android Chrome resizing issues */
body:not(.good-retro):not(.natural-theme) {
    animation: gradient-shift 8s ease infinite;
}

/* Natural theme body override */
body.natural-theme {
    background: var(--bg-primary) !important;
    background-size: auto !important;
    animation: none !important;
}

/* Background animation */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#background-container {
    min-height: 100vh;
    position: relative;
}

#main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header Styles */
.site-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--card-bg);
    border: 3px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.main-title {
    font-family: var(--font-secondary);
    font-size: clamp(1.8rem, 5vw, 4rem);
    margin-bottom: 15px;
    text-shadow: var(--text-shadow);
    line-height: 1.2;
    word-wrap: break-word;
}

.rainbow-text {
    background: linear-gradient(45deg, #ff0000, #ff7700, #ffdd00, #00ff00, #0099ff, #6600ff, #ff0099, #ff0000);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: var(--rainbow-animation);
}

@keyframes rainbow-gawdy {
    0% { background-position: 0% 50%; filter: hue-rotate(0deg) saturate(2); }
    100% { background-position: 100% 50%; filter: hue-rotate(360deg) saturate(2); }
}

@keyframes rainbow-good {
    0% { background-position: 0% 50%; filter: hue-rotate(0deg) saturate(1.2); }
    100% { background-position: 100% 50%; filter: hue-rotate(180deg) saturate(1.2); }
}

@keyframes rainbow-natural {
    0% { background-position: 0% 50%; filter: hue-rotate(0deg) saturate(1.5); }
    100% { background-position: 100% 50%; filter: hue-rotate(60deg) saturate(1.5); }
}

@keyframes emoji-float {
    0% { transform: translateY(100vh); }
    100% { transform: translateY(-100vh); }
}

@keyframes nature-float {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-150px) scale(0.3) rotate(360deg);
    }
}

@keyframes gawdy-sparkle-float {
    0% {
        opacity: 0.8;
        transform: translateY(0) scale(1) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: translateY(-75px) scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-150px) scale(0.5) rotate(360deg);
    }
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-shadow: 1px 1px 2px #000;
    margin-bottom: 20px;
}

/* Theme Selector */
.theme-selector-container {
    margin-top: 20px;
    text-align: center;
}

.theme-label {
    display: block;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.retro-select {
    background: var(--button-bg);
    color: white;
    border: 2px solid var(--border-color);
    padding: 12px 16px;
    font-family: var(--font-primary);
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    min-width: 250px;
    text-align: center;
}

.retro-select:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px var(--shadow-color);
}

.retro-select:focus {
    outline: none;
    box-shadow: 0 0 30px var(--shadow-color);
}

.retro-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px;
}

.retro-select option:disabled {
    color: #666;
    background: #333;
}

.theme-status {
    margin-top: 10px;
}

.unlock-hint {
    color: var(--accent-color);
    animation: subtle-glow 2s ease-in-out infinite alternate;
}

/* Add some animation for subtle glow */
@keyframes subtle-glow {
    from {
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    }
    to {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    }
}

.retro-button {
    background: var(--button-bg);
    color: white;
    border: 2px solid var(--border-color);
    padding: 12px 24px;
    font-family: var(--font-primary);
    font-weight: bold;
    font-size: 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-shadow: 1px 1px 2px #000;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.retro-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--shadow-color);
    animation: pulse 0.5s ease infinite alternate;
}

@keyframes pulse {
    from { box-shadow: 0 0 20px var(--shadow-color); }
    to { box-shadow: 0 0 40px var(--shadow-color); }
}

/* Visitor Counter */
.visitor-counter {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-accent);
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 10px;
    margin: 20px 0;
    box-shadow: var(--box-shadow);
    text-shadow: var(--text-shadow);
}

#visitor-count {
    color: var(--text-primary);
    font-weight: bold;
    animation: counter-blink 2s ease-in-out infinite;
}

@keyframes counter-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

.counter-gif {
    width: 20px;
    height: 20px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Navigation */
.main-nav {
    margin: 30px 0;
}

.nav-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.nav-button {
    background: var(--button-bg);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-weight: bold;
    text-shadow: var(--text-shadow);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
}

.nav-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 25px var(--shadow-color);
    animation: bounce 0.6s ease infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(-3px) scale(1.05); }
    to { transform: translateY(-1px) scale(1.03); }
}

/* Content Separators */
.content-separator {
    text-align: center;
    margin: 40px 0;
}

.divider-gif {
    width: 100%;
    max-width: 500px;
    height: 20px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    border-radius: 10px;
    animation: divider-pulse 3s ease-in-out infinite;
}

@keyframes divider-pulse {
    0%, 100% { opacity: 0.6; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.1); }
}

/* Content Sections */
.content-section {
    background: var(--card-bg);
    border: 3px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 40px 0;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.content-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 6s ease-in-out infinite;
    pointer-events: none;
}

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

.section-title {
    font-family: var(--font-secondary);
    font-size: clamp(1.3rem, 4vw, 2.5rem);
    color: var(--text-primary);
    text-shadow: var(--text-shadow);
    margin-bottom: 25px;
    text-align: center;
    animation: title-glow 4s ease-in-out infinite alternate;
    line-height: 1.3;
    word-wrap: break-word;
    hyphens: auto;
}

@keyframes title-glow {
    from { text-shadow: var(--text-shadow); }
    to { text-shadow: var(--text-shadow), 0 0 20px var(--shadow-color); }
}

/* Section Content */
.section-content p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px #000;
}

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

.feature-list li {
    background: linear-gradient(90deg, var(--card-bg), rgba(255, 255, 255, 0.1));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 15px;
    margin: 10px 0;
    text-shadow: 1px 1px 2px #000;
    transition: all 0.3s ease;
}

.feature-list li:hover {
    transform: translateX(10px);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), var(--card-bg));
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.project-card {
    background: linear-gradient(135deg, var(--card-bg), rgba(255, 255, 255, 0.1));
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-shadow: 1px 1px 2px #000;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::after {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.5; transform: scale(1) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(180deg); }
}

.project-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), var(--box-shadow);
}

.project-card h3 {
    color: var(--text-primary);
    font-family: var(--font-secondary);
    margin-bottom: 15px;
    text-shadow: var(--text-shadow);
}

.project-status {
    margin-top: 15px;
    font-weight: bold;
}

.status-active {
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    animation: status-pulse 2s ease-in-out infinite;
}

.status-development {
    color: #ffff00;
    text-shadow: 0 0 10px #ffff00;
    animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* AI Experiments */
.ai-experiments {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .ai-experiments {
        grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
        gap: 25px;
    }
    
    .featured-bot {
        grid-column: span 1;
    }
}

.ai-card {
    background: linear-gradient(45deg, var(--card-bg), rgba(0, 255, 255, 0.1));
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-shadow: 1px 1px 2px #000;
    transition: all 0.3s ease;
    position: relative;
}

.ai-card:hover {
    transform: scale(1.05);
    box-shadow: var(--box-shadow);
}

.ai-card h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
    text-shadow: var(--text-shadow);
}

/* Featured Bot Styling */
.featured-bot {
    border: 3px solid var(--accent-primary);
    background: linear-gradient(135deg, var(--card-bg), rgba(255, 215, 0, 0.1));
    position: relative;
}

.featured-bot:hover {
    border-color: var(--accent-secondary);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    transform: translateY(-3px) scale(1.02);
}

.bot-description {
    line-height: 1.6;
}

.bot-features {
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 4px solid var(--accent-primary);
}

.bot-features h5 {
    color: var(--accent-secondary);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.bot-features ul {
    list-style: none;
    padding: 0;
}

.bot-features li {
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.bot-features li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.bot-showcase {
    margin: 15px 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    font-family: var(--font-mono);
    border: 1px solid var(--border-color);
}

.bot-showcase code {
    color: var(--accent-secondary);
    background: transparent;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.9rem;
}

.bot-tech-specs {
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.9rem;
    border-left: 3px solid var(--accent-secondary);
}

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

.implementation-details li {
    margin: 10px 0;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border-left: 3px solid var(--accent-primary);
}

.code-availability {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    border: 2px solid var(--accent-primary);
    border-radius: 12px;
    text-align: center;
}

.code-availability h4 {
    color: var(--accent-secondary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Dynamic Details Loading */
.details-loader {
    height: 0;
    overflow: hidden;
    transition: height 0.5s ease-in-out;
    border-top: 2px solid transparent;
    margin-top: 15px;
}

.details-loader.show {
    border-top-color: var(--accent-primary);
    padding-top: 15px;
}

.details-button {
    margin-top: 20px;
    width: 100%;
    transition: all 0.3s ease;
}

.details-button:hover {
    background: var(--accent-secondary);
    transform: scale(1.02);
}

/* Cat Pics Section */
.cat-pics-card {
    border-color: var(--accent-secondary);
    background: linear-gradient(135deg, var(--card-bg), rgba(255, 182, 193, 0.1));
}

.cat-gallery-placeholder {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.placeholder-cat {
    background: rgba(255, 182, 193, 0.2);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.placeholder-cat:hover {
    transform: scale(1.05);
    background: rgba(255, 182, 193, 0.3);
    border-color: var(--accent-secondary);
}

.cat-content {
    text-align: center;
}

/* Cat interaction animations */
@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) scale(1.2);
    }
}

.placeholder-cat {
    user-select: none;
}

.placeholder-cat:hover {
    cursor: pointer !important;
}

/* Tool Comparison */
.tool-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin: 30px 0;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.tool-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-shadow: 1px 1px 2px #000;
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: scale(1.02);
    box-shadow: var(--box-shadow);
}

.tool-card.windsurf {
    border-color: #00bfff;
}

.tool-card.cursor {
    border-color: #ff1493;
}

.tool-card.claude-code {
    border-color: #9370db;
}

.tool-card.amazon-mystery {
    border-color: #ff9500;
}

.tool-card.keeping-up {
    border-color: #ff6b6b;
    animation: overwhelmed 3s ease-in-out infinite;
}

.tool-card.future-tools {
    border-color: #00d4ff;
    animation: mysterious-glow 4s ease-in-out infinite alternate;
}

@keyframes overwhelmed {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.02) rotate(1deg); }
}

@keyframes mysterious-glow {
    from { box-shadow: 0 0 10px rgba(0, 212, 255, 0.3); }
    to { box-shadow: 0 0 25px rgba(0, 212, 255, 0.7); }
}

.vs-divider {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-primary);
    text-shadow: var(--text-shadow);
    text-align: center;
    animation: vs-pulse 3s ease-in-out infinite;
}

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

.winner-announcement {
    background: linear-gradient(45deg, var(--card-bg), rgba(255, 215, 0, 0.2));
    border: 3px solid gold;
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 0 20px gold;
}

/* Game Section */
.game-features ul {
    list-style: none;
    padding-left: 0;
}

.game-features li {
    background: linear-gradient(90deg, rgba(255, 20, 147, 0.2), transparent);
    padding: 8px 15px;
    margin: 8px 0;
    border-left: 4px solid var(--border-color);
    text-shadow: 1px 1px 2px #000;
}

.game-status-box {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 20px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Placeholder Content Styling */
.disclaimer-box {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.2));
    border: 2px solid #ffa500;
    border-radius: var(--border-radius);
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.3);
}

.disclaimer-box h4 {
    color: #ffa500;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px #000;
}

.placeholder-content {
    opacity: 0.8;
    position: relative;
}

.placeholder-content::before {
    content: '📝 DEMO';
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 165, 0, 0.8);
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 10;
}

.placeholder-tag {
    font-size: 0.6em;
    color: #ffa500;
    background: rgba(255, 165, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
}

.placeholder-notice {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
}

.status-placeholder {
    color: #ffa500;
    text-shadow: 0 0 10px #ffa500;
    animation: status-pulse 2s ease-in-out infinite;
}

.placeholder-section {
    border-color: rgba(255, 165, 0, 0.5);
}

/* Nature Blog Styles */
.nature-content {
    color: var(--text-primary);
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 30px 0;
}

.blog-post {
    background: linear-gradient(135deg, var(--card-bg), rgba(255, 255, 255, 0.05));
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog-post::before {
    content: '🌿';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0.7;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.blog-post h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    text-shadow: var(--text-shadow);
}

.post-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-family: var(--font-mono);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tag {
    background: var(--button-bg);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    text-shadow: 1px 1px 2px #000;
}

.nature-gallery {
    margin-top: 40px;
    text-align: center;
}

.photo-placeholder {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.placeholder-photo {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 60px 20px;
    font-size: 2rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.placeholder-photo:hover {
    transform: scale(1.05);
    box-shadow: var(--box-shadow);
}

.secret-unlock-message {
    background: linear-gradient(45deg, rgba(50, 205, 50, 0.2), rgba(34, 139, 34, 0.3));
    border: 2px solid #32cd32;
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 30px 0;
    text-align: center;
    animation: unlock-glow 2s ease-in-out infinite alternate;
}

@keyframes unlock-glow {
    from { box-shadow: 0 0 20px rgba(50, 205, 50, 0.5); }
    to { box-shadow: 0 0 30px rgba(50, 205, 50, 0.8); }
}

.secret-unlock-message h4 {
    color: #32cd32;
    text-shadow: 0 0 10px #32cd32;
    margin-bottom: 10px;
}

/* Enhanced gawdy mode with more emojis in specific elements */
body:not(.good-retro):not(.natural-theme) .site-header::after {
    content: '🌟✨💫⭐🎆🎊🎉🔥💥⚡🌈💎🦄🎪🎭🎨🎬🎵🎶🎼🥳🤩😎🤖👾🌟✨💫⭐🎆🎊🎉🔥💥⚡🌈💎🦄🎪🎭🎨🎬🎵🎶🎼🥳🤩😎🤖👾';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    font-size: 1rem;
    animation: emoji-scatter 15s linear infinite;
    opacity: 0.2;
    z-index: -1;
    word-spacing: 20px;
    line-height: 2rem;
}

@keyframes emoji-scatter {
    0% { transform: rotate(0deg) translateX(0); }
    25% { transform: rotate(90deg) translateX(50px); }
    50% { transform: rotate(180deg) translateX(0); }
    75% { transform: rotate(270deg) translateX(-50px); }
    100% { transform: rotate(360deg) translateX(0); }
}

/* Add more emojis to project cards in gawdy mode */
body:not(.good-retro):not(.natural-theme) .project-card::after {
    content: '✨🚀💻🎯⚡🔥💎🌟⭐💫🎆🎊🎉🥳🤩😎🤖👾🦄🌈💥';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 0.8rem;
    animation: sparkle-dance 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 5;
}

@keyframes sparkle-dance {
    0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.7; }
    50% { transform: rotate(180deg) scale(1.2); opacity: 1; }
}

/* Natural theme specific enhancements */
.natural-theme {
    background: var(--bg-primary) !important; /* Override animated background */
    animation: none !important; /* Remove background animation */
}

.natural-theme body {
    background: var(--bg-primary) !important;
    animation: none !important;
}

.natural-theme .site-header {
    background: rgba(13, 26, 13, 0.8);
    border-color: var(--border-color);
}

.natural-theme .blog-post {
    border-color: var(--border-color);
    background: rgba(13, 26, 13, 0.5);
}

.natural-theme .blog-post::before {
    content: '🍃';
    color: var(--text-accent);
}

.natural-theme .rainbow-text {
    background: linear-gradient(45deg, #4a7c59, #6fa46f, #8bb28b, #4a7c59);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: none; /* Remove rainbow animation */
}

.natural-theme .content-section::before {
    display: none; /* Remove shimmer effect */
}

.natural-theme .project-card::after {
    display: none; /* Remove busy sparkle effects */
}

.natural-theme .site-header::after {
    display: none; /* Remove emoji scatter */
}

.natural-theme .title-glow {
    animation: none; /* Remove title glow animation */
}

.natural-theme .section-title {
    animation: none; /* Remove glowing titles */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.natural-theme .divider-gif {
    animation: none; /* Remove pulsing dividers */
    opacity: 0.7;
}

.natural-theme .visitor-counter {
    background: rgba(13, 26, 13, 0.8);
    border-color: var(--border-color);
}

.natural-theme #visitor-count {
    animation: none; /* Remove blinking counter */
}

.natural-theme .counter-gif {
    animation: none; /* Remove spinning counter gifs */
}

/* Theme-specific animations */
@keyframes kawaii-sparkle {
    0% { filter: hue-rotate(0deg) brightness(1); }
    33% { filter: hue-rotate(120deg) brightness(1.2); }
    66% { filter: hue-rotate(240deg) brightness(0.9); }
    100% { filter: hue-rotate(360deg) brightness(1); }
}

@keyframes geocities-flash {
    0% { filter: brightness(1) contrast(1); }
    50% { filter: brightness(1.5) contrast(1.5); }
    100% { filter: brightness(1) contrast(1); }
}

@keyframes hack-flash {
    0% { filter: hue-rotate(0deg) brightness(1); }
    25% { filter: hue-rotate(90deg) brightness(1.2); }
    50% { filter: hue-rotate(180deg) brightness(1.5); }
    75% { filter: hue-rotate(270deg) brightness(1.2); }
    100% { filter: hue-rotate(360deg) brightness(1); }
}

@keyframes flame-flicker {
    0% { filter: brightness(1) hue-rotate(0deg); }
    25% { filter: brightness(1.3) hue-rotate(10deg); }
    50% { filter: brightness(0.8) hue-rotate(-5deg); }
    75% { filter: brightness(1.2) hue-rotate(5deg); }
    100% { filter: brightness(1) hue-rotate(0deg); }
}

/* Kawaii theme specific enhancements */
.kawaii-theme {
    background: var(--bg-primary) !important;
    animation: kawaii-sparkle 5s ease infinite;
}

.kawaii-theme .site-header::after {
    content: '🌸✨💖🎀🌈💫⭐🦄🍭🎪🎨🎵🎶💝🌺🌟💎🎉🎊🥳';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    pointer-events: none;
    animation: kawaii-float 4s ease infinite;
    font-size: 1.5rem;
    line-height: 2;
    overflow: hidden;
}

.kawaii-theme .project-card::after {
    content: '💖✨🌸💝';
    position: absolute;
    top: -5px;
    right: -5px;
    animation: kawaii-bounce 2s ease infinite;
}

@keyframes kawaii-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes kawaii-bounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(10deg); }
}

/* Geocities theme specific enhancements */
.geocities-theme {
    background: var(--bg-primary) !important;
    animation: geocities-flash 2s ease infinite;
    font-family: 'Comic Sans MS', cursive, fantasy;
}

.geocities-theme .site-header::after {
    content: '🚧UNDER CONSTRUCTION🚧 BEST VIEWED IN NETSCAPE 🌟WEBRING🌟 VISITOR #1337';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, #ffff00, transparent);
    opacity: 0.8;
    pointer-events: none;
    animation: geocities-scroll 10s linear infinite;
    font-size: 0.8rem;
    padding: 10px;
    color: #ff0000;
    text-shadow: 2px 2px #000;
}

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

/* Angelfire theme specific enhancements */
.angelfire-theme {
    background: var(--bg-primary) !important;
    animation: flame-flicker 3s ease infinite;
}

.angelfire-theme .site-header::after {
    content: '🔥💀⚡🌟🔥💀⚡🌟🔥💀⚡🌟🔥💀⚡🌟';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    pointer-events: none;
    animation: flame-dance 3s ease infinite;
    font-size: 1.2rem;
    color: #ff4500;
}

@keyframes flame-dance {
    0%, 100% { transform: translateY(0px) scale(1); }
    25% { transform: translateY(-5px) scale(1.1); }
    50% { transform: translateY(5px) scale(0.9); }
    75% { transform: translateY(-3px) scale(1.05); }
}

/* Game Download Link */
.game-download {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 12px;
    border: 3px solid var(--border-color);
    box-shadow: var(--box-shadow);
}

.game-link {
    color: var(--bg-primary) !important;
    font-weight: bold;
    text-decoration: none;
    padding: 12px 24px;
    background: var(--text-primary);
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    font-size: 1.1rem;
}

.game-link:hover {
    background: var(--accent-secondary);
    color: var(--bg-primary) !important;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    text-shadow: 0 0 10px var(--accent-primary);
}

/* Game Link Button in Project Status */
.game-link-button {
    color: var(--accent-secondary) !important;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 6px;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
    border: 2px solid var(--accent-primary);
    transition: all 0.3s ease;
    display: inline-block;
}

.game-link-button:hover {
    background: var(--accent-primary);
    color: var(--bg-primary) !important;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Contact Section */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.contact-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-shadow: 1px 1px 2px #000;
    transition: all 0.3s ease;
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.contact-card h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    text-shadow: var(--text-shadow);
}

/* Footer */
.site-footer {
    background: var(--card-bg);
    border: 3px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    margin-top: 50px;
    box-shadow: var(--box-shadow);
}

.footer-tagline {
    font-family: var(--font-secondary);
    color: var(--text-primary);
    text-shadow: var(--text-shadow);
    margin: 10px 0;
}

.footer-stats {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 15px;
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 768px) {
    /* Improve touch targets and spacing */
    #main-content {
        padding: 15px;
    }
    
    /* Better navigation for mobile */
    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .nav-button {
        min-height: 48px; /* Touch-friendly height */
        padding: 15px 25px;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    /* Readable title sizing */
    .main-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .subtitle {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 25px;
    }
    
    /* Better section titles */
    .section-title {
        font-size: 1.5rem !important;
        line-height: 1.3;
        margin-bottom: 20px;
        word-wrap: break-word;
    }
    
    /* Improved content sections */
    .content-section {
        padding: 20px 15px;
        margin: 20px 0;
    }
    
    /* Better text readability */
    .section-content p,
    .ai-content p,
    .comparison-content p,
    .game-description p,
    .contact-content p,
    .nature-intro p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 16px;
    }
    
    /* Grid layouts */
    .tool-comparison {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .tool-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ai-experiments {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .photo-placeholder {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    /* Better cards on mobile */
    .project-card,
    .ai-card,
    .tool-card,
    .contact-card,
    .blog-post {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    /* Visitor counter */
    .visitor-counter {
        font-size: 1rem;
        padding: 12px;
    }
    
    /* Style toggle button */
    .retro-button {
        padding: 15px 20px;
        font-size: 0.9rem;
        min-height: 48px;
        width: 100%;
        max-width: 300px;
    }
    
    /* Better vs divider */
    .vs-divider {
        order: -1;
        margin: 15px 0;
        font-size: 1.5rem;
    }
    
    /* Feature list improvements */
    .feature-list li {
        padding: 12px 15px;
        margin: 8px 0;
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Game features */
    .game-features ul li {
        padding: 10px 15px;
        margin: 8px 0;
        font-size: 0.95rem;
    }
    
    /* Tags */
    .tag {
        padding: 6px 12px;
        font-size: 0.8rem;
        margin: 2px;
    }
    
    /* Post meta */
    .post-meta {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    /* Footer */
    .site-footer {
        padding: 20px 15px;
        text-align: center;
    }
    
    .footer-stats {
        font-size: 0.8rem;
        line-height: 1.5;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .main-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.3rem !important;
    }
    
    .nav-button {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
    
    .photo-placeholder {
        grid-template-columns: 1fr;
    }
    
    /* Make tool comparison title wrap better */
    .section-title {
        word-break: break-word;
        hyphens: auto;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 🎮 MINIGAME ANIMATIONS 🎮 */
/* Enhanced animations for the retro minigame experience */

/* Sparkle float animation for unlock celebrations */
@keyframes sparkle-float {
    0% { 
        opacity: 1; 
        transform: translateY(0) rotate(0deg) scale(1); 
    }
    50% { 
        opacity: 0.8; 
        transform: translateY(-20px) rotate(180deg) scale(1.2); 
    }
    100% { 
        opacity: 0; 
        transform: translateY(-40px) rotate(360deg) scale(0.8); 
    }
}

/* Mouse wiggle animation for Mouse Hunt */
@keyframes mouse-wiggle {
    0% { transform: translateX(0) rotate(-2deg); }
    50% { transform: translateX(2px) rotate(2deg); }
    100% { transform: translateX(0) rotate(-2deg); }
}

/* Points floating animation */
@keyframes points-float {
    0% { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
        color: #f1c40f;
    }
    100% { 
        opacity: 0; 
        transform: translateY(-30px) scale(1.2); 
        color: #e74c3c;
    }
}

/* Pitfall character animations */
@keyframes character-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Kingdom resource pulse */
@keyframes resource-pulse {
    0%, 100% { 
        transform: scale(1); 
        color: inherit; 
    }
    50% { 
        transform: scale(1.1); 
        color: #f39c12; 
    }
}

/* Minigame panel slide-in */
@keyframes minigame-slide-in {
    0% { 
        transform: translateY(100px) scale(0.8); 
        opacity: 0; 
    }
    100% { 
        transform: translateY(0) scale(1); 
        opacity: 1; 
    }
}

/* Button hover glow effect for minigames */
.minigame-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.minigame-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.5s ease;
    opacity: 0;
}

.minigame-button:hover::before {
    animation: button-shine 0.8s ease-in-out;
}

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

/* ASCII art glitch effect for retro feel */
@keyframes ascii-glitch {
    0%, 90%, 100% { 
        transform: translateX(0); 
        filter: hue-rotate(0deg); 
    }
    10% { 
        transform: translateX(-2px); 
        filter: hue-rotate(90deg); 
    }
    20% { 
        transform: translateX(2px); 
        filter: hue-rotate(180deg); 
    }
    30% { 
        transform: translateX(-1px); 
        filter: hue-rotate(270deg); 
    }
    40% { 
        transform: translateX(1px); 
        filter: hue-rotate(360deg); 
    }
}

/* Treasure collection sparkle */
@keyframes treasure-collect {
    0% { 
        transform: scale(1) rotate(0deg); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.5) rotate(180deg); 
        opacity: 0.8; 
    }
    100% { 
        transform: scale(2) rotate(360deg); 
        opacity: 0; 
    }
}

/* Animal adoption celebration */
@keyframes animal-adopt {
    0% { 
        transform: scale(1); 
        filter: brightness(1); 
    }
    25% { 
        transform: scale(1.2); 
        filter: brightness(1.5); 
    }
    50% { 
        transform: scale(1.1) rotate(5deg); 
        filter: brightness(1.3); 
    }
    75% { 
        transform: scale(1.15) rotate(-5deg); 
        filter: brightness(1.4); 
    }
    100% { 
        transform: scale(1); 
        filter: brightness(1); 
    }
}

/* Retro screen flicker effect */
@keyframes retro-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

/* Apply retro effects to minigame screens */
.minigame-screen {
    animation: retro-flicker 3s ease-in-out infinite;
}

/* Responsive minigame styles */
@media (max-width: 768px) {
    #minigame-panel {
        bottom: 10px !important;
        left: 10px !important;
        right: 10px !important;
        min-width: auto !important;
        max-width: none !important;
    }
    
    .minigame-screen {
        font-size: 0.4rem !important;
        height: 100px !important;
    }
    
    .minigame-button {
        padding: 4px 8px !important;
        font-size: 0.6rem !important;
    }
}

/* High resolution display fixes for minigame panel */
@media (min-width: 2560px) {
    #minigame-panel {
        bottom: 40px !important;
        left: 40px !important;
        max-height: 80vh !important;
        overflow: auto !important;
    }
}

/* Lower resolution fixes to prevent panel from going off screen */
@media (max-height: 768px) {
    #minigame-panel {
        bottom: 5px !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    
    .minigame-screen {
        max-height: 300px !important;
    }
}

@media (max-height: 600px) {
    #minigame-panel {
        position: fixed !important;
        top: 10px !important;
        bottom: auto !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
    }
    
    .minigame-screen {
        max-height: 200px !important;
        overflow-y: auto !important;
    }
    
    /* When fully expanded, switch to top positioning */
    #minigame-panel:not([style*="minWidth"]) {
        top: 5px !important;
        max-height: 90vh !important;
    }
}

/* Very low resolution handling */
@media (max-height: 500px) {
    #minigame-panel {
        position: fixed !important;
        top: 5px !important;
        bottom: 5px !important;
        left: 10px !important;
        max-width: 350px !important;
        height: auto !important;
        max-height: 95vh !important;
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .minigame-screen {
        max-height: 150px !important;
        overflow-y: auto !important;
        flex-shrink: 1 !important;
    }
    
    /* Compress button area on very low screens */
    #minigame-buttons {
        max-height: 200px !important;
        overflow-y: auto !important;
        flex-shrink: 0 !important;
    }
    
    .minigame-button {
        padding: 2px 6px !important;
        font-size: 0.7rem !important;
        margin: 1px !important;
    }
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .content-section {
        background: white !important;
        border: 1px solid black !important;
        box-shadow: none !important;
    }
    
    .retro-button,
    .nav-button {
        background: white !important;
        color: black !important;
        border: 1px solid black !important;
    }
    
    #minigame-panel {
        display: none !important;
    }
}

/* Enhanced text scaling for minigame menus without increasing overall panel size */
.minigame-panel .minigame-button,
.minigame-panel .category-button,
.minigame-panel .nav-button {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    padding: 12px 16px !important;
}

.minigame-panel .minigame-title,
.minigame-panel .section-title {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
}

.minigame-panel .game-description,
.minigame-panel .category-description {
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
}

.minigame-panel .unlock-hint,
.minigame-panel .status-text {
    font-size: 0.85rem !important;
    line-height: 1.25 !important;
}

/* Compact layout to offset larger text */
.minigame-panel .minigame-button {
    margin: 2px 0 !important;
}

.minigame-panel .category-button {
    margin: 3px 0 !important;
}

/* Better text contrast for readability */
.minigame-panel .minigame-button,
.minigame-panel .category-button {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8) !important;
}

/* Enhanced scaling support for minigame panel zoom modes */
.minigame-panel[data-size="2"] {
    max-height: 90vh !important;
}

.minigame-panel[data-size="3"] {
    max-height: 95vh !important;
    overflow-y: auto !important;
}

.minigame-panel[data-size="4"] {
    max-height: 98vh !important;
    height: 98vh !important;
    overflow-y: auto !important;
    position: fixed !important;
    top: 1vh !important;
    z-index: 10000 !important;
}

/* Game content scaling enhancements */
#minigame-content[data-zoom="2x"] {
    min-height: 500px !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
}

#minigame-content[data-zoom="3x"] {
    min-height: 700px !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
}

#minigame-content[data-zoom="4x"] {
    min-height: 900px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
}

/* Game container scaling for canvas and display elements */
#minigame-content[data-zoom="3x"] canvas,
#minigame-content[data-zoom="3x"] .game-display,
#minigame-content[data-zoom="3x"] .arcade-display {
    transform: scale(1.5) !important;
    transform-origin: top left !important;
}

#minigame-content[data-zoom="4x"] canvas,
#minigame-content[data-zoom="4x"] .game-display,
#minigame-content[data-zoom="4x"] .arcade-display {
    transform: scale(2.0) !important;
    transform-origin: top left !important;
}

/* Mobile device scaling limitations */
@media (max-width: 768px) {
    /* Limit scaling on mobile devices */
    .minigame-panel[data-size="3"],
    .minigame-panel[data-size="4"] {
        max-height: 85vh !important;
        height: auto !important;
        position: relative !important;
        top: auto !important;
    }
    
    #minigame-content[data-zoom="3x"],
    #minigame-content[data-zoom="4x"] {
        max-height: 50vh !important;
        min-height: 300px !important;
    }
    
    #minigame-content[data-zoom="3x"] canvas,
    #minigame-content[data-zoom="3x"] .game-display,
    #minigame-content[data-zoom="3x"] .arcade-display,
    #minigame-content[data-zoom="4x"] canvas,
    #minigame-content[data-zoom="4x"] .game-display,
    #minigame-content[data-zoom="4x"] .arcade-display {
        transform: scale(1.0) !important;
    }
}

/* High resolution display enhancements */
@media (min-width: 2560px) {
    /* Allow even more aggressive scaling on high-res displays */
    .minigame-panel[data-size="4"] {
        max-height: 99vh !important;
        height: 99vh !important;
    }
    
    #minigame-content[data-zoom="4x"] {
        max-height: 85vh !important;
        min-height: 1000px !important;
    }
    
    #minigame-content[data-zoom="4x"] canvas,
    #minigame-content[data-zoom="4x"] .game-display,
    #minigame-content[data-zoom="4x"] .arcade-display {
        transform: scale(2.5) !important;
    }
}

/* Professional Resume Theme - Clean and Minimal */
.resume-theme {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --accent-color: #0066cc;
    --highlight-color: #28a745;
    --link-color: #0066cc;
    --link-hover: #0052a3;
    --border-style: 1px solid #dee2e6;
    --shadow-effect: 0 2px 4px rgba(0, 0, 0, 0.1);
    --text-shadow: none;
    --border-radius: 4px;
}

.resume-theme body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

.resume-theme .site-header {
    background: var(--bg-secondary);
    border-bottom: var(--border-style);
    padding: 2rem 0;
}

.resume-theme .main-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-primary);
    animation: none;
}

.resume-theme .rainbow-text {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    color: var(--text-primary);
}

.resume-theme .subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
}

.resume-theme .professional-link {
    display: none; /* Hide the employers link in professional mode */
}

/* Add "For a good time" button in professional mode */
.resume-theme .theme-selector-container::after {
    content: '';
    display: block;
    margin-top: 20px;
}

.fun-mode-button {
    display: none;
    background: linear-gradient(145deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    margin: 20px auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.resume-theme .fun-mode-button {
    display: block;
}

.fun-mode-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(145deg, #20c997, #28a745);
}

/* Hide floating emojis in all themes except default (Gawdy) */
.good-retro .floating-emoji,
.natural-theme .floating-emoji,
.kawaii-theme .floating-emoji,
.geocities-theme .floating-emoji,
.angelfire-theme .floating-emoji,
.netscape-theme .floating-emoji,
.resume-theme .floating-emoji {
    display: none !important;
}

.resume-theme .visitor-counter {
    background: var(--bg-secondary);
    border: var(--border-style);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    padding: 1rem;
    margin: 1rem auto;
    animation: none;
}

.resume-theme .nav-tabs {
    background: var(--bg-secondary);
    border-bottom: var(--border-style);
}

.resume-theme .tab-button {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

.resume-theme .tab-button:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    animation: none;
}

.resume-theme .tab-button.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    background: transparent;
}

.resume-theme section {
    background: var(--bg-primary);
    border: var(--border-style);
    box-shadow: var(--shadow-effect);
    padding: 2rem;
}

.resume-theme h2 {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    animation: none;
}

.resume-theme a {
    color: var(--link-color);
    text-decoration: none;
}

.resume-theme a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.resume-theme .theme-selector-container {
    background: var(--bg-secondary);
    border: var(--border-style);
    padding: 1.5rem;
    margin: 1rem auto;
}

.resume-theme .retro-select {
    background: var(--bg-primary);
    border: var(--border-style);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

.resume-theme #minigame-button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    animation: none;
}

.resume-theme #minigame-button:hover {
    background: var(--link-hover);
}

.resume-theme .click-counter {
    background: var(--bg-secondary);
    border: var(--border-style);
    color: var(--text-secondary);
}

.resume-theme .control-panel {
    background: var(--bg-primary);
    border: var(--border-style);
    color: var(--text-primary);
}

/* Hide all the fun stuff in professional mode */
.resume-theme .under-construction,
.resume-theme .spinning-skull,
.resume-theme .flame-gif,
.resume-theme marquee,
.resume-theme blink,
.resume-theme .rainbow-border,
.resume-theme .easter-egg {
    display: none !important;
}

/* Clean up animations in professional mode */
.resume-theme * {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
}

.resume-theme button:not(.fun-mode-button) {
    animation: none !important;
}

/* ==============================
   NETSCAPE NAVIGATOR THEME
   ============================== */

.netscape-theme {
    --bg-primary: #c0c0c0;
    --bg-secondary: #808080;
    --text-primary: #000000;
    --text-secondary: #333333;
    --accent-primary: #000080;
    --accent-secondary: #0000ff;
    --border-color: #ffffff;
    --shadow-color: #000000;
    background: #008080;
    font-family: 'Times New Roman', serif;
}

/* Netscape classic teal background */
.netscape-theme body {
    background: linear-gradient(180deg, #008080 0%, #006666 100%);
    background-attachment: fixed;
}

/* Hide swinging animations in Netscape theme */
.netscape-theme .project-card h3::before,
.netscape-theme .project-card h3::after {
    display: none !important;
    animation: none !important;
}

/* Classic 90s inset panels */
.netscape-theme .container,
.netscape-theme section {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: inset -1px -1px #000000, inset 1px 1px #dfdfdf;
    padding: 4px;
    margin: 8px;
}

/* Netscape blue headers */
.netscape-theme h1,
.netscape-theme h2 {
    background: linear-gradient(90deg, #000080, #4169e1);
    color: #ffffff !important;
    padding: 4px 8px;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    text-shadow: 1px 1px 0 #000000;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
}

/* Classic Windows 95 style buttons */
.netscape-theme button,
.netscape-theme .button {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    color: #000000;
    padding: 4px 12px;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    cursor: pointer;
    box-shadow: inset -1px -1px #808080, inset 1px 1px #ffffff;
}

.netscape-theme button:active {
    border-color: #000000 #ffffff #ffffff #000000;
    box-shadow: inset -1px -1px #ffffff, inset 1px 1px #808080;
}

/* Links in classic blue underline */
.netscape-theme a {
    color: #0000ff !important;
    text-decoration: underline !important;
    cursor: pointer;
}

.netscape-theme a:visited {
    color: #800080 !important;
}

.netscape-theme a:hover {
    color: #ff0000 !important;
    background: #ffff00;
}

/* Classic status bar */
.netscape-theme::after {
    content: 'Document: Done';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #c0c0c0;
    border-top: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 2px 4px;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    z-index: 9999;
}

/* Netscape throbber animation */
@keyframes netscape-throbber {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.netscape-theme .site-header::before {
    content: 'N';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: linear-gradient(45deg, #008080, #00ffff);
    color: #ffffff;
    font-weight: bold;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000080;
    animation: netscape-throbber 2s linear infinite;
}

/* Table styling like 90s */
.netscape-theme table {
    border: 1px solid #000000;
    background: #ffffff;
    border-collapse: collapse;
}

.netscape-theme th,
.netscape-theme td {
    border: 1px solid #808080;
    padding: 2px 4px;
}

.netscape-theme th {
    background: #000080;
    color: #ffffff;
    font-weight: bold;
}

/* Form inputs Windows 95 style */
.netscape-theme input,
.netscape-theme select,
.netscape-theme textarea {
    background: #ffffff;
    border: 2px solid;
    border-color: #000000 #ffffff #ffffff #000000;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    padding: 2px;
}

/* Scrollbar styling (webkit only) */
.netscape-theme ::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

.netscape-theme ::-webkit-scrollbar-track {
    background: #c0c0c0;
    border: 1px solid #000000;
}

.netscape-theme ::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
}

/* Classic "Under Construction" GIF reference */
.netscape-theme .under-construction {
    display: block !important;
    background: url('data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==');
    color: #ff0000;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border: 3px dashed #ffff00;
    animation: blink 1s step-start infinite;
}

/* HR with 90s styling */
.netscape-theme hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, #808080, #ffffff, #808080);
    box-shadow: 0 1px 0 #000000;
} 