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

:root {
    --bg-dark: #0a0a0f;
    --bg-card: #16161d;
    --text-primary: #e8e8ee;
    --text-secondary: #9090a0;
    --accent-1: #7c3aed;
    --accent-2: #06b6d4;
    --accent-3: #ec4899;
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Courier New', Courier, monospace;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 1rem 6rem;
}

.glitch {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    letter-spacing: 0.1em;
    background: linear-gradient(45deg, var(--accent-1), var(--accent-2), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease infinite;
    background-size: 200% 200%;
}

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

.glitch:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes glitch {
    0%, 100% { 
        transform: translate(0);
        text-shadow: 
            -2px 0 var(--accent-1),
            2px 0 var(--accent-2);
    }
    33% { 
        transform: translate(-2px, 2px);
        text-shadow: 
            2px -2px var(--accent-1),
            -2px 2px var(--accent-2);
    }
    66% { 
        transform: translate(2px, -2px);
        text-shadow: 
            -2px 2px var(--accent-3),
            2px -2px var(--accent-1);
    }
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

@media (max-width: 768px) {
    .project-card.featured {
        grid-template-columns: 1fr;
    }
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-1);
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.3);
}

.project-card.coming-soon {
    opacity: 0.6;
}

.project-card.coming-soon:hover {
    opacity: 0.8;
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
}

/* Project Preview */
.project-preview {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.preview-animation {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Orb Animation */
.orb-preview {
    background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.2), transparent 70%);
}

.orb {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #a78bfa, #7c3aed);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.6);
    animation: float 3s ease-in-out infinite, pulse 2s ease-in-out infinite;
}

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

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

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 10px var(--accent-2);
}

.particle:nth-child(2) {
    animation: orbit 4s linear infinite;
    transform-origin: 0 0;
}

.particle:nth-child(3) {
    animation: orbit 5s linear infinite reverse;
    background: var(--accent-3);
    box-shadow: 0 0 10px var(--accent-3);
}

.particle:nth-child(4) {
    animation: orbit 6s linear infinite;
    background: var(--accent-1);
    box-shadow: 0 0 10px var(--accent-1);
}

@keyframes orbit {
    from { 
        transform: rotate(0deg) translateX(100px) rotate(0deg);
    }
    to { 
        transform: rotate(360deg) translateX(100px) rotate(-360deg);
    }
}

/* Coming Soon Placeholder */
.placeholder-icon {
    font-size: 5rem;
    color: var(--text-secondary);
    opacity: 0.3;
    animation: pulse-slow 3s ease-in-out infinite;
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.05); }
}

/* Companion Preview */
.companion-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.2), transparent 70%);
}

.preview-companion {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #a78bfa, #7c3aed);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.6);
    animation: companion-float 3s ease-in-out infinite, companion-glow 2s ease-in-out infinite;
    position: relative;
}

.preview-companion::before,
.preview-companion::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 35%;
}

.preview-companion::before {
    left: 30%;
}

.preview-companion::after {
    right: 30%;
}

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

@keyframes companion-glow {
    0%, 100% { 
        box-shadow: 0 0 40px rgba(124, 58, 237, 0.6);
    }
    50% { 
        box-shadow: 0 0 60px rgba(124, 58, 237, 0.9);
    }
}

/* Boundaries Preview */
.boundaries-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.15), transparent 70%);
}

.boundaries-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #a78bfa, #7c3aed);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
    animation: boundaries-float 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.boundaries-ring {
    position: absolute;
    width: 160px;
    height: 160px;
    border: 3px solid rgba(124, 58, 237, 0.4);
    border-radius: 50%;
    animation: boundaries-pulse 2s ease-in-out infinite;
    z-index: 1;
}

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

@keyframes boundaries-pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.4;
        border-color: rgba(124, 58, 237, 0.4);
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.6;
        border-color: rgba(124, 58, 237, 0.6);
    }
}

/* Wahala IT Preview */
.wahala-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.15), transparent 70%);
    overflow: hidden;
}

.wahala-logo {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    animation: wahala-rotate 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.wahala-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(16, 185, 129, 0.6), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(16, 185, 129, 0.6), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(16, 185, 129, 0.4), transparent),
        radial-gradient(2px 2px at 80% 10%, rgba(16, 185, 129, 0.6), transparent),
        radial-gradient(1px 1px at 90% 60%, rgba(16, 185, 129, 0.4), transparent),
        radial-gradient(2px 2px at 33% 85%, rgba(16, 185, 129, 0.6), transparent),
        radial-gradient(1px 1px at 15% 75%, rgba(16, 185, 129, 0.4), transparent);
    background-size: 200% 200%;
    animation: wahala-particles 8s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes wahala-rotate {
    0%, 100% { 
        transform: rotate(0deg) scale(1);
        box-shadow: 0 0 40px rgba(16, 185, 129, 0.5);
    }
    25% {
        transform: rotate(-5deg) scale(1.05);
        box-shadow: 0 0 50px rgba(16, 185, 129, 0.7);
    }
    50% { 
        transform: rotate(0deg) scale(1);
        box-shadow: 0 0 40px rgba(16, 185, 129, 0.5);
    }
    75% {
        transform: rotate(5deg) scale(1.05);
        box-shadow: 0 0 50px rgba(16, 185, 129, 0.7);
    }
}

@keyframes wahala-particles {
    0%, 100% { 
        background-position: 0% 0%, 100% 100%, 50% 50%, 0% 100%, 100% 0%, 33% 85%, 15% 75%;
        opacity: 0.6;
    }
    50% { 
        background-position: 100% 100%, 0% 0%, 25% 75%, 100% 0%, 0% 100%, 66% 15%, 85% 25%;
        opacity: 0.8;
    }
}

/* Project Info */
.project-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-info h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
}

/* Tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(124, 58, 237, 0.2);
    color: var(--accent-1);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

/* Button */
.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

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

.btn-play:hover::before {
    left: 100%;
}

.btn-play:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(124, 58, 237, 0.5);
}

.btn-play svg {
    transition: transform 0.3s ease;
}

.btn-play:hover svg {
    transform: translateX(5px);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

/* Music Controls */
#music-controls {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(22, 22, 29, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.8rem;
    border-radius: 50px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#music-controls:hover {
    border-color: rgba(124, 58, 237, 0.6);
    box-shadow: 0 4px 30px rgba(124, 58, 237, 0.4);
}

.music-btn {
    background: transparent;
    border: none;
    color: var(--accent-1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.music-btn:hover {
    background: rgba(124, 58, 237, 0.2);
    transform: scale(1.1);
}

.music-btn:active {
    transform: scale(0.95);
}

/* Pulse animation to draw attention on page load */
@keyframes pulse-music {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(124, 58, 237, 0);
    }
}

#music-controls.needs-interaction {
    animation: pulse-music 2s ease-in-out 3;
}

#music-controls.needs-interaction .music-btn {
    background: rgba(124, 58, 237, 0.3);
}

.volume-control {
    display: flex;
    align-items: center;
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

#music-controls:hover .volume-control {
    opacity: 1;
    width: 100px;
}

#volume-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(124, 58, 237, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent-1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

#volume-slider::-webkit-slider-thumb:hover {
    background: var(--accent-2);
    transform: scale(1.2);
}

#volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--accent-1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

#volume-slider::-moz-range-thumb:hover {
    background: var(--accent-2);
    transform: scale(1.2);
}

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

    .hero {
        padding: 2rem 1rem 3rem;
    }

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

    .project-info {
        padding: 1.5rem;
    }

    #music-controls {
        bottom: 20px;
        right: 20px;
        padding: 0.8rem;
        /* Always show volume control on mobile for easier access */
        flex-direction: row;
    }

    .volume-control {
        /* Show volume control by default on mobile */
        opacity: 1;
        width: 80px;
    }

    .music-btn {
        width: 44px;
        height: 44px;
        /* Larger tap target for mobile */
    }

    #volume-slider {
        /* Larger slider for easier touch control */
        height: 6px;
    }

    #volume-slider::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
    }

    #volume-slider::-moz-range-thumb {
        width: 18px;
        height: 18px;
    }
}

