/* ============================
   1. RESET & VARIÁVEIS
   ============================ */
:root {
    --color-bg: #000000;
    --color-bg-alt: #070707;
    --color-panel: #070707;
    --color-text: #e0e0e0;
    --color-muted: #c7c7c7;
    --color-accent: #8b0000;
    --color-accent-light: #ff4d4d;
    --border-accent: 1px solid rgba(110, 0, 0, 0.8);
    --card-border-accent: 1px solid rgba(85, 0, 0, 0.9);
    --shadow-accent: 0 10px 22px rgba(110, 0, 0, 0.18);
    --color-surface: #ffffff;
    --color-surface-muted: #f4f4f4;
    --color-text-dark: #000000;
    --color-text-soft: #333333;
    --nav-height: 90px;
    --font-display: "Sora", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --font-body: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body.theme-light {
    --color-bg: #f7f7f7;
    --color-bg-alt: #ffffff;
    --color-panel: #ffffff;
    --color-text: #111111;
    --color-muted: #555555;
    --color-accent: #8b0000;
    --color-accent-light: #d93636;
    --color-surface: #ffffff;
    --color-surface-muted: #f0f0f0;
    --color-text-dark: #111111;
    --color-text-soft: #2b2b2b;
    --border-accent: 1px solid rgba(110, 0, 0, 0.65);
    --card-border-accent: 1px solid rgba(85, 0, 0, 0.7);
    --shadow-accent: 0 8px 18px rgba(110, 0, 0, 0.12);
    background-color: var(--color-bg);
    background-image: linear-gradient(135deg, #ffffff, #f0f0f0, #ffffff);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    background-image: linear-gradient(135deg, #000000, #1a1a1a, #000000);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-name,
.section-title {
    font-family: var(--font-display);
}

h1,
h2,
h3,
.hero-name,
.section-title {
    letter-spacing: -0.4px;
}

/* ============================
   2. BASE & ACESSIBILIDADE
   ============================ */
/* Acessibilidade: Skip link */
.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    background: #000000;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(139, 0, 0, 0.8);
    text-decoration: none;
    z-index: 2000;
    opacity: 0;
    transition: top 0.2s ease, opacity 0.2s ease;
}

.skip-link:focus {
    top: 16px;
    opacity: 1;
}

/* Acessibilidade: foco visivel */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(255, 77, 77, 0.8);
    outline-offset: 2px;
}

/* ============================
   3. LAYOUT & ESTRUTURA
   ============================ */
.page-content {
    padding-top: calc(var(--nav-height) + 12px);
}

.container,
main.container {
    max-width: 1600px;
    text-align: center;
    background-color: var(--color-panel);
    margin-bottom: 0.5rem;
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

main ul {
    list-style: none;
}

/* ============================
   4. NAVBAR
   ============================ */
.custom-navbar {
    background-color: rgba(0, 0, 0, 0.95);
    border-bottom: 2px solid var(--color-accent);
    transition: all 0.3s ease;
    z-index: 1030;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.custom-navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.98);
    box-shadow: 0 4px 20px rgba(139, 0, 0, 0.3);
}


.navbar .navbar-brand {
    color: #ffffff;
    transition: transform 0.3s ease, color 0.3s ease;
    margin-right: 30px;
}

.navbar .navbar-brand:hover {
    transform: scale(1.05);
    color: var(--color-accent-light);
}

.navbar .nav-link {
    color: #ffffff;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar .nav-link.nav-lang,
.navbar .theme-toggle {
    border: 1px solid rgba(139, 0, 0, 0.6);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    background: rgba(139, 0, 0, 0.12);
    color: var(--color-accent-light);
    box-shadow: 0 6px 16px rgba(139, 0, 0, 0.22);
}

.navbar .nav-link.nav-lang:hover,
.navbar .theme-toggle:hover {
    background: rgba(139, 0, 0, 0.22);
    color: var(--color-accent-light);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(139, 0, 0, 0.28);
}

.navbar .nav-link:hover {
    color: var(--color-accent-light);
    transform: scale(1.05);
}

.navbar .nav-link.active,
.navbar .nav-item .nav-link[aria-current="page"] {
    color: var(--color-accent-light) !important;
    border-bottom: 2px solid var(--color-accent-light);
    padding-bottom: 2px;
}

/* Theme toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    margin-top: 0;
    padding: 0;
}

.theme-toggle:hover {
    background: rgba(139, 0, 0, 0.22);
    color: var(--color-accent-light);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(139, 0, 0, 0.28);
}

/* Navbar toggler (menu hamburguer) */
.navbar-toggler {
    border: 2px solid #c41e3a;
    background: rgba(196, 30, 58, 0.15);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(196, 30, 58, 0.35);
    border-color: #ff4d4d;
}

.navbar-toggler:hover {
    background: rgba(196, 30, 58, 0.25);
    border-color: #ff4d4d;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23c41e3a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

/* ============================
   5. SEÇÕES & CARDS BASE
   ============================ */
section h3 {
    color: #ffffff;
    border-bottom: 2px solid #5e5e5e;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

article,
address {
    background: #ffffff;
    padding: 1.5rem;
    border: var(--border-accent);
    border-radius: 8px;
    box-shadow: var(--shadow-accent);
    margin-bottom: 1.5rem;
}

.container,
main.container,
.about-content,
.tech-item,
.timeline-content,
.course-card,
.project-card,
.contact-card,
.contact-social,
.contact-form-wrapper {
    background-color: var(--color-panel);
    border: var(--card-border-accent);
    box-shadow: var(--shadow-accent);
}

article h4 {
    color: #000000;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

article time {
    color: #700505;
    font-size: 0.75rem;
    display: block;
    margin-bottom: 1rem;
}

time.datetime {
    font-weight: bold;
}

article p,
address p,
article ul li {
    color: #000000;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 1rem;
}

/* Ícones via CSS (Pseudo-elementos) */
.formation::before {
    content: "🎓";
    margin-right: 0.5rem;
}

.job::before {
    content: "💼";
    margin-right: 0.5rem;
}

article time::before {
    content: "📅";
    margin-right: 0.3rem;
}

/* ============================
   6. HERO SECTION
   ============================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 0, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-image-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
}

.hero-profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid var(--color-accent);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: none;
}

.hero-image-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #8b0000;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.6);
}

.hero-text {
    margin-bottom: 2rem;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--color-accent-light);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-name {
    font-size: 3.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

body.theme-light .hero-name {
    color: #000000;
    text-shadow: none;
}

.hero-title {
    font-size: 1.5rem;
    color: var(--color-text);
    font-weight: 400;
    margin-bottom: 1.5rem;
    min-height: 2rem;
}

.typewriter,
.typewriter-cursor {
    color: var(--color-accent-light);
}

.typewriter-cursor {
    animation: blink 1s infinite;
}

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

.hero-description {
    font-size: 1.1rem;
    color: var(--color-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: #ffffff;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    border: none;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(139, 0, 0, 0.4);
    filter: brightness(1.05);
    border: solid 2px var(--color-accent);
    color: #ffffff;
}

.btn-hero-secondary {
    background: transparent;
    color: #ffffff;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    border: 2px solid var(--color-accent-light);
}

.btn-hero-secondary:hover {
    background: rgba(139, 0, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(139, 0, 0, 0.28);
    border: solid 2px var(--color-accent);
    color: var(--color-accent-light);
}

body.theme-light .btn-hero-secondary {
    color: var(--color-accent);
}

.hero-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #0b0b0b;
    border: 1px solid rgba(139, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-light);
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link i {
    color: var(--color-accent-light);
}

.social-link:hover {
    background: #1a1a1a;
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(139, 0, 0, 0.35);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-link {
    color: var(--color-accent-light);
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.scroll-link:hover {
    color: #ffffff;
}

/* ============================
   7. SOBRE & TECNOLOGIAS
   ============================ */
.about-section {
    padding: 4.5rem 0;
    background: transparent;
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 2.7rem;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    margin: 0 auto;
    border-radius: 2px;
}

.about-content {
    background: var(--color-bg-alt);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(139, 0, 0, 0.3);
}

.about-content p {
    color: var(--color-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-content p:last-of-type {
    margin-bottom: 2rem;
}

.about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(139, 0, 0, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    border: 1px solid rgba(139, 0, 0, 0.3);
    color: var(--color-text);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: rgba(139, 0, 0, 0.2);
    transform: translateY(-2px);
}

.highlight-item i {
    color: var(--color-accent-light);
}

.tech-section {
    padding: 0;
    background: transparent;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--color-bg-alt);
    border-radius: 12px;
    border: 1px solid rgba(139, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: default;
}

.tech-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-light);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.2);
}

.tech-item i,
.tech-item img {
    font-size: 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--color-accent-light);
    transition: transform 0.3s ease;
    filter: invert(53%) sepia(79%) saturate(800%) hue-rotate(314deg) brightness(1.05);
}

.tech-item:hover i,
.tech-item:hover img {
    transform: scale(1.1);
}

.tech-item:hover i {
    transform: scale(1.1);
}

.tech-item span {
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================
   8. CURRÍCULO
   ============================ */
.resume-page {
    padding: 2rem 1.5rem 2.5rem;
}

.resume-section {
    margin-bottom: 2.5rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.skill-chip {
    background: rgba(139, 0, 0, 0.15);
    color: var(--color-text);
    border: 1px solid rgba(139, 0, 0, 0.4);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.skill-chip:hover {
    background: rgba(139, 0, 0, 0.3);
    color: #ffffff;
}

.timeline {
    position: relative;
    padding-left: 2rem;
    display: grid;
    gap: 2rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0.7rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(139, 0, 0, 0.4);
}

.timeline-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
}

.timeline-marker {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(139, 0, 0, 0.2);
    border: 2px solid var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-light);
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.timeline-content {
    background: #ffffff;
    color: #000000;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(139, 0, 0, 0.4);
    text-align: left;
}

.timeline-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.timeline-content p {
    margin-bottom: 0.5rem;
    color: #333333;
}

.timeline-content time.datetime,
.course-card time.datetime {
    color: #700505;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 0.5rem;
}

.timeline-content time.datetime::before,
.course-card time.datetime::before {
    content: "📅";
    margin-right: 0.35rem;
    font-size: 1em;
}

.timeline-list {
    margin: 0.75rem 0 0;
    padding-left: 1.2rem;
    text-align: left;
}

.timeline-list li {
    list-style: disc;
    color: #333333;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.course-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.course-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(139, 0, 0, 0.4);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.course-card h4 {
    color: #000000;
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.course-provider {
    color: #555555;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.language-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.language-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(139, 0, 0, 0.15);
    border: 1px solid rgba(139, 0, 0, 0.4);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--color-text);
    transition: all 0.2s ease;
}

.language-item:hover {
    background: rgba(139, 0, 0, 0.3);
    color: #ffffff;
}

.language-item i {
    color: var(--color-accent-light);
}

.resume-download {
    text-align: center;
}

.resume-download p {
    color: var(--color-muted);
    margin-bottom: 1rem;
}

.btn-resume-download {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-resume-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(139, 0, 0, 0.35);
    filter: brightness(1.04);
    color: #ffffff;
}

/* ============================
   9. PROJETOS
   ============================ */
.projects-page {
    padding: 2.5rem 2rem 3rem;
}

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

.projects-intro {
    color: var(--color-muted);
    max-width: 720px;
    margin: 0 auto 1.75rem;
    line-height: 1.7;
}

.gallery-section {
    margin-bottom: 2.5rem;
}

.gallery-header {
    text-align: center;
    margin-bottom: 1rem;
}

.gallery-carousel {
    border-radius: 16px;
    overflow: hidden;
    border: var(--border-accent);
    box-shadow: var(--shadow-accent);
    background: #0f0f0f;
}

.gallery-carousel .carousel-inner img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    background-color: #0b0b0b;
    display: block;
    margin: 0 auto;
}

.gallery-carousel .carousel-inner {
    background-color: #0b0b0b;
}

.gallery-carousel .carousel-item {
    align-items: center;
    justify-content: center;
}

.gallery-carousel .carousel-item.active,
.gallery-carousel .carousel-item-next,
.gallery-carousel .carousel-item-prev {
    display: flex;
}

.gallery-carousel .carousel-indicators [data-bs-target] {
    background-color: var(--color-accent-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.6rem;
}

.project-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(139, 0, 0, 0.35);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(139, 0, 0, 0.18);
}

.project-cover {
    position: relative;
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.8), rgba(0, 0, 0, 0.9));
    overflow: hidden;
    border-bottom: 3px solid rgba(139, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.project-card:hover .project-cover {
    transform: scale(1.02);
}

.project-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.65));
    z-index: 1;
}

.project-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.4;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card:hover .project-cover-img {
    opacity: 0.6;
    transform: scale(1.05);
}

.project-cover--romaneios {
    background: linear-gradient(135deg, #8b0000, #1a1a1a);
}

.project-cover--ncr {
    background: linear-gradient(135deg, #1a1a1a, #8b0000);
}

.project-cover--portfolio {
    background: linear-gradient(135deg, #0f0f0f, #5c0d0d);
}

.project-cover--analytics {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.project-cover--dataanalysis {
    background: linear-gradient(135deg, #166534, #22c55e);
}

.project-cover--landingpage {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.project-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.8rem;
    z-index: 2;
}

.project-status {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.project-status--done {
    background: rgba(255, 255, 255, 0.85);
    color: #000000;
}

.project-body {
    padding: 1.4rem;
    color: #000000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
}

.project-body h4 {
    font-size: 1.45rem;
    margin-bottom: 0;
    font-weight: 700;
    line-height: 1.25;
}

.project-subtitle {
    color: #555555;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.project-body time {
    color: #700505;
    font-size: 0.8rem;
}

.project-body p {
    color: #333333;
    font-size: 0.95rem;
    line-height: 1.55;
    text-align: center;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.project-subtitle,
.project-body time {
    text-align: center;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: center;
}

.project-tags span {
    background: rgba(139, 0, 0, 0.12);
    color: #700505;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 0.75rem;
    justify-content: center;
}

.project-link {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.project-link:hover {
    color: var(--color-accent-light);
    transform: translateY(-1px);
}

.project-link--repo {
    color: #333333;
}

.project-link--repo:hover {
    color: var(--color-accent);
}

/* ============================
   10. CONTATO
   ============================ */
.contact-page {
    padding: 2rem 1.5rem 2.5rem;
}

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

.contact-intro {
    color: var(--color-muted);
    max-width: 720px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 1.5rem;
}

.contact-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(139, 0, 0, 0.35);
    display: flex;
    gap: 1rem;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.contact-card h4 {
    margin-bottom: 0.4rem;
    color: #000000;
}

.contact-card p,
.contact-card a {
    color: #333333;
    margin-bottom: 0.2rem;
    text-decoration: none;
}

.contact-card a:hover {
    color: var(--color-accent-light);
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(139, 0, 0, 0.15);
    border: 1px solid rgba(139, 0, 0, 0.35);
    color: var(--color-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-social {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(139, 0, 0, 0.35);
    text-align: left;
}

.contact-social-title {
    margin-bottom: 1rem;
    color: #000000;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.8rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0b0b0b;
    border: 1px solid rgba(139, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-light);
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-links a i {
    color: var(--color-accent-light);
}

.social-links a:hover {
    background: #1a1a1a;
    color: #ffffff;
    transform: translateY(-2px);
}

.contact-form-wrapper {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(139, 0, 0, 0.35);
    text-align: left;
}

.contact-form {
    display: grid;
    gap: 1.2rem;
}

.form-field {
    display: grid;
    gap: 0.4rem;
}

.form-field label {
    font-weight: 600;
    color: #000000;
}

.form-field input,
.form-field textarea {
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.15);
}

.field-error {
    display: none;
    color: #b00020;
    font-size: 0.8rem;
}

.form-field.has-error .field-error {
    display: block;
}

.form-field.has-error input,
.form-field.has-error textarea {
    border-color: #b00020;
}

.btn-contact-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(139, 0, 0, 0.35);
    filter: brightness(1.04);
}

.btn-contact-submit:disabled,
.btn-contact-submit.is-loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.contact-result {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-accent);
}

.contact-result.is-error {
    color: #b00020;
}

/* ============================
   11. UTILITÁRIOS
   ============================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #000000;
    border: 1px solid rgba(139, 0, 0, 0.8);
    color: var(--color-accent-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1050;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #0b0b0b;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(139, 0, 0, 0.35);
}

/* ============================
   12. TEMA CLARO (OVERRIDES)
   ============================ */
body.theme-light .custom-navbar {
    background-color: rgba(255, 255, 255, 0.95);
}

body.theme-light .custom-navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.theme-light .navbar .navbar-brand,
body.theme-light .navbar .nav-link {
    color: var(--color-text);
}

body.theme-light .navbar .nav-link.nav-lang {
    background: rgba(139, 0, 0, 0.08);
    color: var(--color-accent);
    align-items: center;
}

body.theme-light .navbar .theme-toggle {
    background: rgba(139, 0, 0, 0.08);
    color: var(--color-accent);
    border: 1px solid rgba(139, 0, 0, 0.45);
    box-shadow: 0 6px 16px rgba(139, 0, 0, 0.18);
}

body.theme-light .navbar .nav-link.nav-lang:hover,
body.theme-light .navbar .theme-toggle:hover {
    background: rgba(139, 0, 0, 0.16);
    color: var(--color-accent);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(139, 0, 0, 0.22);
}

body.theme-light section h3 {
    color: var(--color-text);
    border-bottom-color: #d0d0d0;
}

body.theme-light article,
body.theme-light address,
body.theme-light .timeline-content,
body.theme-light .course-card,
body.theme-light .project-card,
body.theme-light .contact-card,
body.theme-light .contact-social,
body.theme-light .contact-form-wrapper {
    background: var(--color-surface);
}

body.theme-light article h4,
body.theme-light .timeline-content h4,
body.theme-light .course-card h4,
body.theme-light .project-body h4,
body.theme-light .contact-card h4,
body.theme-light .form-field label {
    color: var(--color-text-dark);
}

body.theme-light article p,
body.theme-light article ul li,
body.theme-light address p,
body.theme-light .timeline-content p,
body.theme-light .timeline-list li,
body.theme-light .course-provider,
body.theme-light .project-body p,
body.theme-light .project-subtitle,
body.theme-light .project-link--repo,
body.theme-light .contact-card p,
body.theme-light .contact-card a {
    color: var(--color-text-soft);
}

body.theme-light .tech-section {
    background: transparent;
}

body.theme-light .about-section {
    background: transparent;
}

body.theme-light .hero-section::before {
    background: radial-gradient(ellipse at center, rgba(139, 0, 0, 0.08) 0%, transparent 70%);
}

body.theme-light .social-link,
body.theme-light .social-links a {
    background: #ffffff;
    border-color: rgba(139, 0, 0, 0.5);
    color: var(--color-accent);
}

body.theme-light .social-link:hover,
body.theme-light .social-links a:hover {
    background: #f2f2f2;
    color: var(--color-accent);
}

body.theme-light .footer {
    background-color: #ffffff;
    background-image: linear-gradient(135deg, #ffffff, #f0f0f0);
    color: #111111;
}

body.theme-light .footer__item {
    color: #5a0a0a;
    font-weight: 700;
}

body.theme-light .footer__item:hover {
    color: var(--color-accent);
}

body.theme-light .footer__byline {
    color: #444444;
}

body.theme-light .footer__byline-link {
    color: #b00020;
}

body.theme-light .footer__built {
    color: #666666;
}

body.theme-light .footer__tagline {
    color: #555555;
}

body.theme-light .skip-link {
    background: #ffffff;
    color: #000000;
    border-color: rgba(139, 0, 0, 0.5);
}

/* ============================
   13. FOOTER
   ============================ */
.footer {
    background-color: #000000;
    background-image: linear-gradient(135deg, #000000, #1a1a1a);
    padding: 0;
    margin-top: 3px;
    color: #ffffff;
    font-size: 13px;
    border-top: 5px solid var(--color-accent);
}

.footer__content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    flex-wrap: wrap;
}

.left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding-left: 40px;
}

.right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.footer__text {
    margin: 0;
    line-height: 1.5;
}

.footer__item {
    color: #cccccc;
    text-decoration: none;
    font-weight: 500;
}

.footer__item:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer__version {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: #aaaaaa;
}

.footer__tagline {
    margin-top: 0.3rem;
    font-size: 0.75rem;
    color: #c7c7c7;
    line-height: 1.4;
}

.footer__byline {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #666666;
}

.footer__byline-link {
    text-decoration: none;
    color: #ff003c;
}

.footer__built {
    margin-top: 0.5rem;
    color: #aaaaaa;
}

.footer__sup {
    font-size: 0.65em;
    vertical-align: super;
    margin-left: 0.2rem;
    letter-spacing: 0.04em;
}

.footer__info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.logo {
    height: auto;
    max-height: 150px;
    max-width: 100%;
    transition: transform 0.5s ease-in-out, filter 0.5s ease-in-out;
}

.logo:hover {
    transform: scale(1.5);
    filter: brightness(1.1) drop-shadow(16px 16px 20px red);
}

/* ============================
   14. ANIMAÇÕES
   ============================ */
.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease 0.6s forwards;
    opacity: 0;
}

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

.animate-slide-up {
    animation: slideUp 1s ease 0.3s forwards;
    opacity: 0;
}

.animate-slide-up-delay {
    animation: slideUp 1s ease 0.5s forwards;
    opacity: 0;
}

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

.animate-bounce {
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================
   15. RESPONSIVIDADE - MOBILE FIRST
   ============================ */
/* 
 * NOTA: Este CSS usa uma abordagem híbrida.
 * Estilos base otimizados para mobile (320px-480px)
 * Media queries progressivas para telas maiores
 * 
 * Breakpoints:
 * - Base: Mobile (320px-480px) 
 * - 481px+: Mobile landscape / Phablets
 * - 769px+: Tablets / Small desktop
 * - 992px+: Desktop / Large screens
 */

/* Mobile pequeno - Base styles já otimizados acima */

/* Mobile landscape e phablets (481px+) */
@media (min-width: 481px) {
    .hero-profile-img {
        width: 160px;
        height: 160px;
    }
    
    .hero-image-wrapper {
        width: 180px;
        height: 180px;
    }
    
    .hero-name {
        font-size: 2.2rem;
    }
}

/* Tablets e desktop pequeno (769px+) */
@media (min-width: 769px) {
    .navbar .navbar-brand {
        font-size: 1.1rem;
        margin-right: 15px;
    }
    
    .navbar .nav-link {
        font-size: 1rem;
        padding: 0.4rem 0.6rem;
    }
    
    .hero-profile-img {
        width: 180px;
        height: 180px;
    }
    
    .hero-image-wrapper {
        width: 200px;
        height: 200px;
    }
    
    .hero-name {
        font-size: 3.2rem;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        margin-top: 0;
    }
}

/* LEGACY - Manter para compatibilidade (será refatorado) */
@media (max-width: 768px) {
    .navbar .navbar-brand {
        font-size: 1rem;
        margin-right: 0;
    }

    .navbar .nav-link {
        font-size: 0.95rem;
        padding: 0.35rem 0.55rem;
    }

    .navbar .nav-link i {
        font-size: 0.9rem;
        margin-right: 0.35rem;
    }

    .navbar-nav {
        gap: 0.25rem;
    }

    .navbar .nav-link.nav-lang,
    .theme-toggle {
        font-size: 0.7rem;
        padding: 0.2rem 0.55rem;
    }

    .theme-toggle {
        width: 34px;
        height: 34px;
        margin: 1rem auto 0;
    }

    .theme-toggle i {
        font-size: 0.9rem;
    }

    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        min-width: 44px;
        min-height: 44px;
    }

    .navbar-toggler-icon {
        width: 1.2em;
        height: 1.2em;
    }

    .hero-name {
        font-size: 2.3rem;
        line-height: 1.12;
    }

    .hero-title {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-social {
        gap: 0.75rem;
    }

    .social-link {
        width: 48px;
        height: 48px;
        font-size: 1.15rem;
    }

    .section-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .about-content {
        padding: 1.5rem;
    }

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

    .highlight-item {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .tech-item {
        padding: 1rem;
    }

    .tech-item i {
        font-size: 2rem;
    }

    .resume-page {
        padding: 1.5rem 1rem 2.5rem;
    }

    .timeline {
        padding-left: 1.25rem;
    }

    .timeline::before {
        left: 0.4rem;
    }

    .timeline-item {
        grid-template-columns: 32px 1fr;
        gap: 0.75rem;
    }

    .timeline-marker {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .projects-page {
        padding: 1.75rem 1.25rem 2.5rem;
    }

    .project-subtitle {
        line-height: 1.3;
    }

    .gallery-section {
        margin-bottom: 2rem;
    }

    .gallery-carousel .carousel-inner img {
        height: auto;
        max-height: 380px;
        object-fit: contain;
    }

    .projects-grid {
        gap: 1.25rem;
    }

    .project-body {
        padding: 1.15rem;
    }

    .project-body h4 {
        font-size: 1.25rem;
        line-height: 1.25;
    }

    .contact-page {
        padding: 1.5rem 1rem 2.5rem;
    }

    .contact-grid {
        gap: 1.5rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .footer__content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 18px 24px;
        gap: 0.8rem;
    }

    .footer__info {
        align-items: center;
    }

    .left,
    .right {
        width: 100%;
        justify-content: center;
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .navbar .navbar-brand {
        font-size: 0.95rem;
    }

    .navbar .nav-link {
        font-size: 0.9rem;
        padding: 0.3rem 0.5rem;
    }

    .navbar .nav-link i {
        font-size: 0.85rem;
        margin-right: 0.3rem;
    }

    .navbar .nav-link.nav-lang,
    .theme-toggle {
        font-size: 0.65rem;
        padding: 0.15rem 0.5rem;
        min-height: 44px;
        min-width: 44px;
    }

    .theme-toggle {
        width: 44px;
        height: 44px;
        margin: 0.8rem auto 0;
    }

    .theme-toggle i {
        font-size: 0.85rem;
    }

    .navbar-toggler {
        padding: 0.2rem 0.45rem;
    }

    .navbar-toggler-icon {
        width: 1em;
        height: 1em;
    }

    .hero-image-wrapper {
        width: 160px;
        height: 160px;
    }

    .hero-profile-img {
        width: 140px;
        height: 140px;
    }

    .hero-name {
        font-size: 2rem;
        line-height: 1.15;
    }

    .hero-greeting {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.95rem;
        line-height: 1.2;
    }

    .project-subtitle {
        line-height: 1.25;
    }

    .projects-page {
        padding: 1.25rem 0.75rem 2rem;
    }

    .projects-intro {
        margin-bottom: 1.25rem;
    }

    .projects-grid {
        gap: 1rem;
    }

    .gallery-carousel .carousel-inner img {
        height: auto;
        max-height: 280px;
        object-fit: contain;
    }

    .gallery-carousel {
        border-radius: 12px;
    }

    .project-cover {
        min-height: 140px;
    }

    .project-body {
        padding: 1rem;
        gap: 0.6rem;
    }

    .project-body h4 {
        font-size: 1.15rem;
        line-height: 1.25;
    }

    .project-subtitle {
        font-size: 0.9rem;
    }

    .project-body p {
        font-size: 0.9rem;
    }

    .project-tags {
        gap: 0.4rem;
    }

    .project-tags span {
        font-size: 0.75rem;
    }

    .project-links {
        gap: 1rem;
    }

    .footer__content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px 20px;
        gap: 0.75rem;
    }

    .footer__info {
        align-items: center;
    }

    .left,
    .right {
        width: 100%;
        justify-content: center;
        padding-left: 0;
    }
}

@media (min-width: 992px) {
    .navbar-nav .nav-item {
        display: flex;
        align-items: center;
    }
}
