/* ===== VARIÁVEIS DE CORES (EDITE AQUI PARA MUDAR AS CORES) ===== */
:root {
    --primary-color: #6366f1;      /* Cor de destaque - azul/roxo suave */
    --primary-dark: #4f46e5;       /* Tom mais escuro da cor principal */
    --text-dark: #1a1a1a;          /* Texto principal - quase preto */
    --text-light: #666666;         /* Texto secundário - cinza */
    --bg-white: #ffffff;           /* Fundo branco */
    --bg-light: #f8f9fa;           /* Fundo cinza claro */
    --border-color: #e5e7eb;       /* Bordas sutis */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* ===== RESET E CONFIGURAÇÕES GERAIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVEGAÇÃO ===== */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-dark);
    text-decoration: none;
    cursor: pointer;
}

.nav-brand:hover {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: 0.3s;
}

/* ===== SEÇÃO HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Círculos azuis animados */
.hero-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    opacity: 0.2;
    animation: floatAnimation 6s ease-in-out infinite;
}

.hero-circle:nth-child(2n) {
    animation-direction: reverse;
    background: linear-gradient(45deg, #60a5fa, #2563eb);
}

.hero-circle:nth-child(3n) {
    animation-duration: 8s;
    opacity: 0.08;
}

.hero-circle:nth-child(4n) {
    animation-duration: 10s;
    background: linear-gradient(45deg, #93c5fd, #3b82f6);
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
    }
    50% {
        transform: translateY(-10px) translateX(-15px) rotate(180deg);
    }
    75% {
        transform: translateY(-30px) translateX(5px) rotate(270deg);
    }
}

.github-icon {
    width: 45px;
    height: 45px;
}

.phone-icon {
    width: 55px;
    height: 55px;
}
.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Profile Photo Styling */
.hero-image {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--bg-white);
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.4);
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ===== TÍTULOS DE SEÇÃO ===== */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* ===== SEÇÃO SOBRE MIM ===== */
.about {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ===== SEÇÃO HABILIDADES ===== */
.skills {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-item {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.skill-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.skill-percentage {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease-in-out;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== SEÇÃO EXPERIÊNCIA PROFISSIONAL ===== */
.experience {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--bg-white);
    box-shadow: 0 0 0 3px var(--primary-color);
    z-index: 10;
}

.timeline-content {
    background: linear-gradient(145deg, var(--bg-white), #f8f9fa);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: calc(50% - 40px);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.15);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 0;
    height: 0;
    border: 15px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -30px;
    border-left-color: var(--bg-white);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -30px;
    border-right-color: var(--bg-white);
}

.timeline-date {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.timeline-title {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.timeline-company {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.timeline-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: linear-gradient(45deg, var(--bg-light), #e5e7eb);
    color: var(--text-dark);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ===== SEÇÃO PROJETOS - CARROSSEL 3D ===== */
.projects {
    padding: 100px 0;
    background-color: var(--bg-white);
    overflow: hidden;
    position: relative;
}

.carousel-3d {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 440px;
    perspective: 1200px;
    overflow: visible; /* Allow cards to be visible outside container */
    touch-action: pan-y; /* Enable better touch handling */
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.project-card-3d {
    position: absolute;
    width: 350px;
    height: 400px;
    background: linear-gradient(145deg, var(--bg-white), #f8f9fa);
    border-radius: 20px;
    padding: 1.8rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* Posicionamento dos cards */
.project-card-3d:nth-child(1) {
    left: 50%;
    transform: translateX(-50%) translateZ(0) rotateY(0deg);
}

.project-card-3d:nth-child(2) {
    left: 50%;
    transform: translateX(-50%) translateX(400px) translateZ(-200px) rotateY(-45deg) scale(0.8);
    opacity: 0.7;
}

.project-card-3d:nth-child(3) {
    left: 50%;
    transform: translateX(-50%) translateX(-400px) translateZ(-200px) rotateY(45deg) scale(0.8);
    opacity: 0.7;
}

.project-card-3d:nth-child(n+4) {
    left: 50%;
    transform: translateX(-50%) translateZ(-400px) scale(0.6);
    opacity: 0;
    pointer-events: none;
}

/* Card ativo (centro) */
.project-card-3d.active {
    left: 50%;
    transform: translateX(-50%) translateZ(0) rotateY(0deg) scale(1);
    opacity: 1;
    z-index: 10;
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.2);
}

/* Cards laterais */
.project-card-3d.left {
    left: 50%;
    transform: translateX(-50%) translateX(-400px) translateZ(-200px) rotateY(45deg) scale(0.8);
    opacity: 0.7;
    z-index: 5;
}

.project-card-3d.right {
    left: 50%;
    transform: translateX(-50%) translateX(400px) translateZ(-200px) rotateY(-45deg) scale(0.8);
    opacity: 0.7;
    z-index: 5;
}

/* Cards ocultos */
.project-card-3d.hidden {
    left: 50%;
    transform: translateX(-50%) translateZ(-400px) scale(0.6);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.project-card-3d:hover {
    transform: translateX(-50%) translateZ(20px) rotateY(0deg) scale(1.02);
}

.project-card-3d.active:hover {
    transform: translateX(-50%) translateZ(20px) rotateY(0deg) scale(1.02);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.3);
}

.project-header h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1.2rem;
    line-height: 1.5;
    font-size: 0.9rem;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
    max-height: 60px;
    overflow: hidden;
}

.tag {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    white-space: nowrap;
}

.project-links {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: auto;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    min-width: fit-content;
    text-align: center;
    flex: 1;
    max-width: 120px;
}

.project-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Botões de navegação */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.carousel-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.carousel-btn-prev {
    left: -60px;
}

.carousel-btn-next {
    right: -60px;
}

/* Indicadores */
.carousel-indicators {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 20;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.indicator:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* ===== SEÇÃO CONTATO ===== */
.contact {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.contact-description {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-card p {
    color: var(--text-light);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    text-align: center;
    padding: 2rem 0;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .skill-item {
        padding: 1rem;
    }
    
    .skill-name {
        font-size: 0.9rem;
    }
    
    .skill-percentage {
        font-size: 0.8rem;
    }

    /* Responsive experience timeline */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: row !important;
        margin-bottom: 2rem;
    }

    .timeline-dot {
        left: 20px;
        transform: translateX(-50%);
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
    }

    .timeline-content::before {
        left: -30px !important;
        right: auto !important;
        border-right-color: var(--bg-white) !important;
        border-left-color: transparent !important;
    }

    .timeline-title {
        font-size: 1.2rem;
    }

    .timeline-company {
        font-size: 1rem;
    }

    .timeline-description {
        font-size: 0.9rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    /* Responsive profile photo */
    .profile-photo {
        width: 150px;
        height: 150px;
        border-width: 3px;
    }

    /* Responsive carousel 3D */
    .carousel-3d {
        height: 400px;
        padding: 0 60px; /* Add padding for buttons */
    }

    .carousel-container {
        height: 320px;
        perspective: 800px;
        overflow: visible; /* Ensure cards are visible */
    }

    .project-card-3d {
        width: 300px;
        height: 360px;
        padding: 1.4rem;
    }

    .project-card-3d:nth-child(2) {
        transform: translateX(-50%) translateX(250px) translateZ(-100px) rotateY(-25deg) scale(0.8);
    }

    .project-card-3d:nth-child(3) {
        transform: translateX(-50%) translateX(-250px) translateZ(-100px) rotateY(25deg) scale(0.8);
    }

    .project-card-3d.left {
        transform: translateX(-50%) translateX(-250px) translateZ(-100px) rotateY(25deg) scale(0.8);
    }

    .project-card-3d.right {
        transform: translateX(-50%) translateX(250px) translateZ(-100px) rotateY(-25deg) scale(0.8);
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    }

    .carousel-btn-prev {
        left: 10px;
    }

    .carousel-btn-next {
        right: 10px;
    }

    .project-header h3 {
        font-size: 1.3rem;
    }

    .project-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .project-tags {
        margin-bottom: 1rem;
    }

    .tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .project-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* ===== RESPONSIVIDADE PARA DISPOSITIVOS MUITO PEQUENOS ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* Hero adjustments */
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Projects carousel for very small screens */
    .projects {
        padding: 80px 0;
    }

    .carousel-3d {
        height: 380px;
        padding: 0 50px;
    }

    .carousel-container {
        height: 300px;
        perspective: 600px;
    }

    .project-card-3d {
        width: 260px;
        height: 320px;
        padding: 1.1rem;
        font-size: 0.9rem;
    }

    /* Simplify 3D transforms for better performance and visibility */
    .project-card-3d:nth-child(2) {
        transform: translateX(-50%) translateX(200px) translateZ(-80px) rotateY(-20deg) scale(0.75);
    }

    .project-card-3d:nth-child(3) {
        transform: translateX(-50%) translateX(-200px) translateZ(-80px) rotateY(20deg) scale(0.75);
    }

    .project-card-3d.left {
        transform: translateX(-50%) translateX(-200px) translateZ(-80px) rotateY(20deg) scale(0.75);
    }

    .project-card-3d.right {
        transform: translateX(-50%) translateX(200px) translateZ(-80px) rotateY(-20deg) scale(0.75);
    }

    .project-card-3d.active {
        transform: translateX(-50%) translateZ(0) rotateY(0deg) scale(1);
    }

    /* Carousel buttons */
    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn-prev {
        left: 5px;
    }

    .carousel-btn-next {
        right: 5px;
    }

    /* Project card content */
    .project-header h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .project-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    .project-tags {
        margin-bottom: 1rem;
        gap: 0.4rem;
    }

    .tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .project-links {
        flex-direction: row;
        gap: 0.6rem;
        justify-content: space-between;
    }

    .project-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        text-align: center;
        flex: 1;
        max-width: none;
        min-width: auto;
    }

    /* Skills grid adjustments */
    .skills-grid {
        gap: 0.8rem;
    }

    .skill-item {
        padding: 0.8rem;
    }

    /* Profile photo */
    .profile-photo {
        width: 120px;
        height: 120px;
    }

    /* Section titles */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

/* ===== RESPONSIVIDADE PARA DISPOSITIVOS EXTRA PEQUENOS ===== */
@media (max-width: 320px) {
    .carousel-3d {
        height: 360px;
        padding: 0 40px;
    }

    .project-card-3d {
        width: 240px;
        height: 300px;
        padding: 1rem;
    }

    .project-card-3d:nth-child(2),
    .project-card-3d.right {
        transform: translateX(-50%) translateX(150px) translateZ(-60px) rotateY(-15deg) scale(0.7);
    }

    .project-card-3d:nth-child(3),
    .project-card-3d.left {
        transform: translateX(-50%) translateX(-150px) translateZ(-60px) rotateY(15deg) scale(0.7);
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
    }

    .project-header h3 {
        font-size: 1.1rem;
    }

    .project-description {
        font-size: 0.8rem;
    }

    .tag {
        font-size: 0.65rem;
    }

    .project-link {
        font-size: 0.75rem;
        padding: 0.6rem 0.8rem;
    }
}