* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-container-simple {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

.contact-info {
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.contact-item p {
    margin: 0;
    flex: 1;
    min-width: 0;
}

.contact-item a {
    word-break: break-all;
}

.download-btn, .cta-btn, .modal-btn {
    white-space: normal;
    text-align: center;
}

.download-cv {
    width: 100%;
}

.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

p, h1, h2, h3, h4, h5, h6 {
    max-width: 100%;
    overflow-wrap: break-word;
}

.project-card, .certificate-card {
    width: 100%;
}

.project-info h3 {
    word-wrap: break-word;
}

.project-tech {
    flex-wrap: wrap;
}

video, iframe {
    max-width: 100%;
}

.modal-gallery img {
    max-width: 100%;
    height: auto;
}

input, textarea, button {
    max-width: 100%;
}

:root {
    --primary-color: #4169E1;
    --primary-color-rgb: 65, 105, 225;
    --secondary-color: #2E4057;
    --accent-color: #5C7AEA;
    --text-color: #333;
    --bg-color: #f5f5f5;
    --card-bg: #fff;
    --header-bg: #fff;
    --border-color: #ddd;
    --shadow-color: rgba(0,0,0,0.1);
    --box-shadow: 0 5px 15px var(--shadow-color);
    --transition: all 0.3s ease;
}

.dark-theme {
    --primary-color: #5C7AEA;
    --secondary-color: #A5B4FC;
    --accent-color: #60A5FA;
    --text-color: #e1e1e1;
    --bg-color: #121212;
    --card-bg: #1E1E1E;
    --header-bg: #1A1A1A;
    --border-color: #333;
    --shadow-color: rgba(0,0,0,0.3);
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100%;
    position: relative;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

section {
    padding: 5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 70px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.theme-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-left: 1.5rem;
}

.theme-switch i {
    font-size: 1.2rem;
    color: var(--text-color);
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    padding: 0;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: white;
    overflow: hidden;
    padding-top: 70px; 
    box-sizing: border-box;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    text-align: center;
    width: 100%;
    padding: 0 1rem;
    gap: 0.8rem;
    max-height: calc(100% - 40px);
}

.profile-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    margin-bottom: 0;
}

.typewriter {
    display: inline-block;
    position: relative;
    text-align: center;
    margin: 0 auto;
    width: auto;
}

.hero-content h1 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0;
    text-align: center;
    width: 100%;
}

.hero-content h2 {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 0;
    text-align: center;
    width: 100%;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 0;
    line-height: 1.4;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin: 0;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.hero .social-links a {
    color: white;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.cta-btn {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 0.7rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    text-decoration: none;
    margin-top: 0.3rem;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.skills {
    margin-top: 2rem;
}

.skill-category {
    margin-bottom: 2rem;
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tags span {
    background-color: var(--card-bg);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    border: 1px solid var(--primary-color);
    transition: var(--transition);
}

.skill-tags span:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 20px;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-content {
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 8px;
    position: relative;
    box-shadow: var(--box-shadow);
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.timeline-content h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.timeline-date {
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.timeline-content ul {
    margin-top: 10px;
    padding-left: 20px;
}

.timeline-content ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.timeline-content ul li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: none;
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.filter-btn:active {
    transform: scale(0.97);
}

/* Adiciona efeito de onda ao clicar */
.filter-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.filter-btn:active::after {
    opacity: 1;
    transform: scale(15, 15) translate(-50%);
    transition: all 0.6s, opacity 0.3s;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    -webkit-tap-highlight-color: transparent; /* Remove highlight em toque no iOS */
}

.project-card:hover, 
.project-card:active {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

/* Efeito específico para touch */
.project-card:active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(var(--primary-color-rgb, 65, 105, 225), 0.1);
    z-index: 1;
}

.project-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s, opacity 0.3s;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .img-overlay {
    opacity: 1;
}

.img-btns {
    display: flex;
    gap: 1rem;
}

.img-btn {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.img-btn:hover {
    background-color: white;
}

.video-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.video-overlay i {
    font-size: 4rem;
    color: white;
    opacity: 0.8;
    transition: var(--transition);
}

.video-overlay i:hover {
    opacity: 1;
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.project-info p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tech span {
    background-color: var(--bg-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 4px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.project-link:hover {
    color: var(--accent-color);
    background-color: rgba(var(--primary-color-rgb), 0.05);
}

.project-link:active {
    transform: scale(0.95);
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.certificate-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-color);
}

.certificate-card:hover {
    transform: translateY(-5px);
    background-color: var(--primary-color);
    color: white;
}

.certificate-icon {
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: var(--transition);
}

.certificate-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.certificate-info p {
    font-size: 0.9rem;
    color: var(--text-color);
    transition: var(--transition);
}

.certificate-card:hover .certificate-icon,
.certificate-card:hover .certificate-info h3,
.certificate-card:hover .certificate-info p {
    color: white;
}

.contact-container-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
}

.contact-item a {
    color: var(--primary-color);
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.download-cv {
    margin-top: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.download-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.download-btn i {
    font-size: 1.2rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Melhor scrolling no iOS */
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 80%;
    max-width: 1000px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 90vh; /* Limita a altura para garantir que caiba na tela */
    overflow: auto; /* Permite rolagem quando o conteúdo é maior que o container */
    scrollbar-width: thin; /* Para Firefox */
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.7);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
    max-height: calc(80vh - 5rem); /* Altura máxima considerando o cabeçalho do modal */
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-height: calc(80vh - 5rem); /* Mesma altura do modal-body */
    overflow-y: auto;
    scrollbar-width: thin; /* Para Firefox */
}

.modal-info {
    overflow-y: auto; /* Permite rolagem quando o conteúdo é maior */
    max-height: calc(80vh - 5rem); /* Mesma altura do modal-body */
    scrollbar-width: thin; /* Para Firefox */
    padding-right: 10px; /* Espaço para a barra de rolagem */
}

/* Estilizando scrollbar para webkit browsers */
.modal-gallery::-webkit-scrollbar,
.modal-content::-webkit-scrollbar,
.modal-info::-webkit-scrollbar {
    width: 6px;
}

.modal-gallery::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track,
.modal-info::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.modal-gallery::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb,
.modal-info::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.modal-gallery img {
    width: 100%;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.modal-gallery img:hover {
    transform: scale(1.02);
}

/* Lightbox para imagens em tela cheia */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.fullscreen-overlay.active {
    opacity: 1;
    visibility: visible;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    touch-action: pan-y;
    transition: transform 0.2s ease;
}

/* Efeitos visuais para swipe em dispositivos móveis */
.fullscreen-image.swipe-left {
    transform: translateX(-30px) scale(0.95);
    opacity: 0.9;
}

.fullscreen-image.swipe-right {
    transform: translateX(30px) scale(0.95);
    opacity: 0.9;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
}

.fullscreen-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    box-sizing: border-box;
    z-index: 2001;
}

.fullscreen-prev,
.fullscreen-next {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.fullscreen-prev:hover,
.fullscreen-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.fullscreen-counter {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 1rem;
    z-index: 2001;
}

/* Dica de swipe para dispositivos móveis */
.swipe-tip {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 20px;
    margin: 0 auto;
    width: 80%;
    max-width: 300px;
    font-size: 1rem;
    z-index: 2002;
    animation: fadeIn 0.5s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.swipe-tip i {
    font-size: 1.2rem;
}

.swipe-tip.fade-out {
    animation: fadeOut 0.5s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(20px); }
}

.modal-info {
    overflow-y: auto; /* Permite rolagem quando o conteúdo é maior */
    max-height: calc(80vh - 5rem); /* Mesma altura do modal-body */
    scrollbar-width: thin; /* Para Firefox */
    padding-right: 10px; /* Espaço para a barra de rolagem */
}

.modal-info h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 0.8rem;
}

.modal-info p, .modal-info ul {
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.modal-info ul {
    padding-left: 1.5rem;
}

.modal-info li {
    margin-bottom: 0.5rem;
}

.modal-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    margin-top: 1rem;
    margin-right: 1rem;
    transition: var(--transition);
}

.modal-btn:hover {
    background-color: var(--accent-color);
}

.modal-video {
    width: 100%;
    margin-bottom: 1rem;
}

/* Fullscreen Modal para imagens */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.fullscreen-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.close-fullscreen {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.navigation {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.prev-img, .next-img {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.prev-img:hover, .next-img:hover {
    background-color: var(--accent-color);
}

/* Footer */
footer {
    background-color: var(--header-bg);
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 -2px 10px var(--shadow-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

footer .social-links a {
    color: var(--text-color);
    font-size: 1.3rem;
    margin: 0 0.5rem;
}

footer .social-links a:hover {
    color: var(--primary-color);
}

.cv-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.cv-message-content {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cv-message-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cv-message.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.typewriter {
    white-space: nowrap;
    overflow: hidden;
    margin: 0 auto;
    letter-spacing: 0.15em;
    height: 1.5em;
    min-height: 1.5em;
    display: inline-block;
    width: 100%;
    text-align: center;
    min-width: 200px;
    position: relative;
    color: inherit;
}

.typewriter.typing {
    color: inherit;
}

img.loaded {
    animation: fadeIn 0.5s;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

#header {
    transition: background-color 0.3s, box-shadow 0.3s, padding 0.3s;
}

#header.scrolled {
    padding: 0.5rem 1rem;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.full-size-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation; /* Melhora comportamento touch */
}

.full-size-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.full-size-content img {
    max-width: 100%;
    max-height: 90vh;
    border: 5px solid #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    user-select: none; /* Evita seleção de texto */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    object-fit: contain;
}

.close-full-size {
    position: absolute;
    top: -40px;
    right: -10px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.nav-arrow {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

.nav-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.nav-arrow.prev {
    left: 10px;
}

.nav-arrow.next {
    right: 10px;
}

.video-modal .modal-content {
    max-width: 900px;
}

.video-container {
    position: relative;
    padding-top: 56.25%;
    height: 0;
    overflow: hidden;
    margin-top: 1.5rem;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.project-img img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.timeline-item {
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(5px);
}

body.content-loaded .hero-content {
    animation: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background-color: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-color);
}
body {
    min-height: 100vh;
}

.hero {
    padding-top: calc(2.5rem + 40px);
    padding-bottom: 2rem;
    height: 100vh;
    min-height: auto;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: white;
}

@keyframes fadeIn {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.hero-content {
    margin: 0 auto;
    max-width: 1200px;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.15rem;
    position: relative;
    top: -20px;
    text-align: center;
}

.hero .profile-img {
    max-width: 220px;
    height: auto;
    margin-bottom: 0.7rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.hero .profile-img:hover {
    transform: scale(1.02);
}

.hero h1 {
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero h2 {
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.hero p {
    margin-top: 0.3rem;
    margin-bottom: 0.8rem;
    max-width: 90%;
}

.hero .social-links {
    margin-bottom: 1.2rem;
}

@media (max-width: 768px) {
    .hero {
        padding-top: calc(2rem + 40px) !important;
    }
    
    .hero-content {
        transform: scale(0.9);
        top: -15px;
    }
    
    .hero .profile-img {
        max-width: 180px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
}

@media (max-height: 700px) {
    .hero-content {
        transform: scale(0.85);
        top: -10px;
    }
    
    .hero .profile-img {
        max-width: 150px;
    }
}
