/* ═══════════════════════════════════════════════════════════════
   LABUNO - DESIGN PREMIUM & ÚNICO
   Um visual que se destaca da multidão
   ═══════════════════════════════════════════════════════════════ */

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

:root {
    /* Paleta de cores - GitHub Style */
    --bg-void: #0a0e14;
    --bg-deep: #0d1117;
    --bg-surface: #161b22;
    --bg-elevated: #21262d;
    --bg-glass: rgba(13, 17, 23, 0.7);
    
    /* Cores de texto */
    --text-white: #ffffff;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #484f58;
    
    /* Cores de destaque - GitHub */
    --neon-blue: #58a6ff;
    --neon-cyan: #56d4dd;
    --neon-purple: #a371f7;
    --neon-pink: #f778ba;
    --neon-green: #3fb950;
    --neon-orange: #f0883e;
    --neon-red: #f85149;
    --neon-yellow: #f1e05a;
    
    /* Gradientes especiais */
    --gradient-hero: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(88, 166, 255, 0.5) 0%, rgba(163, 113, 247, 0.5) 100%);
    --gradient-card: linear-gradient(145deg, rgba(22, 27, 34, 0.9) 0%, rgba(13, 17, 23, 0.9) 100%);
    --gradient-border: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    
    /* Sombras e efeitos */
    --shadow-neon: 0 0 60px rgba(88, 166, 255, 0.25);
    --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-glow-blue: 0 0 40px rgba(88, 166, 255, 0.4);
    --shadow-glow-purple: 0 0 40px rgba(163, 113, 247, 0.4);
    
    /* Tipografia */
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-display: 'Inter', -apple-system, sans-serif;
    
    /* Transições */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s var(--ease-out-expo);
    --transition-normal: 0.4s var(--ease-out-expo);
    --transition-slow: 0.8s var(--ease-out-expo);
}

/* ═══════════════════════════════════════════════════════════════
   SCROLLBAR PERSONALIZADA
   ═══════════════════════════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-blue), var(--neon-purple));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--neon-purple), var(--neon-pink));
}

/* ═══════════════════════════════════════════════════════════════
   BODY & BACKGROUND EFFECTS
   ═══════════════════════════════════════════════════════════════ */
body {
    font-family: var(--font-mono);
    background: var(--bg-void);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Fundo animado com partículas e aurora */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 100% 100% at 0% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 80% 80% at 100% 0%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 60% at 50% 100%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 40% 40% at 80% 50%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: -2;
    animation: auroraShift 20s ease-in-out infinite;
}

@keyframes auroraShift {
    0%, 100% { opacity: 1; filter: hue-rotate(0deg); }
    50% { opacity: 0.8; filter: hue-rotate(30deg); }
}

/* Grid futurista no fundo */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 70%);
}

/* ═══════════════════════════════════════════════════════════════
   CONTAINER
   ═══════════════════════════════════════════════════════════════ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER - FLOATING & GLASS
   ═══════════════════════════════════════════════════════════════ */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    transition: var(--transition-normal);
}

.header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-hero);
    opacity: 0.5;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

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

.logo-main {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-normal);
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.3));
}

.logo-main:hover {
    transform: scale(1.08) rotate(-2deg);
    filter: drop-shadow(0 0 50px rgba(139, 92, 246, 0.5));
}

.nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: 12px;
    position: relative;
    transition: var(--transition-normal);
    background: transparent;
    border: 1px solid transparent;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: -1;
}

.nav-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: var(--gradient-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--text-white);
    transform: translateY(-2px);
}

.nav-link:hover::after {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION - IMPACTANTE
   ═══════════════════════════════════════════════════════════════ */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    min-height: 90vh;
    padding: 60px 0;
    position: relative;
}

/* Orb de luz flutuante */
.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    top: -100px;
    left: -200px;
    animation: floatOrb 8s ease-in-out infinite;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    animation: floatOrb 10s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.2rem;
    margin-bottom: 30px;
    line-height: 1.2;
    font-weight: 700;
}

.hero-title .comment {
    display: block;
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 15px;
    font-style: italic;
}

.hero-title .function {
    color: var(--neon-purple);
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.hero-title .variable {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
    background-size: 200% 200%;
}

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

.hero-title .string {
    color: var(--neon-green);
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.9;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
   BOTÕES - PREMIUM
   ═══════════════════════════════════════════════════════════════ */
.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 14px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-hero);
    color: white;
    box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.5);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.5); }
    50% { box-shadow: 0 15px 50px -10px rgba(139, 92, 246, 0.6); }
}

.btn-primary::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: var(--transition-slow);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 60px -15px rgba(139, 92, 246, 0.6);
}

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

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    position: relative;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 2px;
    background: var(--gradient-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: var(--transition-normal);
}

.btn-secondary:hover {
    transform: translateY(-4px);
    background: rgba(59, 130, 246, 0.1);
}

.btn-secondary:hover::before {
    opacity: 1;
}

.btn-full {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   TERMINAL - FUTURISTA
   ═══════════════════════════════════════════════════════════════ */
.terminal {
    background: var(--gradient-card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-card), var(--shadow-neon);
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
    backdrop-filter: blur(20px);
    transform: perspective(1200px) rotateY(-5deg) rotateX(3deg);
    transition: var(--transition-normal);
}

.terminal:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow: var(--shadow-card), 0 0 80px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.4);
}

/* Linha de luz no topo */
.terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-hero);
    animation: terminalGlow 2s ease-in-out infinite;
}

@keyframes terminalGlow {
    0%, 100% { opacity: 0.7; filter: brightness(1); }
    50% { opacity: 1; filter: brightness(1.3); }
}

.terminal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.terminal-header {
    background: linear-gradient(180deg, rgba(26, 35, 50, 0.9) 0%, rgba(17, 24, 39, 0.9) 100%);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    z-index: 1;
}

.terminal-buttons {
    display: flex;
    gap: 10px;
}

.terminal-buttons span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: var(--transition-fast);
    cursor: pointer;
}

.terminal-buttons span:hover {
    transform: scale(1.3);
    filter: brightness(1.2);
}

.btn-close {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.5);
}

.btn-minimize {
    background: linear-gradient(135deg, #ffd93d 0%, #f0c000 100%);
    box-shadow: 0 0 15px rgba(255, 217, 61, 0.5);
}

.btn-maximize {
    background: linear-gradient(135deg, #6bcb77 0%, #4ade80 100%);
    box-shadow: 0 0 15px rgba(107, 203, 119, 0.5);
}

.terminal-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.terminal-title::before {
    content: '⚡';
    font-size: 1rem;
}

.terminal-body {
    padding: 28px;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
    min-height: 220px;
}

.terminal-line {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: typeIn 0.5s ease forwards;
}

.terminal-line:nth-child(1) { animation-delay: 0.2s; }
.terminal-line:nth-child(2) { animation-delay: 0.5s; }
.terminal-line:nth-child(3) { animation-delay: 0.8s; }
.terminal-line:nth-child(4) { animation-delay: 1.1s; }
.terminal-line:nth-child(5) { animation-delay: 1.4s; }

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

.prompt {
    color: var(--neon-cyan);
    font-weight: 700;
}

.prompt::before {
    content: '➜';
    margin-right: 8px;
    color: var(--neon-green);
}

.cursor {
    display: inline-block;
    width: 12px;
    height: 22px;
    background: var(--neon-green);
    animation: cursorBlink 1s step-end infinite;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.7);
    border-radius: 2px;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   SEÇÕES
   ═══════════════════════════════════════════════════════════════ */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title .comment {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-hero);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════════════ */
.about {
    padding: 60px 0 100px 0;
}

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

.code-block {
    background: var(--gradient-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 0.9rem;
    line-height: 2.2;
    overflow-x: auto;
    position: relative;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-hero);
    border-radius: 20px 0 0 20px;
}

.code-block::after {
    content: '📄 labuno.js';
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-elevated);
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.keyword {
    color: var(--neon-purple);
    font-weight: 600;
}

.class-name {
    color: var(--neon-orange);
    font-weight: 600;
}

.property {
    color: var(--neon-cyan);
}

.string {
    color: var(--neon-green);
}

.skills {
    position: relative;
}

.skills-title {
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.skills-title::before {
    content: '⚡';
    font-size: 1.2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.skill-item {
    background: var(--bg-elevated);
    padding: 18px 14px;
    text-align: center;
    border-radius: 14px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition-normal);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.skill-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    opacity: 0;
    transition: var(--transition-normal);
}

.skill-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1px;
    background: var(--gradient-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition-normal);
}

.skill-item:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 15px 40px -10px rgba(59, 130, 246, 0.3);
    color: var(--text-white);
}

.skill-item:hover::before {
    opacity: 0.15;
}

.skill-item:hover::after {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════════════ */
.contact {
    background: var(--gradient-card);
    border-radius: 30px;
    margin: 0 40px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(20px);
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-hero);
}

.contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

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

.contact-info {
    padding: 50px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-form {
    background: rgba(3, 7, 18, 0.5);
    padding: 50px;
    border-radius: 24px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
}

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

.form-label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-label::before {
    content: '// ';
    color: var(--neon-purple);
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-surface);
    border: 2px solid rgba(59, 130, 246, 0.1);
    border-radius: 14px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.form-input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 0 30px rgba(59, 130, 246, 0.2);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

/* Form Status */
.form-status {
    margin-top: 20px;
    padding: 16px;
    border-radius: 14px;
    text-align: center;
    font-size: 0.9rem;
    animation: slideIn 0.4s var(--ease-out-expo);
}

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

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    padding: 50px 0;
    margin-top: 100px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: var(--gradient-hero);
    border-radius: 1px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-content a {
    color: var(--neon-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-content a:hover {
    color: var(--neon-purple);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVIDADE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
        min-height: auto;
        padding: 60px 0;
    }
    
    .terminal {
        transform: none;
        max-width: 550px;
        margin: 0 auto;
    }
    
    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero::before,
    .hero::after {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
    
    .header {
        flex-direction: column;
        gap: 20px;
        padding: 16px 0;
    }
    
    .logo-main {
        height: 50px;
    }
    
    .nav {
        gap: 8px;
    }
    
    .nav-link {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-title .comment {
        font-size: 0.95rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact {
        margin: 0 16px;
        border-radius: 24px;
    }
    
    .contact-form,
    .contact-info {
        padding: 35px;
    }
    
    .code-block {
        padding: 30px;
    }
    
    .code-block::after {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .code-block {
        font-size: 0.8rem;
        padding: 24px;
        line-height: 2;
    }
    
    .contact-form {
        padding: 28px;
    }
    
    .terminal-body {
        padding: 20px;
        font-size: 0.8rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .skill-item {
        padding: 14px 10px;
        min-height: 50px;
        font-size: 0.75rem;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMAÇÕES DE ENTRADA
   ═══════════════════════════════════════════════════════════════ */
.hero-content {
    animation: fadeInLeft 1s var(--ease-out-expo);
}

.terminal {
    animation: fadeInRight 1s var(--ease-out-expo) 0.3s backwards;
}

.about-content > *,
.contact-content > * {
    animation: fadeInUp 0.8s var(--ease-out-expo) backwards;
}

.about-content > *:nth-child(1) { animation-delay: 0.1s; }
.about-content > *:nth-child(2) { animation-delay: 0.2s; }

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

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(60px) perspective(1200px) rotateY(-5deg); }
    to { opacity: 1; transform: translateX(0) perspective(1200px) rotateY(-5deg); }
}

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

/* ═══════════════════════════════════════════════════════════════
   EXTRAS
   ═══════════════════════════════════════════════════════════════ */
html {
    scroll-behavior: smooth;
}

::selection {
    background: rgba(59, 130, 246, 0.4);
    color: var(--text-white);
}

/* Focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--neon-blue);
    outline-offset: 3px;
}

/* Loading button state */
.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn.loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

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

/* Print */
@media print {
    body::before,
    body::after,
    .hero::before,
    .hero::after {
        display: none;
    }
    
    .header {
        position: static;
    }
    
    .terminal {
        transform: none;
        box-shadow: none;
    }
}
