/* Overlay para o menu mobile */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.45);
    z-index: 1999;
    transition: opacity 0.3s;
    opacity: 0;
}
.mobile-menu-overlay.open {
    display: block;
    opacity: 1;
}

.mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 80vw;
    max-width: 340px;
    height: 100vh;
    background: var(--surface-color);
    box-shadow: -2px 0 16px rgba(0,0,0,0.18);
    z-index: 2000;
    padding: 40px 28px 28px 28px;
    transition: transform 0.3s;
    transform: translateX(100%);
    overflow-y: auto;
}
.mobile-menu.open {
    transform: translateX(0);
}
/* Menu Hamburguer Responsivo */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 18px;
    z-index: 1101;
}
.menu-icon {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    display: block;
    position: relative;
    border-radius: 2px;
    transition: background 0.3s;
}
.menu-icon::before, .menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: transform 0.3s;
}
.menu-icon::before { top: -9px; }
.menu-icon::after { top: 9px; }


@media (max-width: 900px) {
    header nav ul,
    #nav-list {
        display: none !important;
    }
    .menu-toggle {
        display: block;
        position: fixed;
        top: 22px;
        right: 22px;
        z-index: 1202;
        margin-left: 0;
    }
    .mobile-menu {
        display: block;
    }
    header {
        padding: 16px 4vw;
    }
    main {
        padding: 0 2vw;
    }
    section {
        padding-left: 2vw;
        padding-right: 2vw;
    }
    .hero-content {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    .hero-image img {
        width: 180px;
        height: 180px;
    }
    h1, h2 {
        font-size: 2rem;
        text-align: center;
    }
    .skills-grid {
        gap: 18px;
    }
    .modern-projects-grid {
        gap: 18px;
    }
    .floating-btns {
        right: 10px;
        bottom: 10px;
    }
}

/* Botões flutuantes no canto inferior direito */
.floating-btns {
    position: fixed;
    right: 22px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    z-index: 1201;
}
@media (max-width: 900px) {
    .floating-btns {
        right: 12px;
        bottom: 12px;
        gap: 10px;
    }
    .floating-btns .lang-toggle,
    .floating-btns .theme-toggle {
        font-size: 1.1rem;
        padding: 0.3rem 0.5rem;
    }
}

@media (max-width: 600px) {
    .floating-btns {
        right: 6px;
        bottom: 6px;
        gap: 8px;
    }
    .floating-btns .lang-toggle,
    .floating-btns .theme-toggle {
        font-size: 1rem;
        padding: 0.2rem 0.4rem;
    }
    header {
        padding: 12px 2vw;
    }
    main {
        padding: 0 1vw;
    }
    section {
        padding-left: 1vw;
        padding-right: 1vw;
    }
    .hero-image img {
        width: 120px;
        height: 120px;
    }
    h1, h2 {
        font-size: 1.3rem;
    }
    .floating-btns {
        right: 4px;
        bottom: 4px;
    }
}
.floating-btns .lang-toggle,
.floating-btns .theme-toggle {
    position: static;
    margin: 0;
    z-index: 1201;
}

/* Remove posicionamento antigo dos botões flutuantes */
.lang-toggle.lang-fixed,
.theme-toggle {
    position: unset !important;
    right: unset !important;
    bottom: unset !important;
    left: unset !important;
    top: unset !important;
    margin: 0 !important;
    z-index: unset !important;
}
/* Remove blocos duplicados e regras antigas */
.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 40px;
}
.mobile-menu ul li a {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.mobile-menu ul li a:hover {
    color: var(--secondary-color);
}
.close-mobile-menu {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 2.2rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 2100;
}
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Configurações Globais (Paleta de Cores Refinada) */
:root {
    --primary-color: #00aaff;
    --secondary-color: #0077b6;
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --text-color: #e0e0e0;
    --text-secondary-color: #a0a0a0;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    background-image: linear-gradient(180deg, var(--background-color) 80%, #1a1a1a 100%);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0077b6 0%, #00aaff 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    margin-bottom: 30px;
}

.logo-circle {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: pulse 2s infinite;
}

.logo-circle span {
    font-size: 2rem;
    font-weight: bold;
}

.loading-text h2 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.loading-text p {
    margin: 0 0 30px 0;
    opacity: 0.8;
    font-size: 1rem;
    min-height: 1.2em;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    height: 100%;
    background: white;
    border-radius: 2px;
    animation: loading 2s ease-in-out infinite;
}

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

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #0077b6, #00aaff);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Typing Animation */
.cursor {
    animation: blink 1s infinite;
    color: var(--primary-color);
}

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

section {
    padding: 100px 10%;
    padding-top: 120px; /* Espaço extra para o header fixo */
}

h1, h2, h3 {
    color: #ffffff;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 600;
}

/* Cabeçalho e Navegação (Efeito Vidro Fosco) */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 20px 10%;
    background-color: rgba(20, 20, 20, 0.5); /* Fundo semi-transparente */
    backdrop-filter: blur(10px); /* O efeito "vidro fosco" */
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background-color 0.3s;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}
.logo a:hover {
    color: var(--primary-color);
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li a {
    margin-left: 30px;
    text-decoration: none;
    color: var(--text-secondary-color);
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

header nav ul li a:hover,
header nav ul li a.active { /* Estilo do link ativo */
    color: var(--primary-color);
}

/* Seção Hero (Início) */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Padding específico para o hero */
}
.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    width: 100%;
}
.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
}
.hero-text p {
    font-size: 1.2rem;
    color: var(--text-secondary-color);
    margin: 20px 0 30px;
    max-width: 600px;
}
.social-button {
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--surface-color);
    padding: 10px 20px;
    border-radius: 5px;
    margin-right: 15px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.social-button:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.hero-image img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    border: 7px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 119, 182, 0.18);
    background: #fff;
    transition: border-color 0.3s;
}

/* Seção de Habilidades */
#skills {
    background-color: var(--surface-color);
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 30px;
    /* Remove grid-template-areas */
}

/* Remove grid-area dos cards */

/* Remove centralização específica do card de análise de dados */
.skill-category[style*="grid-area: data"] {
    justify-self: unset;
}

/* Responsivo: coluna única no mobile */
@media (max-width: 900px) {
    .skills-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }
    .skill-category {
        justify-self: stretch !important;
    }
}

.skill-category {
    background: linear-gradient(145deg, #222, #1a1a1a);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}
.skill-category span {
    font-size: 2.5rem;
    display: block;
    margin-top: 20px;
}

/* Seção de Projetos */
.project-card {
    background-color: var(--surface-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.project-card h3 { margin: 20px; }
.project-card p { margin: 0 20px 20px; color: var(--text-secondary-color); }
.project-links { margin: 20px; }
.project-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 20px;
}

/* Grid moderna para projetos */
.modern-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin: 0 auto;
    max-width: 1100px;
}

.modern-project-card {
    background: var(--surface-color);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,119,182,0.10);
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    position: relative;
}

.modern-project-card:hover {
    box-shadow: 0 16px 48px rgba(0,119,182,0.18);
    transform: translateY(-8px) scale(1.03);
}

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

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s;
    border-bottom: 1px solid #e3eaf2;
}

.project-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,119,182,0.82);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s;
    gap: 18px;
}

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

.modern-project-card:hover .project-image img {
    filter: blur(2px) brightness(0.7);
}

.project-action {
    background: #fff;
    color: var(--primary-color);
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.08rem;
    box-shadow: 0 2px 8px rgba(0,119,182,0.10);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s, color 0.3s;
}

.project-action:hover {
    background: var(--primary-color);
    color: #fff;
}

.project-info {
    padding: 28px 22px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.project-info h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.35rem;
    font-weight: 700;
}

.project-info p {
    color: var(--text-secondary-color);
    font-size: 1.08rem;
    line-height: 1.5;
}

/* Placeholder para projetos sem imagem */
.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fbff 0%, #e3f2fd 100%);
    border-bottom: 1px solid #e3eaf2;
}

/* Tags de tecnologia */
.project-tech {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: rgba(0, 119, 182, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(0, 119, 182, 0.2);
}

/* Seção de Contato */
#contact { text-align: center; }
.contact-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
    transition: background-color 0.3s, transform 0.3s;
}
.contact-button:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

/* Rodapé */
footer {
    text-align: center;
    padding: 20px;
    background-color: var(--surface-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Classes para Animação com JS */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Carrossel de Projetos */
.carousel-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-track {
    display: flex;
    overflow: hidden;
    width: 100%;
    min-height: 380px;
    position: relative;
}
.carousel-item {
    min-width: 100%;
    transition: opacity 0.5s;
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
}
.carousel-item.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}
.carousel-btn {
    background: var(--surface-color);
    color: var(--primary-color);
    border: none;
    font-size: 2rem;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2;
    transition: background 0.3s;
}
.carousel-btn:hover {
    background: var(--primary-color);
    color: #fff;
}
.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 10px;
}
.carousel-indicators .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-secondary-color);
    cursor: pointer;
    transition: background 0.3s;
}
.carousel-indicators .dot.active {
    background: var(--primary-color);
}



/* Soft Skills */
.soft-skills {
    margin-top: 40px;
    text-align: center;
}
.soft-skills h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}
.soft-skills ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 0;
}
.soft-skills li {
    color: var(--text-secondary-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Alternância de tema */
body.light-mode {
    --background-color: #f4f6fb;
    --surface-color: #ffffff;
    --text-color: #222;
    --text-secondary-color: #666;
    --primary-color: #0077b6;
    --secondary-color: #00aaff;
    background-image: linear-gradient(180deg, var(--background-color) 80%, #e3eaf2 100%);
    color: var(--text-color);
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode .logo a,
body.light-mode header nav ul li a,
body.light-mode .project-card h3,
body.light-mode .skill-category h3,
body.light-mode .contact-button,
body.light-mode .social-button,
body.light-mode .footer-social a,
body.light-mode .soft-skills h3,
body.light-mode .soft-skills li {
    color: var(--text-color) !important;
}

body.light-mode .project-card p,
body.light-mode .skill-category p,
body.light-mode .soft-skills li {
    color: var(--text-secondary-color) !important;
}

body.light-mode header nav ul li a {
    color: var(--text-secondary-color) !important;
}
body.light-mode header nav ul li a.active,
body.light-mode header nav ul li a:hover {
    color: var(--primary-color) !important;
}

body.light-mode .carousel-btn {
    background: #e3eaf2;
    color: var(--primary-color);
}

body.light-mode .carousel-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

body.light-mode .carousel-indicators .dot {
    background: #b0bec5;
}

body.light-mode .carousel-indicators .dot.active {
    background: var(--primary-color);
}

body.light-mode .contact-button {
    background-color: var(--primary-color);
    color: #fff !important;
}

body.light-mode .contact-button:hover {
    background-color: var(--secondary-color);
}

body.light-mode .social-button {
    background-color: #e3eaf2;
    color: var(--primary-color) !important;
    border-color: #e3eaf2;
}

body.light-mode .social-button:hover {
    background-color: var(--primary-color);
    color: #fff !important;
}

body.light-mode footer {
    background-color: var(--surface-color);
    border-top: 1px solid #e3eaf2;
    color: var(--text-secondary-color);
}

body.light-mode .footer-social a {
    color: var(--primary-color) !important;
}

body.light-mode .footer-social a:hover {
    color: var(--secondary-color) !important;
}

/* Ajuste para modo escuro mais elegante */
body {
    transition: background-color 0.5s, color 0.5s;
}
body:not(.light-mode) header {
    background-color: rgba(20, 20, 20, 0.7);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
body:not(.light-mode) footer {
    background-color: var(--surface-color);
    border-top: 1px solid rgba(255,255,255,0.08);
}
body:not(.light-mode) #skills,
body:not(.light-mode) .project-card {
    background-color: var(--surface-color);
    border: 1px solid rgba(255,255,255,0.08);
}
body:not(.light-mode) .skill-category {
    background: linear-gradient(145deg, #222, #1a1a1a);
    border: 1px solid rgba(255,255,255,0.08);
}
body:not(.light-mode) .carousel-btn {
    background: var(--surface-color);
    color: var(--primary-color);
}
body:not(.light-mode) .carousel-btn:hover {
    background: var(--primary-color);
    color: #fff;
}
body:not(.light-mode) .carousel-indicators .dot {
    background: var(--text-secondary-color);
}
body:not(.light-mode) .carousel-indicators .dot.active {
    background: var(--primary-color);
}
body:not(.light-mode) .social-button {
    background-color: var(--surface-color);
    color: var(--primary-color);
    border-color: var(--surface-color);
}
body:not(.light-mode) .social-button:hover {
    background-color: var(--primary-color);
    color: #fff;
}
body:not(.light-mode) .contact-button {
    background-color: var(--primary-color);
    color: #fff;
}
body:not(.light-mode) .contact-button:hover {
    background-color: var(--secondary-color);
}

/* Melhor contraste dos cards no modo claro */
body.light-mode #skills,
body.light-mode .skill-category,
body.light-mode .project-card {
    background-color: #f8fbff;
    border: 1px solid #d0e3f7;
    box-shadow: 0 4px 24px rgba(0, 119, 182, 0.07);
}

body.light-mode .skill-category:hover,
body.light-mode .project-card:hover {
    box-shadow: 0 8px 32px rgba(0, 119, 182, 0.13);
    transform: translateY(-8px);
}

body.light-mode .skill-category h3,
body.light-mode .project-card h3 {
    color: var(--primary-color) !important;
}

body.light-mode .skill-category span {
    color: var(--secondary-color) !important;
}

body.light-mode .skill-category p,
body.light-mode .project-card p {
    color: var(--text-secondary-color) !important;
}

/* Estilos para modo claro - projetos */
body.light-mode .project-placeholder {
    background: linear-gradient(135deg, #f8fbff 0%, #e3f2fd 100%);
    border-bottom: 1px solid #d0e3f7;
}

body.light-mode .tech-tag {
    background: rgba(0, 119, 182, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0, 119, 182, 0.2);
}



/* Botão de idioma fixo no topo direito */
.lang-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    border: none;
    background: #009739;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    padding: 0.5rem 0.7rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.lang-toggle:focus {
    outline: 2px solid #007bff;
}
.lang-toggle .lang-flag {
    font-size: 1.5em;
    margin-right: 0;
}
.lang-toggle:active {
    transform: scale(0.97);
}
/* Cores dinâmicas do botão de idioma (definidas via JS) */
.lang-toggle.br {
    background: #009739;
    color: #fff;
}
.lang-toggle.en {
    background: #00247d;
    color: #fff;
}
.lang-toggle.es {
    background: #c60b1e;
    color: #fff;
}
.lang-toggle.fr {
    background: #0055a4;
    color: #fff;
}
@media (max-width: 600px) {
    .lang-toggle {
        font-size: 1.1rem;
        padding: 0.3rem 0.5rem;
        top: 0.7rem;
        right: 0.7rem;
    }
}

/* Botão de tema fixo no canto inferior direito */
.theme-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    border: none;
    background: #222;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    padding: 0.5rem 0.7rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.theme-toggle:focus {
    outline: 2px solid #007bff;
}
@media (max-width: 600px) {
    .theme-toggle {
        font-size: 1.2rem;
        padding: 0.3rem 0.5rem;
        bottom: 0.7rem;
        right: 0.7rem;
    }
}

/* Foto de perfil estilizada */
.hero-image img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    border: 7px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 119, 182, 0.18);
    background: #fff;
    transition: border-color 0.3s;
}
body.light-mode .hero-image img {
    border: 7px solid var(--secondary-color);
    box-shadow: 0 0 30px rgba(0, 119, 182, 0.12);
    background: #f8fbff;
}

/* Responsivo */

/* Botões flutuantes no canto inferior direito */
.floating-btns {
    position: fixed;
    right: 22px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    z-index: 1201;
}
.floating-btns .lang-toggle {
    position: static;
    margin: 0;
    z-index: 1201;
}
.floating-btns .theme-toggle {
    position: static;
    margin: 0;
    z-index: 1200;
}


/* Estilo do Modal de Contato */
.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.55);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: var(--surface-color);
    padding: 40px 30px 30px 30px;
    border-radius: 16px;
    max-width: 450px;
    width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,119,182,0.18);
    color: var(--text-color);
}
.close-modal {
    position: absolute;
    top: 18px; right: 22px;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
}
#contact-form label {
    display: block;
    margin-top: 18px;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-color);
}
#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px solid rgba(0,119,182,0.2);
    margin-bottom: 10px;
    font-size: 1rem;
    background: var(--background-color);
    color: var(--text-color);
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: 'Poppins', sans-serif;
}
#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,119,182,0.1);
}
#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: var(--text-secondary-color);
    opacity: 0.7;
}
#contact-form input[type="file"] {
    padding: 0;
    background: none;
    color: var(--text-secondary-color);
}
#contact-form button {
    margin-top: 18px;
    width: 100%;
}
#modal-feedback {
    margin-top: 18px;
    text-align: center;
    font-weight: 600;
    padding: 12px;
    border-radius: 8px;
    background: rgba(0,119,182,0.1);
    border: 1px solid rgba(0,119,182,0.2);
    transition: all 0.3s;
}
