/* Sistema de Bolhas - Baseado no Goey Footer */
.bubble-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--white);
    z-index: 99999;
    overflow: visible;
    display: grid;
    grid-template-rows: 1fr;
    transition: opacity 1s ease, visibility 1s ease;
}

.bubble-preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.bubble-preloader .bubbles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    width: 100vw;
    background: transparent;
    filter: url("#blob");
    overflow: visible;
}

.bubble-preloader .bubble {
    position: absolute;
    left: var(--position, 50%);
    background: var(--bubble-color, var(--rainbow-red));
    border-radius: 100%;
    animation: bubble-size var(--time, 4s) ease-in infinite var(--delay, 0s),
                bubble-move-fullscreen var(--time, 4s) ease-in infinite var(--delay, 0s);
    transform: translate(-50%, 100%);
}

/* Transição de Bolhas para Projetos */
.bubble-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    z-index: 9999;
    overflow: visible;
    pointer-events: none;
    transition: all 0.8s ease;
}

.bubble-transition.fade-out {
    opacity: 0;
}

/* Fundo com blur que aparece gradualmente */
.bubble-transition::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(0px);
    opacity: 0;
    transition: all 1.2s ease;
    z-index: -1;
}

.bubble-transition.blur-active::before {
    backdrop-filter: blur(10px);
    opacity: 1;
}

.bubble-transition .bubbles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    width: 100vw;
    background: transparent;
    filter: url("#blob");
    overflow: visible;
}

.bubble-transition .bubble {
    position: absolute;
    left: var(--position, 50%);
    background: var(--bubble-color, var(--rainbow-red));
    border-radius: 100%;
    animation: bubble-size-transition var(--time, 3s) ease-out infinite var(--delay, 0s),
                bubble-move-fullscreen-transition var(--time, 3s) ease-out infinite var(--delay, 0s);
    transform: translate(-50%, 100%);
    filter: blur(0.5px);
    opacity: 0;
    animation-fill-mode: forwards;
    will-change: transform, opacity;
}

@keyframes bubble-size {
    0% {
        width: 0rem;
        height: 0rem;
        opacity: 0;
    }
    25% {
        width: var(--size, 8rem);
        height: var(--size, 8rem);
        opacity: 0.9;
    }
    75% {
        width: var(--size, 8rem);
        height: var(--size, 8rem);
        opacity: 0.7;
    }
    100% {
        width: 0rem;
        height: 0rem;
        opacity: 0;
    }
}

@keyframes bubble-move {
    0% {
        bottom: -4rem;
    }
    100% {
        bottom: var(--distance, 10rem);
    }
}

@keyframes bubble-move-fullscreen {
    0% {
        bottom: -4rem;
        opacity: 0;
    }
    25% {
        bottom: 25vh;
        opacity: 0.8;
    }
    50% {
        bottom: 50vh;
        opacity: 0.6;
    }
    75% {
        bottom: 75vh;
        opacity: 0.4;
    }
    100% {
        bottom: 120vh;
        opacity: 0;
    }
}

@keyframes bubble-size-transition {
    0% {
        width: 0rem;
        height: 0rem;
        opacity: 0;
    }
    15% {
        width: var(--size, 4rem);
        height: var(--size, 4rem);
        opacity: 0.9;
    }
    85% {
        width: var(--size, 4rem);
        height: var(--size, 4rem);
        opacity: 0.7;
    }
    100% {
        width: 0rem;
        height: 0rem;
        opacity: 0;
    }
}

@keyframes bubble-move-fullscreen-transition {
    0% {
        bottom: -20rem;
        opacity: 0;
        transform: translate(-50%, 100%) scale(0.1);
    }
    5% {
        bottom: -15rem;
        opacity: 0;
        transform: translate(-50%, 100%) scale(0.2);
    }
    15% {
        bottom: -10rem;
        opacity: 0.2;
        transform: translate(-50%, 100%) scale(0.4);
    }
    25% {
        bottom: 0vh;
        opacity: 0.5;
        transform: translate(-50%, 100%) scale(0.7);
    }
    40% {
        bottom: 20vh;
        opacity: 0.8;
        transform: translate(-50%, 100%) scale(1);
    }
    60% {
        bottom: 50vh;
        opacity: 0.9;
        transform: translate(-50%, 100%) scale(1.1);
    }
    80% {
        bottom: 80vh;
        opacity: 0.6;
        transform: translate(-50%, 100%) scale(0.9);
    }
    95% {
        bottom: 110vh;
        opacity: 0.2;
        transform: translate(-50%, 100%) scale(0.4);
    }
    100% {
        bottom: 130vh;
        opacity: 0;
        transform: translate(-50%, 100%) scale(0.1);
    }
}

/* Fontes */
@font-face {
    font-family: 'Jumper';
    src: url('fonts/Jumper-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Fonte Nunito importada via HTML */

/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta Cafeína Colorida */
    --rainbow-red: #FF6B6B;
    --rainbow-orange: #FFA500;
    --rainbow-yellow: #FFD93D;
    --rainbow-green: #6BCF7F;
    --rainbow-blue: #4ECDC4;
    --rainbow-purple: #A78BFA;
    --coffee-dark: #2C1810;
    --coffee-medium: #5D4037;
    --coffee-light: #8D6E63;
    --cream: #FFF8E1;
    --white: #ffffff;
    --text-dark: #2C1810;
    --text-light: #5D4037;
    
    /* Fontes */
    --font-primary: 'Jumper', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-fallback: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary), var(--font-fallback);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Garantir que todos os parágrafos usem a fonte Nunito */
p {
    font-family: var(--font-secondary), var(--font-fallback);
}

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

/* Header e Navegação */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1000;
}

.nav-brand .logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 300;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.nav-brand .logo:hover {
    color: var(--rainbow-purple);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-family: var(--font-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--rainbow-purple);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--rainbow-red), var(--rainbow-orange), var(--rainbow-yellow), var(--rainbow-green), var(--rainbow-blue), var(--rainbow-purple));
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.title-line {
    display: block;
    background: linear-gradient(135deg, var(--rainbow-red) 0%, var(--rainbow-orange) 20%, var(--rainbow-yellow) 40%, var(--rainbow-green) 60%, var(--rainbow-blue) 80%, var(--rainbow-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-secondary), var(--font-fallback);
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.2s forwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.4s forwards;
    position: relative;
    z-index: 10;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--rainbow-purple) 0%, var(--rainbow-blue) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(167, 139, 250, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--coffee-dark);
    border: 2px solid var(--coffee-dark);
}

.btn-secondary:hover {
    background: var(--coffee-dark);
    color: white;
    transform: translateY(-2px);
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-elements {
    position: relative;
    width: 400px;
    height: 400px;
    z-index: 1;
}

/* Ondas coloridas animadas */
.wave {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0.1;
    animation: wavePulse 4s ease-in-out infinite;
}

.wave-1 {
    background: conic-gradient(from 0deg, var(--rainbow-red), var(--rainbow-orange), var(--rainbow-yellow), var(--rainbow-green), var(--rainbow-blue), var(--rainbow-purple), var(--rainbow-red));
    animation-delay: 0s;
}

.wave-2 {
    background: conic-gradient(from 180deg, var(--rainbow-purple), var(--rainbow-blue), var(--rainbow-green), var(--rainbow-yellow), var(--rainbow-orange), var(--rainbow-red), var(--rainbow-purple));
    animation-delay: 1s;
}

.wave-3 {
    background: conic-gradient(from 90deg, var(--rainbow-green), var(--rainbow-blue), var(--rainbow-purple), var(--rainbow-red), var(--rainbow-orange), var(--rainbow-yellow), var(--rainbow-green));
    animation-delay: 2s;
}

/* Container do Lottie */
.lottie-container {
    position: absolute;
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 6s ease-in-out infinite;
}

/* Seções gerais */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--rainbow-red) 0%, var(--rainbow-orange) 20%, var(--rainbow-yellow) 40%, var(--rainbow-green) 60%, var(--rainbow-blue) 80%, var(--rainbow-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Projetos Section */
.projetos {
    padding: 100px 0;
    background: var(--white);
}

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

.projeto-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.projeto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.projeto-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 500;
}

.projeto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.9), rgba(78, 205, 196, 0.9));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.projeto-overlay h3 {
    display: none;
}

.projeto-overlay p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.projeto-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border: 2px solid white;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.projeto-link:hover {
    background: white;
    color: #007bff;
}

.projeto-info {
    padding: 1.5rem;
}

.projeto-info h3 {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.projeto-info p {
    font-family: var(--font-secondary);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Sobre Section */
.sobre {
    padding: 15px 0;
    margin-bottom: 60px;
}

.sobre-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sobre-description {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

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

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-name {
    font-family: var(--font-primary);
    font-weight: 300;
    color: var(--text-dark);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(135deg, var(--rainbow-red) 0%, var(--rainbow-orange) 20%, var(--rainbow-yellow) 40%, var(--rainbow-green) 60%, var(--rainbow-blue) 80%, var(--rainbow-purple) 100%);
    border-radius: 4px;
    transition: width 1.5s ease;
}

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

.profile-container {
    position: relative;
    width: 550px;
    height: 650px;
    transition: transform 0.3s ease;
    margin-top: -200px; /* Alinhar o topo completo da imagem com a linha vermelha */
    z-index: 100;
}

.profile-container:hover {
    transform: scale(1.05);
}

.profile-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Não cortar a imagem */
    transition: opacity 0.3s ease;
}

.profile-main {
    opacity: 1;
}

.profile-hover {
    opacity: 0;
}

.profile-container:hover .profile-main {
    opacity: 0;
}

.profile-container:hover .profile-hover {
    opacity: 1;
}

/* Seção de contato removida */

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0;
    text-align: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--rainbow-purple);
}

/* Animações */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wavePulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.3;
    }
}

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

@keyframes steamRise {
    0% {
        transform: translateX(-50%) scaleY(1) translateY(0);
        opacity: 0.8;
    }
    50% {
        transform: translateX(-50%) scaleY(1.5) translateY(-10px);
        opacity: 0.4;
    }
    100% {
        transform: translateX(-50%) scaleY(0.5) translateY(-20px);
        opacity: 0;
    }
}

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

/* Galeria de Projetos Modal */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
}

.project-modal.active .modal-content {
    transform: translate(-50%, -50%) scale(1);
}

/* Indicador para projetos sem mídia */
.no-media-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, var(--rainbow-purple), var(--rainbow-blue));
    color: white;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 15px;
    text-align: center;
    padding: 20px;
}

/* Loading state para imagens */
.image-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--cream);
    color: var(--text-light);
    font-family: var(--font-secondary);
    font-size: 1rem;
}

.image-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--coffee-light);
    border-top: 2px solid var(--rainbow-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--coffee-dark);
    color: white;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--rainbow-purple);
    transform: scale(1.1);
}

.project-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    overflow: hidden; /* Previne scroll duplo */
    align-items: center; /* Centralizar verticalmente */
}

@media (max-width: 768px) {
    .project-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        height: auto; /* Permite que cresça conforme necessário */
    }
}

.gallery-images {
    padding: 40px;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 768px) {
    .gallery-images {
        padding: 20px;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .gallery-images {
        padding: 15px;
        gap: 10px;
    }
}

.image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    width: 590px !important;
    height: 290px !important;
    flex-shrink: 0 !important;
    min-width: 590px !important;
    min-height: 290px !important;
    max-width: 590px !important;
    max-height: 290px !important;
}

.main-image-wrapper {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 15px;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

/* Overlay com lupa para hover */
.image-zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 15px;
    z-index: 10;
    pointer-events: none;
}

.main-image-wrapper:hover .image-zoom-overlay {
    opacity: 1;
}



.zoom-icon {
    color: white;
    font-size: 1.8rem;
    background: rgba(78, 205, 196, 0.9);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
}

.main-image-wrapper:hover .zoom-icon {
    transform: scale(1.1);
    background: rgba(78, 205, 196, 1);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

/* Estado ativo para indicar que pode ser clicado */
.main-image-wrapper.clickable .zoom-icon {
    background: rgba(78, 205, 196, 0.9);
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.5);
    animation: pulse 2s infinite;
}

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

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-media {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.lightbox-close:hover {
    background: rgba(78, 205, 196, 0.9);
    border-color: rgba(78, 205, 196, 1);
    transform: scale(1.1);
}

.lightbox img,
.lightbox video {
    max-width: none;
    max-height: none;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: none;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.lightbox img:active {
    cursor: grabbing;
}

.lightbox img.zoomed {
    cursor: grab;
}

.lightbox img.zoomed:active {
    cursor: grabbing;
}

/* Controles de zoom do lightbox */
.lightbox-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10002;
}

.zoom-control {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.zoom-control:hover {
    background: rgba(78, 205, 196, 0.9);
    transform: scale(1.1);
}

.zoom-info {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    min-width: 60px;
}

.gallery-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Cobre todo o frame */
    border-radius: 15px;
    transition: all 0.3s ease;
    max-width: none !important;
    max-height: none !important;
    min-width: none !important;
    min-height: none !important;
}

/* CSS ESPECÍFICO PARA A GALERIA - FRAME FIXO */
#gallery-main-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    max-width: none !important;
    max-height: none !important;
    min-width: none !important;
    min-height: none !important;
}

#gallery-main-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: none !important; /* Começa oculto */
    max-width: none !important;
    max-height: none !important;
    min-width: none !important;
    min-height: none !important;
}

#gallery-main-wrapper {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.gallery-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 15px;
    background: #000;
    max-width: none !important;
    max-height: none !important;
    min-width: none !important;
    min-height: none !important;
    display: block !important;
}

/* Setas de navegação */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

@media (max-width: 768px) {
    .nav-arrow {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .nav-arrow {
        width: 40px;
        height: 40px;
    }
}

.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.nav-prev {
    left: 20px;
}

.nav-next {
    right: 20px;
}

.nav-arrow i {
    font-size: 1.2rem;
}

.image-thumbnails {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    position: relative;
    min-height: 80px;
    padding: 10px 0;
}

.thumbnails-container {
    display: flex;
    gap: 10px;
    overflow: hidden;
    max-width: 400px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    min-height: 60px;
    align-items: center;
}

.thumb-nav {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .thumb-nav {
        width: 28px;
        height: 28px;
    }
}

.thumb-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.thumb-nav i {
    font-size: 0.8rem;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.thumbnail.active,
.thumbnail:hover {
    border-color: var(--rainbow-purple);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.project-details {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%; /* Altura total disponível */
    overflow-y: auto !important; /* Scroll geral para todo o conteúdo - sempre ativo */
    padding-right: 15px; /* Espaço para scrollbar */
    max-height: 100%; /* Garante que o scroll funcione */
}

/* Scrollbar customizada para toda a área de detalhes */
.project-details::-webkit-scrollbar {
    width: 8px;
}

.project-details::-webkit-scrollbar-track {
    background: var(--cream);
    border-radius: 10px;
}

.project-details::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--rainbow-purple), var(--rainbow-blue));
    border-radius: 10px;
}

.project-details::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--rainbow-blue), var(--rainbow-purple));
}

.project-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 300;
    background: linear-gradient(135deg, var(--rainbow-red) 0%, var(--rainbow-orange) 20%, var(--rainbow-yellow) 40%, var(--rainbow-green) 60%, var(--rainbow-blue) 80%, var(--rainbow-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.project-category {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--rainbow-purple), var(--rainbow-blue));
    color: white;
    border-radius: 20px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 300;
}

.project-description {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.project-tech h3 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 15px;
    color: var(--text-dark);
}

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

.tech-tag {
    padding: 6px 12px;
    background: var(--cream);
    color: var(--coffee-dark);
    border-radius: 15px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 400;
    border: 2px solid var(--coffee-light);
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

/* Onda de Abertura */
.wave-entrance {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100vw;
    height: 100vh;
    border-radius: 50%;
    background: conic-gradient(var(--rainbow-red), var(--rainbow-orange), var(--rainbow-yellow), var(--rainbow-green), var(--rainbow-blue), var(--rainbow-purple));
    z-index: 9999;
    animation: waveEntrance 1s ease-in-out forwards;
}

@keyframes waveEntrance {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Responsividade Completa */
@media (max-width: 1024px) {
    /* Tablets */
    .container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 600px;
    }
    
    .projetos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .floating-elements {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    /* Tablets pequenos e mobile grande */
    .nav-menu,
    .nav-menu.active,
    .nav-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    .nav {
        justify-content: center !important;
    }
    
    .nav-brand {
        margin: 0 auto;
        text-align: center;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 80px 0 20px;
        gap: 1rem;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .floating-elements {
        display: none;
    }
    
    .projetos {
        padding: 30px 0;
    }
    
    .sobre {
        margin-bottom: 40px;
    }
    
    .sobre-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 3rem 0;
    }
    
    .sobre-text {
        order: 1;
    }
    
    .sobre-image {
        order: 2;
        margin-top: 2rem;
    }
    
    .profile-container {
        width: 400px;
        height: 450px;
        margin: 0 auto;
        margin-top: 0;
        /* Garantir que o hover funcione no mobile */
        pointer-events: auto;
        cursor: pointer;
    }
    
    /* Garantir que o hover funcione no mobile */
    .profile-container:hover {
        transform: scale(1.05);
    }
    
    .profile-container:hover .profile-main {
        opacity: 0;
    }
    
    .profile-container:hover .profile-hover {
        opacity: 1;
    }
    
    .profile-container:hover .speech-bubble {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    
    .skills {
        gap: 1.2rem;
        margin-top: 2rem;
    }
    
    .skill-item {
        margin-bottom: 1.2rem;
    }
    
    .skill-name {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .skill-bar {
        height: 7px;
    }
    
    .projetos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 2rem;
    }
    
    .projeto-card {
        border-radius: 12px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    }
    
    .projeto-image {
        height: 200px;
    }
    
    .projeto-info {
        padding: 1rem;
    }
    
    .projeto-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    
    .section-header {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 2rem 0;
    }
    
    /* Responsividade da Galeria - CORREÇÃO DE TAMANHO */
    .project-gallery {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem;
        align-items: stretch !important;
        width: 100% !important;
        height: 100% !important; /* ALTURA TOTAL PARA ROLLAGEM */
        overflow: visible !important;
    }
    
    .gallery-images {
        order: 1;
        width: 100%;
        flex-shrink: 0; /* MUITO IMPORTANTE: Impede que a área da imagem seja esmagada */
        padding: 1rem; /* Um respiro para a imagem */
        box-sizing: border-box;
    }
    
    .image-container {
        width: 60%; /* DIMINUIR PARA 60% */
        max-width: 300px; /* Largura máxima menor */
        margin: 0 auto; /* Centraliza o container da imagem */
        aspect-ratio: 16 / 9; /* Uma proporção mais comum e menos "larga" */
        height: auto;
        overflow: hidden;
        border-radius: 8px;
        background: transparent !important;
        box-shadow: none !important;
        flex-shrink: 0 !important;
    }
    
    /* GARANTIR QUE A IMAGEM PREENCHA O ESPAÇO CORRETAMENTE */
    .image-container img,
    #gallery-main-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* EVITA DISTORÇÃO */
        max-width: 100% !important; /* SOBRESCREVER O max-width: none */
        min-width: auto !important; /* SOBRESCREVER O min-width: none */
        min-height: auto !important; /* SOBRESCREVER O min-height: none */
    }
    
    /* REMOVER SELETOR DE IMAGENS NO MOBILE */
    .image-thumbnails {
        display: none !important;
    }
    
    .thumbnails-container {
        display: none !important;
    }
    
    /* ESCONDER BOTÕES DE NAVEGAÇÃO NO MOBILE */
    .nav-arrow {
        display: none !important;
    }
    
    /* INDICADOR DE SWIPE */
    .swipe-indicator {
        display: block !important;
        position: absolute !important;
        bottom: 10px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        background: rgba(0, 0, 0, 0.6) !important;
        color: white !important;
        padding: 8px 16px !important;
        border-radius: 20px !important;
        font-size: 0.8rem !important;
        z-index: 10 !important;
        animation: swipe-pulse 2s infinite !important;
    }
    
    @keyframes swipe-pulse {
        0%, 100% { opacity: 0.7; }
        50% { opacity: 1; }
    }
    
    /* Lightbox mobile */
    .lightbox {
        padding: 10px;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
    
    .lightbox-controls {
        bottom: 15px;
    }
    
    .zoom-control {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .zoom-info {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-width: 50px;
    }
    
    .gallery-image {
        border-radius: 8px;
    }
    
    .image-thumbnails {
        gap: 10px;
        margin-top: 1rem;
        min-height: 70px;
        padding: 8px 0;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
        border-radius: 6px;
        flex-shrink: 0;
    }
    
    .project-details {
        order: 2;
        flex-grow: 1; /* Faz a área de texto ocupar todo o espaço vertical que sobrar */
        overflow-y: auto; /* ADICIONA A ROLAGEM APENAS AQUI */
        padding: 0 1rem 1rem 1rem; /* Espaçamento para o texto não colar nas bordas */
        box-sizing: border-box;
    }
    
    .project-title {
        font-size: 1.4rem; /* TÍTULO MENOR PARA CABER */
        margin-bottom: 0.6rem;
        line-height: 1.1;
    }
    
    .project-description {
        font-size: 0.85rem; /* TEXTO MENOR PARA CABER */
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }
    
    .project-tech h3 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .tech-tags {
        gap: 5px;
        flex-wrap: wrap;
    }
    
    .tech-tag {
        padding: 4px 8px;
        font-size: 0.75rem;
        border-radius: 10px;
    }
    
    .project-links {
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 1.5rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 6px;
        font-family: var(--font-primary);
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 10px;
        border-radius: 12px;
    }
    
    /* Ajustes do modal */
    .project-modal {
        padding: 15px;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        border-radius: 50%;
    }
}

@media (max-width: 768px) {
    /* Ajustes para tablets e mobile */
    .sobre-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .profile-container {
        width: 300px;
        height: 350px;
        margin: 0 auto;
        margin-top: 0; /* Reset do margin-top negativo no mobile */
        /* Garantir que o hover funcione no mobile */
        pointer-events: auto;
        cursor: pointer;
    }
    
    /* Garantir que o hover funcione no mobile pequeno */
    .profile-container:hover {
        transform: scale(1.05);
    }
    
    .profile-container:hover .profile-main {
        opacity: 0;
    }
    
    .profile-container:hover .profile-hover {
        opacity: 1;
    }
    
    .profile-container:hover .speech-bubble {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    
    .skills {
        gap: 1rem;
    }
    
    .skill-item {
        margin-bottom: 1rem;
    }
    
    .skill-name {
        font-size: 1rem;
    }
    
    .skill-bar {
        height: 6px;
    }
}

@media (max-width: 480px) {
    /* Mobile pequeno */
    .nav-menu,
    .nav-menu.active,
    .nav-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    .nav {
        justify-content: center !important;
    }
    
    .nav-brand {
        margin: 0 auto;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 70px 0 15px;
        gap: 0.8rem;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .hero-cta {
        margin-bottom: 1rem;
    }
    
    .projetos {
        padding: 20px 0;
    }
    
    .sobre {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .sobre-content {
        gap: 1.5rem;
        padding: 2rem 0;
    }
    
    .sobre-text {
        margin-bottom: 1rem;
    }
    
    .sobre-image {
        margin-top: 1.5rem;
    }
    
    .projetos-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 1.5rem;
    }
    
    .projeto-card {
        border-radius: 10px;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    }
    
    .projeto-image {
        height: 180px;
    }
    
    .projeto-info {
        padding: 0.8rem;
    }
    
    .projeto-info h3 {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }
    
    /* Modal em mobile pequeno - Design Responsivo MDN */
    .modal-content {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: calc(100vw - 16px) !important; /* LARGURA RESPONSIVA MENOR */
        max-width: 92vw !important;
        height: calc(100vh - 32px) !important; /* ALTURA RESPONSIVA MENOR */
        max-height: 92vh !important;
        margin: 0 !important;
        border-radius: 6px;
        overflow: auto !important; /* SCROLL INTERNO */
        box-sizing: border-box !important;
        z-index: 1000 !important;
    }
    
    .project-details {
        padding: 10px;
    }
    
    .project-title {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }
    
    .project-description {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }
    
    .tech-tags {
        gap: 5px;
    }
    .profile-container {
        width: 300px;
        height: 350px;
    }
    
    .sobre-description {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .skills {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .skill-item {
        margin-bottom: 1rem;
    }
    
    .skill-name {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .skill-bar {
        height: 6px;
    }
    
    .floating-elements {
        display: none;
    }
    
    /* Modal mobile - Aplicando Design Responsivo da MDN */
    .modal-content {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: calc(100vw - 20px) !important; /* LARGURA RESPONSIVA */
        max-width: 95vw !important;
        height: calc(100vh - 40px) !important; /* ALTURA RESPONSIVA */
        max-height: 95vh !important;
        margin: 0 !important;
        border-radius: 8px;
        overflow: auto !important; /* SCROLL INTERNO */
        box-sizing: border-box !important;
        z-index: 1000 !important;
    }
    
    .project-gallery {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem;
        align-items: stretch !important;
        width: 100% !important;
        height: 100% !important; /* ALTURA TOTAL PARA ROLLAGEM */
        overflow: visible !important;
    }
    
    .gallery-images {
        order: 1;
        width: 100%;
        flex-shrink: 0; /* MUITO IMPORTANTE: Impede que a área da imagem seja esmagada */
        padding: 0.8rem; /* Um respiro para a imagem */
        box-sizing: border-box;
    }
    
    .image-container {
        width: 50%; /* DIMINUIR PARA 50% */
        max-width: 250px; /* Largura máxima ainda menor para mobile pequeno */
        margin: 0 auto; /* Centraliza o container da imagem */
        aspect-ratio: 16 / 9; /* Uma proporção mais comum e menos "larga" */
        height: auto;
        overflow: hidden;
        border-radius: 6px;
        background: transparent !important;
        box-shadow: none !important;
        flex-shrink: 0 !important;
    }
    
    /* GARANTIR QUE A IMAGEM PREENCHA O ESPAÇO CORRETAMENTE */
    .image-container img,
    #gallery-main-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* EVITA DISTORÇÃO */
        max-width: 100% !important; /* SOBRESCREVER O max-width: none */
        min-width: auto !important; /* SOBRESCREVER O min-width: none */
        min-height: auto !important; /* SOBRESCREVER O min-height: none */
    }
    
    /* ESCONDER BOTÕES DE NAVEGAÇÃO NO MOBILE PEQUENO */
    .nav-arrow {
        display: none !important;
    }
    
    /* INDICADOR DE SWIPE - MOBILE PEQUENO */
    .swipe-indicator {
        display: block !important;
        position: absolute !important;
        bottom: 8px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        background: rgba(0, 0, 0, 0.6) !important;
        color: white !important;
        padding: 6px 12px !important;
        border-radius: 16px !important;
        font-size: 0.7rem !important;
        z-index: 10 !important;
        animation: swipe-pulse 2s infinite !important;
    }
    
    /* Lightbox mobile pequeno */
    .lightbox {
        padding: 5px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .lightbox-controls {
        bottom: 10px;
        gap: 8px;
    }
    
    .zoom-control {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .zoom-info {
        padding: 5px 8px;
        font-size: 0.75rem;
        min-width: 45px;
    }
    
    /* REMOVER SELETOR DE IMAGENS NO MOBILE PEQUENO */
    .image-thumbnails {
        display: none !important;
    }
    
    .thumbnails-container {
        display: none !important;
    }
    
    .thumb-nav {
        width: 25px;
        height: 25px;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
        border-radius: 5px;
        flex-shrink: 0;
    }
    
    .project-details {
        order: 2;
        flex-grow: 1; /* Faz a área de texto ocupar todo o espaço vertical que sobrar */
        overflow-y: auto; /* ADICIONA A ROLAGEM APENAS AQUI */
        padding: 0 0.8rem 0.8rem 0.8rem; /* Espaçamento para o texto não colar nas bordas */
        box-sizing: border-box;
    }
    
    .project-title {
        font-size: 1.2rem; /* TÍTULO AINDA MENOR NO MOBILE PEQUENO */
        margin-bottom: 0.5rem;
        line-height: 1.1;
    }
    
    .project-description {
        font-size: 0.8rem; /* TEXTO AINDA MENOR NO MOBILE PEQUENO */
        line-height: 1.3;
        margin-bottom: 0.6rem;
    }
    
    .project-tech h3 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .tech-tags {
        gap: 4px;
        flex-wrap: wrap;
    }
    
    .tech-tag {
        padding: 3px 6px;
        font-size: 0.7rem;
        border-radius: 8px;
    }
    
    .project-links {
        flex-direction: column;
        gap: 0.6rem;
        margin-top: 1.2rem;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
        border-radius: 5px;
        font-family: var(--font-primary);
    }
    
    .footer-content {
        padding: 1.5rem 0;
    }
}

/* Menu Mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Menu mobile ativo */
.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 0 0 15px 15px;
    z-index: 1000;
}

.nav-menu.active li {
    margin: 10px 0;
}

.nav-menu.active .nav-link {
    font-size: 1.1rem;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* Efeito de scroll para a imagem de perfil (apenas desktop) */
.profile-container {
    transform: translateY(0);
    transition: transform 0.1s ease-out;
}

/* Aplicar transformação baseada no scroll (apenas desktop) */
.profile-container.scroll-effect {
    transform: translateY(var(--scroll-offset, 0px));
}

/* Balão de fala */
.speech-bubble {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--rainbow-blue);
    color: white;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--rainbow-blue);
}

/* Mostrar balão no hover */
.profile-container:hover .speech-bubble {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Em mobile, remover o efeito de scroll */
@media (max-width: 768px) {
    .profile-container {
        transform: none !important;
        transition: transform 0.3s ease; /* Apenas para hover */
    }
    
    .profile-container.scroll-effect {
        transform: none !important;
    }
    
    .speech-bubble {
        top: 15px;
        font-size: 0.8rem;
        padding: 10px 14px;
    }
}
