/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0f766e;
    --secondary-color: #1d4ed8;
    --accent-color: #f97316;
    --text-color: #1f2937;
    --text-light: #4b5563;
    --bg-color: #f8fafc;
    --bg-secondary: #eef2f7;
    --bg-dark: #0b1325;
    --surface-color: #ffffff;
    --border-color: #dbe4ef;
    --focus-color: #f97316;
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 38px rgba(15, 23, 42, 0.14);
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --primary-color: #2dd4bf;
    --secondary-color: #60a5fa;
    --accent-color: #fb923c;
    --text-color: #e5e7eb;
    --text-light: #94a3b8;
    --bg-color: #0b1220;
    --bg-secondary: #111b2f;
    --bg-dark: #020617;
    --surface-color: #162238;
    --border-color: #2b3a55;
    --focus-color: #fb923c;
    --shadow: 0 8px 24px rgba(2, 6, 23, 0.45);
    --shadow-lg: 0 18px 40px rgba(2, 6, 23, 0.6);
}

/* Dark Mode - Elementos específicos */
[data-theme="dark"] .navbar {
    background: rgba(11, 18, 32, 0.9);
}

[data-theme="dark"] .project-card,
[data-theme="dark"] .highlight-item,
[data-theme="dark"] .resume-item,
[data-theme="dark"] .skills-category,
[data-theme="dark"] .contact-item,
[data-theme="dark"] .contact-form {
    background: var(--surface-color);
    color: var(--text-color);
}

[data-theme="dark"] .project-info h3,
[data-theme="dark"] .resume-header h4,
[data-theme="dark"] .highlight-item h3,
[data-theme="dark"] .skills-category h3,
[data-theme="dark"] .contact-item h4 {
    color: var(--text-color);
}

[data-theme="dark"] .project-info p,
[data-theme="dark"] .resume-description,
[data-theme="dark"] .highlight-item p,
[data-theme="dark"] .contact-item p {
    color: var(--text-light);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: var(--bg-secondary);
    color: var(--text-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
    color: var(--text-light);
    opacity: 0.6;
}

[data-theme="dark"] .skill-item {
    background: rgba(148, 163, 184, 0.08);
}

[data-theme="dark"] .level-forte {
    background: rgba(45, 212, 191, 0.2);
    color: #99f6e4;
}

[data-theme="dark"] .level-intermediario {
    background: rgba(96, 165, 250, 0.24);
    color: #bfdbfe;
}

[data-theme="dark"] .level-base {
    background: rgba(148, 163, 184, 0.24);
    color: #e2e8f0;
}

[data-theme="dark"] .level-evolucao {
    background: rgba(251, 146, 60, 0.24);
    color: #fed7aa;
}

[data-theme="dark"] .about-text p,
[data-theme="dark"] .about-bullets li {
    color: var(--text-light);
}

[data-theme="dark"] .resume-company {
    color: var(--primary-color);
}

[data-theme="dark"] .resume-date,
[data-theme="dark"] .contact-item a {
    color: var(--text-light);
}

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

[data-theme="dark"] .project-image {
    background: var(--bg-secondary);
}

[data-theme="dark"] .contact-info > p {
    color: var(--text-light);
}

[data-theme="dark"] .contact-info h3 {
    color: var(--text-color);
}

[data-theme="dark"] .impact-item {
    background: rgba(11, 18, 32, 0.35);
    border-color: rgba(229, 231, 235, 0.18);
}

[data-theme="dark"] .form-feedback.success {
    color: #6ee7b7;
}

[data-theme="dark"] .form-feedback.error {
    color: #fca5a5;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Manrope', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    transition: opacity 0.42s cubic-bezier(0.2, 0.78, 0.16, 1), transform 0.42s cubic-bezier(0.2, 0.78, 0.16, 1), filter 0.42s ease;
}

body.language-switching {
    animation: languageSwitchPulse 0.3s ease;
}

@keyframes languageSwitchPulse {
    0% {
        opacity: 0.86;
        transform: translateY(2px);
        filter: saturate(0.92);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: saturate(1);
    }
}

/* Page transition */
body.page-entering {
    opacity: 0;
    transform: translateY(10px) scale(0.996);
    filter: blur(2px);
}

body.page-entering.page-enter-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

body.page-transition-prep > *:not(.page-transition-overlay) {
    transition: opacity 0.42s cubic-bezier(0.2, 0.78, 0.16, 1), transform 0.42s cubic-bezier(0.2, 0.78, 0.16, 1), filter 0.42s ease;
}

body.page-transition-active {
    overflow: hidden;
}

body.page-transition-active > *:not(.page-transition-overlay) {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
    filter: blur(1px);
    pointer-events: none;
}

.page-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.12);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity 0.42s ease, transform 0.42s cubic-bezier(0.2, 0.78, 0.16, 1), background-color 0.42s ease;
}

.page-transition-overlay.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.page-transition-overlay.entering {
    opacity: 1;
    transform: translateY(0);
}

.page-transition-overlay.fade-out {
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
}

.page-transition-card {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.18);
    font-weight: 700;
    letter-spacing: 0.01em;
    opacity: 0;
    transform: translateY(10px) scale(0.96);
    transition: opacity 0.36s ease, transform 0.36s cubic-bezier(0.2, 0.78, 0.16, 1);
}

.page-transition-overlay.visible .page-transition-card,
.page-transition-overlay.entering .page-transition-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.page-transition-overlay.fade-out .page-transition-card {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
}

.page-transition-spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(30, 64, 175, 0.25);
    border-top-color: #1d4ed8;
    animation: pageTransitionSpin 0.72s linear infinite;
}

.page-transition-text {
    font-size: 0.9rem;
}

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

[data-theme="dark"] .page-transition-overlay {
    background: rgba(2, 6, 23, 0.32);
}

[data-theme="dark"] .page-transition-card {
    background: rgba(15, 23, 42, 0.88);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.24);
}

[data-theme="dark"] .page-transition-spinner {
    border-color: rgba(148, 163, 184, 0.24);
    border-top-color: #60a5fa;
}

h1,
h2,
h3,
h4 {
    font-family: 'Sora', 'Manrope', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: -0.02em;
}

a,
button,
input,
textarea {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--bg-dark);
    color: #fff;
    padding: 0.8rem 1rem;
    border-radius: 0 0 8px 8px;
    z-index: 2000;
    text-decoration: none;
    font-weight: 700;
}

.skip-link:focus {
    left: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Navegação */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-switches {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-toggle {
    cursor: pointer;
    color: var(--text-color);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    min-width: 3.2rem;
    transition: var(--transition);
}

.language-toggle:hover {
    background: var(--surface-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.language-toggle:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

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

.theme-toggle {
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-color);
    background: transparent;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    transform: rotate(20deg);
}

.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, transform 0.28s ease;
}

.toggle-switch:hover {
    transform: translateY(-1px);
    border-color: rgba(29, 78, 216, 0.4);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.toggle-switch:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
}

.toggle-switch__track {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    padding: 0 0.18rem;
}

.toggle-switch__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-light);
    transition: color 0.26s ease, opacity 0.26s ease;
    pointer-events: none;
}

.toggle-switch__thumb {
    position: absolute;
    left: 3px;
    top: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 7px 15px rgba(15, 23, 42, 0.2);
    transition: transform 0.28s cubic-bezier(0.2, 0.78, 0.16, 1), background 0.28s ease;
    z-index: 1;
}

.toggle-switch[aria-pressed="true"] .toggle-switch__thumb {
    transform: translateX(100%);
}

.toggle-switch--language[aria-pressed="false"] [data-lang-label="en"],
.toggle-switch--language[aria-pressed="true"] [data-lang-label="pt"],
.toggle-switch--theme[aria-pressed="false"] [data-theme-label="light"],
.toggle-switch--theme[aria-pressed="true"] [data-theme-label="dark"] {
    color: #ffffff;
}

.toggle-switch--theme .toggle-switch__label {
    font-size: 0.92rem;
    letter-spacing: normal;
    text-transform: none;
}

.theme-toggle.toggle-switch,
.language-toggle.toggle-switch {
    padding: 0;
    min-width: 0;
}

.theme-toggle.toggle-switch {
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 999px;
}

.theme-toggle.toggle-switch:hover {
    transform: translateY(-1px);
    background: var(--surface-color);
}

.theme-toggle.toggle-switch .toggle-switch__thumb {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

[data-theme="dark"] .theme-toggle.toggle-switch .toggle-switch__thumb {
    background: linear-gradient(135deg, #60a5fa, #1d4ed8);
}

[data-theme="dark"] .toggle-switch {
    background: var(--bg-secondary);
    border-color: rgba(148, 163, 184, 0.3);
}

[data-theme="dark"] .toggle-switch:hover {
    border-color: rgba(96, 165, 250, 0.55);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    background: transparent;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
}

/* Home Section */
.home-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.2), transparent 34%),
        radial-gradient(circle at 82% 10%, rgba(249, 115, 22, 0.24), transparent 38%),
        linear-gradient(130deg, #0f766e 0%, #1d4ed8 52%, #0b1325 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.home-section .container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.home-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.04),
        rgba(255, 255, 255, 0.04) 2px,
        transparent 2px,
        transparent 24px
    );
    background-position: 0 0;
    background-repeat: repeat;
    will-change: background-position;
    animation: slide 24s linear infinite;
}

.home-section::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(15, 118, 110, 0.35);
    filter: blur(26px);
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes slide {
    0% { background-position: 0 0; }
    100% { background-position: 72px -42px; }
}

.home-content {
    text-align: center;
    color: white;
    z-index: 1;
    position: relative;
    width: min(920px, 100%);
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

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

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

.name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease;
}

.title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    font-weight: 600;
    animation: fadeInUp 1s ease;
}

.hero-pitch {
    font-size: 1.08rem;
    line-height: 1.9;
    max-width: 760px;
    margin: 0 auto 2rem;
    opacity: 0.92;
    animation: fadeInUp 1.1s ease;
}

.home-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease;
}

.impact-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 auto 2rem;
    width: min(860px, 100%);
    animation: fadeInUp 1.3s ease;
}

.impact-item {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    padding: 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.2rem;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.impact-item strong {
    font-size: 1rem;
    font-weight: 800;
}

.impact-item span {
    font-size: 0.86rem;
    opacity: 0.92;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 1.4s ease;
}

.social-links a {
    color: white;
    font-size: 1.45rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.09);
    transition: var(--transition);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-4px) scale(1.04);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: #ffffff;
    color: #0f766e;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.22);
    color: white;
    border-color: rgba(255, 255, 255, 0.28);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.btn-secondary:hover {
    background: rgba(15, 23, 42, 0.45);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-3px);
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    color: var(--text-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* About Section */
.about-section {
    background: var(--bg-secondary);
}

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

.about-bullets {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.about-bullets li {
    position: relative;
    color: var(--text-light);
    padding-left: 1.4rem;
}

.about-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-item {
    text-align: center;
    padding: 2rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.highlight-item i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.highlight-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.highlight-item p {
    color: var(--text-light);
}

/* Resume Section */
.resume-download {
    text-align: center;
    margin-bottom: 3rem;
}

.resume-download .btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.resume-content {
    max-width: 900px;
    margin: 0 auto;
}

.resume-block {
    margin-bottom: 3rem;
}

.resume-heading {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resume-item {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.resume-header h4 {
    font-size: 1.3rem;
    color: var(--text-color);
}

.resume-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.resume-company {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.resume-description {
    list-style-position: inside;
    color: var(--text-light);
}

.resume-description li {
    margin-bottom: 0.5rem;
}

/* Projects Section */
.projects-section {
    background: var(--bg-secondary);
}

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

.project-card {
    background: var(--surface-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estado de carregamento da imagem */
.project-image.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 2;
}

.project-image.loading img {
    opacity: 0;
}

.project-image.loaded img {
    opacity: 1;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-image img[src*="placeholder"] {
    object-fit: contain;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Placeholder para projetos sem imagem */
.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    padding: 2rem;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.92), rgba(29, 78, 216, 0.92));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.project-link {
    color: white;
    font-size: 2.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.project-link:hover {
    transform: scale(1.2);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.project-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Skills Section */
.skills-section {
    background: var(--bg-color);
}

.skills-intro {
    text-align: center;
    color: var(--text-light);
    max-width: 760px;
    margin: -1.3rem auto 2.5rem;
    line-height: 1.7;
}

.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.skills-category {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 1.8rem;
    border-radius: 18px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.skills-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.skills-category h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-list {
    list-style: none;
    display: grid;
    gap: 0.7rem;
    margin-bottom: 1.1rem;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.65rem 0.8rem;
    background: rgba(15, 23, 42, 0.02);
}

.skill-name {
    font-weight: 600;
    color: var(--text-color);
}

.skill-level {
    padding: 0.25rem 0.62rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.level-forte {
    background: rgba(15, 118, 110, 0.18);
    color: #0f766e;
}

.level-intermediario {
    background: rgba(29, 78, 216, 0.14);
    color: #1e40af;
}

.level-base {
    background: rgba(148, 163, 184, 0.2);
    color: #334155;
}

.level-evolucao {
    background: rgba(249, 115, 22, 0.16);
    color: #c2410c;
}

.skills-evidence {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.65;
    border-top: 1px dashed var(--border-color);
    padding-top: 0.85rem;
}

.skills-evidence strong {
    color: var(--text-color);
}

/* Contact Section */
.contact-section {
    background: var(--bg-secondary);
}

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

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    min-width: 40px;
}

.contact-item h4 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form {
    background: var(--surface-color);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: relative;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #dc2626;
}

.field-help {
    margin-top: 0.5rem;
    font-size: 0.84rem;
    color: var(--text-light);
}

.form-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-feedback {
    min-height: 1.4rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-feedback.success {
    color: #0f766e;
}

.form-feedback.error {
    color: #dc2626;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form .btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.contact-form .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.contact-form .btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.footer-social a {
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

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

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 999;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-button:hover {
    background: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
    }
}

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

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

    .home-section::before,
    .home-section::after,
    .profile-image,
    .whatsapp-button {
        animation: none !important;
    }
}

/* Responsividade */
/* Tablet - até 1024px */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .name {
        font-size: 3rem;
    }

    .title {
        font-size: 1.3rem;
    }

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

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

    .impact-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 640px;
    }

    .skills-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }

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

/* Tablet pequeno - até 768px */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .navbar .container {
        padding: 1rem 20px;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background: var(--bg-color);
        flex-direction: column;
        margin-left: 0;
        padding: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }

    [data-theme="dark"] .nav-links {
        background: var(--bg-secondary);
    }

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

    .nav-link {
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    .menu-toggle {
        display: block;
    }

    .home-section {
        padding-top: 102px;
        min-height: calc(100vh - 60px);
    }

    .name {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .title {
        font-size: 1.2rem;
    }

    .profile-image {
        width: 180px;
        height: 180px;
    }

    .home-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .impact-strip {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .social-links a {
        font-size: 1.35rem;
    }

    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

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

    .about-highlights {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .skills-intro {
        margin-top: -1rem;
    }

    .skills-content {
        grid-template-columns: 1fr;
    }

    .skill-item {
        align-items: flex-start;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

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

    .project-image {
        width: 100%;
        height: 250px;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .projects-intro .btn {
        width: 100%;
        max-width: 320px;
    }

    .projects-section {
        padding-top: 5rem;
    }
}

/* Mobile - até 480px */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .navbar .container {
        padding: 0.8rem 15px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .menu-toggle {
        font-size: 1.1rem;
    }

    .nav-switches {
        gap: 0.4rem;
    }

    .toggle-switch {
        width: 76px;
        height: 33px;
    }

    .toggle-switch__label {
        font-size: 0.65rem;
    }

    .toggle-switch--theme .toggle-switch__label {
        font-size: 0.84rem;
    }

    .home-section {
        padding: 84px 15px 40px;
    }

    .name {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .hero-pitch {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .profile-image {
        width: 150px;
        height: 150px;
        margin-bottom: 1.5rem;
    }

    .impact-item {
        padding: 0.85rem;
    }

    .social-links {
        gap: 0.7rem;
    }

    .social-links a {
        width: 42px;
        height: 42px;
    }

    section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .section-title::after {
        width: 60px;
        height: 3px;
    }

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

    .highlight-item {
        padding: 1.5rem;
    }

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

    .highlight-item h3 {
        font-size: 1.1rem;
    }

    .highlight-item p {
        font-size: 0.9rem;
    }

    .skills-category {
        padding: 1.2rem;
    }

    .skills-category h3 {
        font-size: 1.05rem;
    }

    .skill-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .skill-name {
        font-size: 0.9rem;
    }

    .skill-level {
        font-size: 0.72rem;
    }

    .project-info {
        padding: 1.5rem;
    }

    .project-info h3 {
        font-size: 1.2rem;
    }

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

    .tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }

    .resume-item {
        padding: 1.5rem;
    }

    .resume-header h4 {
        font-size: 1.1rem;
    }

    .resume-company,
    .resume-date {
        font-size: 0.85rem;
    }

    .resume-description,
    .resume-item ul li {
        font-size: 0.9rem;
    }

    .contact-item {
        padding: 1.1rem;
    }

    .contact-item i {
        font-size: 1.5rem;
    }

    .contact-item h4 {
        font-size: 1rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.95rem;
        padding: 0.9rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }

    .footer {
        padding: 1.5rem 0;
    }

    .footer p {
        font-size: 0.9rem;
    }

    .projects-section {
        padding-top: 4rem;
    }
}

/* Mobile pequeno - até 360px */
@media (max-width: 360px) {
    .name {
        font-size: 1.7rem;
    }

    .title {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .profile-image {
        width: 130px;
        height: 130px;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Projects Intro Section */
.projects-intro {
    text-align: center;
    padding: 3rem 0;
}

.projects-intro p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.projects-intro .btn {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

/* Projects Page Header */
.projects-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 6rem 0 3rem;
    text-align: center;
}

.projects-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.projects-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* All Projects Section */
.all-projects-section {
    padding: 4rem 0;
}

.all-projects-section .project-card {
    cursor: pointer;
    transition: var(--transition);
}

.all-projects-section .project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* Project Detail Section */
.project-detail-section {
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.back-link:hover {
    gap: 1rem;
}

.project-detail-content {
    max-width: 900px;
    margin: 0 auto;
}

.project-detail-header {
    text-align: center;
    margin-bottom: 3rem;
}

.project-detail-header h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.project-detail-image {
    width: 100%;
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.project-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-detail-info h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.project-detail-info h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.project-detail-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.project-detail-info ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.project-detail-info ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.6;
}

.project-detail-info ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.project-links {
    margin-top: 3rem;
    text-align: center;
}

.project-links .btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.project-status {
    padding: 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    color: var(--text-color);
    font-weight: 500;
}

.project-status i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Responsividade para páginas de projeto */
@media (max-width: 1024px) {
    .projects-header {
        padding: 5rem 0 2.5rem;
    }

    .projects-header h1 {
        font-size: 2.5rem;
    }

    .project-detail-content {
        padding: 0 20px;
    }

    .project-detail-header h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .projects-header {
        padding: 4rem 0 2rem;
    }

    .projects-header h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .projects-header p {
        font-size: 1rem;
        padding: 0 15px;
    }

    .all-projects-section {
        padding: 3rem 0;
    }

    .project-detail-section {
        padding: 3rem 0;
        min-height: 0;
    }

    .back-link {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
    }

    .project-detail-content {
        padding: 0 15px;
    }
    
    .project-detail-header {
        margin-bottom: 2rem;
    }

    .project-detail-header h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .project-tags {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .project-detail-info h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .project-detail-info h3 {
        font-size: 1.3rem;
        margin-top: 1.5rem;
    }

    .project-detail-info p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .project-detail-info ul li {
        font-size: 0.95rem;
        padding: 0.4rem 0;
    }

    .project-links {
        margin-top: 2rem;
    }

    .project-links .btn {
        width: 100%;
        max-width: 300px;
    }

    .project-status {
        font-size: 0.95rem;
    }

    .projects-intro p {
        font-size: 1rem;
        padding: 0 15px;
    }

    .projects-intro .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .projects-header {
        padding: 3rem 0 1.5rem;
    }

    .projects-header h1 {
        font-size: 1.7rem;
    }

    .projects-header p {
        font-size: 0.9rem;
    }

    .all-projects-section {
        padding: 2rem 0;
    }

    .project-detail-section {
        padding: 2rem 0;
    }

    .back-link {
        margin-top: 1rem;
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }

    .project-detail-header h1 {
        font-size: 1.5rem;
    }

    .project-detail-info h2 {
        font-size: 1.3rem;
    }

    .project-detail-info h3 {
        font-size: 1.1rem;
        margin-top: 1.2rem;
    }

    .project-detail-info p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .project-detail-info ul li {
        font-size: 0.9rem;
        padding: 0.3rem 0;
    }

    .project-links .btn {
        font-size: 0.95rem;
        padding: 0.8rem 1.5rem;
    }

    .project-status {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .projects-intro p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .projects-intro .btn {
        font-size: 1rem;
        padding: 0.9rem 2rem;
    }
}

@media (max-width: 360px) {
    .projects-header h1 {
        font-size: 1.5rem;
    }

    .project-detail-header h1 {
        font-size: 1.3rem;
    }

    .project-detail-info h2 {
        font-size: 1.2rem;
    }

    .project-detail-info h3 {
        font-size: 1rem;
    }
}
