@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--accent);
    color: #fff;
}

:root {
    --bg-main:      #0f0c13;
    --bg-card:      #1a1625;
    --bg-nav:       rgba(15, 12, 19, 0.95);
    --bg-section:   #0b0713;
    --text-main:    #ffffff;
    --text-secondary: #bbbbbb;
    --text-muted:   #888888;
    --accent:       #a855f7;
    --accent-dark:  #6b21a8;
    --accent-light: #c084fc;
}

body.light-mode {
    --bg-main:      #f4f4f9;
    --bg-card:      #ffffff;
    --bg-nav:       rgba(244, 244, 249, 0.97);
    --bg-section:   #ffffff;
    --text-main:    #1a1a2e;
    --text-secondary: #444444;
    --text-muted:   #666666;
    --accent:       #7c3aed;
    --accent-dark:  #5b21a5;
    --accent-light: #a78bfa;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    padding-top: 80px;
    transition: background-color 0.4s ease, color 0.4s ease;
    min-height: 100vh;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-nav);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.18);
    transition: background-color 0.4s ease;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

.menu-hamburger {
    display: none;
    font-size: 1.9rem;
    color: var(--accent);
    cursor: pointer;
}

.menu {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
}

.menu a {
    color: var(--text-main);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    white-space: nowrap;
    position: relative;
    font-weight: 500;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.menu a:hover {
    color: var(--accent);
    background: rgba(168, 85, 247, 0.08);
}

.menu a:hover::after {
    width: 40%;
}

#theme-toggle {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    cursor: pointer;
    padding: 8px 13px;
    border-radius: 50%;
    font-size: 1.15rem;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    background: var(--accent);
    color: white;
}

section {
    padding: 100px 5% 80px;
    min-height: 80vh;
}

h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 50px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-weight: 700;
    position: relative;
}

h2 i {
    background: var(--accent);
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.4rem;
    margin-top: 8px;
    padding: 8px;
    box-sizing: border-box;
}

#Home {
    background-color: var(--bg-main);
    color: var(--text-main);
    position: relative;
    overflow: hidden;
}

#Home::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.08;
    pointer-events: none;
}

.heroi {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.container h3 {
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.container h1 {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -1px;
}

.container h1 span {
    color: var(--accent);
    position: relative;
}

.container h2 {
    font-size: 1.8rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 8px;
}

.container h2 span {
    color: var(--accent-light);
    font-weight: 600;
}

.container p {
    margin: 24px 0;
    color: var(--text-secondary);
    max-width: 540px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    padding: 14px 34px;
    border: 2px solid var(--accent);
    border-radius: 50px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--accent);
    transition: width 0.35s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    color: white;
    border-color: var(--accent);
}

.btn-tema i, .btn-tema svg {
    width: 24px;
    height: 24px;
    display: block;
}

.btn-tema {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.medias {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.medias a {
    font-size: 28px;
    color: var(--text-main);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    border: 2px solid rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.05);
}

.medias a:hover {
    color: white;
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3);
}

.image {
    position: relative;
}

.image .circle {
    width: clamp(220px, 32vw, 340px);
    height: clamp(220px, 32vw, 340px);
    border-radius: 50%;
    border: 5px solid var(--accent);
    overflow: hidden;
    box-shadow: 0 0 35px rgba(168, 85, 247, 0.25);
    position: relative;
}

.image .circle::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px dashed var(--accent-light);
    opacity: 0.4;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.image .circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image .circle:hover img {
    transform: scale(1.08);
}

#skills {
    position: relative;
}

#skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.skill-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px 60px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.item {
    background: var(--bg-card);
    padding: 20px 24px;
    border-radius: 16px;
    border: 1px solid rgba(168, 85, 247, 0.1);
    transition: all 0.3s ease;
}

.item:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 12px 30px rgba(168, 85, 247, 0.15);
}

.info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 500;
    align-items: center;
}

.nome {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.nome i {
    color: var(--accent);
    font-size: 1.1rem;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 8px;
    padding: 8px 10px;
}

.porcent {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
}

.barra {
    width: 100%;
    height: 8px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progresso {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-light), var(--accent));
    border-radius: 10px;
    transition: width 0.8s ease;
    position: relative;
}

.progresso::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

#formacao {
    position: relative;
}

#formacao::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.06;
    pointer-events: none;
}

#formacao-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.curso {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid rgba(168, 85, 247, 0.12);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.curso::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.curso:hover {
    transform: translateY(-6px);
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 16px 40px rgba(168, 85, 247, 0.18);
}

.curso:hover::before {
    transform: scaleX(1);
}

.periodo {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: inline-block;
    background: rgba(168, 85, 247, 0.12);
    padding: 4px 12px;
    border-radius: 20px;
    flex-shrink: 0;
}

.instituicao {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 8px;
    font-weight: 600;
}

.titulacao {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.5;
}

#projetos {
    position: relative;
}

#projetos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(168, 85, 247, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.06) 0%, transparent 40%);
    pointer-events: none;
    animation: glowDrift 12s ease-in-out infinite alternate;
}

@keyframes glowDrift {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

/* Glow spotlight behind active card */
#projeto-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translate(-50%, -60%);
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: pulseGlow 3s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% {
        transform: translate(-50%, -60%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -60%) scale(1.15);
        opacity: 1;
    }
}

/* Filtro de categorias */
.filtro-categoria {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 30px auto 40px;
    max-width: 600px;
}

.filtro-btn {
    background: rgba(168, 85, 247, 0.08);
    border: 1.5px solid rgba(168, 85, 247, 0.25);
    color: var(--text-secondary);
    padding: 7px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.filtro-btn:hover {
    background: rgba(168, 85, 247, 0.18);
    color: var(--accent-light);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.filtro-btn.ativo {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
}

#projeto-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
    z-index: 1;
    min-height: clamp(460px, 60vw, 580px);
    perspective: 1200px;
}

#projeto-wrapper:empty {
    min-height: 200px;
}

/* Stacked Cards - 3D Enhanced */
.projeto-flip {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(60px) scale(0.86) rotateX(10deg);
    filter: blur(6px);
    backface-visibility: hidden;
    will-change: transform, opacity, filter;
    transform-origin: center bottom;
}

.projeto-flip.stack-visible {
    opacity: 1;
}

.projeto-flip.stack-0 {
    transform: translateY(0) scale(1) rotateX(0deg);
    z-index: 10;
    opacity: 1;
    pointer-events: auto;
    filter: blur(0);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.25);
}

.projeto-flip.stack-1 {
    transform: translateY(18px) scale(0.94) rotateX(5deg);
    z-index: 9;
    opacity: 0.55;
    pointer-events: none;
    filter: blur(2px);
}

.projeto-flip.stack-2 {
    transform: translateY(36px) scale(0.88) rotateX(8deg);
    z-index: 8;
    opacity: 0.2;
    pointer-events: none;
    filter: blur(4px);
}

.projeto-flip.stack-hidden {
    opacity: 0;
    transform: translateY(70px) scale(0.82) rotateX(12deg);
    filter: blur(8px);
    pointer-events: none;
}

/* Navigation */
.stack-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    position: relative;
    z-index: 2;
}

.stack-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--bg-card);
    color: var(--accent);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stack-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.stack-btn:active {
    transform: scale(0.95);
}

.stack-btn:disabled {
    cursor: default;
}

.stack-btn:disabled:hover {
    background: var(--bg-card);
    color: var(--accent);
    transform: none;
    box-shadow: none;
}

.stack-counter {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
    transition: transform 0.2s ease;
}

/* Seta lateral */
.side-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--bg-card);
    color: var(--accent);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.side-arrow:hover {
    opacity: 1;
    background: var(--accent);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.side-arrow:disabled {
    opacity: 0;
    pointer-events: none;
}

.side-arrow-prev {
    left: 10px;
}

.side-arrow-next {
    right: 10px;
}

/* Click na area vazia avança */
.stack-container {
    cursor: pointer;
}

.projeto {
    background: rgba(26, 22, 37, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 85, 247, 0.18);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.projeto-frente {
    display: flex;
    flex-direction: row;
    gap: 50px;
    padding: 36px;
    border-radius: 24px;
    background: var(--bg-card);
    border: 1px solid rgba(168, 85, 247, 0.12);
    height: clamp(380px, 50vw, 500px);
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stack-0 .projeto-frente {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 
        0 20px 60px rgba(168, 85, 247, 0.2),
        inset 0 1px 0 rgba(168, 85, 247, 0.1);
}

.expandido .projeto-frente {
    flex-direction: column;
    height: auto;
    min-height: clamp(380px, 50vw, 500px);
    overflow: visible;
}

.expandido .projeto-info > p:not(.periodo) {
    -webkit-line-clamp: unset;
    overflow: visible;
    flex: none;
}

.projeto-frente::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.projeto-frente:hover::before {
    transform: scaleX(1);
}

.projeto-frente::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.projeto-frente:hover::after {
    opacity: 1;
}

.projeto-flip:hover .projeto-frente {
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 16px 40px rgba(168, 85, 247, 0.18);
}

.foto {
    width: 100%;
    max-width: 420px;
    height: clamp(160px, 25vw, 300px);
    object-fit: contain;
    object-position: center;
    background: rgba(0,0,0,0.12);
    transition: all 0.5s ease;
    border: 2px solid rgba(168, 85, 247, 0.15);
    border-radius: 16px;
    display: block;
    margin: 0 auto;
}


.foto-HamburgueriaZ {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    padding: 15px 0;
}

.foto-PyFinancas {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 15px 0;
}

.expandido .expand-top .foto-HamburgueriaZ .foto-expandida {
    width: calc((100% - 15px) / 2);
    max-width: calc((100% - 15px) / 2);
    max-height: 400px;
    height: auto;
    object-fit: contain;
    margin: 0;
}

.expandido .expand-top .foto-PyFinancas .foto-expandida {
    width: calc((100% - 15px) / 2);
    max-width: calc((100% - 15px) / 2);
    max-height: 400px;
    height: auto;
    object-fit: contain;
    margin: 0;
}

.projeto-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    z-index: 1;
    text-align: center;
    min-height: 0;
    gap: 6px;
}

.projeto-info > p:not(.periodo) {
    overflow: hidden;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

details.projeto-verso {
    flex-shrink: 0;
    margin-top: auto;
    width: 100%;
}

.projeto-flip:hover .foto {
    transform: scale(1.04);
    filter: brightness(1.08);
}

.titulo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.4;
    text-align: center;
}

.projeto-info > p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.projeto-verso a {
    color: var(--accent);
    border-color: rgba(168, 85, 247, 0.3);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    transition: all 0.3s ease;
    margin-top: 10px;
    font-weight: 500;
    text-align: center;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.projeto-verso a:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.btn-github {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--bg-main);
    color: var(--accent);
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid var(--accent);
}

.btn-github:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.35);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.tech-tags span {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    padding-top: 8px;
    padding-bottom: 8px;
}

.expandido .foto {
    display: none;
}

.foto-expandida {
    display: none;
}

.expand-top {
    display: none;
}

.expandido .expand-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
    margin-bottom: 20px;
}

.expandido .expand-top .foto-expandida {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    max-height: none;
    object-fit: initial;
    background: transparent;
    border-radius: 16px;
    border: 2px solid rgba(168, 85, 247, 0.15);
}

.expandido .expand-top video {
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
}

details.projeto-verso summary {
    color: var(--accent);
    cursor: pointer;
    font-weight: 600;
    padding: 12px 0;
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: color 0.3s ease;
    width: 100%;
}

details.projeto-verso summary:hover {
    color: var(--accent-light);
}

details.projeto-verso summary::-webkit-details-marker {
    display: none;
}

details.projeto-verso p {
    margin: 16px 0;
    line-height: 1.7;
    color: var(--text-secondary);
}

details.projeto-verso p strong {
    color: var(--text-main);
}

details.projeto-verso code {
    background: rgba(168, 85, 247, 0.15);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--accent-light);
}

.video-demo {
    display: block;
    width: 100%;
    max-width: 700px;
    height: auto;
    margin: 15px auto;
    border-radius: 10px;
}

footer {
    padding: 60px 5%;
    text-align: center;
    background: var(--bg-main);
    color: var(--text-secondary);
    position: relative;
    margin-top: 60px;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

footer p {
    font-size: 1.05rem;
    margin-bottom: 15px;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-light);
    transition: width 0.3s ease;
}

footer a:hover {
    color: var(--accent-light);
}

footer a:hover::after {
    width: 100%;
}

@media (max-width: 992px) {
    .heroi {
        flex-direction: column-reverse;
        text-align: center;
    }

    .container {
        width: 100%;
        text-align: center;
    }

    .container p {
        margin: 24px auto;
    }

    .medias {
        justify-content: center;
    }

    .btn {
        margin: 0 auto;
    }

    .foto {
        width: 100%;
        max-width: 100%;
    }

    .skill-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #projeto-wrapper {
        padding: 20px 0;
        min-height: clamp(440px, 95vw, 580px);
    }

    .side-arrow {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .side-arrow-prev {
        left: 4px;
    }

    .side-arrow-next {
        right: 4px;
    }

    .stack-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .stack-nav {
        gap: 14px;
    }

    .projeto-flip.stack-1 {
        transform: translateY(12px) scale(0.96) rotateX(3deg);
        filter: blur(1.5px);
    }

    .projeto-flip.stack-2 {
        transform: translateY(24px) scale(0.92) rotateX(5deg);
        filter: blur(3px);
    }

    .projeto-frente {
        flex-direction: column;
        align-items: center;
        text-align: center;
        height: clamp(400px, 85vw, 500px);
    }

    .foto {
        max-width: 100%;
        width: 100%;
        max-height: 130px;
    }

    .titulo {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }

    .projeto-info > p:not(.periodo) {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
    }

    .projeto-info {
        gap: 4px;
    }

    .periodo {
        margin-bottom: 4px;
        font-size: 0.8rem;
        padding: 2px 10px;
    }

    details.projeto-verso summary {
        padding: 8px 0;
        font-size: 0.9rem;
    }

    .menu-hamburger {
        display: block;
        order: 1;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        z-index: 1002;
    }

    .logo {
        order: 2;
    }

    #theme-toggle {
        order: 3;
        width: auto;
        margin-top: 0;
        margin-left: auto;
    }

    .menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: fixed;
        top: 0;
        left: 0;
        width: min(82vw, 300px);
        height: 100vh;
        background: var(--bg-nav);
        padding: 92px 24px 28px;
        border-right: 3px solid var(--accent);
        border-bottom: none;
        box-shadow: 18px 0 40px rgba(0, 0, 0, 0.28);
        text-align: left;
        gap: 16px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
    }

    .menu.active {
        transform: translateX(0);
    }

    .menu a {
        margin: 0;
        font-size: 1.25rem;
        padding: 12px 14px;
    }

    header nav {
        padding: 12px 5%;
        justify-content: flex-start;
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .foto-HamburgueriaZ,
    .foto-PyFinancas {
        flex-direction: column;
        align-items: center;
    }

    .expandido .expand-top .foto-HamburgueriaZ .foto-expandida,
    .expandido .expand-top .foto-PyFinancas .foto-expandida {
        max-width: 100%;
        max-height: none;
    }
}

@media (max-width: 480px) {
    header nav {
        padding: 12px 4%;
    }

    .logo {
        font-size: 1.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
