/* Variáveis e Reset — Blue Team Theme */
:root {
    --primary-color: #00a8ff;
    --secondary-color: #0078d4;
    --accent-color: #60a5fa;
    --dark-color: #0d1117;
    --light-color: #f0f6fc;
    --danger-color: #f85149;
    --gray-color: #7d8590;
    --text-color: #1f2937;
    --background-color: #ffffff;
    --border-color: #d0d7de;
    --shadow-color: rgba(0, 120, 212, 0.08);
    --gradient-bg: linear-gradient(135deg, #00a8ff 0%, #0078d4 100%);
    --gradient-accent: linear-gradient(135deg, #0078d4 0%, #60a5fa 100%);
    --cyber-glow: 0 0 20px rgba(0, 168, 255, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --section-padding: 80px 0;

    /* Variáveis para o tema escuro */
    --dark-bg: #010409;
    --dark-surface: #0d1117;
    --dark-primary: #00a8ff;
    --dark-accent: #60a5fa;
    --dark-text: #e6edf3;
    --dark-secondary-text: #8b949e;
    --dark-border: #21262d;
    --dark-card: #161b22;
    --dark-hover: #1c2128;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.section-subtitle {
    margin: 12px auto 0;
    max-width: 820px;
    color: var(--gray-color);
    font-size: 0.95rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.underline {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
    position: relative;
}

.underline::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -2px;
    width: 40px;
    height: 4px;
    background: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
}

.primary-btn {
    background: var(--gradient-bg);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.25);
    border: none;
    position: relative;
    overflow: hidden;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

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

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 168, 255, 0.35);
}

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

.secondary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    transition: left 0.3s;
    z-index: -1;
}

.secondary-btn:hover::before {
    left: 0;
}

.secondary-btn:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 168, 255, 0.25);
}

/* Header e Navegação */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

header.sticky {
    padding: 12px 20px;
    background-color: var(--background-color);
}

body.dark-theme header,
body.dark-theme header.sticky {
    background-color: var(--dark-surface);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

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

body.dark-theme .logo h1 {
    color: var(--dark-text);
}

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

.language-switch, .theme-switch {
    display: flex;
    gap: 5px;
}

.language-switch button, .theme-switch button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 500;
    transition: var(--transition);
}

.language-switch button.active, .theme-switch button.active {
    background-color: var(--primary-color);
    color: white;
}

.theme-switch button {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.theme-switch button i,
.toggle-btn i {
    transition: var(--transition);
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    color: var(--text-color);
    transition: color 0.3s ease;
}

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

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

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

.toggle-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.toggle-btn:hover {
    color: var(--primary-color);
}

/* Hero Section — Blue Team Cyber */
.hero-section {
    background: linear-gradient(135deg, #010409 0%, #0d1117 40%, #001d3d 70%, #003566 100%);
    position: relative;
    height: 100vh;
    color: white;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 168, 255, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 170, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 120, 212, 0.1) 0%, transparent 60%);
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.text-content {
    max-width: 600px;
}

.hero-section h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.hero-section h3 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-section h3 span {
    color: var(--accent-color);
}

.hero-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

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

.security-badge {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 3s infinite;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.security-badge::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00a8ff, #0078d4, #60a5fa);
    border-radius: 50%;
    z-index: -1;
    animation: rotate 3s linear infinite;
}

.badge-inner {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.9), rgba(0, 120, 212, 0.9));
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(0, 168, 255, 0.4), 0 0 60px rgba(0, 212, 170, 0.15);
    backdrop-filter: blur(5px);
}

.badge-inner i {
    font-size: 100px;
    color: white;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Hero Right (terminal container) */
.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 520px;
}

/* Hero Terminal */
.hero-terminal {
    width: 100%;
    background: rgba(1, 4, 9, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 168, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    animation: terminalIn 1s ease-out 0.5s both;
    font-family: 'Courier New', monospace;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 168, 255, 0.1);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
    margin-left: 8px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.terminal-body {
    padding: 14px 18px;
    font-size: 0.82rem;
    line-height: 1.7;
}

.terminal-body p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.term-prompt {
    color: var(--accent-color);
    font-weight: 700;
}

.term-cmd {
    color: var(--primary-color);
}

.term-output {
    color: rgba(255, 255, 255, 0.6) !important;
    padding-left: 16px;
}

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

/* Scan Line Effect */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.6), transparent);
    z-index: 3;
    animation: scanDown 8s linear infinite;
    opacity: 0.4;
    pointer-events: none;
}

@keyframes scanDown {
    0% { top: -2px; }
    100% { top: 100%; }
}

.social-links {
    position: absolute;
    bottom: 50px;
    right: 50px;
    display: flex;
    z-index: 2;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 15px;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* About Section */
.about-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--light-color) 0%, #ffffff 100%);
    overflow: hidden;
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(0,98,204,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    z-index: 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
}

.about-content:hover {
    transform: scale(1.02);
}

.about-image {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
    transition: all 0.5s ease;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.image-container:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.about-text {
    flex: 1;
    transition: all 0.5s ease;
}

.about-text:hover {
    transform: translateX(10px);
}

.about-text h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.about-text h3:hover {
    color: var(--primary-color);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.about-text p:hover {
    transform: translateX(5px);
}

/* Dark theme adjustments */
body.dark-theme .about-section {
    background-color: var(--dark-surface);
}

body.dark-theme .image-container {
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.1);
}

body.dark-theme .image-container:hover {
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .about-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .image-container {
        animation: floatMobile 4s ease-in-out infinite;
    }

    @keyframes floatMobile {
        0% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-10px);
        }
        100% {
            transform: translateY(0px);
        }
    }

    .about-text:hover {
        transform: translateY(5px);
    }

    .about-text p:hover {
        transform: translateY(2px);
    }
}

@media (max-width: 480px) {
    .about-image {
        max-width: 250px;
    }

    .about-text h3 {
        font-size: 1.8rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .image-container {
        border-radius: 15px;
    }
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
}

.info-item .label {
    font-weight: 600;
    margin-right: 10px;
    color: var(--primary-color);
}

/* Skills Section */
.skills-section {
    padding: var(--section-padding);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.skills-category {
    flex: 1;
    min-width: 300px;
}

.skills-category h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    padding-left: 15px;
    border-left: 4px solid var(--primary-color);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.skill-item {
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: 0 5px 15px var(--shadow-color);
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 168, 255, 0.15);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-info p {
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--gradient-bg);
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

.skill-item:hover .progress {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    animation: pulse-progress 1.5s infinite;
}

@keyframes pulse-progress {
    0% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.8;
    }
}

/* Education Section */
.education-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #ffffff 0%, var(--light-color) 100%);
    position: relative;
}

.education-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="lines" width="30" height="30" patternUnits="userSpaceOnUse"><path d="M 0 0 L 30 30 M 30 0 L 0 30" stroke="rgba(0,98,204,0.06)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23lines)"/></svg>');
    z-index: 0;
}

/* Experience Section */
.experience-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--light-color) 0%, #ffffff 100%);
    position: relative;
}

.experience-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="circles" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="1" fill="rgba(0,98,204,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23circles)"/></svg>');
    z-index: 0;
}

.timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 30px;
    position: relative;
    margin-bottom: 50px;
    width: 50%;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 30px;
    left: 50%;
}

.timeline-icon {
    position: absolute;
    left: calc(100% + 13px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -37px;
}

.timeline-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 5px 15px var(--shadow-color);
    width: 100%;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.timeline-content h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.period {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 15px;
    font-weight: 500;
    display: inline-block;
    background-color: var(--light-color);
    padding: 3px 10px;
    border-radius: 20px;
}

.timeline-content ul {
    margin-left: 20px;
}

.timeline-content ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.timeline-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.timeline-content p {
    line-height: 1.6;
    color: var(--text-color);
}

/* Section hint */
.section-hint {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--gray-color);
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    animation: hintFade 3s ease-in-out infinite;
}

.section-hint i {
    color: var(--primary-color);
    animation: hintPoint 1.5s ease-in-out infinite;
}

@keyframes hintPoint {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(-8deg); }
}

@keyframes hintFade {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.9; }
}

body.dark-theme .section-hint {
    color: var(--dark-secondary-text);
}

body.dark-theme .section-hint i {
    color: var(--dark-primary);
}

/* First card pulse to draw attention */
.timeline-item:first-child .timeline-content.clickable {
    animation: cardPulse 2.5s ease-in-out 1s 3;
}

@keyframes cardPulse {
    0%, 100% { box-shadow: 0 5px 15px var(--shadow-color); }
    50% { box-shadow: 0 5px 25px rgba(0, 168, 255, 0.25), 0 0 0 3px rgba(0, 168, 255, 0.1); }
}

/* Timeline card clickable */
.timeline-content.clickable {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
}

.timeline-content.clickable:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 168, 255, 0.15);
    border-color: rgba(0, 168, 255, 0.3);
}

.exp-summary {
    font-size: 0.95rem;
    color: var(--gray-color);
    margin-bottom: 12px;
}

.exp-tech-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.exp-tech-preview span {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(0, 168, 255, 0.1);
    color: var(--primary-color);
    font-weight: 500;
}

.exp-see-more {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: letter-spacing 0.3s ease;
}

.timeline-content.clickable:hover .exp-see-more {
    letter-spacing: 1px;
}

/* Experience Modal */
.exp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.exp-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.exp-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 680px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 0;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.35s ease;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.exp-modal-overlay.active .exp-modal {
    transform: translateY(0) scale(1);
}

.exp-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray-color);
    z-index: 10;
    line-height: 1;
    transition: color 0.2s;
}

.exp-modal-close:hover {
    color: var(--primary-color);
}

.exp-modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px 30px 20px;
    border-bottom: 1px solid var(--light-color);
}

.exp-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), #60a5fa);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.exp-modal-header h3 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 2px;
}

.exp-modal-header h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.exp-modal-header .period {
    margin-bottom: 0;
}

.exp-modal-body {
    padding: 24px 30px 30px;
}

.exp-modal-section {
    margin-bottom: 24px;
}

.exp-modal-section:last-child {
    margin-bottom: 0;
}

.exp-modal-section h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.exp-modal-section h5 i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.exp-modal-section p {
    line-height: 1.7;
    color: var(--text-color);
}

.exp-modal-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exp-modal-section ul li {
    padding: 8px 0 8px 24px;
    position: relative;
    line-height: 1.6;
    color: var(--text-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.exp-modal-section ul li:last-child {
    border-bottom: none;
}

.exp-modal-section ul li::before {
    content: '▸';
    position: absolute;
    left: 4px;
    color: var(--primary-color);
    font-weight: bold;
}

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

.exp-modal-tags span {
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(0, 168, 255, 0.1);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
}

.exp-modal-tags span:hover {
    background: rgba(0, 168, 255, 0.2);
    transform: translateY(-1px);
}

.exp-modal-impact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.impact-card {
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.08), rgba(0, 212, 170, 0.08));
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 1px solid rgba(0, 168, 255, 0.12);
}

.impact-metric {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.impact-label {
    font-size: 0.8rem;
    color: var(--gray-color);
    line-height: 1.4;
}

/* Dark theme modal */
body.dark-theme .exp-modal {
    background: var(--dark-card);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

body.dark-theme .exp-modal-header {
    border-bottom-color: var(--dark-border);
}

body.dark-theme .exp-modal-header h3,
body.dark-theme .exp-modal-section h5 {
    color: var(--dark-text);
}

body.dark-theme .exp-modal-section p,
body.dark-theme .exp-modal-section ul li {
    color: var(--dark-secondary-text);
}

body.dark-theme .exp-modal-section ul li {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

body.dark-theme .exp-modal-close {
    color: var(--dark-secondary-text);
}

body.dark-theme .exp-modal-close:hover {
    color: var(--dark-primary);
}

body.dark-theme .exp-tech-preview span,
body.dark-theme .exp-modal-tags span {
    background: rgba(0, 168, 255, 0.15);
    color: var(--dark-primary);
}

body.dark-theme .impact-card {
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.12), rgba(0, 212, 170, 0.12));
    border-color: rgba(0, 168, 255, 0.2);
}

body.dark-theme .impact-metric {
    color: var(--dark-primary);
}

body.dark-theme .exp-summary {
    color: var(--dark-secondary-text);
}

body.dark-theme .timeline-content.clickable:hover {
    box-shadow: 0 12px 30px rgba(0, 168, 255, 0.2);
    border-color: rgba(0, 168, 255, 0.4);
}

/* Projects Section */
.projects-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #ffffff 0%, var(--light-color) 100%);
    position: relative;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hexagons" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 20 0 L 40 10 L 40 30 L 20 40 L 0 30 L 0 10 Z" fill="none" stroke="rgba(0,98,204,0.06)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23hexagons)"/></svg>');
    z-index: 0;
}

.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 30px;
    background: transparent;
    border: 2px solid var(--border-color);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 450px));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.projects-container .project-card {
    width: 100%;
}

.project-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: white;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

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

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-img iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

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

.project-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.project-content p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--text-color);
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tags span {
    font-size: 0.8rem;
    background-color: var(--light-color);
    color: var(--gray-color);
    padding: 3px 10px;
    border-radius: 20px;
}

/* Certifications Section */
.certifications-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #ffffff 0%, var(--light-color) 100%);
    position: relative;
}

.certifications-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cert-pattern" width="45" height="45" patternUnits="userSpaceOnUse"><path d="M 22.5 0 L 45 22.5 L 22.5 45 L 0 22.5 Z" fill="none" stroke="rgba(0,98,204,0.06)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23cert-pattern)"/></svg>');
    z-index: 0;
}

.certifications-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.loading-badges {
    text-align: center;
    padding: 40px;
    color: var(--gray-color);
}

.loading-badges i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.extra-certificates {
    max-width: 1200px;
    margin: 40px auto 0;
    position: relative;
    z-index: 1;
}

.section-header.small {
    margin-bottom: 20px;
}

.section-header.small h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
}

.extra-certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.credentials-toggle-wrap {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.credentials-toggle-btn {
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-color);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.credentials-toggle-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.extra-certificate-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow-color);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.extra-certificate-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--light-color);
    transition: transform 0.35s ease;
}

.extra-certificate-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 3rem;
}

.extra-certificate-content {
    padding: 16px;
}

.extra-certificate-content h4 {
    color: var(--dark-color);
    font-size: 1.05rem;
}

.extra-certificate-content p {
    color: var(--gray-color);
    font-size: 0.92rem;
}

.extra-certificate-impact {
    margin-top: 8px;
    line-height: 1.5;
}

@media (hover: hover) and (pointer: fine) {
    .extra-certificate-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    }

    .extra-certificate-card:hover .extra-certificate-image {
        transform: scale(1.03);
    }
}

.certificate-gallery {
    max-width: 1200px;
    margin: 40px auto 0;
    position: relative;
    z-index: 1;
}

.gallery-header {
    text-align: center;
    margin-bottom: 20px;
}

.gallery-header h3 {
    font-size: 1.6rem;
    color: var(--dark-color);
}

.gallery-header p {
    color: var(--gray-color);
}

.gallery-slider {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gallery-viewport {
    overflow: hidden;
    width: 100%;
}

.gallery-track {
    display: flex;
    transition: transform 0.45s ease;
}

.gallery-card {
    min-width: 100%;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow-color);
    overflow: hidden;
}

.gallery-certificate-image {
    width: 100%;
    height: 360px;
    object-fit: cover;
    background: var(--light-color);
}

.gallery-card-content {
    padding: 18px 22px;
}

.gallery-card-content h4 {
    color: var(--dark-color);
    font-size: 1.1rem;
}

.gallery-card-content p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

.gallery-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-color);
    font-weight: 600;
}

.gallery-nav {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-nav:hover {
    background: var(--secondary-color);
}

.gallery-dots {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: #c5d0db;
    cursor: pointer;
}

.gallery-dot.active {
    background: var(--primary-color);
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.badge-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.badge-card::before {
    content: none;
}

.badge-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.badge-image {
    width: 84px;
    height: 84px;
    margin-bottom: 14px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eceff3;
    background: #fff;
}

.badge-card:hover .badge-image {
    transform: none;
    box-shadow: none;
}

.badge-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-image i {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 98, 204, 0.08), rgba(0, 86, 179, 0.08));
    border-radius: 10px;
}

.badge-info h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 600;
    line-height: 1.35;
}

.badge-info p {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 15px;
    line-height: 1.5;
}

.badge-issuer {
    font-size: 0.86rem;
    color: #4b5563;
    font-weight: 500;
}

.badge-date {
    font-size: 0.84rem;
    color: #6b7280;
    margin-top: 6px;
}

/* Tema Escuro para Certificações */
body.dark-theme .certifications-section {
    background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-bg) 100%);
}

body.dark-theme .certifications-section::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cert-pattern-dark" width="45" height="45" patternUnits="userSpaceOnUse"><path d="M 22.5 0 L 45 22.5 L 22.5 45 L 0 22.5 Z" fill="none" stroke="rgba(0,123,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23cert-pattern-dark)"/></svg>');
}

body.dark-theme .badge-card {
    background: var(--dark-card);
    border-color: var(--dark-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

body.dark-theme .badge-card:hover {
    background: var(--dark-hover);
    box-shadow: 0 12px 25px rgba(0, 123, 255, 0.2);
}

body.dark-theme .badge-info h3 {
    color: var(--dark-text);
}

body.dark-theme .badge-info p {
    color: var(--dark-secondary-text);
}

body.dark-theme .badge-issuer,
body.dark-theme .badge-date {
    color: var(--dark-secondary-text);
}

body.dark-theme .gallery-card {
    background: var(--dark-card);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-theme .section-header.small h3,
body.dark-theme .extra-certificate-content h4 {
    color: var(--dark-text);
}

body.dark-theme .extra-certificate-card {
    background: var(--dark-card);
}

@media (hover: hover) and (pointer: fine) {
    body.dark-theme .extra-certificate-card:hover {
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    }
}

body.dark-theme .extra-certificate-content p {
    color: var(--dark-secondary-text);
}

body.dark-theme .section-subtitle {
    color: var(--dark-secondary-text);
}

body.dark-theme .credentials-toggle-btn {
    background: var(--dark-card);
    color: var(--dark-text);
    border-color: var(--dark-border);
}

body.dark-theme .gallery-header h3 {
    color: var(--dark-text);
}

body.dark-theme .gallery-header p,
body.dark-theme .gallery-card-content p {
    color: var(--dark-secondary-text);
}

body.dark-theme .gallery-card-content h4 {
    color: var(--dark-text);
}

/* Responsividade para Certificações */
@media (max-width: 768px) {
    .badge-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .badge-card {
        padding: 16px;
    }
    
    .badge-image {
        width: 72px;
        height: 72px;
    }

    .gallery-certificate-image {
        height: 260px;
    }

    .gallery-nav {
        width: 36px;
        height: 36px;
    }

    .extra-certificate-image {
        height: 180px;
    }

    .section-subtitle {
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .badge-grid {
        grid-template-columns: 1fr;
    }
}

/* Tools Section — Categorized Blue Team */
.tools-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--light-color) 0%, #ffffff 100%);
    position: relative;
}

.tools-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="squares" width="35" height="35" patternUnits="userSpaceOnUse"><rect x="15" y="15" width="5" height="5" fill="rgba(0,168,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23squares)"/></svg>');
    z-index: 0;
}

.tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tool-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: var(--transition);
    position: relative;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 168, 255, 0.2);
}

.tool-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float-icon 4s ease-in-out infinite;
    position: relative;
}

.tool-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 10px;
    bottom: -10px;
    left: 0;
    background: radial-gradient(ellipse at center, rgba(0, 168, 255, 0.3) 0%, rgba(0, 168, 255, 0) 70%);
    border-radius: 50%;
    opacity: 0.5;
    transform: translateY(0);
    animation: shadow-float 4s ease-in-out infinite;
}

@keyframes shadow-float {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(0.85); opacity: 0.7; }
    100% { transform: scale(1); opacity: 0.5; }
}

@keyframes float-icon {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.tool-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    filter: drop-shadow(0 0 2px rgba(0, 168, 255, 0.1));
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon i {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(0, 168, 255, 0.3));
}

.tools-container .tool-card:nth-child(2n) .tool-icon,
.tools-container .tool-card:nth-child(2n) .tool-icon::after { animation-delay: 0.5s; }
.tools-container .tool-card:nth-child(3n) .tool-icon,
.tools-container .tool-card:nth-child(3n) .tool-icon::after { animation-delay: 1s; }
.tools-container .tool-card:nth-child(4n) .tool-icon,
.tools-container .tool-card:nth-child(4n) .tool-icon::after { animation-delay: 1.5s; }

body.dark-theme .tool-icon::after {
    background: radial-gradient(ellipse at center, rgba(0, 168, 255, 0.3) 0%, rgba(0, 168, 255, 0) 70%);
}

.tool-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.tool-card p {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Tooltip */
.tool-card::before {
    content: attr(data-tooltip-pt);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    min-width: 200px;
    max-width: 300px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 10;
    text-align: center;
    pointer-events: none;
}

.tool-card:hover::before {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 10px);
}

body.en .tool-card::before {
    content: attr(data-tooltip-en);
}

.tool-card::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 10;
    pointer-events: none;
}

.tool-card:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) rotate(180deg);
}

body.dark-theme .tool-card {
    background-color: var(--dark-card);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-theme .tool-icon {
    animation-name: float-icon-dark;
}

@keyframes float-icon-dark {
    0% { transform: translateY(0px); filter: drop-shadow(0 0 5px rgba(0, 168, 255, 0.1)); }
    50% { transform: translateY(-10px); filter: drop-shadow(0 0 10px rgba(0, 168, 255, 0.3)); }
    100% { transform: translateY(0px); filter: drop-shadow(0 0 5px rgba(0, 168, 255, 0.1)); }
}

body.dark-theme .tool-icon i {
    color: var(--dark-primary);
}

body.dark-theme .tool-card:hover {
    background-color: var(--dark-hover);
    box-shadow: 0 8px 20px rgba(0, 168, 255, 0.2);
}

body.dark-theme .tool-card h3 {
    color: var(--dark-text);
}

/* Tool-Experience Linking */
.tool-card[data-exp] {
    cursor: pointer;
    position: relative;
}
.tool-card[data-exp]::after {
    /* Override tooltip arrow — keep link icon instead */
}
.tool-card .tool-exp-badge {
    display: none;
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 0.6rem;
    color: var(--primary-color);
    opacity: 0.5;
}
.tool-card[data-exp] .tool-exp-badge {
    display: block;
}

/* When tools section is in "linked" filtering mode */
.tools-container.filtering .tool-card {
    opacity: 0.2;
    transform: scale(0.95);
    transition: opacity 0.3s, transform 0.3s;
}
.tools-container.filtering .tool-card.tool-linked {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.3);
    border: 1px solid var(--primary-color);
}

/* When experience section is in "linked" filtering mode */
.experience-section .timeline.filtering .timeline-item {
    opacity: 0.2;
    transition: opacity 0.3s, transform 0.3s;
}
.experience-section .timeline.filtering .timeline-item.exp-linked {
    opacity: 1;
}
.experience-section .timeline.filtering .timeline-item.exp-linked .timeline-content {
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.3);
    border: 1px solid var(--primary-color);
}

/* Floating "used at" label that appears on tool click */
.tool-exp-popup {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-color);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.72rem;
    white-space: nowrap;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid var(--primary-color);
}
.tool-exp-popup.visible { opacity: 1; }
.tool-exp-popup .popup-company {
    color: var(--primary-color);
    font-weight: 600;
}

body.dark-theme .tool-exp-popup {
    background: var(--dark-card);
    border-color: var(--dark-primary);
}
body.dark-theme .tools-container.filtering .tool-card.tool-linked {
    border-color: var(--dark-primary);
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.25);
}
body.dark-theme .experience-section .timeline.filtering .timeline-item.exp-linked .timeline-content {
    border-color: var(--dark-primary);
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.25);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #000000 100%);
    color: white;
    padding: 50px 0 20px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-pattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-pattern)"/></svg>');
    z-index: 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.footer-logo {
    flex: 2;
    min-width: 300px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

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

.footer-logo p {
    color: #adb5bd;
    max-width: 300px;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #adb5bd;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

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

.social-links-footer a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    transition: var(--transition);
}

.social-links-footer a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #343a40;
    margin-top: 50px;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #adb5bd;
}

/* Tema Escuro */
body.dark-theme {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

body.dark-theme header {
    background-color: var(--dark-surface);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-theme .logo h1 {
    color: var(--dark-text);
}

body.dark-theme .nav-links a {
    color: var(--dark-text);
}

body.dark-theme .skill-item,
body.dark-theme .timeline-content,
body.dark-theme .project-card,
body.dark-theme .tool-card {
    background-color: var(--dark-card);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-theme .about-section,
body.dark-theme .education-section,
body.dark-theme .experience-section,
body.dark-theme .tools-section,
body.dark-theme .projects-section {
    background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-bg) 100%);
}

body.dark-theme .about-section::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots-dark" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(0,123,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots-dark)"/></svg>');
}

body.dark-theme .education-section::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="lines-dark" width="30" height="30" patternUnits="userSpaceOnUse"><path d="M 0 0 L 30 30 M 30 0 L 0 30" stroke="rgba(0,123,255,0.15)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23lines-dark)"/></svg>');
}

body.dark-theme .experience-section::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="circles-dark" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="1" fill="rgba(0,123,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23circles-dark)"/></svg>');
}

body.dark-theme .projects-section::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hexagons-dark" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 20 0 L 40 10 L 40 30 L 20 40 L 0 30 L 0 10 Z" fill="none" stroke="rgba(0,123,255,0.15)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23hexagons-dark)"/></svg>');
}

body.dark-theme .tools-section::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="squares-dark" width="35" height="35" patternUnits="userSpaceOnUse"><rect x="15" y="15" width="5" height="5" fill="rgba(0,168,255,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23squares-dark)"/></svg>');
}

body.dark-theme .tools-section {
    background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-bg) 100%);
}

body.dark-theme footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #000000 100%);
}

body.dark-theme footer::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-pattern-dark" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(0,123,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-pattern-dark)"/></svg>');
}

body.dark-theme .about-text h3,
body.dark-theme .timeline-content h3,
body.dark-theme .project-content h3,
body.dark-theme .tool-card h3 {
    color: var(--dark-text);
}

body.dark-theme .about-text p,
body.dark-theme .timeline-content p,
body.dark-theme .project-content p {
    color: var(--dark-secondary-text);
}

body.dark-theme .info-item {
    border-bottom-color: var(--dark-border);
}

body.dark-theme .filter-btn {
    border-color: var(--dark-border);
    color: var(--dark-text);
}

body.dark-theme .projects-section .section-header h2 {
    color: var(--dark-text);
}

body.dark-theme .projects-section .underline {
    background: var(--dark-primary);
}

body.dark-theme .projects-section .underline::after {
    background: var(--accent-color);
}

body.dark-theme .project-tags span {
    background-color: var(--dark-surface);
    color: var(--dark-secondary-text);
}

body.dark-theme .period {
    background-color: var(--dark-surface);
    color: var(--dark-secondary-text);
}

body.dark-theme .progress-bar {
    background-color: var(--dark-border);
}

body.dark-theme .skill-item:hover {
    background-color: var(--dark-hover);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.2);
}

body.dark-theme .skill-item:hover .progress {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--dark-primary) 100%);
}

body.dark-theme .image-container {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-theme .image-container::before {
    border-color: var(--dark-primary);
}

@keyframes float-dark {
    0% {
        transform: translateY(0px);
        box-shadow: 0 10px 30px rgba(0, 123, 255, 0.1);
    }
    50% {
        transform: translateY(-15px);
        box-shadow: 0 25px 40px rgba(0, 123, 255, 0.15);
    }
    100% {
        transform: translateY(0px);
        box-shadow: 0 10px 30px rgba(0, 123, 255, 0.1);
    }
}

body.dark-theme .image-container {
    animation-name: float-dark;
}

/* Responsividade */
@media (max-width: 1200px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section h3 {
        font-size: 1.5rem;
    }
    
    .badge-inner {
        width: 180px;
        height: 180px;
    }
    
    .badge-inner i {
        font-size: 80px;
    }
}

@media (max-width: 992px) {
    header {
        padding: 15px 30px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .toggle-btn {
        display: block;
    }
    
    #navbar {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: var(--background-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        padding: 20px;
        z-index: 999;
    }
    
    body.dark-theme #navbar {
        background: var(--dark-surface);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    }
    
    #navbar.active {
        left: 0;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-links li {
        margin: 0;
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 15px 0;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }
    
    body.dark-theme .nav-links a {
        border-bottom-color: var(--dark-border);
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .text-content {
        margin-bottom: 30px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .hero-right {
        max-width: 100%;
        width: 100%;
    }
    
    .about-content, .contact-container {
        flex-direction: column;
    }
    
    .about-image, .about-text {
        flex: 100%;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .info-list {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 40px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 80px;
    }
    
    .timeline-icon {
        left: 15px;
    }
    
    .timeline-item:nth-child(even) .timeline-icon {
        left: 15px;
    }
    
    .social-links {
        bottom: 20px;
        right: 20px;
    }

    .hero-terminal {
        font-size: 0.9rem;
    }

    .nav-controls {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    header.sticky {
        padding: 12px 20px;
    }

    .nav-controls {
        gap: 10px;
    }

    #navbar {
        position: fixed;
        top: 61px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 61px);
        background-color: var(--background-color);
        transition: 0.3s ease;
        z-index: 999;
    }

    body.dark-theme #navbar {
        background-color: var(--dark-surface);
    }

    #navbar.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        gap: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }

    body.dark-theme .nav-links a {
        border-bottom-color: var(--dark-border);
    }

    .toggle-btn {
        display: block;
        font-size: 24px;
        cursor: pointer;
    }

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

    .about-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .image-container {
        position: relative;
        width: 100%;
        padding-bottom: 100%;
        margin: 0 auto;
    }

    .image-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .about-text {
        text-align: center;
        padding: 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section h3 {
        font-size: 1.3rem;
    }
    
    .security-badge {
        width: 200px;
        height: 200px;
    }
    
    .badge-inner {
        width: 150px;
        height: 150px;
    }
    
    .badge-inner i {
        font-size: 70px;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    .project-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
        margin-bottom: 10px;
    }
    
    .projects-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .project-content h3 {
        font-size: 1.1rem;
    }
    
    .project-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    header {
        padding: 10px 20px;
    }

    .terminal-body {
        font-size: 0.72rem;
        padding: 10px 14px;
    }

    .hero-section {
        padding: 0 20px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .hero-section h3 {
        font-size: 1.2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
    
    .security-badge {
        width: 180px;
        height: 180px;
    }
    
    .badge-inner {
        width: 120px;
        height: 120px;
    }
    
    .badge-inner i {
        font-size: 60px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .image-container::before {
        display: none;
    }
    
    .tools-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .social-links {
        bottom: 15px;
        right: 15px;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        margin-left: 10px;
    }
}

@media (max-width: 768px) {
    .exp-modal {
        width: 95%;
        max-height: 90vh;
        border-radius: 12px;
    }

    .exp-modal-header {
        padding: 20px 20px 16px;
        gap: 14px;
    }

    .exp-modal-body {
        padding: 18px 20px 24px;
    }

    .exp-modal-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .exp-modal-header h3 {
        font-size: 1.15rem;
    }

    .exp-modal-impact {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .exp-modal-impact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .projects-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 250px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

    .image-container {
        border-radius: 15px;
    }

    .about-image {
        max-width: 250px;
    }

    .nav-links {
        top: 57px;
        height: calc(100vh - 57px);
    }
}

.about-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* Tema Escuro */
[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --primary-color: #00ff9d;
    --secondary-color: #00cc7d;
    --card-bg: #2d2d2d;
    --border-color: #404040;
}

[data-theme="dark"] .nav-links a {
    color: var(--text-color);
}

[data-theme="dark"] .nav-links a:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .nav-links a i {
    color: var(--text-color);
}

[data-theme="dark"] .nav-links a:hover i {
    color: var(--primary-color);
}

[data-theme="dark"] .theme-toggle i {
    color: var(--text-color);
}

[data-theme="dark"] .theme-toggle:hover i {
    color: var(--primary-color);
}

[data-theme="dark"] .language-toggle i {
    color: var(--text-color);
}

[data-theme="dark"] .language-toggle:hover i {
    color: var(--primary-color);
}

/* Ajustes para os ícones e botões no tema escuro */
body.dark-theme .theme-switch button i,
body.dark-theme .toggle-btn i {
    color: var(--dark-text);
}

body.dark-theme .language-switch button {
    color: var(--dark-text);
}

body.dark-theme .language-switch button.active {
    background-color: var(--primary-color);
    color: white;
}

body.dark-theme .theme-switch button {
    color: var(--dark-text);
}

body.dark-theme .theme-switch button.active {
    background-color: var(--primary-color);
    color: white;
}

/* Hover effects no tema escuro */
body.dark-theme .theme-switch button:hover i,
body.dark-theme .toggle-btn:hover i {
    color: var(--primary-color);
}

body.dark-theme .language-switch button:hover {
    color: var(--primary-color);
}

/* Tema Escuro - Ajustes adicionais */
body.dark-theme .nav-controls button:not(.active) {
    color: var(--dark-text);
}

body.dark-theme .nav-controls button:not(.active) i {
    color: var(--dark-text);
}

body.dark-theme .nav-controls button.active {
    background-color: var(--primary-color);
}

body.dark-theme .nav-controls button.active i {
    color: white;
}

body.dark-theme .toggle-btn {
    color: var(--dark-text);
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        gap: 2rem;
        padding: 0 20px;
    }
    
    .about-image {
        max-width: 300px;
        width: 100%;
        margin: 0 auto;
        display: block;
    }
    
    .image-container {
        position: relative;
        width: 100%;
        padding-bottom: 100%;
        margin: 0 auto;
    }
    
    .image-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    .about-text {
        text-align: center;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .about-image {
        max-width: 250px;
        width: 100%;
        margin: 0 auto 20px;
    }
    
    .image-container {
        box-shadow: 0 5px 15px var(--shadow-color);
    }
} 
/* ==========================================================================
   Refresh visual 2026 — timeline compacta, métricas no hero, fundo unificado
   ========================================================================== */

/* --- Fundo unificado: um único grid sutil em todas as seções --- */
.about-section::before,
.education-section::before,
.experience-section::before,
.projects-section::before,
.certifications-section::before,
.tools-section::before,
body.dark-theme .about-section::before,
body.dark-theme .education-section::before,
body.dark-theme .experience-section::before,
body.dark-theme .projects-section::before,
body.dark-theme .certifications-section::before,
body.dark-theme .tools-section::before {
    background-image:
        linear-gradient(to right, rgba(0, 98, 204, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 98, 204, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    background-repeat: repeat;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
    mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
    animation: none;
    opacity: 1;
}

body.dark-theme .about-section::before,
body.dark-theme .education-section::before,
body.dark-theme .experience-section::before,
body.dark-theme .projects-section::before,
body.dark-theme .certifications-section::before,
body.dark-theme .tools-section::before {
    background-image:
        linear-gradient(to right, rgba(96, 165, 250, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(96, 165, 250, 0.05) 1px, transparent 1px);
}

/* --- Métricas no hero --- */
.hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 4px 0 28px;
    max-width: 560px;
}

.hero-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 10px;
    background: rgba(13, 17, 23, 0.45);
    backdrop-filter: blur(4px);
}

.hero-metric-value {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: #60a5fa;
}

.hero-metric-label {
    font-size: 0.78rem;
    line-height: 1.3;
    color: rgba(230, 237, 243, 0.78);
}

/* O hero passa a crescer com o conteúdo em vez de cortar em 100vh */
.hero-section {
    height: auto;
    min-height: 100vh;
    padding-top: 110px;
    padding-bottom: 80px;
}

/* --- Timeline compacta, alinhada à esquerda --- */
.timeline {
    max-width: 900px;
}

.timeline::before {
    left: 24px;
    transform: none;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), rgba(0, 168, 255, 0.15));
}

.timeline-item,
.timeline-item:nth-child(even) {
    width: 100%;
    left: 0;
    justify-content: flex-start;
    padding: 0 0 0 68px;
    margin-bottom: 20px;
}

.timeline-icon,
.timeline-item:nth-child(even) .timeline-icon {
    left: 0;
    top: 18px;
    width: 50px;
    height: 50px;
    border: 4px solid var(--background-color);
    box-shadow: 0 0 0 1px rgba(0, 168, 255, 0.25);
}

body.dark-theme .timeline-icon,
body.dark-theme .timeline-item:nth-child(even) .timeline-icon {
    border-color: var(--dark-bg);
}

.timeline-content {
    position: relative;
    padding: 20px 24px;
}

.timeline-content h3 {
    font-size: 1.2rem;
    line-height: 1.35;
    margin-bottom: 2px;
    padding-right: 72px; /* espaço para o selo "Atual" */
}

.timeline-content h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.timeline-content .period {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.78rem;
    margin-bottom: 10px;
}

.timeline-content.is-current {
    border-color: rgba(0, 168, 255, 0.45);
    box-shadow: 0 8px 28px rgba(0, 168, 255, 0.14);
}

.current-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0a7d4f;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.current-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

body.dark-theme .current-badge {
    color: #34d399;
    background: rgba(16, 185, 129, 0.1);
}

/* --- Placeholder de certificado sem imagem (ex.: NSE 3) --- */
.extra-certificate-image.placeholder {
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(135deg, #0d1117 0%, #001d3d 60%, #003566 100%);
    color: #60a5fa;
}

.extra-certificate-image.placeholder span {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(230, 237, 243, 0.85);
}

/* --- Responsivo --- */
@media (max-width: 992px) {
    .hero-metrics {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .about-text,
    .about-text p {
        text-align: left;
    }

    .about-text h3 {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .logo h1 {
        font-size: 1.3rem;
    }

    .nav-controls {
        gap: 8px;
    }

    .hero-section {
        padding-top: 90px;
        padding-bottom: 60px;
    }

    .hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hero-metric {
        text-align: left;
    }

    .hero-metric-value {
        font-size: 1.3rem;
    }

    .timeline::before {
        left: 17px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 48px;
    }

    .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
        top: 16px;
    }

    .timeline-content {
        padding: 18px;
    }

    .timeline-content h3 {
        font-size: 1.05rem;
        padding-right: 0;
    }

    .current-badge {
        position: static;
        margin-bottom: 8px;
    }
}

/* Corrige rolagem horizontal no celular causada pelos cards de ferramentas */
.tools-section {
    overflow-x: clip;
}

/* Empresa legível nos cards de timeline no tema escuro */
body.dark-theme .timeline-content h4 {
    color: var(--dark-secondary-text);
}

/* ==========================================================================
   Certificações — modelo único de card, bloco da pós e lightbox
   ========================================================================== */
.certifications-section .section-header.small {
    margin: 36px auto 4px;
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

.certifications-section .section-header.small h3 {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.cert-card {
    display: flex;
    flex-direction: column;
}

.cert-card .badge-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cert-card .badge-info p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cert-issuer-icon {
    width: 64px;
    height: 64px;
    border: none;
}

.cert-issuer-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.cert-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding: 8px 0 0;
    align-self: flex-start;
    background: none;
    border: none;
    color: var(--primary-color);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.cert-card .badge-date + .cert-view-btn {
    margin-top: 12px;
}

.cert-view-btn:hover span {
    text-decoration: underline;
}

.cert-view-btn:focus-visible,
.skill-chip:focus-visible,
.cert-lightbox-close:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Bloco da pós-graduação */
.cert-program {
    margin-top: 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.cert-program-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid #eef1f5;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.06), transparent 70%);
}

.cert-program-icon {
    flex: 0 0 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-bg);
    color: white;
    font-size: 1.4rem;
}

.cert-program-header h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 2px;
}

.cert-program-meta {
    font-size: 0.86rem;
    color: var(--gray-color);
}

.cert-program-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cert-module {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    border-bottom: 1px solid #f1f3f6;
}

.cert-module:last-child {
    border-bottom: none;
}

.cert-module-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cert-module-title {
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.4;
}

.cert-module-meta {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.76rem;
    color: var(--gray-color);
}

.cert-module .cert-view-btn {
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Lightbox */
.cert-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(1, 4, 9, 0.82);
    backdrop-filter: blur(4px);
}

.cert-lightbox.open {
    display: flex;
}

.cert-lightbox-inner {
    position: relative;
    max-width: min(1000px, 100%);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cert-lightbox img {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background: white;
}

.cert-lightbox-caption {
    margin-top: 12px;
    color: #e6edf3;
    font-size: 0.9rem;
    text-align: center;
}

.cert-lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #0d1117;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Tema escuro */
body.dark-theme .certifications-section .section-header.small h3 {
    color: var(--dark-text);
}

body.dark-theme .cert-program {
    background: var(--dark-card);
    border-color: var(--dark-border);
}

body.dark-theme .cert-program-header {
    border-bottom-color: var(--dark-border);
}

body.dark-theme .cert-program-header h4,
body.dark-theme .cert-module-title {
    color: var(--dark-text);
}

body.dark-theme .cert-program-meta,
body.dark-theme .cert-module-meta {
    color: var(--dark-secondary-text);
}

body.dark-theme .cert-module {
    border-bottom-color: var(--dark-border);
}

body.dark-theme .cert-issuer-icon i,
body.dark-theme .cert-view-btn {
    color: var(--dark-accent);
}

@media (max-width: 576px) {
    .cert-program-header,
    .cert-module {
        padding-left: 16px;
        padding-right: 16px;
    }

    .cert-module {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .cert-lightbox-close {
        top: -10px;
        right: -6px;
    }
}

/* ==========================================================================
   Competências — categorias com chips e stack principal
   ========================================================================== */
.tools-section .tools-container {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.skills-core {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px 22px;
    margin-bottom: 24px;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, #0d1117 0%, #001d3d 60%, #003566 100%);
    box-shadow: 0 10px 30px rgba(0, 53, 102, 0.18);
}

.skills-core-label {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #60a5fa;
    white-space: nowrap;
}

.skills-core .skill-chip {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(96, 165, 250, 0.35);
    color: #e6edf3;
}

.skills-core .skill-chip i {
    color: #60a5fa;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 18px;
}

.skill-category {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.skill-category-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.skill-category-icon {
    flex: 0 0 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 168, 255, 0.1);
    color: var(--primary-color);
}

.skill-category-header h3 {
    font-size: 1.02rem;
    color: var(--dark-color);
    margin-bottom: 2px;
}

.skill-category-header p {
    font-size: 0.82rem;
    color: var(--gray-color);
    line-height: 1.4;
}

.skills-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #e3e8ef;
    background: #f6f8fb;
    color: var(--text-color);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.2;
    transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.skill-chip i {
    font-size: 0.8rem;
    color: var(--gray-color);
}

button.skill-chip {
    cursor: pointer;
}

button.skill-chip:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.skill-chip.is-core {
    border-color: rgba(0, 168, 255, 0.45);
    background: rgba(0, 168, 255, 0.08);
    font-weight: 600;
}

.skill-chip.is-core i {
    color: var(--primary-color);
}

/* Destaque ao vincular com a Experiência */
.tools-container.filtering .skill-chip {
    opacity: 0.35;
}

.tools-container.filtering .skill-chip.tool-linked,
.skill-chip.tool-linked {
    opacity: 1;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.2);
}

.skill-chip .tool-exp-popup {
    z-index: 20;
}

/* Tema escuro */
body.dark-theme .skill-category {
    background: var(--dark-card);
    border-color: var(--dark-border);
}

body.dark-theme .skill-category-header h3 {
    color: var(--dark-text);
}

body.dark-theme .skill-category-header p {
    color: var(--dark-secondary-text);
}

body.dark-theme .skill-chip {
    background: var(--dark-surface);
    border-color: var(--dark-border);
    color: var(--dark-text);
}

body.dark-theme .skill-chip.is-core {
    background: rgba(0, 168, 255, 0.1);
    border-color: rgba(0, 168, 255, 0.45);
}

body.dark-theme .skills-core {
    border: 1px solid var(--dark-border);
}

@media (max-width: 576px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skills-core {
        padding: 16px;
    }

    .skill-category {
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .extra-certificates,
    .certifications-container,
    .tools-section .tools-container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ==========================================================================
   Logos das empresas na timeline e nos modais
   ========================================================================== */
.timeline-icon.has-logo,
.timeline-item:nth-child(even) .timeline-icon.has-logo {
    width: 56px;
    height: 56px;
    left: -3px;
    top: 16px;
    background: #ffffff;
    border-radius: 14px;
    border-width: 3px;
    padding: 3px;
    box-shadow: 0 0 0 1px rgba(0, 168, 255, 0.25), 0 4px 12px rgba(0, 53, 102, 0.12);
}

.timeline-icon.has-logo img,
.exp-modal-icon.has-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.exp-modal-icon.has-logo {
    background: #ffffff;
    padding: 6px;
    box-shadow: 0 0 0 1px rgba(0, 168, 255, 0.25);
}

.timeline-content.is-current ~ .timeline-icon.has-logo,
.timeline-item:first-child .timeline-icon.has-logo {
    box-shadow: 0 0 0 2px rgba(0, 168, 255, 0.55), 0 4px 14px rgba(0, 168, 255, 0.25);
}

body.dark-theme .timeline-icon.has-logo {
    border-color: var(--dark-bg);
}

@media (max-width: 576px) {
    .timeline-icon.has-logo,
    .timeline-item:nth-child(even) .timeline-icon.has-logo {
        width: 42px;
        height: 42px;
        left: -3px;
        padding: 2px;
        border-width: 2px;
        border-radius: 11px;
    }
}

/* Logo da FMU no bloco da pós-graduação */
.cert-program-icon.has-logo {
    background: #ffffff;
    padding: 4px;
    box-shadow: 0 0 0 1px rgba(0, 168, 255, 0.25), 0 4px 12px rgba(0, 53, 102, 0.12);
}

.cert-program-icon.has-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Logos com fundo próprio da marca (ex.: Allnet) preenchem o quadro */
.timeline-icon.has-logo.logo-fill,
.timeline-item:nth-child(even) .timeline-icon.has-logo.logo-fill,
.exp-modal-icon.has-logo.logo-fill {
    padding: 0;
    overflow: hidden;
}

.timeline-icon.has-logo.logo-fill img,
.exp-modal-icon.has-logo.logo-fill img {
    object-fit: cover;
    border-radius: inherit;
}

/* Logos dos emissores nos cards de certificado */
.cert-issuer-icon.has-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.cert-issuer-icon.has-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body.dark-theme .cert-issuer-icon.has-logo {
    background: #ffffff;
    border-color: var(--dark-border);
}

.cert-issuer-icon.has-logo.logo-wide {
    padding: 6px;
}

/* Logos monocromáticos nos chips de competências (cor da marca no hover) */
.chip-logo {
    display: inline-block;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    background-color: var(--gray-color);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: background-color 0.2s ease;
}

.skill-chip.is-core .chip-logo {
    background-color: var(--primary-color);
}

.skill-chip:hover .chip-logo {
    background-color: var(--brand, var(--primary-color));
}

.skills-core .skill-chip .chip-logo {
    background-color: #60a5fa;
}

.skills-core .skill-chip:hover .chip-logo {
    background-color: #ffffff;
}

body.dark-theme .chip-logo {
    background-color: var(--dark-secondary-text);
}

body.dark-theme .skill-chip.is-core .chip-logo {
    background-color: var(--dark-accent);
}

body.dark-theme .skill-chip:hover .chip-logo {
    background-color: var(--brand, var(--dark-accent));
}

/* Chips de ferramentas sempre "acesos": logo na cor da marca + brilho suave */
.skills-grid .skill-chip {
    --chip-accent: var(--brand, var(--primary-color));
    border-color: color-mix(in srgb, var(--chip-accent) 38%, transparent);
    background: color-mix(in srgb, var(--chip-accent) 7%, #ffffff);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--chip-accent) 16%, transparent);
}

.skills-grid .skill-chip .chip-logo,
body.dark-theme .skills-grid .skill-chip .chip-logo {
    background-color: var(--chip-accent);
}

.skills-grid .skill-chip i,
body.dark-theme .skills-grid .skill-chip i {
    color: var(--chip-accent);
}

.skills-grid button.skill-chip:hover,
.skills-grid .skill-chip:hover {
    border-color: var(--chip-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--chip-accent) 18%, transparent),
                0 6px 16px color-mix(in srgb, var(--chip-accent) 24%, transparent);
}

body.dark-theme .skills-grid .skill-chip {
    background: color-mix(in srgb, var(--chip-accent) 10%, var(--dark-surface));
    border-color: color-mix(in srgb, var(--chip-accent) 45%, transparent);
    box-shadow: 0 0 12px color-mix(in srgb, var(--chip-accent) 22%, transparent);
}

body.dark-theme .skills-grid .skill-chip:hover {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--chip-accent) 25%, transparent),
                0 0 18px color-mix(in srgb, var(--chip-accent) 35%, transparent);
}
