/* Variáveis Globais e Reset */
:root {
    --bg-dark: #070B14;
    --bg-darker: #04060B;
    --bg-card: rgba(15, 23, 42, 0.6);
    --border-light: rgba(255, 255, 255, 0.08);

    --primary: #0ea5e9;
    /* Cyan/Light Blue */
    --primary-glow: rgba(14, 165, 233, 0.4);
    --primary-dark: #0284c7;

    --secondary: #10b981;
    /* Emerald Green */
    --secondary-glow: rgba(16, 185, 129, 0.4);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --font-heading: 'Google Sans', 'Product Sans', sans-serif;
    --font-body: 'Google Sans', 'Product Sans', sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-darker);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body.menu-open {
    overflow: hidden;
}

header[id],
section[id] {
    scroll-margin-top: 110px;
}

a:focus-visible,
button:focus-visible,
iframe:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 10s infinite ease-in-out alternate;
}

.orb-1 {
    top: -10%;
    right: -5%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.orb-2 {
    bottom: -10%;
    left: -5%;
    width: 50vw;
    height: 30vw;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(30px) scale(1.1);
    }
}

/* Barra de Progresso */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 2000;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 100px 0;
    position: relative;
}

.dark-bg {
    background-color: rgba(7, 11, 20, 0.5);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    margin-top: 10px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
}

.section-header.center {
    text-align: center;
}

.section-header.center p {
    color: var(--text-muted);
    margin-top: 15px;
    font-size: 1.1rem;
}

/* Typography elements */
strong {
    color: var(--text-main);
    font-weight: 600;
}

.primary-color {
    color: var(--primary) !important;
}

.secondary-color {
    color: var(--secondary) !important;
}

/* Components */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
}

.navbar.scrolled {
    background: rgba(4, 6, 11, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

/* Hero Section */
.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text h2 {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 30px;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(32px, 4vw, 56px);
    position: relative;
    z-index: 10;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.profile-frame {
    position: relative;
    width: min(100%, 320px);
    aspect-ratio: 4 / 5;
    padding: 0.5rem;
    border-radius: 1rem;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), var(--bg-darker)),
        linear-gradient(180deg, var(--primary-glow), transparent 36%);
    border: 2px solid var(--primary);
    box-shadow:
        inset 0 0 24px rgba(14, 165, 233, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 16px rgba(14, 165, 233, 0.2);
    overflow: hidden;
    margin: 0 auto;
}

.profile-frame::before {
    content: "";
    position: absolute;
    inset: 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(14, 165, 233, 0.2);
    pointer-events: none;
}

.profile-frame__inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0.75rem;
    background: var(--bg-card);
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 320ms ease, filter 320ms ease;
    z-index: 10;
}

.profile-frame:hover .hero-photo {
    transform: scale(1.04);
    filter: saturate(1.04);
}

.frame-corner {
    position: absolute;
    width: 2rem;
    height: 2rem;
    border-color: var(--primary);
    filter: drop-shadow(0 0 0.75rem rgba(14, 165, 233, 0.24));
    z-index: 15;
}

.frame-corner--top-left {
    top: 0.5rem;
    left: 0.5rem;
    border-top: 0.125rem solid currentColor;
    border-left: 0.125rem solid currentColor;
}

.frame-corner--top-right {
    top: 0.5rem;
    right: 0.5rem;
    border-top: 0.125rem solid currentColor;
    border-right: 0.125rem solid currentColor;
}

.frame-corner--bottom-left {
    bottom: 0.5rem;
    left: 0.5rem;
    border-bottom: 0.125rem solid currentColor;
    border-left: 0.125rem solid currentColor;
}

.frame-corner--bottom-right {
    bottom: 0.5rem;
    right: 0.5rem;
    border-right: 0.125rem solid currentColor;
    border-bottom: 0.125rem solid currentColor;
}

.pulse-btn {
    animation: pulseButton 2s infinite;
}

@keyframes pulseButton {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 30px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem !important;
}

.glow-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.stat-box h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.stat-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.secondary-wrapper {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
    border-color: rgba(16, 185, 129, 0.2);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Telemetry & Observability */
.telemetry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.telemetry-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    height: 100%;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 15px;
}

.card-header i {
    font-size: 1.5rem;
}

.card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 180px;
}

.card-footer-text {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
    font-style: italic;
}

.iframe-container iframe {
    border: 0;
    background: rgba(4, 6, 11, 0.9);
}

/* BGP Counter Specifics */
.bgp-counter {
    text-align: center;
}

.counter-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    text-shadow: 0 0 15px var(--primary-glow);
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.counter-label {
    font-size: 0.9rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Chart Container */
.chart-container {
    width: 100%;
    position: relative;
    padding: 10px 0;
}

/* ASN Trace Specifics */
.ip-trace-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trace-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.trace-row:last-child {
    border-bottom: none;
}

.trace-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.trace-value {
    font-weight: 600;
    color: var(--primary);
    text-align: right;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tools - Circular Grid */
.tech-circle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 50px 20px;
    justify-items: center;
    margin-top: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.tech-circle-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    cursor: pointer;
}

.tech-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(40, 30, 60, 0.3), var(--bg-darker));
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 30px rgba(124, 58, 237, 0.1), 0 0 20px rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tech-circle-wrapper:hover .tech-circle {
    box-shadow: inset 0 0 50px rgba(124, 58, 237, 0.3), 0 0 30px rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.4);
    transform: translateY(-10px);
}

/* Modifier para a cor secundária (verde/ciano) */
.tech-circle-wrapper.accent-secondary .tech-circle {
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.15), var(--bg-darker));
    box-shadow: inset 0 0 30px rgba(14, 165, 233, 0.1), 0 0 20px rgba(0, 0, 0, 0.6);
}

.tech-circle-wrapper.accent-secondary:hover .tech-circle {
    box-shadow: inset 0 0 50px rgba(14, 165, 233, 0.3), 0 0 30px rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.4);
}

.tech-circle img,
.tech-circle i,
.tech-circle svg {
    font-size: 3.5rem;
    color: white;
    max-width: 60px;
    max-height: 60px;
    transition: transform 0.4s ease;
}

.tech-circle-wrapper:hover .tech-circle img,
.tech-circle-wrapper:hover .tech-circle i,
.tech-circle-wrapper:hover .tech-circle svg {
    transform: scale(1.15);
}

.tech-circle-wrapper span {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.tech-circle-wrapper:hover span {
    color: white;
}

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

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
    cursor: help;
}

.tags:hover .tag {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
}

.tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--primary) !important;
    color: white !important;
}

.tag.primary {
    border-color: rgba(14, 165, 233, 0.3);
    color: var(--primary);
}

.tag.secondary {
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--secondary);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: var(--border-light);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 12px;
    top: 30px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 4px solid var(--bg-dark);
    box-shadow: 0 0 10px var(--primary-glow);
}

.date {
    display: inline-block;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.timeline-content h4 {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 1rem;
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.project-content {
    padding: 2.5rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-tag {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
}

.project-tag.secondary {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
}

.project-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.project-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Roadmap */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.roadmap-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.roadmap-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.roadmap-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contact */
.contact-grid {
    max-width: 900px;
    margin: 0 auto;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1.5rem !important;
    text-decoration: none;
    color: var(--text-main);
}

.contact-card div {
    flex: 1;
    min-width: 0;
    /* Previne overflow do filho em um flex container */
}

.contact-card i {
    font-size: 2rem;
    flex-shrink: 0;
    /* Impede o ícone de ser esmagado */
}

.logo-glow {
    color: var(--text-muted);
    transition: var(--transition);
}

.contact-card:hover .logo-glow {
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.contact-card h4 {
    font-size: 1rem;
    margin-bottom: 3px;
    font-weight: 500;
}

.contact-card span {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Terminal Prompt Contact Section */
.terminal-prompt-box {
    margin-top: 25px;
    margin-bottom: 25px;
    font-family: monospace;
    font-size: 1.1rem;
    color: #a3a3a3;
    background: rgba(10, 10, 15, 0.7);
    padding: 20px 25px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--primary);
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.prompt-user {
    color: #10b981;
    margin-right: 8px;
    font-weight: bold;
}

.terminal-text {
    color: #e5e7eb;
    line-height: 1.6;
}

.cursor-blink {
    animation: blink 1s step-end infinite;
    color: var(--primary);
    font-weight: bold;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Footer */
.footer {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Scroll Reveal classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

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

    .about-stats {
        flex-direction: row;
    }

    .stat-box {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(82vw, 340px);
        height: 100vh;
        background: rgba(7, 11, 20, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 96px 24px 40px;
        transition: var(--transition);
        border-left: 1px solid var(--border-light);
        box-shadow: -24px 0 60px rgba(0, 0, 0, 0.35);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 1001;
    }

    .section {
        padding: 60px 0;
    }

    .hero {
        min-height: auto;
        padding-top: 120px;
    }

    .hero-text h1 {
        font-size: clamp(2.5rem, 11vw, 3.4rem);
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 0;
        gap: 24px;
    }

    .hero-text p {
        margin-bottom: 24px;
        margin-left: auto;
        margin-right: auto;
        max-width: 38rem;
    }

    .hero-actions {
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .hero-actions .btn {
        width: min(100%, 320px);
        justify-content: center;
    }

    .profile-frame {
        width: min(100%, 280px);
    }

    .about-stats {
        flex-direction: column;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .timeline-dot {
        left: -9px;
    }

    .trace-row {
        gap: 12px;
        align-items: flex-start;
    }

    .trace-value {
        max-width: 55%;
        white-space: normal;
        overflow: visible;
        text-overflow: initial;
    }
}

/* Mobile Small - Extra refinements for tech grid */
@media (max-width: 500px) {
    .hero-text h2 {
        font-size: 1.35rem;
        margin-bottom: 22px;
    }

    .terminal-prompt-box {
        padding: 18px;
        font-size: 1rem;
    }

    .tech-circle-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 10px;
    }

    .tech-circle {
        width: 100px;
        height: 100px;
    }

    .tech-circle img,
    .tech-circle i,
    .tech-circle svg {
        font-size: 2.5rem;
        max-width: 45px;
        max-height: 45px;
    }

    .tech-circle-wrapper span {
        font-size: 0.85rem;
    }
}

/* --- Efeitos Visuais Avançados --- */

/* Fundo Interativo de Rede (Particles) */
#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Cursor de Terminal (Herói) */
.terminal-cursor {
    display: inline-block;
    color: var(--primary);
    margin-left: 4px;
    font-weight: 800;
    animation: none;
}

.terminal-cursor.blink {
    animation: blinkCursor 1s step-end infinite;
}

@keyframes blinkCursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Holofote Dinâmico - Hover Effect nos Cards */
.glass-card {
    --mouse-x: -100px;
    --mouse-y: -100px;
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(14, 165, 233, 0.08),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

.glass-card:hover::after {
    opacity: 1;
}

/* Protege o conteúdo interno para ficar acima do brilho do holofote */
.glass-card>* {
    position: relative;
    z-index: 2;
}

@media (pointer: coarse) {
    .glass-card::after {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .background-effects,
    #particles-js,
    .glass-card::after {
        display: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
