/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== VARIÁVEIS CSS ===== */
:root {
    /* Cores principais */
    --primary: #00ffff;
    --primary-dark: #00cccc;
    --primary-light: #33ffff;
    --secondary: #ff00ff;
    --accent: #ffff00;
    --success: #00ff00;
    --warning: #ff8800;
    --error: #ff0000;
    
    /* Cores de fundo */
    --bg-primary: #000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111;
    --bg-glass: rgba(0, 255, 255, 0.05);
    
    /* Cores de texto */
    --text-primary: #fff;
    --text-secondary: #ccc;
    --text-muted: #888;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent));
    --gradient-secondary: linear-gradient(135deg, var(--secondary), var(--primary));
    --gradient-glass: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 255, 255, 0.05));
    
    /* Bordas e sombras */
    --border-radius: 4px;
    --border-radius-lg: 8px;
    --border-radius-xl: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 255, 255, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 255, 255, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 255, 255, 0.3);
    --shadow-glow: 0 0 20px rgba(0, 255, 255, 0.5);
    
    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    /* Tipografia */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 3rem;
    --font-size-5xl: 4rem;
}

/* ===== CURSOR PERSONALIZADO ===== */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

.custom-cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s ease;
}

/* ===== BACKGROUND TECNOLÓGICO ===== */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.circuit-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: circuitMove 20s linear infinite;
}

@keyframes circuitMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.data-stream {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 0, 0.1) 0%, transparent 50%);
    animation: dataPulse 8s ease-in-out infinite;
}

@keyframes dataPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.tech-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 0, 0.1) 2px,
            rgba(0, 255, 0, 0.1) 4px
        );
    animation: matrixFlow 10s linear infinite;
}

@keyframes matrixFlow {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-circuit {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circuit-line {
    width: 20px;
    height: 2px;
    background: var(--primary);
    animation: circuitPulse 2s ease-in-out infinite;
}

.circuit-node {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: nodeGlow 1.5s ease-in-out infinite;
}

@keyframes circuitPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes nodeGlow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 5px var(--primary); }
    50% { transform: scale(1.2); box-shadow: 0 0 15px var(--primary); }
}

.logo-text {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

.nav-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.nav-text {
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-indicator {
    position: absolute;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

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

.nav-link:hover .nav-number {
    color: var(--primary-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-social:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 2rem 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-header {
    margin-bottom: 3rem;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.badge-icon {
    color: var(--primary);
    font-size: 1rem;
}

.badge-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: var(--font-size-5xl);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
}

.title-line:nth-child(2) {
    animation-delay: 1s;
}

@keyframes titleGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 500px;
}

.hero-metrics {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric-value {
    display: flex;
    flex-direction: column;
    min-width: 80px;
}

.value-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary);
}

.value-unit {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-bar {
    flex: 1;
    height: 4px;
    background: rgba(0, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    animation: barFill 2s ease-out forwards;
}

@keyframes barFill {
    from { width: 0; }
    to { width: var(--data-value); }
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-hub {
    position: relative;
    width: 300px;
    height: 300px;
}

.hub-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
}

.core-circle {
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: coreRotate 10s linear infinite;
}

.core-data {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.data-line {
    width: 60px;
    height: 1px;
    background: var(--primary);
    margin: 5px 0;
    animation: dataFlow 3s ease-in-out infinite;
}

.data-line:nth-child(2) {
    animation-delay: 1s;
}

.data-line:nth-child(3) {
    animation-delay: 2s;
}

@keyframes coreRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes dataFlow {
    0%, 100% { opacity: 0.3; transform: scaleX(0.5); }
    50% { opacity: 1; transform: scaleX(1); }
}

.hub-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring {
    position: absolute;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    animation: ringRotate 20s linear infinite;
}

.ring-1 {
    width: 150px;
    height: 150px;
    animation-duration: 20s;
}

.ring-2 {
    width: 200px;
    height: 200px;
    animation-duration: 30s;
    animation-direction: reverse;
}

.ring-3 {
    width: 250px;
    height: 250px;
    animation-duration: 40s;
}

@keyframes ringRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hub-nodes {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: nodePulse 2s ease-in-out infinite;
}

.node-1 { top: -20px; left: 50%; animation-delay: 0s; }
.node-2 { top: 50%; right: -20px; animation-delay: 0.5s; }
.node-3 { bottom: -20px; left: 50%; animation-delay: 1s; }
.node-4 { top: 50%; left: -20px; animation-delay: 1.5s; }

@keyframes nodePulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 1; }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: var(--primary);
    animation: scrollFlow 2s ease-in-out infinite;
}

@keyframes scrollFlow {
    0%, 100% { height: 40px; opacity: 0.5; }
    50% { height: 60px; opacity: 1; }
}

.scroll-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===== PROCESS SECTION ===== */
.process {
    padding: var(--spacing-xl) 0;
    background: var(--bg-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.header-tech {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.tech-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary);
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.step-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.connector-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--primary), transparent);
}

.connector-node {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    margin: 1rem 0;
    animation: connectorPulse 2s ease-in-out infinite;
}

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

.step-content {
    flex: 1;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-glass);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.step-content:hover .step-icon {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.step-content h3 {
    font-family: 'Orbitron', monospace;
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.step-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: var(--border-radius);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    padding: var(--spacing-xl) 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.project-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--bg-tertiary);
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: var(--text-primary);
}

.overlay-content h3 {
    font-family: 'Orbitron', monospace;
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.tech-chip {
    padding: 0.25rem 0.5rem;
    background: var(--primary);
    border-radius: var(--border-radius);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--bg-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.overlay-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1rem;
    color: var(--bg-primary);
    transition: all 0.3s ease;
}

.overlay-icon:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: var(--spacing-xl) 0;
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-info h2 {
    font-family: 'Orbitron', monospace;
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--text-primary);
}

.contact-info p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 500px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-glass);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.contact-method:hover {
    border-color: var(--primary);
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.method-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--bg-primary);
}

.method-details h4 {
    font-family: 'Orbitron', monospace;
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.method-details p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.method-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.status-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-visual {
    display: none;
}

.tech-terminal {
    width: 400px;
    background: var(--bg-tertiary);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(0, 255, 255, 0.1);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-red { background: #ff5f56; }
.btn-yellow { background: #ffbd2e; }
.btn-green { background: #27ca3f; }

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.terminal-line {
    margin-bottom: 0.5rem;
}

.prompt {
    color: var(--primary);
    margin-right: 0.5rem;
}

.command {
    color: var(--text-primary);
}

.output {
    color: var(--text-secondary);
    margin-left: 1rem;
}

.status-success {
    color: var(--success);
}

.status-info {
    color: var(--primary);
}

.typing {
    animation: typing 2s steps(20) infinite;
}

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

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    padding: var(--spacing-lg) 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-circuit {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-info h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.brand-info p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}

.bottom-line {
    width: 100px;
    height: 1px;
    background: var(--primary);
    margin: 0 auto 1rem;
}

.footer-bottom p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Debug: mostrar modal quando ativo */
.modal.active {
    display: flex !important;
    opacity: 1;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    color: var(--primary);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-light);
    transform: scale(1.1);
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.modal-prev,
.modal-next {
    background: var(--bg-glass);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-prev:hover,
.modal-next:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--bg-primary);
}

/* ===== RESPONSIVE ===== */

/* Tablet e dispositivos médios */
@media (max-width: 1024px) {
    .hero-container {
        gap: 3rem;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .tech-hub {
        width: 250px;
        height: 250px;
    }
    
    .contact-content {
        gap: 3rem;
    }
    
    .tech-terminal {
        width: 350px;
    }
}

/* Mobile - Tablets pequenos */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-top: 1px solid rgba(0, 255, 255, 0.2);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .nav-social {
        width: 35px;
        height: 35px;
    }
    
    /* Hero Section */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: var(--font-size-base);
        margin-bottom: 2rem;
    }
    
    .hero-metrics {
        align-items: center;
        gap: 1rem;
    }
    
    .metric-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .metric-value {
        min-width: auto;
    }
    
    .tech-hub {
        width: 200px;
        height: 200px;
    }
    
    .hub-core {
        width: 80px;
        height: 80px;
    }
    
    .ring-1 { width: 120px; height: 120px; }
    .ring-2 { width: 160px; height: 160px; }
    .ring-3 { width: 200px; height: 200px; }
    
    /* Process Section */
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .timeline-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .step-connector {
        flex-direction: row;
        justify-content: center;
    }
    
    .connector-line {
        width: 60px;
        height: 2px;
        background: linear-gradient(to right, var(--primary), transparent);
    }
    
    /* Projects Section */
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .project-image {
        height: 200px;
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .contact-info h2 {
        font-size: var(--font-size-3xl);
    }
    
    .contact-methods {
        gap: 1rem;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    .method-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .tech-terminal {
        width: 100%;
        max-width: 350px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Modal */
    .modal-content {
        padding: 1rem;
        width: 95%;
        height: 95%;
    }
    
    .modal-close {
        top: 0.5rem;
        right: 1rem;
        font-size: 1.5rem;
    }
    
    .modal-nav {
        bottom: 1rem;
    }
    
    .modal-prev,
    .modal-next {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Mobile - Smartphones */
@media (max-width: 480px) {
    /* Base */
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0.75rem 1rem;
    }
    
    /* Navigation */
    .logo-text {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        padding: 1.5rem;
    }
    
    .nav-link {
        padding: 1rem 0;
        font-size: 1.1rem;
    }
    
    .nav-social {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 1rem 0;
        min-height: 90vh;
    }
    
    .hero-container {
        padding: 0 0.5rem;
    }
    
    .tech-badge {
        padding: 0.375rem 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .badge-text {
        font-size: 0.75rem;
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: var(--font-size-sm);
        margin-bottom: 1.5rem;
    }
    
    .hero-metrics {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .metric-item {
        width: 100%;
        max-width: 300px;
    }
    
    .value-number {
        font-size: var(--font-size-xl);
    }
    
    .tech-hub {
        width: 150px;
        height: 150px;
    }
    
    .hub-core {
        width: 60px;
        height: 60px;
    }
    
    .ring-1 { width: 90px; height: 90px; }
    .ring-2 { width: 120px; height: 120px; }
    .ring-3 { width: 150px; height: 150px; }
    
    /* Sections */
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
    }
    
    /* Process Section */
    .process {
        padding: var(--spacing-lg) 0;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .step-content h3 {
        font-size: var(--font-size-lg);
    }
    
    .step-content p {
        font-size: var(--font-size-sm);
    }
    
    /* Projects Section */
    .projects {
        padding: var(--spacing-lg) 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-image {
        height: 180px;
    }
    
    .overlay-content h3 {
        font-size: var(--font-size-base);
    }
    
    .overlay-content p {
        font-size: var(--font-size-xs);
    }
    
    .tech-chip {
        font-size: 0.625rem;
        padding: 0.125rem 0.5rem;
    }
    
    /* Contact Section */
    .contact {
        padding: var(--spacing-lg) 0;
    }
    
    .contact-info h2 {
        font-size: var(--font-size-2xl);
    }
    
    .contact-info p {
        font-size: var(--font-size-sm);
        margin-bottom: 2rem;
    }
    
    .contact-method {
        padding: 0.75rem;
    }
    
    .method-icon {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
    
    .method-details h4 {
        font-size: var(--font-size-base);
    }
    
    .method-details p {
        font-size: var(--font-size-xs);
    }
    
    .tech-terminal {
        max-width: 300px;
    }
    
    .terminal-body {
        padding: 1rem;
        font-size: 0.75rem;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-md) 0;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    .brand-info h3 {
        font-size: var(--font-size-base);
    }
    
    .brand-info p {
        font-size: var(--font-size-xs);
    }
    
    .footer-nav {
        gap: 0.75rem;
    }
    
    .footer-nav a {
        font-size: var(--font-size-sm);
    }
    
    .footer-social a {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
    
    .footer-bottom p {
        font-size: var(--font-size-xs);
    }
    
    /* Modal */
    .modal-content {
        padding: 0.5rem;
    }
    
    .modal-close {
        top: 0.25rem;
        right: 0.5rem;
        font-size: 1.25rem;
    }
    
    .modal-nav {
        bottom: 0.5rem;
        gap: 0.5rem;
    }
    
    .modal-prev,
    .modal-next {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* Mobile - Smartphones muito pequenos */
@media (max-width: 360px) {
    .hero-title {
        font-size: var(--font-size-xl);
    }
    
    .hero-description {
        font-size: var(--font-size-xs);
    }
    
    .tech-hub {
        width: 120px;
        height: 120px;
    }
    
    .hub-core {
        width: 50px;
        height: 50px;
    }
    
    .ring-1 { width: 70px; height: 70px; }
    .ring-2 { width: 95px; height: 95px; }
    .ring-3 { width: 120px; height: 120px; }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 150px;
    }
    
    .contact-method {
        padding: 0.5rem;
    }
    
    .method-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .tech-terminal {
        max-width: 280px;
    }
    
    .terminal-body {
        padding: 0.75rem;
        font-size: 0.625rem;
    }
}

/* Landscape orientation para mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-container {
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
        margin-bottom: 1rem;
    }
    
    .hero-description {
        margin-bottom: 1rem;
    }
    
    .hero-metrics {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
    
    .tech-hub {
        width: 120px;
        height: 120px;
    }
    
    .process-timeline {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Ajustes para telas de alta densidade (retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .circuit-grid {
        background-size: 25px 25px;
    }
    
    .tech-hub {
        transform: scale(0.95);
    }
}

/* Ajustes para dispositivos com tela muito larga */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-container {
        max-width: 1400px;
    }
    
    .nav-container {
        max-width: 1400px;
    }
}

/* Ajustes para dispositivos com tela muito pequena */
@media (max-width: 320px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .nav-container {
        padding: 0.5rem;
    }
    
    .hero-container {
        padding: 0 0.25rem;
    }
    
    .hero-title {
        font-size: var(--font-size-lg);
    }
    
    .tech-hub {
        width: 100px;
        height: 100px;
    }
    
    .hub-core {
        width: 40px;
        height: 40px;
    }
    
    .ring-1 { width: 60px; height: 60px; }
    .ring-2 { width: 80px; height: 80px; }
    .ring-3 { width: 100px; height: 100px; }
}

/* Ajustes para acessibilidade em mobile */
@media (max-width: 768px) {
    /* Aumentar área de toque para elementos interativos */
    .nav-link,
    .nav-social,
    .contact-method,
    .project-item,
    .modal-prev,
    .modal-next {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Melhorar contraste para leitura em mobile */
    .hero-description,
    .step-content p,
    .contact-info p {
        line-height: 1.7;
    }
    
    /* Ajustar espaçamento para melhor usabilidade */
    .nav-menu {
        gap: 1rem;
    }
    
    .hero-metrics {
        gap: 1.5rem;
    }
    
    .contact-methods {
        gap: 1.5rem;
    }
}

/* Ajustes para modo escuro em mobile */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
    .navbar {
        background: rgba(0, 0, 0, 0.95);
    }
    
    .nav-menu {
        background: rgba(0, 0, 0, 0.98);
    }
}

/* Ajustes para dispositivos com notch */
@supports (padding: max(0px)) {
    @media (max-width: 768px) {
        .navbar {
            padding-top: max(1rem, env(safe-area-inset-top));
        }
        
        .hero {
            padding-top: max(2rem, env(safe-area-inset-top));
        }
        
        .footer {
            padding-bottom: max(var(--spacing-lg), env(safe-area-inset-bottom));
        }
    }
}

/* ===== UTILITIES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* ===== MELHORIAS MOBILE ADICIONAIS ===== */

/* Esconder elementos desnecessários em mobile */
@media (max-width: 768px) {
    .scroll-indicator {
        display: none;
    }
    
    /* Reduzir complexidade das animações */
    .background-animation {
        opacity: 0.3;
    }
    
    /* Melhorar legibilidade */
    .hero-description,
    .step-content p,
    .contact-info p {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    }
    
    /* Ajustar espaçamentos para melhor usabilidade */
    .hero {
        padding-top: 80px;
    }
    
    .process,
    .projects,
    .contact {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* Melhorar contraste dos elementos interativos */
    .nav-link:hover,
    .nav-social:hover,
    .contact-method:hover {
        background: rgba(0, 255, 255, 0.1);
    }
    
    /* Ajustar tamanho dos ícones para melhor toque */
    .step-icon,
    .method-icon {
        min-width: 50px;
        min-height: 50px;
    }
    
    /* Melhorar grid de projetos */
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Ajustes específicos para telas muito pequenas */
@media (max-width: 360px) {
    .hero-title {
        word-break: break-word;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-method {
        flex-direction: column;
        align-items: center;
    }
    
    .method-details {
        text-align: center;
    }
}

/* Melhorar performance em dispositivos com baixa capacidade */
@media (max-width: 768px) {
    * {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .project-item:hover {
        transform: none;
    }
    
    .nav-link:hover {
        transform: none;
    }
    
    .contact-method:hover {
        transform: none;
    }
}

/* Ajustes para orientação landscape em mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-container {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: var(--font-size-xl);
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        margin-bottom: 0.5rem;
    }
    
    .hero-metrics {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
    
    .tech-hub {
        width: 100px;
        height: 100px;
    }
}

/* Melhorar acessibilidade */
@media (max-width: 768px) {
    /* Aumentar contraste */
    .text-secondary {
        color: #ddd !important;
    }
    
    .text-muted {
        color: #aaa !important;
    }
    
    /* Melhorar foco visual */
    .nav-link:focus,
    .nav-social:focus,
    .contact-method:focus,
    .project-item:focus {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
    }
    
    /* Melhorar legibilidade dos textos */
    .hero-description,
    .step-content p,
    .contact-info p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* ===== ANIMAÇÕES GLOBAIS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}   