/* ===== RESET E CONFIGURAÇÕES BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores principais - Paleta Preto, Branco e Laranja */
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-orange-primary: #FF7F00;
    --color-orange-dark: #CC6600;
    
    /* Cores de texto */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-disabled: rgba(255, 255, 255, 0.4);
    
    /* Cores de fundo */
    --bg-primary: #000000;
    --bg-secondary: #0A0A0A;
    --bg-tertiary: #111111;
    
    /* Links */
    --link-default: #FF7F00;
    --link-hover: #CC6600;
    
    /* Botões primários */
    --btn-primary-bg: #FF7F00;
    --btn-primary-text: #FFFFFF;
    --btn-primary-hover: #CC6600;
    
    /* Botões secundários */
    --btn-secondary-bg: transparent;
    --btn-secondary-border: #FF7F00;
    --btn-secondary-text: #FF7F00;
    --btn-secondary-hover-bg: rgba(255, 127, 0, 0.12);
    
    /* Bordas e divisores */
    --border-color: #333333;
    --border-color-light: rgba(255, 255, 255, 0.1);
    
    /* Focus ring */
    --focus-ring-color: #FF7F00;
    --focus-ring-shadow: 0 0 0 2px rgba(255, 127, 0, 0.3);
    
    /* Inputs e formulários */
    --input-bg: #111111;
    --input-placeholder: rgba(255, 255, 255, 0.6);
    
    /* Estados de feedback */
    --success-bg: #0F3;
    --success-text: #FFFFFF;
    --warning-bg: #FF7F00;
    --warning-text: #FFFFFF;
    --error-bg: #E53935;
    --error-text: #FFFFFF;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #FF7F00 0%, #CC6600 100%);
    --gradient-secondary: linear-gradient(135deg, #FF7F00 0%, #FF7F00 100%);
    --gradient-accent: linear-gradient(135deg, #FF7F00 0%, #CC6600 100%);
    --gradient-dark: linear-gradient(135deg, #1A1A1A 0%, #000000 100%);
    
    /* Sombras */
    --shadow-light: 0 5px 15px rgba(255, 127, 0, 0.1);
    --shadow-medium: 0 10px 30px rgba(255, 127, 0, 0.15);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.4);
    
    /* Tipografia */
    --font-primary: 'Inter', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
    
    /* Transições */
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.4s ease-in-out;
    --transition-slow: 0.6s ease-in-out;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== BACKGROUND PARTICLES ===== */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
}

#particles-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #7eddf0, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 90px 40px, #ff6b6b, transparent),
        radial-gradient(1px 1px at 130px 80px, #4ecdc4, transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255, 255, 255, 0.1), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
    from { transform: translateY(0px); }
    to { transform: translateY(-100px); }
}

/* ===== AUDIO VISUALIZER ===== */
.audio-visualizer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: 3px;
    z-index: -1;
    opacity: 0.1;
}

/* ===== CONTROLE DE MÚSICA AMBIENTE ===== */
.ambient-music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(26, 26, 46, 0.9);
    padding: 10px 15px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition-medium);
    transform: translateY(100px);
    opacity: 0;
}

.ambient-music-control.show {
    transform: translateY(0);
    opacity: 1;
}

.ambient-music-control.playing {
    border-color: rgba(25, 118, 210, 0.5);
    box-shadow: 0 0 20px rgba(25, 118, 210, 0.3);
}

.ambient-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    font-size: 16px;
}

.ambient-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.ambient-btn.playing {
    background: var(--gradient-secondary);
}

.ambient-volume {
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.ambient-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.ambient-volume::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.audio-visualizer .bar {
    width: 4px;
    background: var(--gradient-accent);
    border-radius: 2px 2px 0 0;
    animation: equalizer 2s ease-in-out infinite;
}

.audio-visualizer .bar:nth-child(1) { height: 40px; animation-delay: 0.1s; }
.audio-visualizer .bar:nth-child(2) { height: 60px; animation-delay: 0.2s; }
.audio-visualizer .bar:nth-child(3) { height: 80px; animation-delay: 0.3s; }
.audio-visualizer .bar:nth-child(4) { height: 50px; animation-delay: 0.4s; }
.audio-visualizer .bar:nth-child(5) { height: 90px; animation-delay: 0.5s; }
.audio-visualizer .bar:nth-child(6) { height: 70px; animation-delay: 0.6s; }
.audio-visualizer .bar:nth-child(7) { height: 45px; animation-delay: 0.7s; }
.audio-visualizer .bar:nth-child(8) { height: 85px; animation-delay: 0.8s; }
.audio-visualizer .bar:nth-child(9) { height: 55px; animation-delay: 0.9s; }
.audio-visualizer .bar:nth-child(10) { height: 75px; animation-delay: 1s; }

@keyframes equalizer {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1.5); }
}

/* ===== NAVEGAÇÃO ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: var(--transition-medium);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-logo {
    font-family: var(--font-code);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-orange-primary);
}

.logo-bracket {
    color: var(--color-orange-dark);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-orange-primary);
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-orange-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition-fast);
}

/* ===== SEÇÃO HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 1; /* Garante que o texto venha primeiro no mobile */
    min-height: 400px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.typing-text {
    display: block;
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.name-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(180deg); }
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.code-symbol {
    color: var(--color-orange-dark);
    font-family: var(--font-code);
}

.music-note {
    color: var(--color-orange-primary);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-medium);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-secondary {
    background: transparent;
    color: var(--color-orange-primary);
    border: 2px solid var(--color-orange-primary);
}

.btn-secondary:hover {
    background: var(--color-orange-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* ===== TERMINAL VISUAL (VS CODE STYLE) ===== */
.code-terminal {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid #2d2d30;
    max-width: 500px;
    width: 100%;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.terminal-header {
    background: #2d2d30;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #3e3e42;
}

.terminal-buttons {
    display: flex;
    gap: 0.4rem;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
    cursor: pointer;
    transition: opacity 0.2s;
}

.terminal-buttons span:hover {
    opacity: 0.8;
}

.btn-close { background: #ff5f56; }
.btn-minimize { background: #ffbd2e; }
.btn-maximize { background: #27ca3f; }

.terminal-title {
    color: #cccccc;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 400;
}

.terminal-body {
    padding: 1.25rem 1.5rem;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    background: #1e1e1e;
    overflow-x: auto; /* Permite scroll horizontal se necessário */
    color: #d4d4d4;
    min-height: 180px;
}

.code-line {
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
    white-space: pre; /* Mantém a formatação do código */
    overflow: hidden;
}

.code-line .prompt {
    color: #569cd6; /* VS Code blue for keywords */
    font-weight: 500;
    margin-right: 0.5rem;
}

.code-line .command {
    color: #d4d4d4; /* VS Code default text */
}

.code-line.output {
    color: #ce9178; /* VS Code string color */
    margin-left: 2rem;
    position: relative;
}

.code-line.output::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    color: #6a9955;
}

/* Cores específicas para diferentes elementos do código */
.code-line .string {
    color: #ce9178;
}

.code-line .property {
    color: #9cdcfe;
}

.code-line .bracket {
    color: #ffd700;
}

.typing-cursor {
    color: #d4d4d4;
    animation: blink 1s infinite;
    font-weight: 100;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ===== ELEMENTOS FLUTUANTES ===== */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 1s;
}

.floating-icon:nth-child(3) {
    top: 40%;
    left: 80%;
    animation-delay: 2s;
}

.floating-icon:nth-child(4) {
    top: 80%;
    left: 20%;
    animation-delay: 3s;
}

.floating-icon:nth-child(5) {
    top: 10%;
    right: 30%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(0) rotate(180deg); }
    75% { transform: translateY(-10px) rotate(270deg); }
}

/* ===== CONTAINER E SEÇÕES GERAIS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* ===== SEÇÃO SOBRE ===== */
.about {
    background: rgba(26, 26, 46, 0.3);
}

.about-content {
    display: grid;
    gap: 2rem;
}

.about-text {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-medium);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--color-orange-primary);
    margin-bottom: 0;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== SEÇÃO SKILLS ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-orange-primary);
    text-align: center;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skill-item i {
    font-size: 1.5rem;
    color: var(--color-orange-primary);
    width: 30px;
}

.skill-item span {
    flex: 1;
    font-weight: 500;
}

.skill-bar {
    flex: 2;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    width: 0;
    border-radius: 4px;
    transition: width 2s ease-in-out;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== SEÇÃO PROJETOS ===== */
.projects {
    background: rgba(26, 26, 46, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition-medium);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.project-image {
    height: 200px;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(0, 212, 255, 0.1) 0px,
        rgba(0, 212, 255, 0.1) 2px,
        transparent 2px,
        transparent 10px
    );
    animation: slide 3s linear infinite;
}

@keyframes slide {
    0% { transform: translateX(-10px); }
    100% { transform: translateX(10px); }
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-medium);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    width: 50px;
    height: 50px;
    background: var(--color-orange-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.project-link:hover {
    background: var(--color-orange-dark);
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    background: rgba(255, 127, 0, 0.15);
    color: var(--color-orange-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--color-orange-primary);
}

/* ===== SEÇÃO MÚSICA ===== */
.music-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.music-player {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    text-align: center;
}

.player-visual {
    margin-bottom: 2rem;
}

.vinyl-record {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #1a1a1a, #333);
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    animation: spin 8s linear infinite;
    box-shadow: 0 0 30px rgba(255, 127, 0, 0.2);
}

.vinyl-record::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(255, 127, 0, 0.1) 2deg,
        transparent 4deg
    );
}

.vinyl-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.player-controls h3 {
    margin-bottom: 1rem;
    color: var(--color-orange-primary);
}

.track-info {
    margin-bottom: 1.5rem;
}

.track-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.track-artist {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.player-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-player {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-player:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.btn-play {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    width: 40%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    animation: progress-pulse 2s ease-in-out infinite;
}

@keyframes progress-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.music-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: var(--transition-medium);
}

.stat-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-medium);
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--color-orange-primary);
    margin-bottom: 1rem;
    display: block;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-orange-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== SEÇÃO CONTATO ===== */
.contact {
    background: rgba(26, 26, 46, 0.3);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition-medium);
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-light);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.contact-details h4 {
    margin-bottom: 0.3rem;
    color: var(--color-orange-primary);
}

.contact-details span {
    color: var(--text-secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-orange-primary);
    box-shadow: 0 0 0 2px rgba(255, 127, 0, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    font-family: var(--font-code);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-orange-primary);
}

.footer-left p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--color-orange-primary);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
}

/* Cores específicas para cada rede social */
.social-link:has(.fa-github):hover {
    background: #333;
}

.social-link:has(.fa-linkedin):hover {
    background: #0077b5;
}

.social-link:has(.fa-instagram):hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link:has(.fa-youtube):hover {
    background: #ff0000;
}

.social-link:has(.fa-tiktok):hover {
    background: #000000;
}

.social-link:has(.fa-threads):hover {
    background: #000000;
}

.social-link:has(.fa-music):hover {
    background: #1db954;
}

.social-link:has(.fa-whatsapp):hover {
    background: #25d366;
}

.social-link:has(.fa-envelope):hover {
    background: #ea4335;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 15, 0.95);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        z-index: 999;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
        border-radius: 8px;
        transition: var(--transition-medium);
    }
    
    .nav-link:hover {
        background: rgba(25, 118, 210, 0.1);
        color: var(--primary-color);
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Animação do hamburger */
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Overlay para fechar menu ao clicar fora */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Layout da seção Hero para mobile */
    .hero-content {
        grid-template-columns: 1fr; /* Coluna única */
        gap: 3rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-text {
        order: 1; /* Texto primeiro */
        width: 100%;
    }

    .hero-visual {
        order: 2; /* Visual depois */
        width: 100%;
        min-height: auto; /* Altura automática */
        padding: 0;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    /* Ajustes finos no terminal para mobile */
    .code-terminal {
        width: 100%;
        max-width: 450px; /* Um pouco maior para aproveitar o espaço */
        margin: 0 auto;
        font-size: 0.8rem;
    }

    .terminal-body {
        padding: 1rem;
        font-size: 0.85rem;
    }

    @media (max-width: 480px) {
        .code-terminal {
            width: 100%;
            max-width: 340px;
            margin: 0 auto;
            font-size: 0.8rem;
        }
        .terminal-body {
            padding: 0.7rem;
            font-size: 0.8rem;
        }
    }

    .about-card-header {
        gap: 1rem;
    }

    .card-icon {
        font-size: 2rem; /* Ícone um pouco menor */
    }

    .about-card h3 {
        font-size: 1.3rem; /* Título um pouco menor */
    }
    .about-text {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .music-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* OTIMIZAÇÕES PARA MOBILE - Reduzir animações pesadas */
    
    /* Desabilitar elementos flutuantes no mobile */
    .floating-elements {
        display: none;
    }
    
    /* Reduzir animações do visualizador de áudio */
    .audio-visualizer {
        opacity: 0.05;
    }
    
    .audio-visualizer .bar {
        animation-duration: 3s; /* Mais lento */
    }
    
    /* Reduzir efeitos de partículas */
    #particles-container {
        opacity: 0.02;
    }
    
    /* Desabilitar algumas animações CSS pesadas */
    .hero-title .name-highlight {
        animation: none;
    }
    
    .typing-text {
        animation: none;
    }
    
    /* Controle de música mais discreto no mobile */
    .ambient-music-control {
        bottom: 10px;
        right: 10px;
        padding: 8px 12px;
        border-radius: 20px;
        gap: 8px;
        /* Menor e mais compacto */
        transform: scale(0.9);
    }
    
    .ambient-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .ambient-volume {
        width: 60px;
        height: 3px;
    }
    
    /* Auto-hide após inatividade no mobile */
    .ambient-music-control:not(:hover):not(:focus-within) {
        opacity: 0.6;
        transition: opacity 0.3s ease;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    .hero-buttons .btn {
        flex: 1;
        min-width: 140px;
        max-width: 160px;
        font-size: 0.9rem;
        padding: 10px 16px;
    }
    
    .vinyl-record {
        width: 150px;
        height: 150px;
    }
    
    .vinyl-record::before {
        width: 130px;
        height: 130px;
    }
    
    /* Controle de música ainda mais discreto em telas muito pequenas */
    .ambient-music-control {
        bottom: 5px;
        right: 5px;
        padding: 6px 10px;
        transform: scale(0.8);
        /* Posição ainda mais discreta */
    }
    
    .ambient-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .ambient-volume {
        width: 50px;
        height: 2px;
    }
    
    /* Auto-hide mais agressivo em mobile pequeno */
    .ambient-music-control {
        opacity: 0.4;
        transition: all 0.3s ease;
    }
    
    .ambient-music-control:active,
    .ambient-music-control.playing {
        opacity: 1;
        transform: scale(0.85);
    }
}

/* ===== ANIMAÇÕES EXTRAS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== OTIMIZAÇÕES DE ACESSIBILIDADE ===== */
/* Respeitar preferência do usuário por movimento reduzido */
@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;
    }
    
    .floating-elements {
        display: none !important;
    }
    
    #particles-container {
        display: none !important;
    }
}

/* ===== OTIMIZAÇÕES ADICIONAIS PARA PERFORMANCE MOBILE ===== */
@media (max-width: 768px) and (hover: none) {
    /* Dispositivos touch - remover hover effects */
    .social-link:hover,
    .btn:hover,
    .nav-link:hover {
        transform: none;
    }
    .footer-bottom{
        display: none;
    }
    .footer-content{
        padding-bottom: 15px;
    }

    /* Desabilitar animações pesadas que causam tremor no mobile */
    #particles-container::before {
        animation: none !important;
        transform: none !important;
    }
    
    .name-highlight {
        animation: none !important;
        filter: none !important;
    }
    
    .music-note {
        animation: none !important;
        transform: none !important;
    }
    
    .floating-icon {
        animation: none !important;
        transform: none !important;
    }
    
    /* Manter apenas animações essenciais com menor intensidade */
    .audio-visualizer .bar {
        animation-duration: 3s !important;
        animation-timing-function: ease-out !important;
    }
    
    /* Forçar aceleração de hardware apenas onde necessário */
    .hero-title,
    .ambient-music-control {
        will-change: auto;
        transform: translateZ(0);
    }
    
    /* Reduzir opacidade do background animado */
    #particles-container {
        opacity: 0.02 !important;
    }
}

/* Classes para animações com JavaScript */
.animate-in {
    animation: fadeInUp 0.8s ease-out;
}

.animate-left {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-right {
    animation: fadeInRight 0.8s ease-out;
}

/* Scrollbar customizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-orange-primary);
}

/* ===== ANIMAÇÕES DE FUNDO ===== */
@keyframes sparkle {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-10px) translateX(5px);
        opacity: 1;
    }
    50% {
        transform: translateY(5px) translateX(-3px);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-5px) translateX(-8px);
        opacity: 0.9;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-40px) rotate(-5deg);
        opacity: 0.2;
    }
    75% {
        transform: translateY(-20px) rotate(3deg);
        opacity: 0.25;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -5px, 0);
    }
    70% {
        transform: translate3d(0, -3px, 0);
    }
    90% {
        transform: translate3d(0, -1px, 0);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}