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

/* CSS Variables for modern theming */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f97316;
    --error-color: #ef4444;
    
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --text-accent: #fbbf24;
    
    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* Prevent white flash on load */
html {
    background-color: var(--bg-primary);
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Parallax Container */
.parallax-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    perspective: 1000px;
}

/* Parallax Layers */
.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.parallax-layer-1 {
    transform: translateZ(-100px) scale(1.1);
    z-index: 1;
}

.parallax-layer-2 {
    transform: translateZ(-200px) scale(1.2);
    z-index: 2;
}

.parallax-layer-3 {
    transform: translateZ(-300px) scale(1.3);
    z-index: 3;
}

.parallax-layer-4 {
    transform: translateZ(-400px) scale(1.4);
    z-index: 4;
}

.parallax-layer-5 {
    transform: translateZ(-500px) scale(1.5);
    z-index: 5;
}

/* Parallax Background Elements */
.parallax-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Floating Parallax Elements */
.parallax-element {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    animation: float-parallax 20s ease-in-out infinite;
    pointer-events: none;
}

.parallax-element:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.parallax-element:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
    animation-duration: 30s;
}

.parallax-element:nth-child(3) {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 10s;
    animation-duration: 20s;
}

.parallax-element:nth-child(4) {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 30%;
    animation-delay: 15s;
    animation-duration: 35s;
}

@keyframes float-parallax {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(-40px) rotate(180deg);
    }
    75% {
        transform: translateY(-20px) rotate(270deg);
    }
}

/* Parallax Grid */
.parallax-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    opacity: 0.3;
}

/* Parallax Content */
.parallax-content {
    position: relative;
    z-index: 10;
    transform: translateZ(0);
    transition: transform var(--transition-normal);
}

/* Enhanced Parallax Effects */
.parallax-content:hover {
    transform: translateZ(10px);
}

/* Parallax Header */
#menu-bar {
    position: relative;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(180%);
    transition: transform var(--transition-normal);
}

/* Parallax Navigation */
.nav-item {
    transition: transform var(--transition-normal), color var(--transition-normal);
}

.nav-item:hover {
    transform: translateY(-2px) translateZ(5px);
}

/* Parallax Cards Enhanced */
.content-card {
    transition: all var(--transition-normal), transform var(--transition-normal);
    transform-style: preserve-3d;
}

.content-card:hover {
    transform: translateY(-8px) translateZ(30px) rotateX(2deg) rotateY(2deg);
    box-shadow: 
        var(--shadow-xl), 
        0 0 30px rgba(99, 102, 241, 0.3),
        0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Parallax Skill Tags */
.skill-tag {
    transition: transform var(--transition-normal);
}

.skill-tag:hover {
    transform: translateY(-3px) translateZ(10px) scale(1.05);
}

/* Parallax Project Cards */
.project-card {
    transition: transform var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-5px) translateZ(15px);
}

/* Parallax Game Section */
.game-container {
    transition: transform var(--transition-normal);
}

.game-container:hover {
    transform: translateZ(20px);
}

/* Smooth Parallax Animation */
@keyframes parallaxFloat {
    0%, 100% {
        transform: translateY(0px) translateZ(0px);
    }
    50% {
        transform: translateY(-10px) translateZ(10px);
    }
}

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

/* ===== FOOTER STYLES ===== */
.footer {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    border-top: 1px solid var(--border-color);
    overflow: hidden;
    z-index: 1000;
    margin-top: 2rem;
    box-sizing: border-box;
    max-width: 100vw;
}

.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    animation: footerParticles 20s ease-in-out infinite;
}

.footer-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.2;
}

@keyframes footerParticles {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

.footer-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
}

.footer-section {
    position: relative;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-candle {
    position: relative;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    animation: footerCandleFlicker 3s ease-in-out infinite;
}

.footer-fire {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #ff6b35, #f7931e, #fbbf24);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: footerFireFlicker 2s ease-in-out infinite;
}

@keyframes footerCandleFlicker {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    }
    50% { 
        box-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
    }
}

@keyframes footerFireFlicker {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
    }
    25% { 
        transform: scale(1.1) rotate(5deg);
    }
    50% { 
        transform: scale(0.9) rotate(-5deg);
    }
    75% { 
        transform: scale(1.05) rotate(3deg);
    }
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    transform: translateY(-3px) translateZ(10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    background: var(--bg-card-hover);
}

.social-icon {
    font-size: 1.2rem;
    transition: transform var(--transition-normal);
}

.social-link:hover .social-icon {
    transform: scale(1.1);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
    display: inline-block;
    position: relative;
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.footer-link:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.footer-link:hover::before {
    width: 100%;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.contact-icon {
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.contact-item strong {
    color: var(--text-primary);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.2rem;
}

.contact-item div {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.contact-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.contact-link:hover {
    color: var(--primary-color);
}

.footer-bottom {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

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

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-copyright p {
    margin: 0.2rem 0;
}

.footer-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.footer-btn:hover {
    transform: translateY(-2px) translateZ(5px);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.footer-btn span {
    font-size: 1rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 1rem 1rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        padding: 0.8rem 1rem;
    }
    
    .footer-actions {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    #content-overlay {
        padding-bottom: 80px; /* Less space needed on mobile */
    }
    
    .content-section {
        padding: 20px;
    }
    
    .section-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 1rem 1rem 0.8rem;
    }
    
    .footer-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .footer-btn {
        justify-content: center;
    }
    
    #content-overlay {
        padding-bottom: 60px; /* Even less space on very small screens */
    }
    
    .content-section {
        padding: 15px;
    }
    
    .section-grid {
        gap: 15px;
        padding: 0 5px;
    }
    
    .content-card {
        padding: 1.5rem;
    }
}

body {
    background: var(--bg-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="M12 4c-2.2 0-4 1.8-4 4s1.8 4 4 4c1.1 0 2.1-.4 2.8-1.2l6.4 6.4c.8.8 2 .8 2.8 0s.8-2 0-2.8l-6.4-6.4c.8-.7 1.2-1.7 1.2-2.8 0-2.2-1.8-4-4-4zm0 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2z" fill="%236366f1" fill-opacity="0.8"/></svg>'), auto;
    animation: realistic-candlelight 6.5s ease-in-out infinite;
    overflow: hidden; /* Hide body scroll */
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

#container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#loading-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#loading-text {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    animation: pulse 2s ease-in-out infinite;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.025em;
}

#loading-progress {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#loading-bar {
    height: 100%;
    background: var(--gradient-accent);
    width: 0%;
    animation: loadingProgress 5s ease-out forwards;
    border-radius: var(--radius-sm);
}

@keyframes loadingProgress {
    0% { width: 0%; }
    20% { width: 30%; }
    50% { width: 60%; }
    80% { width: 90%; }
    100% { width: 100%; }
}

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

@keyframes realistic-candlelight {
    0% { 
        background: radial-gradient(ellipse 45% 80% at 4% 8%, rgba(255, 147, 41, 0.08) 0%, rgba(255, 120, 30, 0.04) 35%, rgba(20, 10, 5, 0.02) 70%, #0a0a0a 85%);
    }
    12% { 
        background: radial-gradient(ellipse 48% 85% at 4.2% 8.5%, rgba(255, 160, 50, 0.11) 0%, rgba(255, 140, 40, 0.06) 38%, rgba(25, 12, 6, 0.03) 72%, #0a0a0a 87%);
    }
    23% { 
        background: radial-gradient(ellipse 42% 75% at 3.8% 7.8%, rgba(255, 135, 35, 0.07) 0%, rgba(255, 110, 25, 0.035) 33%, rgba(18, 9, 4, 0.015) 68%, #0a0a0a 83%);
    }
    34% { 
        background: radial-gradient(ellipse 50% 88% at 4.3% 8.8%, rgba(255, 170, 60, 0.12) 0%, rgba(255, 150, 45, 0.065) 40%, rgba(28, 14, 7, 0.035) 75%, #0a0a0a 88%);
    }
    45% { 
        background: radial-gradient(ellipse 46% 82% at 4% 8.2%, rgba(255, 155, 45, 0.09) 0%, rgba(255, 130, 35, 0.05) 36%, rgba(22, 11, 5, 0.025) 71%, #0a0a0a 86%);
    }
    56% { 
        background: radial-gradient(ellipse 44% 78% at 3.9% 7.9%, rgba(255, 145, 40, 0.085) 0%, rgba(255, 125, 30, 0.045) 34%, rgba(20, 10, 5, 0.02) 69%, #0a0a0a 84%);
    }
    67% { 
        background: radial-gradient(ellipse 49% 86% at 4.1% 8.6%, rgba(255, 165, 55, 0.105) 0%, rgba(255, 145, 42, 0.058) 39%, rgba(26, 13, 6, 0.03) 74%, #0a0a0a 87%);
    }
    78% { 
        background: radial-gradient(ellipse 43% 76% at 3.7% 7.7%, rgba(255, 150, 42, 0.075) 0%, rgba(255, 115, 28, 0.04) 32%, rgba(19, 9, 4, 0.018) 67%, #0a0a0a 82%);
    }
    89% { 
        background: radial-gradient(ellipse 47% 83% at 4.05% 8.3%, rgba(255, 158, 48, 0.095) 0%, rgba(255, 138, 38, 0.052) 37%, rgba(24, 12, 6, 0.028) 72%, #0a0a0a 85%);
    }
    100% { 
        background: radial-gradient(ellipse 45% 80% at 4% 8%, rgba(255, 147, 41, 0.08) 0%, rgba(255, 120, 30, 0.04) 35%, rgba(20, 10, 5, 0.02) 70%, #0a0a0a 85%);
    }
}

@keyframes realistic-candlelight-overlay {
    0% { 
        background: linear-gradient(135deg, rgba(255, 147, 41, 0.35) 0%, rgba(255, 120, 30, 0.15) 25%, transparent 65%);
    }
    15% { 
        background: linear-gradient(138deg, rgba(255, 160, 50, 0.42) 0%, rgba(255, 140, 40, 0.18) 28%, transparent 68%);
    }
    28% { 
        background: linear-gradient(132deg, rgba(255, 135, 35, 0.32) 0%, rgba(255, 110, 25, 0.13) 23%, transparent 62%);
    }
    41% { 
        background: linear-gradient(140deg, rgba(255, 170, 60, 0.45) 0%, rgba(255, 150, 45, 0.20) 30%, transparent 70%);
    }
    54% { 
        background: linear-gradient(134deg, rgba(255, 155, 45, 0.38) 0%, rgba(255, 130, 35, 0.16) 26%, transparent 66%);
    }
    67% { 
        background: linear-gradient(136deg, rgba(255, 145, 40, 0.36) 0%, rgba(255, 125, 30, 0.14) 24%, transparent 64%);
    }
    80% { 
        background: linear-gradient(139deg, rgba(255, 165, 55, 0.41) 0%, rgba(255, 145, 42, 0.19) 29%, transparent 69%);
    }
    93% { 
        background: linear-gradient(133deg, rgba(255, 150, 42, 0.34) 0%, rgba(255, 115, 28, 0.12) 22%, transparent 63%);
    }
    100% { 
        background: linear-gradient(135deg, rgba(255, 147, 41, 0.35) 0%, rgba(255, 120, 30, 0.15) 25%, transparent 65%);
    }
}

.candle-container {
    display: flex;
    align-items: center;
    margin-right: 15px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid transparent;
}

.candle-container:hover {
    transform: scale(1.08);
    background: rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    border-color: rgba(99, 102, 241, 0.3);
}

.candle-container:active {
    transform: scale(0.95);
    background: rgba(99, 102, 241, 0.3);
}

.candle-container:active {
    transform: scale(0.95);
    background: rgba(255, 147, 41, 0.3);
}

.candle-container:active {
    transform: scale(0.95);
}

.candle-container::after {
    content: '🎨 Click to change theme';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(99, 102, 241, 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.candle-container:hover::after {
    opacity: 1;
}

.candle {
    width: 12px;
    height: 28px;
    background: linear-gradient(to bottom, 
        #FFF8DC 0%, 
        #F5F5DC 20%, 
        #F0E68C 40%, 
        #E6D7A8 60%, 
        #D2B48C 80%, 
        #BC8F8F 100%);
    border-radius: 6px 6px 3px 3px;
    position: relative;
    box-shadow: 
        0 0 8px rgba(255, 255, 224, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 224, 0.2);
    overflow: hidden;
    animation: candle-glow 3s ease-in-out infinite;
}

.candle-container:hover .candle {
    animation: candle-glow 1.5s ease-in-out infinite, candle-pulse 2s ease-in-out infinite;
}

.candle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 224, 0.2) 50%, 
        transparent 100%);
    border-radius: 6px 6px 0 0;
}

.candle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to top, 
        rgba(139, 69, 19, 0.3) 0%, 
        rgba(160, 82, 45, 0.2) 50%, 
        transparent 100%);
    border-radius: 0 0 3px 3px;
}

/* Candle wick */
.candle-wick {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 4px;
    background: linear-gradient(to bottom, 
        #2F1B14 0%, 
        #4A3728 50%, 
        #654321 100%);
    border-radius: 1px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

/* Wax drip on the right side */
.candle-wax-drip {
    position: absolute;
    top: 2px;
    right: -1px;
    width: 3px;
    height: 8px;
    background: linear-gradient(to bottom, 
        rgba(255, 248, 220, 0.8) 0%, 
        rgba(245, 245, 220, 0.6) 50%, 
        rgba(240, 230, 140, 0.4) 100%);
    border-radius: 0 0 2px 2px;
    box-shadow: 0 0 2px rgba(255, 255, 224, 0.3);
}

/* Additional wax texture */
.candle .wax-texture {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 0, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.fire {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 24px;
    background: radial-gradient(ellipse at bottom, 
        #ff4500 0%, 
        #ff6347 25%, 
        #ffa500 50%, 
        #ffff00 75%, 
        #ffffff 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: fire-flicker 0.4s infinite alternate;
    filter: blur(0.8px);
    box-shadow: 
        0 0 12px rgba(255, 69, 0, 0.6),
        0 0 20px rgba(255, 165, 0, 0.4),
        0 0 30px rgba(255, 255, 0, 0.2);
}

.fire::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 18px;
    background: radial-gradient(ellipse at bottom, 
        #ff6347 0%, 
        #ffa500 40%, 
        #ffff00 80%, 
        #ffffff 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: fire-flicker 0.5s infinite alternate-reverse;
    filter: blur(0.3px);
}

.fire::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 12px;
    background: radial-gradient(ellipse at bottom, 
        #ffa500 0%, 
        #ffff00 60%, 
        #ffffff 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: fire-flicker 0.3s infinite alternate;
    filter: blur(0.2px);
}

@keyframes fire-flicker {
    0% {
        transform: translateX(-50%) scale(1, 1) rotate(-2deg);
        opacity: 0.8;
    }
    25% {
        transform: translateX(-50%) scale(1.05, 1.1) rotate(-1deg);
        opacity: 0.9;
    }
    50% {
        transform: translateX(-50%) scale(1.1, 1.2) rotate(0deg);
        opacity: 1;
    }
    75% {
        transform: translateX(-50%) scale(1.08, 1.15) rotate(1deg);
        opacity: 0.95;
    }
    100% {
        transform: translateX(-50%) scale(1, 1) rotate(2deg);
        opacity: 0.8;
    }
}

.fire-glow {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: radial-gradient(circle, 
        rgba(255, 147, 41, 0.6) 0%, 
        rgba(255, 165, 0, 0.4) 30%, 
        rgba(255, 255, 0, 0.2) 60%, 
        transparent 80%);
    border-radius: 50%;
    animation: glow-pulse 1.2s ease-in-out infinite alternate;
    filter: blur(1px);
}

@keyframes glow-pulse {
    0% { 
        opacity: 0.5; 
        transform: translateX(-50%) scale(0.7); 
    }
    50% { 
        opacity: 0.8; 
        transform: translateX(-50%) scale(1.1); 
    }
    100% { 
        opacity: 1; 
        transform: translateX(-50%) scale(1.3); 
    }
}

@keyframes candle-glow {
    0%, 100% {
        box-shadow: 
            0 0 8px rgba(255, 255, 224, 0.4),
            inset 0 2px 4px rgba(255, 255, 255, 0.3),
            inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 
            0 0 12px rgba(255, 255, 224, 0.6),
            inset 0 2px 4px rgba(255, 255, 255, 0.4),
            inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    }
}

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

/* Modern animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

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

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

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

/* Background transition animations */
@keyframes background-transition {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

body {
    transition: background 1s ease-in-out;
}

/* Modern utility classes */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.hover-lift {
    transition: transform var(--transition-normal);
}

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

/* Modern scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Game Styles */
.game-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.game-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.game-stats {
    display: flex;
    gap: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.game-stats span {
    background: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.game-btn {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 0.875rem;
}

.game-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.game-btn:active {
    transform: translateY(0);
}

#game-canvas {
    width: 100%;
    max-width: 600px;
    height: 400px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    display: block;
    margin: 0 auto;
    cursor: crosshair;
}

.game-controls {
    margin-top: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.game-controls p {
    margin: 0.5rem 0;
}

/* Leaderboard Styles */
.leaderboard {
    margin-bottom: 2rem;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.leaderboard-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.leaderboard-item .rank {
    font-size: 1.25rem;
    margin-right: 1rem;
}

.leaderboard-item .player {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
}

.leaderboard-item .score {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.125rem;
}

/* Achievements */
.game-achievements h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.achievement {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    opacity: 0.5;
    transition: all var(--transition-normal);
}

.achievement.unlocked {
    opacity: 1;
    background: var(--bg-tertiary);
    border-color: var(--success-color);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.achievement-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.achievement-text {
    color: var(--text-secondary);
    font-weight: 500;
}

.achievement.unlocked .achievement-text {
    color: var(--text-primary);
}

/* Game animations */
@keyframes gamePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.game-container:hover {
    animation: gamePulse 2s ease-in-out infinite;
}

/* Game Over Screen Styles */
#game-over-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.95) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#game-over-overlay button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

#game-over-overlay button:active {
    transform: translateY(0);
}

/* Responsive game design */
@media (max-width: 768px) {
    .game-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .game-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    #game-canvas {
        height: 300px;
    }
    
    .game-controls {
        font-size: 0.8rem;
    }
}

/* Theme indicator */
.theme-indicator {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.5s ease-in-out;
    z-index: 1000;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.theme-indicator.show {
    opacity: 1;
    transform: translateX(0);
}

#menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 200;
    opacity: 0;
    transform: translateY(-80px);
    transition: all 0.8s ease;
    box-shadow: var(--shadow-lg);
}

#menu-bar.active {
    opacity: 1;
    transform: translateY(0);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.logo .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.logo-subtext {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 0.125rem;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left var(--transition-normal);
    z-index: -1;
}

.nav-item:hover::before,
.nav-item.active::before {
    left: 0;
}

.nav-item:hover, 
.nav-item.active {
    color: var(--text-primary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.download-resume {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}

.download-resume:hover {
    background: rgba(0, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.hamburger {
    display: none;
    font-size: 24px;
    color: #00ffff;
    cursor: pointer;
}

.menu-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.control-btn:hover {
    background: rgba(0, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 300;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon {
    width: 30px;
    height: 30px;
    background: url('https://cdn.jsdelivr.net/npm/simple-icons@v9/icons/whatsapp.svg') center/contain no-repeat;
    filter: invert(1);
}

.breadcrumb {
    display: none;
    color: #00ffff;
    font-size: 14px;
    font-weight: 500;
    text-transform: capitalize;
}

#content-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.8s ease;
    filter: sepia(0.2) brightness(0.85) contrast(1.1);
    background: linear-gradient(135deg, rgba(255, 147, 41, 0.35) 0%, rgba(255, 120, 30, 0.15) 25%, transparent 65%);
    animation: realistic-candlelight-overlay 7.2s ease-in-out infinite;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 100px; /* Reduced space for sticky footer */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    box-sizing: border-box;
}

#content-overlay::-webkit-scrollbar {
    width: 8px;
}

#content-overlay::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

#content-overlay::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    transition: background var(--transition-normal);
}

#content-overlay::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

#content-overlay.active {
    opacity: 1;
    pointer-events: auto;
    animation: contentEntrance 1.2s ease-out;
}

@keyframes contentEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        filter: blur(10px);
    }
    50% {
        opacity: 0.7;
        transform: translateY(15px) scale(0.98);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.content-section {
    position: absolute;
    width: 100%;
    height: auto;
    padding: 40px;
    display: none;
    pointer-events: auto;
    transform: translateZ(0);
    transition: transform var(--transition-normal);
    box-sizing: border-box;
    max-width: 100vw;
    overflow-x: hidden;
}

.content-section.active {
    display: block;
    animation: sectionParallaxIn 0.8s ease-out;
}

@keyframes sectionParallaxIn {
    0% {
        opacity: 0;
        transform: translateY(50px) translateZ(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    min-height: calc(100vh - 110px);
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
}

.content-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    color: var(--text-primary);
    height: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(50px) translateZ(0);
    opacity: 0;
    transition: all var(--transition-slow);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.content-card.animate-in {
    transform: translateY(0);
    opacity: 1;
}

.content-card:hover {
    transform: translateY(-8px) translateZ(20px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(99, 102, 241, 0.2);
    background: var(--bg-card-hover);
}

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

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

@keyframes realistic-card-flicker {
    0%, 100% { 
        filter: brightness(0.78) contrast(1.05); 
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 147, 41, 0.08);
    }
    15% { 
        filter: brightness(0.82) contrast(1.08); 
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 160, 50, 0.10);
    }
    30% { 
        filter: brightness(0.76) contrast(1.03); 
        box-shadow: 0 9px 28px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 135, 35, 0.06);
    }
    45% { 
        filter: brightness(0.84) contrast(1.10); 
        box-shadow: 0 13px 34px rgba(0, 0, 0, 0.54), inset 0 1px 0 rgba(255, 170, 60, 0.12);
    }
    60% { 
        filter: brightness(0.80) contrast(1.06); 
        box-shadow: 0 11px 31px rgba(0, 0, 0, 0.51), inset 0 1px 0 rgba(255, 155, 45, 0.09);
    }
    75% { 
        filter: brightness(0.79) contrast(1.04); 
        box-shadow: 0 10px 29px rgba(0, 0, 0, 0.49), inset 0 1px 0 rgba(255, 145, 40, 0.07);
    }
    90% { 
        filter: brightness(0.83) contrast(1.09); 
        box-shadow: 0 12px 33px rgba(0, 0, 0, 0.53), inset 0 1px 0 rgba(255, 165, 55, 0.11);
    }
}

.content-card::-webkit-scrollbar {
    width: 8px;
}

.content-card::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.content-card::-webkit-scrollbar-thumb {
    background: rgba(255, 147, 41, 0.6);
    border-radius: 4px;
}

.card-title {
    color: var(--text-primary);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    position: relative;
    padding-bottom: 0.75rem;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3rem;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
    line-height: 1.6;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.info-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.info-icon {
    width: 24px;
    height: 24px;
    background: #ff9329;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-weight: bold;
    font-size: 14px;
}

.skill-category {
    margin-bottom: 25px;
}

.skill-category h4 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 147, 41, 0.3);
    text-shadow: 0 0 5px #ff9329;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform: scale(0.9);
    opacity: 0;
    animation: skillTagEntrance 0.6s ease-out forwards;
    animation-delay: calc(var(--animation-order) * 0.1s);
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left var(--transition-normal);
    z-index: -1;
}

.skill-tag:hover::before {
    left: 0;
}

.skill-tag:hover {
    color: var(--text-primary);
    border-color: var(--primary-color);
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-md);
}

@keyframes skillTagEntrance {
    0% {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.project-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
    transition: all var(--transition-normal);
    cursor: pointer;
    transform: translateX(-30px);
    opacity: 0;
    animation: projectCardEntrance 0.8s ease-out forwards;
    animation-delay: calc(var(--animation-order) * 0.2s);
    border: 1px solid var(--border-color);
}

.project-card:hover {
    background: var(--bg-tertiary);
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(99, 102, 241, 0.2);
    border-left-width: 6px;
    border-color: var(--primary-color);
}

@keyframes projectCardEntrance {
    0% {
        transform: translateX(-30px) translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
}

.project-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.project-tech {
    color: var(--text-accent);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}

.project-desc {
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.social-card {
    background: rgba(255, 147, 41, 0.15);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 147, 41, 0.4);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: #f0e8d6;
    transform: scale(0.95);
    opacity: 0;
    animation: socialCardEntrance 0.7s ease-out forwards;
    animation-delay: calc(var(--animation-order) * 0.15s);
}

.social-card:hover {
    background: rgba(255, 147, 41, 0.3);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 147, 41, 0.4), 0 0 20px rgba(255, 147, 41, 0.3);
    border-color: rgba(255, 147, 41, 0.8);
}

@keyframes socialCardEntrance {
    0% {
        transform: scale(0.95) translateY(30px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Content Candle Styles */
.content-candle {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 120px;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 10px rgba(255, 147, 41, 0.5));
}

.content-candle:hover {
    filter: drop-shadow(0 0 20px rgba(255, 147, 41, 0.8));
}

.candle-base {
    position: relative;
    width: 100%;
    height: 100%;
}

.candle-base::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 80px;
    background: linear-gradient(135deg, #F5DEB3, #DEB887);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.candle-wick {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: #2F1B14;
    border-radius: 2px;
}

.candle-flame {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 24px;
    background: linear-gradient(135deg, #FF6B35, #FF4500);
    border-radius: 6px 6px 0 0;
    animation: contentFlameFlicker 0.8s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.8);
}

.candle-inner-flame {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 18px;
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    border-radius: 4px 4px 0 0;
    animation: contentInnerFlameFlicker 0.6s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.candle-core-flame {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 12px;
    background: linear-gradient(135deg, #FFFFFF, #FFFF00);
    border-radius: 2px 2px 0 0;
    animation: contentCoreFlameFlicker 0.4s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

@keyframes contentFlameFlicker {
    0%, 100% { 
        transform: translateX(-50%) scale(1);
        opacity: 0.9;
    }
    50% { 
        transform: translateX(-50%) scale(1.1);
        opacity: 1;
    }
}

@keyframes contentInnerFlameFlicker {
    0%, 100% { 
        transform: translateX(-50%) scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: translateX(-50%) scale(1.15);
        opacity: 1;
    }
}

@keyframes contentCoreFlameFlicker {
    0%, 100% { 
        transform: translateX(-50%) scale(1);
        opacity: 0.7;
    }
    50% { 
        transform: translateX(-50%) scale(1.2);
        opacity: 1;
    }
}

/* Floating Particles Background */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 147, 41, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 147, 41, 0.4);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    50% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0.8;
    }
}

/* Glowing Border Effect */
.glow-border {
    position: relative;
}

.glow-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff9329, #ff6b35, #ffd700, #ff9329);
    border-radius: 22px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-border:hover::before {
    opacity: 1;
}

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

/* Typing Effect */
.typing-effect {
    overflow: hidden;
    border-right: 2px solid #ff9329;
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #ff9329; }
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s ease-in-out infinite;
}

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

/* Shimmer Effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 147, 41, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 3D Card Effect */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.card-3d:hover {
    transform: rotateY(10deg) rotateX(5deg);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(45deg, #ff9329, #ff6b35, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

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

/* Floating Icons */
.floating-icon {
    position: absolute;
    font-size: 24px;
    color: #ff9329;
    animation: floatIcon 4s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes sparkleFloat {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

/* Matrix Rain Effect */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.05;
}

.matrix-character {
    position: absolute;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    animation: matrixFall 3s linear infinite;
}

@keyframes matrixFall {
    0% {
        transform: translateY(-100px);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Magnetic Effect */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Neon Glow Effect */
.neon-glow {
    text-shadow: 
        0 0 3px #ff9329,
        0 0 6px #ff9329,
        0 0 9px #ff9329;
    animation: neonPulse 4s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% {
        text-shadow: 
            0 0 3px #ff9329,
            0 0 6px #ff9329,
            0 0 9px #ff9329;
    }
    50% {
        text-shadow: 
            0 0 6px #ff9329,
            0 0 12px #ff9329,
            0 0 18px #ff9329;
    }
}

/* Morphing Shapes */
.morphing-shape {
    position: absolute;
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, rgba(255, 147, 41, 0.3), rgba(255, 107, 53, 0.3));
    border-radius: 50%;
    animation: morph 6s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% {
        border-radius: 50%;
        transform: rotate(0deg) scale(1);
    }
    25% {
        border-radius: 0%;
        transform: rotate(90deg) scale(1.2);
    }
    50% {
        border-radius: 50% 0% 50% 0%;
        transform: rotate(180deg) scale(0.8);
    }
    75% {
        border-radius: 0% 50% 0% 50%;
        transform: rotate(270deg) scale(1.1);
    }
}

/* Bouncing Animation */
.bounce {
    animation: bounce 3s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Rotating Elements */
.rotate {
    animation: rotate 8s linear infinite;
}

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

/* Wave Animation */
.wave {
    animation: wave 4s ease-in-out infinite;
}

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

/* Glitch Effect */
.glitch {
    position: relative;
    animation: glitch 2s ease-in-out infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 2s ease-in-out infinite;
    color: #ff0000;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 2s ease-in-out infinite;
    color: #00ff00;
    z-index: -2;
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-1 {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-2 {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(2px, -2px);
    }
    40% {
        transform: translate(2px, 2px);
    }
    60% {
        transform: translate(-2px, -2px);
    }
    80% {
        transform: translate(-2px, 2px);
    }
}

/* Holographic Effect */
.holographic {
    background: linear-gradient(45deg, 
        #ff0000, #ff7f00, #ffff00, #00ff00, 
        #0000ff, #4b0082, #9400d3, #ff0000);
    background-size: 400% 400%;
    animation: holographic 3s ease-in-out infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Fire Effect */
.fire {
    position: relative;
    animation: fire 1s ease-in-out infinite;
}

.fire::before {
    content: '🔥';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    animation: fireFloat 2s ease-in-out infinite;
}

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

@keyframes fireFloat {
    0%, 100% {
        transform: translateX(-50%) translateY(0px);
    }
    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Lightning Effect */
.lightning {
    animation: lightning 3s ease-in-out infinite;
}

@keyframes lightning {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.1) contrast(1.05);
    }
}

/* Floating Bubbles */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 147, 41, 0.3), rgba(255, 107, 53, 0.1));
    animation: bubbleFloat 6s ease-in-out infinite;
}

@keyframes bubbleFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px) scale(1.1);
        opacity: 0.6;
    }
}

@keyframes confettiFall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Mobile responsive for content candle */
@media (max-width: 768px) {
    .content-candle {
        right: 15px;
        width: 40px;
        height: 80px;
    }
    
    .candle-base::before {
        width: 30px;
        height: 60px;
    }
    
    .candle-flame {
        width: 8px;
        height: 16px;
    }
    
    .candle-inner-flame {
        width: 6px;
        height: 12px;
    }
    
    .candle-core-flame {
        width: 3px;
        height: 8px;
    }
}

.social-icon {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

.highlight-text {
    color: #ffaa66;
    font-weight: bold;
}

.seo-content {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 25px;
    }
    .nav-menu {
        gap: 20px;
    }
    .nav-item, .download-resume {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    /* Game responsiveness */
    #game-canvas {
        width: 100%;
        max-width: 500px;
        height: auto;
        aspect-ratio: 3/2;
    }
    
    .game-container {
        padding: 15px;
    }
    
    .game-stats {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 1024px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    .content-card {
        padding: 25px;
    }
    .logo {
        font-size: 20px;
    }
    .logo-subtext {
        font-size: 12px;
    }
    .card-title {
        font-size: 26px;
    }
    .skill-tags {
        gap: 8px;
    }
    .skill-tag {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* Parallax adjustments */
    .parallax-layer {
        transform: none !important;
    }
    
    .parallax-element {
        transform: none !important;
    }
    
    /* Game adjustments */
    .game-header {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .game-stats {
        justify-content: center;
    }
    
    .game-controls {
        text-align: center;
    }
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }
    
    #menu-bar {
        padding: 0 1rem;
        height: 70px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        backdrop-filter: blur(10px);
        background: rgba(0, 0, 0, 0.8);
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo-subtext {
        font-size: 0.75rem;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(15px);
        padding: 20px;
        z-index: 999;
        border-top: 1px solid rgba(255, 147, 41, 0.2);
    }
    
    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-item {
        padding: 12px 16px;
        margin: 5px 0;
        border-radius: 8px;
        text-align: center;
        transition: all 0.3s ease;
    }
    
    .nav-item:hover {
        background: rgba(255, 147, 41, 0.1);
        transform: translateX(5px);
    }
    
    .hamburger {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
        color: var(--text-primary);
        transition: color 0.3s ease;
    }
    
    .hamburger:hover {
        color: var(--primary-color);
    }
    
    .menu-controls {
        display: none;
    }
    
    .breadcrumb {
        display: block;
    }
    
    .section-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .content-card {
        padding: 20px;
    }
    
    .social-links {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    #loading-text {
        font-size: 16px;
        bottom: 80px;
    }
    
    #loading-progress {
        width: 250px;
    }
    
    .control-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .card-title {
        font-size: 22px;
    }
    
    .info-item {
        padding: 12px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .profile-info {
        gap: 15px;
    }
    
    .skill-category h4 {
        font-size: 18px;
    }
    
    .skill-tag {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .project-card {
        padding: 15px;
    }
    
    .social-card {
        padding: 15px;
    }
    
    .social-icon {
        font-size: 28px;
    }
    
    .whatsapp-btn {
        width: 45px;
        height: 45px;
    }
    
    .whatsapp-icon {
        width: 25px;
        height: 25px;
    }
    
    .candle {
        width: 6px;
        height: 16px;
    }
    
    .fire {
        width: 10px;
        height: 14px;
        top: -10px;
    }
    
    .fire-glow {
        width: 16px;
        height: 16px;
        top: -12px;
    }
    
    /* Game mobile optimizations */
    .game-container {
        padding: 10px;
    }
    
    #game-canvas {
        width: 100%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 3/2;
    }
    
    .game-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .game-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        font-size: 14px;
    }
    
    .game-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .game-controls {
        font-size: 12px;
        padding: 10px;
    }
    
    .leaderboard {
        max-height: 200px;
    }
    
    .achievement {
        padding: 8px;
        font-size: 12px;
    }
    
    /* Footer mobile */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 1rem 1rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        padding: 0.8rem 1rem;
    }
    
    .footer-actions {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    #content-overlay {
        padding-bottom: 80px;
        top: 70px;
        min-height: calc(100vh - 70px);
    }
    
    .content-section {
        padding: 20px;
    }
}

@media (max-width: 600px) {
    #content-overlay {
        top: 60px;
        min-height: calc(100vh - 60px);
    }
    
    #menu-bar {
        height: 60px;
        padding: 0 15px;
    }
    
    .nav-menu {
        top: 60px;
    }
    
    .section-grid {
        padding: 12px;
        gap: 12px;
    }
    
    .content-card {
        padding: 15px;
    }
    
    .card-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .skill-tags {
        gap: 8px;
    }
    
    .skill-tag {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .project-card {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .social-card {
        padding: 12px;
    }
    
    .social-icon {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .info-item {
        padding: 10px;
    }
    
    .whatsapp-btn {
        width: 40px;
        height: 40px;
    }
    
    .whatsapp-icon {
        width: 22px;
        height: 22px;
    }
    
    /* Game small screen */
    #game-canvas {
        max-width: 350px;
    }
    
    .game-stats {
        font-size: 12px;
    }
    
    .game-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .game-controls {
        font-size: 11px;
        padding: 8px;
    }
    
    .leaderboard {
        max-height: 150px;
    }
    
    .achievement {
        padding: 6px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    #menu-bar {
        padding: 0 15px;
        height: 55px;
    }
    
    .nav-menu {
        top: 55px;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .logo-subtext {
        font-size: 10px;
    }
    
    #content-overlay {
        top: 55px;
        min-height: calc(100vh - 55px);
    }
    
    .section-grid {
        padding: 10px;
        gap: 10px;
    }
    
    .content-card {
        padding: 12px;
    }
    
    #loading-text {
        font-size: 14px;
        bottom: 70px;
    }
    
    .download-resume {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    #loading-progress {
        width: 200px;
    }
    
    .card-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .info-item {
        padding: 8px;
    }
    
    .social-card {
        padding: 10px;
    }
    
    .social-icon {
        font-size: 20px;
    }
    
    .skill-category {
        margin-bottom: 15px;
    }
    
    .skill-category h4 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .project-card {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .project-title {
        font-size: 14px;
    }
    
    .project-tech {
        font-size: 12px;
    }
    
    .project-desc {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .breadcrumb {
        font-size: 12px;
    }
    
    .candle {
        width: 5px;
        height: 14px;
    }
    
    .fire {
        width: 8px;
        height: 12px;
        top: -8px;
    }
    
    .fire-glow {
        width: 14px;
        height: 14px;
        top: -10px;
    }
    
    .whatsapp-btn {
        width: 35px;
        height: 35px;
    }
    
    .whatsapp-icon {
        width: 20px;
        height: 20px;
    }
    
    /* Game very small screen */
    #game-canvas {
        max-width: 300px;
    }
    
    .game-container {
        padding: 8px;
    }
    
    .game-header {
        gap: 8px;
    }
    
    .game-stats {
        font-size: 11px;
        gap: 6px;
    }
    
    .game-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .game-controls {
        font-size: 10px;
        padding: 6px;
    }
    
    .leaderboard {
        max-height: 120px;
    }
    
    .achievement {
        padding: 5px;
        font-size: 10px;
    }
    
    /* Footer very small screen */
    .footer-container {
        padding: 1rem 1rem 0.8rem;
    }
    
    .footer-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .footer-btn {
        justify-content: center;
    }
    
    #content-overlay {
        padding-bottom: 60px;
    }
    
    .content-section {
        padding: 15px;
    }
}

@media (max-width: 360px) {
    .logo {
        font-size: 14px;
    }
    
    .logo-subtext {
        font-size: 9px;
    }
    
    .section-grid {
        padding: 8px;
    }
    
    .content-card {
        padding: 10px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .skill-tag {
        padding: 3px 6px;
        font-size: 10px;
    }
    
    #loading-text {
        font-size: 12px;
    }
    
    #loading-progress {
        width: 180px;
    }
    
    /* Game tiny screen */
    #game-canvas {
        max-width: 250px;
    }
    
    .game-stats {
        font-size: 10px;
    }
    
    .game-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .game-controls {
        font-size: 9px;
    }
    
    .achievement {
        font-size: 9px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    #menu-bar {
        height: 50px;
    }
    
    .nav-menu {
        top: 50px;
    }
    
    #content-overlay {
        top: 50px;
        min-height: calc(100vh - 50px);
    }
    
    .section-grid {
        gap: 10px;
        padding: 10px;
    }
    
    .content-card {
        padding: 15px;
    }
    
    .card-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    /* Game landscape */
    #game-canvas {
        max-height: 200px;
        width: auto;
    }
    
    .game-container {
        padding: 8px;
    }
    
    .game-header {
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }
    
    .game-stats {
        font-size: 12px;
    }
    
    .game-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .candle, .fire, .fire-glow {
        transform: scale(0.8);
    }
    
    .social-icon {
        font-size: 1.2em;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .parallax-layer,
    .parallax-element {
        transform: none !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0a0a0a;
        --bg-secondary: #1a1a1a;
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
    }
}

/* Print styles */
@media print {
    .candle-container,
    .whatsapp-btn,
    .game-container,
    .footer {
        display: none !important;
    }
    
    .content-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Touch device enhancements */
.touch-device .nav-item,
.touch-device .social-card,
.touch-device .game-btn,
.touch-device .skill-tag {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.touch-device .hamburger {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Improved mobile navigation */
.hamburger {
    transition: transform 0.3s ease, color 0.3s ease;
}

.hamburger:hover {
    color: var(--primary-color);
}

/* Mobile menu improvements */
.nav-menu {
    transition: all 0.3s ease;
}

.nav-menu.active {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile game improvements */
@media (max-width: 768px) {
    .game-container {
        touch-action: manipulation;
    }
    
    #game-canvas {
        touch-action: none;
    }
    
    .game-btn {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .social-card {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .nav-item {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Prevent zoom on input focus on iOS */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    select,
    textarea,
    input {
        font-size: 16px;
    }
}

/* Improved scrollbar for mobile */
@media (max-width: 768px) {
    #content-overlay::-webkit-scrollbar {
        width: 4px;
    }
    
    #content-overlay::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
    }
    
    #content-overlay::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 2px;
    }
}

/* Mobile performance optimizations */
@media (max-width: 768px) {
    .parallax-layer,
    .parallax-element {
        will-change: auto;
    }
    
    .content-card {
        will-change: auto;
    }
    
    /* Reduce animations on mobile for better performance */
    .candle-container {
        animation-duration: 8s;
    }
    
    .fire {
        animation-duration: 3s;
    }
    
    .fire-glow {
        animation-duration: 4s;
    }
}

/* Enhanced mobile footer */
@media (max-width: 768px) {
    .footer {
        position: relative;
        margin-top: 2rem;
    }
    
    .footer-container {
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-link {
        padding: 0.5rem 0;
        border-radius: 6px;
        transition: background-color 0.3s ease;
    }
    
    .footer-link:hover {
        background: rgba(255, 147, 41, 0.1);
    }
}

/* Mobile accessibility improvements */
@media (max-width: 768px) {
    .nav-item:focus,
    .social-card:focus,
    .game-btn:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    .hamburger:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
        border-radius: 4px;
    }
}

/* Mobile loading improvements */
@media (max-width: 768px) {
    #loading {
        padding: 1rem;
    }
    
    #loading-text {
        font-size: 1rem;
        text-align: center;
    }
    
    #loading-progress {
        width: 100%;
        max-width: 250px;
    }
}