/*
Theme Name: Nacho Pereira - Cyberpunk Portfolio
Description: A futuristic cyberpunk WordPress theme for visual artist, AI specialist, DJ, and video game creator Nacho Pereira. Features Three.js animations, neon aesthetics, and portfolio management.
Author: Nacho Pereira
Version: 1.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Orbitron', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #0a0a0a;
    overflow-x: hidden;
    position: relative;
}

/* Cyberpunk Background Grid */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: -1;
    animation: gridPulse 4s ease-in-out infinite alternate;
}

@keyframes gridPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.1; }
}

/* Three.js Canvas */
#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -2;
    pointer-events: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Cyberpunk Neon Glow Effects */
.neon-text {
    color: #00ffff;
    text-shadow:
        0 0 5px #00ffff,
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 40px #00ffff;
    animation: neonFlicker 2s infinite alternate;
}

@keyframes neonFlicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow:
            0 0 5px #00ffff,
            0 0 10px #00ffff,
            0 0 20px #00ffff,
            0 0 40px #00ffff;
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

.neon-border {
    border: 2px solid #ff0080;
    box-shadow:
        0 0 10px #ff0080,
        inset 0 0 10px rgba(255, 0, 128, 0.1);
    position: relative;
}

.neon-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff0080, #00ffff, #ff0080, #00ffff);
    border-radius: inherit;
    z-index: -1;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #00ffff;
}

.nav-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff0080 0%, #00ffff 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.nav-name {
    font-size: 18px;
    color: #e0e0e0;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #b0b0b0;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
}

.nav-link:hover {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff0080, #00ffff);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.cta-button {
    background: linear-gradient(135deg, #ff0080 0%, #00ffff 100%);
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transform: translateY(0);
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 0, 128, 0.5);
}

.cta-button::after {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 20% 80%, rgba(255, 0, 128, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
                linear-gradient(135deg, rgba(10, 10, 10, 0.9), rgba(20, 20, 20, 0.9));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: glitchIn 1s ease-out;
}

@keyframes glitchIn {
    0% {
        transform: translate3d(20px, 0, 0) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
        filter: brightness(1) blur(0px);
        opacity: 0;
    }
    10% {
        transform: translate3d(-20px, 0, 0) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
        filter: brightness(1) blur(0px);
        opacity: 1;
    }
    20% {
        transform: translate3d(20px, 0, 0) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
        filter: brightness(1) blur(0px);
        opacity: 1;
    }
    30% {
        transform: translate3d(-20px, 0, 0) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
        filter: brightness(1) blur(1px);
        opacity: 1;
    }
    40% {
        transform: translate3d(20px, 0, 0) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
        filter: brightness(1) blur(0px);
        opacity: 1;
    }
    50% {
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
        filter: brightness(1) blur(0px);
        opacity: 1;
    }
    100% {
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
        filter: brightness(1) blur(0px);
        opacity: 1;
    }
}

.hero-badge {
    display: inline-block;
    margin-bottom: 24px;
    animation: slideInFromTop 1s ease-out 0.2s both;
}

.badge-text {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #e0e0e0;
    animation: slideInFromLeft 1s ease-out 0.4s both;
    font-family: 'Orbitron', sans-serif;
}

.title-accent {
    display: block;
    background: linear-gradient(135deg, #ff0080 0%, #00ffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    margin-top: 10px;
    text-shadow: none;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.3));
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 600;
    color: #b0b0b0;
    margin-bottom: 16px;
    animation: slideInFromRight 1s ease-out 0.6s both;
}

.hero-description {
    font-size: 18px;
    color: #808080;
    margin-bottom: 32px;
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 48px;
    animation: fadeInUp 1s ease-out 1s both;
    flex-wrap: wrap;
}

.cta-primary {
    background: linear-gradient(135deg, #ff0080 0%, #00ffff 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.3);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 0, 128, 0.4);
}

.cta-secondary {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.cta-secondary:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.3);
}

.hero-stats {
    display: flex;
    gap: 40px;
    animation: fadeInUp 1s ease-out 1.2s both;
    flex-wrap: wrap;
}

.stat {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff0080 0%, #00ffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    font-family: 'Orbitron', sans-serif;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.3));
}

.stat-label {
    font-size: 14px;
    color: #808080;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid #00ffff;
    border-bottom: 2px solid #00ffff;
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Sections */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 16px;
    font-family: 'Orbitron', sans-serif;
}

.section-subtitle {
    font-size: 18px;
    color: #808080;
    max-width: 600px;
    margin: 0 auto;
}

/* Portfolio Section */
.portfolio {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
}

.portfolio-categories {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.category-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}

.category-filter {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    border: 2px solid rgba(0, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-filter:hover,
.category-filter.active {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

.parent-category {
    background: rgba(255, 0, 128, 0.1);
    color: #ff0080;
    border-color: rgba(255, 0, 128, 0.3);
    font-weight: 600;
}

.parent-category:hover,
.parent-category.active,
.parent-category.parent-active {
    background: rgba(255, 0, 128, 0.2);
    border-color: #ff0080;
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.3);
}

.parent-category.parent-active {
    background: rgba(255, 0, 128, 0.15);
    border-color: rgba(255, 0, 128, 0.6);
}

.subcategory {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 20px;
    text-transform: none;
    font-weight: 400;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.subcategory:hover,
.subcategory.active {
    background: rgba(0, 255, 255, 0.15);
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.category-count {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    font-family: 'Orbitron', monospace;
}

.subcategories-dropdown {
    position: relative;
}

.subcategories-toggle {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #00ffff;
    margin-left: 4px;
}

.subcategories-toggle:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.toggle-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.subcategories-toggle.open .toggle-icon {
    transform: rotate(180deg);
}

.subcategories-list {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 16px;
    padding: 16px;
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.subcategories-list.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.subcategories-list::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(0, 255, 255, 0.3);
}

.no-portfolio-items {
    text-align: center;
    padding: 60px 20px;
    color: #808080;
    font-style: italic;
    background: rgba(20, 20, 20, 0.5);
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.no-portfolio-items p {
    margin: 0;
    font-size: 16px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.portfolio-item {
    background: rgba(20, 20, 20, 0.8);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 0, 128, 0.2);
    backdrop-filter: blur(20px);
}

.portfolio-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(255, 0, 128, 0.2);
    border-color: rgba(255, 0, 128, 0.5);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(45deg, rgba(255, 0, 128, 0.1), rgba(0, 255, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-content {
    padding: 24px;
}

.portfolio-title {
    font-size: 20px;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 8px;
    font-family: 'Orbitron', sans-serif;
}

.portfolio-category {
    color: #00ffff;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.portfolio-description {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 16px;
}

.portfolio-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.portfolio-tag {
    background: rgba(255, 0, 128, 0.1);
    color: #ff0080;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(255, 0, 128, 0.2);
}

/* YouTube Integration */
.youtube-video {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.youtube-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-overlay:hover {
    background: rgba(0, 0, 0, 0.1);
}

.play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 0, 128, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(255, 0, 128, 0.5);
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(255, 0, 128, 0.7);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.1) 0%, rgba(0, 255, 255, 0.1) 100%);
    border: 1px solid rgba(0, 255, 255, 0.2);
    color: #e0e0e0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
    color: #e0e0e0;
}

.contact-info p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
    color: #b0b0b0;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 16px;
    border-radius: 12px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.contact-method:hover {
    transform: translateX(8px);
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.contact-icon {
    font-size: 24px;
    color: #00ffff;
}

.contact-method div {
    display: flex;
    flex-direction: column;
}

.contact-method strong {
    font-weight: 600;
    margin-bottom: 2px;
    color: #e0e0e0;
}

.contact-method span:last-child {
    opacity: 0.8;
    font-size: 14px;
    color: #b0b0b0;
}

/* Contact Form */
.contact-form {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 0, 128, 0.2);
    box-shadow: 0 0 40px rgba(255, 0, 128, 0.1);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: #e0e0e0;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ffff;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.form-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff0080 0%, #00ffff 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.3);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 0, 128, 0.4);
}

/* Footer */
.footer {
    background: rgba(10, 10, 10, 0.95);
    color: #e0e0e0;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 40px;
    gap: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .nav-logo {
    margin-bottom: 16px;
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.6;
    color: #b0b0b0;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
    color: #808080;
}

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

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

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: start;
        padding-top: 60px;
        transition: left 0.3s ease;
        border-right: 1px solid rgba(0, 255, 255, 0.2);
    }

    .portfolio-categories {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        max-width: none;
        padding: 0 20px;
    }

    .category-group {
        width: 100%;
        max-width: 300px;
        flex-direction: column;
        gap: 8px;
    }

    .category-filter {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 14px;
    }

    .parent-category {
        font-size: 15px;
        font-weight: 700;
    }

    .subcategories-dropdown {
        width: 100%;
    }

    .subcategories-toggle {
        width: 40px;
        height: 40px;
        margin: 0 auto;
    }

    .subcategories-list {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 8px;
        opacity: 1;
        visibility: visible;
        display: none;
        background: rgba(15, 15, 15, 0.95);
        border: 1px solid rgba(0, 255, 255, 0.2);
    }

    .subcategories-list.show {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    .subcategories-list::before {
        display: none;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 4px;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background: #00ffff;
        transition: all 0.3s ease;
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .cta-primary,
    .cta-secondary {
        text-align: center;
        width: 100%;
        max-width: 280px;
    }

    .hero-stats {
        justify-content: center;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-categories {
        flex-direction: column;
        align-items: center;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .contact-form {
        padding: 24px;
    }

    .portfolio-item {
        margin: 0 10px;
    }
}

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

/* High contrast support */
@media (prefers-contrast: high) {
    .nav {
        border-bottom: 2px solid #00ffff;
    }

    .portfolio-item,
    .contact-form {
        border: 2px solid #ff0080;
    }

    .neon-text {
        text-shadow: none;
        color: #ffffff;
    }
}

/* Music Item Template Styles */
.music-item-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.add-to-player-btn {
    background: linear-gradient(135deg, #ff0080, #8000ff);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.add-to-player-btn:hover {
    background: linear-gradient(135deg, #ff3399, #9933ff);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 128, 0.3);
}

.add-to-player-btn:active {
    transform: translateY(0);
}

.add-to-player-btn::before {
    content: "♫";
    font-size: 1.1em;
}

/* Auto-resume visual indicators */
.persistent-player.awaiting-interaction {
    border: 2px solid #ff0080;
    box-shadow: 0 0 30px rgba(255, 0, 128, 0.5);
    animation: awaitingInteractionPulse 2s ease-in-out infinite;
}

@keyframes awaitingInteractionPulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 0, 128, 0.3);
        border-color: rgba(255, 0, 128, 0.6);
    }
    50% {
        box-shadow: 0 0 50px rgba(255, 0, 128, 0.8);
        border-color: rgba(255, 0, 128, 1);
    }
}

.player-button.awaiting-resume {
    animation: awaitingResumePulse 1.5s ease-in-out infinite;
    background: linear-gradient(135deg, #ff0080 0%, #8000ff 50%, #00ffff 100%);
}

@keyframes awaitingResumePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 0, 128, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 40px rgba(255, 0, 128, 0.8);
    }
}