
:root {
    /* Core Palette - Deep Ocean */
    --bg-primary: #050a14;
    --bg-secondary: #0a1525;
    --bg-tertiary: #0f1f35;
    
    /* Ocean Accents */
    --ocean-cyan: #00d4ff;
    --deep-blue: #0066ff;
    --aqua-green: #00ffcc;
    --bioluminescent: #39ff14;
    --coral-pink: #ff6b9d;
    
    /* Muted/Dimmed for text */
    --dim-cyan: rgba(0, 212, 255, 0.6);
    --dim-blue: rgba(0, 102, 255, 0.6);
    --dim-aqua: rgba(0, 255, 204, 0.6);
    
    /* Text */
    --text-primary: #e0f7ff;
    --text-secondary: #90c4d8;
    --text-dim: #5a8a9e;
    
    /* Grid */
    --grid-color: rgba(0, 212, 255, 0.08);
    
    /* Fonts */
    --font-mono: 'VT323', 'Share Tech Mono', monospace;
    --font-display: 'Orbitron', 'Audiowide', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Share+Tech+Mono&family=VT323&display=swap');

body {
    font-family: var(--font-mono);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 4px
    );
    pointer-events: none;
    z-index: 9998;
    opacity: 0.6;
}

#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, rgba(5, 10, 20, 0.3) 0%, rgba(5, 10, 20, 0.7) 100%),
        linear-gradient(to bottom, rgba(5, 10, 20, 0.4) 0%, rgba(5, 10, 20, 0.2) 50%, rgba(5, 10, 20, 0.6) 100%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.main-header {
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    background: rgba(5, 10, 20, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 8px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--ocean-cyan);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-shadow: 
        0 0 10px var(--ocean-cyan),
        0 0 20px var(--ocean-cyan),
        0 0 40px var(--deep-blue);
    animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
    0%, 100% {
        text-shadow: 
            0 0 10px var(--ocean-cyan),
            0 0 20px var(--ocean-cyan),
            0 0 40px var(--deep-blue);
    }
    50% {
        text-shadow: 
            0 0 20px var(--ocean-cyan),
            0 0 40px var(--ocean-cyan),
            0 0 60px var(--deep-blue);
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-links a::before {
    content: '>';
    position: absolute;
    left: -1.2rem;
    opacity: 0;
    color: var(--aqua-green);
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--aqua-green);
    text-shadow: 0 0 10px var(--aqua-green);
}

.nav-links a:hover::before {
    opacity: 1;
}

.hero {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    background: rgba(5, 10, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 8px;
    margin: 2rem 0;
}

.hero::before {
    content: '◆ ◆ ◆';
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--dim-cyan);
    font-size: 0.8rem;
    letter-spacing: 2rem;
}

.terminal-prompt {
    font-size: 1rem;
    color: var(--bioluminescent);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    background: linear-gradient(
        180deg,
        var(--ocean-cyan) 0%,
        var(--deep-blue) 50%,
        var(--aqua-green) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
}

.hero-tagline {
    font-size: 1.3rem;
    color: var(--coral-pink);
    font-style: italic;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.hero-bio {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    padding: 1.2rem 2rem;
    background: rgba(5, 10, 20, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.25);
    max-width: 700px;
    margin: 2rem auto;
    flex-wrap: wrap;
    border-radius: 8px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.status-label {
    color: var(--text-dim);
}

.status-value {
    color: var(--ocean-cyan);
}

/* Game Stats */
.game-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat-card {
    background: rgba(10, 21, 37, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 1.5rem 2rem;
    min-width: 150px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.stat-card:hover {
    border-color: var(--ocean-cyan);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.35);
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--aqua-green);
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Live Indicator */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #00ff64;
    border-radius: 50%;
    animation: live-pulse 2s infinite;
    box-shadow: 0 0 10px #00ff64;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.roles-container {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1.5rem 0 2rem;
}

.role-badge {
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--ocean-cyan);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: rgba(0, 102, 255, 0.15);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.role-badge:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--ocean-cyan);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.section-header {
    margin: 4rem 0 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--dim-cyan);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100px;
    height: 1px;
    background: var(--ocean-cyan);
    box-shadow: 0 0 10px var(--ocean-cyan);
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--ocean-cyan);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.section-prefix {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(10, 21, 37, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 212, 255, 0.25);
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--ocean-cyan);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--ocean-cyan);
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.2),
        inset 0 0 20px rgba(0, 212, 255, 0.05);
    transform: translateX(5px);
}

.project-card:hover::before {
    opacity: 1;
    box-shadow: 0 0 10px var(--ocean-cyan);
}

.featured-card {
    border-color: var(--aqua-green);
}

.featured-card::before {
    background: var(--aqua-green);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--aqua-green);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.project-year {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.project-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--dim-cyan);
    color: var(--ocean-cyan);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 4px;
}

.project-stats .stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.project-stats .stat-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.project-stats .stat-value {
    font-size: 0.95rem;
    color: var(--ocean-cyan);
    font-weight: 500;
}

.project-stats .live-indicator {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.project-stats .live-dot {
    width: 8px;
    height: 8px;
    background: var(--bioluminescent);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 8px var(--bioluminescent);
}

.project-stats .live-text {
    font-size: 0.75rem;
    color: var(--bioluminescent);
    font-weight: 600;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    padding: 0.25rem 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--text-dim);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-link {
    color: var(--ocean-cyan);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--aqua-green);
    text-shadow: 0 0 10px var(--aqua-green);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    background: rgba(10, 21, 37, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.15);
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 4px;
}

.skill-item:hover {
    border-color: var(--ocean-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
    transform: translateY(-2px);
}

.skill-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.skill-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.skill-name {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skill-category {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.skill-bar {
    height: 3px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    width: 100%;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--ocean-cyan), var(--aqua-green));
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
    animation: fillBar 1.5s ease-out forwards;
    max-width: 100%;
}

@keyframes fillBar {
    from { width: 0; }
}

.main-footer {
    margin-top: 6rem;
    padding: 3rem 0;
    border-top: 1px solid var(--dim-cyan);
    text-align: center;
}

.footer-text {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--ocean-cyan);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-mono);
}

.footer-link:hover {
    color: var(--aqua-green);
    text-shadow: 0 0 10px var(--aqua-green);
}

/* UI Toggle Button */
.ui-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(10, 21, 37, 0.9);
    border: 2px solid var(--ocean-cyan);
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.ui-toggle:hover {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
    transform: scale(1.1);
}

body.bg-only .container {
    opacity: 0;
    pointer-events: none;
}

body.bg-only .ui-toggle {
    opacity: 0.5;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.cursor-blink::after {
    content: '█';
    animation: blink 1s infinite;
    color: var(--ocean-cyan);
    margin-left: 0.2rem;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .status-bar {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .game-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-card {
        width: 100%;
        max-width: 200px;
    }
}

/* Import cursor glow effect */
.cursor-glow {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 20px 5px rgba(0, 212, 255, 0.8),
        0 0 40px 10px rgba(0, 212, 255, 0.4),
        0 0 60px 15px rgba(0, 212, 255, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.8);
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(0, 212, 255, 0.8) 30%, 
        rgba(0, 212, 255, 0) 70%);
}

body.cursor-glow-active {
    cursor: none;
}

body.cursor-glow-active * {
    cursor: none !important;
}

.cursor-ripple {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(0, 212, 255, 0.8);
    animation: ripple-expand 0.6s ease-out forwards;
}

@keyframes ripple-expand {
    0% { width: 20px; height: 20px; opacity: 1; }
    100% { width: 80px; height: 80px; opacity: 0; }
}

.cursor-glow.hovering {
    box-shadow: 
        0 0 30px 8px rgba(255, 0, 255, 0.9),
        0 0 60px 15px rgba(255, 0, 255, 0.5),
        0 0 90px 25px rgba(255, 0, 255, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 1);
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 0, 255, 0.9) 30%, 
        rgba(255, 0, 255, 0) 70%);
}

.cursor-glow.clicking {
    transform: translate(-50%, -50%) scale(0.8);
}

.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    background: rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 10px 2px rgba(0, 212, 255, 0.6);
}