/* Global Styles */
:root {
    --primary-color: #00d1b2;
    --dark-bg: #0a0e27;
    --darker-bg: #050813;
    --card-bg: #151a35;
    --text-light: #b5bfca;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Navbar Styles */
.navbar {
    background-color: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 209, 178, 0.1);
}

.navbar.scrolled {
    background-color: rgba(10, 14, 39, 1);
    box-shadow: 0 2px 30px rgba(0, 209, 178, 0.2);
}

.navbar-item {
    color: #b5bfca;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-item:hover {
    color: var(--primary-color);
    background-color: transparent !important; /* sem bloco quadrado no hover */
    border-radius: inherit; /* evita cantos quadrados no hover */
}

.navbar-item:hover::after {
    width: 0; /* sem sublinhado no hover */
}

/* Active state: mais discreto e com bordas arredondadas */
.navbar-item.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.navbar-item.is-active::after {
    width: 0; /* remove sublinhado animado quando ativo */
}

.logo {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    font-weight: 900;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
    --parallax-offset: 0px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 209, 178, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    transform: translateY(var(--parallax-offset));
    z-index: 0; /* acima do fundo, abaixo do conteúdo */
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(72, 52, 212, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    transform: translateY(var(--parallax-offset));
    z-index: 0;
    pointer-events: none;
}

/* Garantir que o conteúdo fique acima dos decorativos */
.hero-section .hero-body {
    position: relative;
    z-index: 1;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

.profile-image-container {
    position: relative;
    width: 100%;
    max-width: 420px; /* reduzir leve no desktop */
    margin: 0 auto;
    animation: fadeInRight 1s ease;
}

.profile-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 209, 178, 0.3);
    transition: transform 0.5s ease;
}

/* Hover somente em dispositivos com suporte a hover */
@media (hover:hover) {
    .profile-image:hover {
        transform: scale(1.03) rotate(1deg);
    }
}
@media (hover:none) {
    .profile-image:hover {
        transform: none;
    }
}

/* Responsividade para reduzir proporção da imagem em telas menores */
@media (max-width: 1280px) {
    .profile-image-container { max-width: 400px; }
}
@media (max-width: 1024px) {
    .profile-image-container { max-width: 360px; }
}
@media (max-width: 768px) {
    .profile-image-container { max-width: 280px; }
    .profile-image { border-radius: 16px; }
}
@media (max-width: 480px) {
    .profile-image-container { max-width: 220px; }
    .profile-image { border-radius: 14px; }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2; /* acima dos decorativos do hero */
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--primary-color);
}

.scroll-indicator:hover i { filter: brightness(1.15); }

/* Navbar logo sizing for better visibility */
.navbar { min-height: 4rem; }
.navbar .navbar-brand { align-items: center; }
.navbar .navbar-brand .logo { display: flex; align-items: center; }
.navbar .navbar-item.logo { padding-top: 0.1rem; padding-bottom: 0.1rem; min-height: 3.8rem; }
.navbar .navbar-item.logo .logo-image {
    display: block;
    max-height: 3.6rem; /* aumentar visibilidade */
    height: 3.6rem;
    width: auto;
    object-fit: contain;
    object-position: left center;
}
@media (max-width: 768px) {
    .navbar .navbar-item.logo .logo-image {
        max-height: 3rem;
        height: 3rem;
    }
}

/* Navbar social icons smaller */
.navbar .navbar-icon .icon {
    font-size: 0.95rem; /* menor que o padrão */
    color: var(--primary-color);
}
.navbar .navbar-icon {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
@media (max-width: 768px) {
    .navbar .navbar-icon .icon { font-size: 0.9rem; }
}

/* Typed subtitle caret */
#typed-caret {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--primary-color);
    margin-left: 6px;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* About Section */
.about-section {
    background: var(--dark-bg);
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    max-width: 360px; /* reduzir tamanho exibido sem cortar imagem */
    margin: 0 auto;
    border: none; /* remove divisões visíveis */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.about-image {
    width: 100%;
    height: auto; /* preserva proporção original */
    object-fit: contain; /* mostra a imagem inteira sem corte */
    object-position: center;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.1);
}

.about-image-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.stats-container {
    padding: 2rem 0;
}

/* Melhor espaçamento entre a galeria (esquerda) e o texto (direita) */
.about-section .columns {
    gap: 2.25rem; /* mais espaço entre colunas no desktop */
    align-items: center; /* centraliza verticalmente a coluna de texto com a galeria */
}
@media (max-width: 1024px) { .about-section .columns { gap: 2rem; } }
@media (max-width: 768px) { .about-section .columns { gap: 1.5rem; } }
@media (max-width: 480px) { .about-section .columns { gap: 1rem; } }

/* About Gallery - Flip Cards */
.about-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem; /* mais espaço entre as fotos */
    margin-top: 1.5rem;
}

.flip-card {
    perspective: 1000px;
    border-radius: 16px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 16px;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
    background: var(--card-bg);
    overflow: hidden;
}

.flip-card-inner.is-flipped { transform: rotateY(180deg); }

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 16px;
}

.flip-card-front {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.flip-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flip-card-back {
    transform: rotateY(180deg);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(21, 26, 53, 0.94) 0%, rgba(10, 14, 39, 0.96) 100%);
    border: 1px solid rgba(0, 209, 178, 0.18);
}

.flip-card:focus-visible .flip-card-inner {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@media screen and (max-width: 768px) {
    .about-gallery { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .about-gallery { grid-template-columns: 1fr; }
}

/* Simple gallery items (no flip) */
.about-gallery .gallery-item {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    transition: transform 0.2s ease;
    cursor: pointer; /* trocar lupa pela mão */
}
.about-gallery .gallery-item:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
.about-gallery .gallery-item:hover { transform: translateY(-2px); }
.about-gallery .gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}
.about-gallery .gallery-item:hover .gallery-image { transform: scale(1.03); }

/* Image modal styles */
.image-modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: min(96vw, 1200px);
    margin: 0 auto;
    padding: 0 8px;
}
.image-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 20px;
    align-items: center;
    max-height: 90vh;
    overflow: hidden; /* evita rolagem interna */
}
.image-modal-media { display: flex; align-items: center; justify-content: center; }
#imageModalImg {
    width: 100%;
    height: auto;
    max-width: 95vw; /* garante que não ultrapasse horizontalmente */
    max-height: 90vh; /* garante que não ultrapasse verticalmente */
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.45);
    animation: fadeZoomIn 320ms ease; /* entrada mais suave e um pouco mais longa */
}
#imageModalCaption { font-size: 0.95rem; }

.image-modal-side { display: flex; align-items: stretch; }
.image-info-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
    border-radius: 14px;
    padding: 18px 20px;
    color: #cfd3e0;
    box-shadow: 0 12px 26px rgba(0,0,0,0.25);
    min-height: 200px;
    max-height: 90vh;
    overflow: auto; /* se o texto for longo, rola apenas no card */
}
.image-info-header { margin-bottom: 8px; text-align: center; }
.image-info-title { color: #fff; font-weight: 600; font-size: 1.1rem; }
.image-info-text { font-size: 0.95rem; line-height: 1.55; }
/* Justificar texto do card do modal para melhor leitura */
#imageModalCaption,
.image-info-text {
    text-align: justify;
    text-justify: inter-word;
}

/* Evitar rolagem geral do modal, controlar no grid/card */
#imageModal .modal-content { overflow: visible; }

@media (max-width: 768px) {
    .image-modal-grid {
        grid-template-columns: 1fr;
        max-height: 88vh;
    }
    #imageModalImg { max-height: 60vh; }
}

/* Desktop: ampliar ainda mais a imagem e o container do modal */
@media (min-width: 1024px) {
    /* Seção Sobre Mim: dar mais margem à direita no texto em telas grandes */
    .about-section .column.is-6:last-child .content { padding-right: 1.25rem; }

    .image-modal-content {
        max-width: min(98vw, 1600px); /* mais largura disponível para imagem */
    }
    .image-modal-grid {
        grid-template-columns: minmax(0, 1.3fr) minmax(240px, 320px); /* mais espaço para a imagem, card um pouco mais estreito */
        gap: 24px;
        max-height: 94vh; /* imagem pode ocupar mais altura */
    }
    /* Mais respiro à direita no card de detalhes em telas grandes */
    .image-info-card { padding-right: 28px; }
    .image-info-text { padding-right: 6px; }
    #imageModalImg {
        max-width: 98vw;
        max-height: 94vh;
    }
}

/* Fundo fosco com blur ao abrir o modal de imagem */
#imageModal .modal-background {
    background: rgba(10, 14, 39, 0.78);
    backdrop-filter: blur(8px);
}

/* Animator overlay (zoom from thumbnail) */
.zoom-animator {
    position: fixed;
    z-index: 10000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,.35);
    will-change: transform, opacity;
    transition: transform 420ms cubic-bezier(.2,.8,.2,1), opacity 420ms ease; /* aumentar duração da transição */
    pointer-events: none;
}
.zoom-animator img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes fadeZoomIn {
    from { opacity: 0; transform: scale(0.98) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.stat-box {
    text-align: center;
    padding: 1rem;
}

.counter {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4834d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Projects Section */
.projects-section {
    background: var(--darker-bg);
    padding: 100px 0;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 209, 178, 0.1);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 209, 178, 0.2);
    border-color: var(--primary-color);
}

.project-card .card-image {
    position: relative;
    overflow: hidden;
}

.project-card .card-image img {
    transition: transform 0.5s ease;
}

.project-card:hover .card-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links .button {
    transition: all 0.3s ease;
}

.project-links .button:hover {
    transform: scale(1.1);
}

/* Skills Section */
.skills-section {
    background: var(--dark-bg);
    padding: 100px 0;
}

.skill-item {
    margin-bottom: 2rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress {
    height: 12px;
    border-radius: 10px;
    background-color: var(--card-bg);
}

.progress::-webkit-progress-bar {
    background-color: var(--card-bg);
    border-radius: 10px;
}

.progress::-webkit-progress-value {
    background: linear-gradient(90deg, var(--primary-color) 0%, #4834d4 100%);
    border-radius: 10px;
    transition: width 1s ease;
}

.progress::-moz-progress-bar {
    background: linear-gradient(90deg, var(--primary-color) 0%, #4834d4 100%);
    border-radius: 10px;
}

/* Contact Section */
.contact-section {
    background: var(--darker-bg);
    padding: 100px 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-item .icon {
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links .button {
    width: 50px;
    height: 50px;
    padding: 0;
    transition: all 0.3s ease;
}

.social-links .button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 209, 178, 0.3);
}

.contact-form-card {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid rgba(0, 209, 178, 0.1);
}

.contact-form-card .input,
.contact-form-card .textarea {
    background-color: var(--dark-bg);
    border: 1px solid rgba(0, 209, 178, 0.2);
    color: #fff;
    transition: all 0.3s ease;
}

.contact-form-card .input:focus,
.contact-form-card .textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(0, 209, 178, 0.25);
}

.contact-form-card .input::placeholder,
.contact-form-card .textarea::placeholder {
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    padding: 3rem 1.5rem;
    border-top: 1px solid rgba(0, 209, 178, 0.1);
}

/* Dashboard layout */
.menu .menu-label { color: var(--text-light); }
.menu .menu-list a { color: #fff; }
.menu .menu-list a.is-active { color: var(--primary-color); }
.table { background: var(--dark-bg); color: #fff; }
.table thead th { color: var(--text-light); }
.card-header { background: rgba(0,0,0,0.1); }
.card { border: 1px solid rgba(0, 209, 178, 0.12); }

/* Login Modal */
.custom-modal .modal-background {
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(6px);
}

.custom-modal .modal-content {
    max-width: 520px;
    max-height: none; /* evitar scrollbar interno padrão do Bulma */
    overflow: visible; /* permitir sombras e bordas aparecerem sem corte */
}

.login-card {
    background: linear-gradient(135deg, rgba(21, 26, 53, 0.95) 0%, rgba(10, 14, 39, 0.95) 100%);
    border-radius: 20px;
    border: 1px solid rgba(0, 209, 178, 0.15);
    box-shadow: 0 30px 60px rgba(0, 209, 178, 0.15), inset 0 0 0 1px rgba(255,255,255,0.03);
    padding: 2rem;
    animation: modalPop 0.4s ease;
    position: relative;
    overflow: hidden; /* clip dos efeitos internos para respeitar o border-radius */
    backface-visibility: hidden; /* suavizar serrilhado nas bordas ao animar */
    transform: translateZ(0); /* evitar artefatos de renderização nas bordas inferiores */
}

.login-card::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(0, 209, 178, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(10px);
    animation: float 7s ease-in-out infinite;
}

.login-header .title {
    letter-spacing: 0.5px;
}

.login-form .input {
    background-color: var(--dark-bg);
    border: 1px solid rgba(0, 209, 178, 0.2);
    color: #fff;
    transition: all 0.3s ease;
}

.login-form .input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(0, 209, 178, 0.25);
}

.is-clickable { cursor: pointer; }

.login-form .button.is-primary {
    box-shadow: 0 15px 35px rgba(0, 209, 178, 0.25);
}

@keyframes modalPop {
    from { transform: translateY(20px) scale(0.98); opacity: 0; }
    to   { transform: translateY(0)     scale(1);    opacity: 1; }
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease;
}

.fade-in-left {
    animation: fadeInLeft 1s ease;
}

.fade-in-right {
    animation: fadeInRight 1s ease;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease;
    animation-fill-mode: both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media screen and (max-width: 768px) {

    .hero-section::before,
    .hero-section::after {
        width: 300px;
        height: 300px;
    }

    .profile-image-container {
        max-width: 300px;
        margin-top: 3rem;
    }

    .stats-container .columns {
        text-align: center;
    }

    .stat-box {
        margin-bottom: 1rem;
    }

    /* reduzir ainda mais o tamanho em telas menores mantendo imagem inteira */
    .about-image-wrapper { max-width: 240px; }
}

/* Custom Bulma Overrides */
.button.is-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4834d4 100%);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.button.is-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 209, 178, 0.3);
}

.button.is-outlined.is-light {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.button.is-outlined.is-light:hover {
    background: var(--primary-color);
    color: var(--darker-bg);
    transform: translateY(-2px);
}

.tag.is-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4834d4 100%);
}

.tag.is-info {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.tag.is-success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}
/* Desativa efeitos de hover em dispositivos touch para consistência */
@media (hover: none) {
    .navbar-item:hover { color: inherit; background-color: transparent !important; }
    .navbar-item:hover::after { width: 0; }
}

/* Melhorias de usabilidade em mobile */
@media screen and (max-width: 768px) {
    #navbarMenu .navbar-item {
        padding: 0.65rem 0.9rem;
        margin: 0.15rem 0;
        border-radius: 10px;
    }
    #navbarMenu .navbar-item.is-active {
        background: rgba(255, 255, 255, 0.08);
        box-shadow: none; /* evitar excesso visual no menu mobile */
    }
}
/* Ajustes adicionais de responsividade para mobile */
@media screen and (max-width: 768px) {
    /* Paddings de seção mais compactos */
    .about-section,
    .projects-section,
    .skills-section,
    .contact-section { padding: 60px 0; }

    /* Títulos e textos do hero menores para melhor leitura */
    .hero-section .title.is-1 { font-size: 2.2rem; }
    .hero-section .title.is-3 { font-size: 1.5rem; }
    .hero-section .subtitle.is-5 { font-size: 1rem; }

    /* Sobre: reduzir fontes para melhor leitura em telas pequenas */
    .about-section .title.is-2 { font-size: 1.75rem; }
    .about-section .content { font-size: 0.95rem; line-height: 1.65; }
    .about-section .content p { margin-bottom: 0.85rem; }

    /* Indicador de scroll mais próximo e menor */
    .scroll-indicator { bottom: 20px; }
    .scroll-indicator i { font-size: 1.6rem; }

    /* Remover offset de colunas quando empilha */
    .column.is-offset-1 { margin-left: 0 !important; }

    /* Barras de progresso um pouco menores */
    .progress { height: 10px; }
}

@media (max-width: 480px) {
    /* Ajustes extras para telas muito pequenas */
    .hero-section .title.is-1 { font-size: 2rem; }
    .hero-section .title.is-3 { font-size: 1.3rem; }
    .hero-section .subtitle.is-5 { font-size: 0.95rem; }

    /* Sobre: reduzir ainda mais em telas muito pequenas */
    .about-section .title.is-2 { font-size: 1.5rem; }
    .about-section .content { font-size: 0.9rem; line-height: 1.7; }
}
/* Modern card effect for Experience and Education sections */
.modern-card {
    background: linear-gradient(135deg, rgba(21, 26, 53, 0.92) 0%, rgba(10, 14, 39, 0.94) 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 209, 178, 0.18);
    box-shadow: 0 18px 45px rgba(0, 209, 178, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    backface-visibility: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: -22%;
    left: -12%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(0, 209, 178, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(12px);
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 65px rgba(0, 209, 178, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 209, 178, 0.28);
}

.modern-card .title,
.modern-card .subtitle,
.modern-card p { color: inherit; }

.timeline .modern-card { padding: 1.25rem 1.35rem; }

.modern-card .tag.is-dark {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Equal height cards across columns */
.experience-section .columns.is-multiline .column,
.education-section .columns.is-multiline .column,
.languages-section .columns.is-multiline .column {
  display: flex;
}

.experience-section .box.modern-card,
.education-section .box.modern-card,
.languages-section .box.modern-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}