html, body {
    height: 100%;
    margin: 0;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: white;
    color: black;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

.navbar-custom {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    z-index: 1000;
}

.navbar-custom a:hover {
    color: #38bdf8 !important;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 32px;
    color: black;
    /*
    letter-spacing: 3px;
    text-shadow: 
        4px 4px 0px rgba(0, 0, 0, 0.35),
        6px 6px 10px rgba(0, 0, 0, 0.2);
    */
}

/* Select estilizado */
#languageSwitcher {
    background-color: white;
    color: black;
}

.hero-card {
    background: rgba(30, 41, 59, 0.8); /* glass escuro */
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.hero-section {
    padding-top: 150px;
    padding-bottom: 100px;
    width: 100%;
    color: white;
    background: linear-gradient(90deg, #0f172a, #1e3a8a);
    display: flex;
    align-items: center;
}

.hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at top left, rgba(120, 170, 255, 0.10), transparent 35%),
        radial-gradient(circle at bottom right, rgba(120, 255, 220, 0.08), transparent 35%),
        linear-gradient(90deg, #0f172a, #1e3a8a);
        /*linear-gradient(135deg, #07111f 0%, #0b1628 50%, #08101b 100%);*/
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-mesh-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
    opacity: 0.55;
}

.hero-card {
    position: relative;
    z-index: 2;
    /*background: rgba(10, 18, 30, 0.55);*/
    background: rgba(30, 41, 59, 0.8); /* glass escuro */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.hero-title,
.hero-description,
.hero-tag,
.hero-tags,
.hero-image {
    position: relative;
    z-index: 2;
}

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

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

.tag {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 999px;

    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;

    border: 1px solid rgba(56, 189, 248, 0.3);

    font-weight: 500;
}

/* Links estilo tag: mesma cor em todos os estados (evita :visited do navegador/Bootstrap) */
.hero-tags a.tag,
.hero-tags a.tag:link,
.hero-tags a.tag:visited,
.hero-tags a.tag:hover,
.hero-tags a.tag:active,
.hero-tags a.tag:focus {
    color: #38bdf8;
    text-decoration: none;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 56px;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 20px;
    color: white;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25);
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: #d1d5db;
    margin-bottom: 0;
}

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

.hero-image {
    width: min(100%, 380px);
    max-width: 380px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    border: 3px solid rgba(255, 255, 255, 0.08);
}

.hero-buttons .btn {
    padding: 12px 22px;
    font-weight: 600;
    border-radius: 12px;
}

.hero-buttons .btn-primary {
    background: linear-gradient(90deg, #2563eb, #4f46e5);
    border: none;
}

.hero-buttons .btn-primary:hover {
    opacity: 0.92;
}

.hero-buttons .btn-outline-light:hover {
    color: #111827;
}

@media (max-width: 991px) {
    .hero-section {
        text-align: center;
    }

    .hero-text {
        margin: 0 auto 40px auto;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-description {
        font-size: 16px;
    }

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

@media (max-width: 576px) {
    .hero-title {
        font-size: 34px;
    }

    .hero-image {
        max-width: 280px;
    }
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: black;
}

.experience-card {
    background: rgba(30, 41, 59, 0.8); /* glass escuro */
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.experience-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.experience-period {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 15px;
}

.experience-description {
    font-size: 16px;
    color: #d1d5db;
    line-height: 1.6;
}

.experience-tags {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.experience-tags span {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 999px;

    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;

    border: 1px solid rgba(56, 189, 248, 0.3);
}

.experience-section {
    color: white;
}

.experience-wrapper {
    margin: 0 auto;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: black;
    margin-bottom: 24px;
}

.experience-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.experience-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.experience-period {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 24px;
}

.project-block + .project-block {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.project-block h5 {
    font-size: 18px;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 10px;
}

.project-block p {
    font-size: 16px;
    line-height: 1.7;
    color: #d1d5db;
    margin-bottom: 0;
}

.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-contact,
.footer-copy {
    margin: 0;
    display: flex;
    align-items: center;
}

.footer-contact,
.footer-copy {
    gap: 6px;
}

.footer-contact a {
    color: #38bdf8;
    text-decoration: none;
}

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

.footer-copy a {
    color: #38bdf8;
    text-decoration: none;
}

.footer-copy a:hover {
    text-decoration: underline;
}

.footer-icon {
    font-size: 18px;
    line-height: 1;
    color: #38bdf8;
}

.card-hover {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease !important;
}

.card-hover:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 
        0 0 20px rgba(59, 130, 246, 0.25),
        0 0 40px rgba(59, 130, 246, 0.15);
}

.card-hover-black {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.8) !important;
    transition: all 0.25s ease !important;
}

.card-hover-black:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.8) !important;
    box-shadow: 
        0 0 20px rgba(59, 130, 246, 0.25),
        0 0 40px rgba(59, 130, 246, 0.15);
}

.card-hover-2 {
    position: relative;
    transition: all 0.25s ease !important;
    border-radius: 10px;
}

.card-hover-2:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 
        0 0 20px rgba(59, 130, 246, 0.25),
        0 0 40px rgba(59, 130, 246, 0.15);
}

.card-hover-3 {
    display: inline-block;
    position: relative;
    transition: all 0.25s ease !important;
    border-radius: 10px;
}

.card-hover-3:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 
        0 0 20px rgba(59, 130, 246, 0.25),
        0 0 40px rgba(59, 130, 246, 0.15);
    color: #38bdf8 !important;
}

.card-hover-4 {
    display: inline-flex;
    position: relative;
    align-items: center;
    transition: all 0.25s ease !important;
    border-radius: 10px;
    gap: 6px;
}

.card-hover-4:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 
        0 0 20px rgba(59, 130, 246, 0.25),
        0 0 40px rgba(59, 130, 246, 0.15);
}

.i18n-fade {
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.i18n-fade-out {
    opacity: 0;
    transform: translateY(6px);
}

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

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    z-index: 1100;

    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
}

.back-to-top:hover {
    background: #1d4ed8;
    transform: translateY(0);
}

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

.back-to-top .material-symbols-outlined {
    font-size: 24px;
    line-height: 1;
}

@media (max-width: 768px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
    }
}

/* =========================
   NAVBAR MELHORADA
========================= */

.navbar-custom {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    z-index: 1000;
}

.navbar-custom .navbar {
    min-height: 78px;
}

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

.navbar-custom .nav-link {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 0;
}

.language-wrapper {
    min-width: 78px;
}

#languageSwitcher {
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.custom-toggler {
    border: none;
    background: transparent;
    padding: 6px;
    border-radius: 10px;
    color: #0f172a;
    box-shadow: none;
}

.custom-toggler:focus {
    box-shadow: none;
}

/* =========================
   AJUSTES GERAIS MOBILE
========================= */

@media (max-width: 991px) {
    .navbar-custom .navbar {
        min-height: 72px;
    }

    .navbar-custom .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .logo {
        font-size: 24px;
    }

    .navbar-collapse {
        margin-top: 12px;
        padding: 16px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    }

    .nav-links-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 14px;
    }

    .navbar-custom .nav-link {
        width: 100%;
        padding: 10px 0;
        font-size: 16px;
    }

    .language-wrapper {
        width: 100%;
    }

    #languageSwitcher {
        width: 100%;
    }

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

    .hero-card {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .hero-text {
        margin: 0 auto 28px auto;
    }

    .hero-title {
        font-size: 38px;
        line-height: 1.08;
        margin-bottom: 16px;
    }

    .hero-description {
        font-size: 16px;
        line-height: 1.65;
    }

    .hero-tags {
        justify-content: center;
        gap: 8px;
    }

    .tag {
        font-size: 12px;
        padding: 6px 12px;
    }

    .hero-image {
        max-width: 260px;
    }

    .experience-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .experience-card {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 18px;
    }

    .experience-title {
        font-size: 21px;
    }

    .project-block h5 {
        font-size: 17px;
    }

    .project-block p {
        font-size: 15px;
        line-height: 1.65;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 108px;
        padding-bottom: 48px;
    }

    .hero-card {
        padding: 22px 16px;
        border-radius: 18px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-tags {
        justify-content: flex-start;
    }

    .hero-image {
        max-width: 220px;
    }

    .section-title {
        font-size: 24px;
    }

    .experience-card {
        padding: 22px 16px;
    }

    .experience-title {
        font-size: 19px;
    }

    .project-block h5 {
        font-size: 16px;
    }

    .project-block p {
        font-size: 14px;
    }

    .footer-content {
        gap: 10px;
    }

    .footer-contact,
    .footer-copy {
        font-size: 14px;
    }
}

.professional-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(8px);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: black;
}

.professional-period {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
}

.professional-description {
    font-size: 18px;
    line-height: 1.7;
    color: #d1d5db;
}

.professional-description-2 {
    font-size: 16px;
    line-height: 1.7;
    color: #d1d5db;
}

.professional-subtitle {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #38bdf8;
}

.professional-list,
.technology-list {
    font-size: 16px;
    padding-left: 1.2rem;
    margin: 0;
}

.professional-list li,
.technology-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #d1d5db;
}

.shake:hover {
    animation: shake-elegant 0.4s ease;
}

@keyframes shake-elegant {
    0%   { transform: translateX(0); }
    20%  { transform: translateX(-4px); }
    40%  { transform: translateX(4px); }
    60%  { transform: translateX(-3px); }
    80%  { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

.icon-container {
    display: flex;
    align-items: stretch;
    margin-right: 15px;
}

.icon-big {
    display: flex;
    align-items: center;
    justify-content: center;

    /* Aqui está o segredo */
    height: 100%;
    font-size: clamp(3rem, 8vw, 6rem);
}

/* Faz o texto ocupar o espaço */
.text-container {
    flex: 1;
}

.img-certificado {
    height: 180px;
    object-fit: cover;
}

#app-content {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#app-content.loaded {
    opacity: 1;
}

#particles-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    left: 0;
    background: white;
}