/* ===== Variáveis de cores e fontes ===== */
:root {
    --pink: #ff5c8d;
    --yellow: #ffd93d;
    --gradient: linear-gradient(45deg, #ff5c8d, #ffd93d);
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Pacifico', cursive;
}

/* ===== Reset básico ===== */
body, html {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    scroll-behavior: smooth;
    background: #fff;
    color: #333;
}

/* ===== Navbar ===== */
.navbar {
    background: var(--pink) !important;
}

.navbar .nav-link {
    color: #fff !important;
    transition: 0.3s;
}

.navbar .nav-link:hover {
    color: var(--yellow) !important;
}

/* ===== Hero ===== */
.hero-section {
    height: 100vh;
    background: var(--gradient);
    background-size: 200% 200%;
    animation: gradientAnim 10s ease infinite;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradientAnim {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
}

.hero-img img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 5px solid #fff;
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.hero-img img:hover {
    transform: translateY(-10px) scale(1.05);
}

@keyframes float {
    0%, 100% {transform: translateY(0);}
    50% {transform: translateY(-20px);}
}

/* ===== Sobre Mim ===== */
.section-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 50px;
    text-align: center;
}

.about-card .card {
    transition: transform 0.4s, box-shadow 0.4s;
    cursor: pointer;
    border-radius: 15px;
    background: #fff;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.about-card .card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 25px 40px rgba(0,0,0,0.25);
}

.about-card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* ===== Participações ===== */
#participacoes .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.card-hover {
    transition: transform 0.4s, box-shadow 0.4s;
    border-radius: 15px;
}

.card-hover:hover {
    transform: translateY(-15px) rotateZ(1deg);
    box-shadow: 0 25px 40px rgba(0,0,0,0.25);
}

.btn-pink {
    background: var(--pink);
    color: #fff;
    transition: 0.3s;
    border-radius: 30px;
    padding: 5px 20px;
}

.btn-pink:hover {
    background: var(--yellow);
    color: #333;
}

/* ===== Projetos 3D ===== */
.project-card {
    perspective: 1200px;
    margin-bottom: 30px;
}

.project-inner {
    width: 100%;
    height: 220px;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.project-card:hover .project-inner {
    transform: rotateY(180deg);
}

.project-front, .project-back {
    position: absolute;
    width: 100%;
    height: 220px;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.project-front {
    background: var(--pink);
    color: #fff;
}

.project-back {
    background: var(--yellow);
    color: #333;
    transform: rotateY(180deg);
}

/* ===== Certificados slider ===== */
.certificados-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    scroll-behavior: smooth;
}

.certificados-slider::-webkit-scrollbar {
    height: 10px;
}

.certificados-slider::-webkit-scrollbar-thumb {
    background: var(--pink);
    border-radius: 10px;
}

.certificados-slider .slide img {
    height: 180px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.certificados-slider .slide img:hover {
    transform: scale(1.05) rotateZ(1deg);
}

/* ===== Contato ===== */
#contato .btn-warning {
    background: var(--yellow);
    color: #333;
    border: none;
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: bold;
    transition: 0.3s;
}

#contato .btn-warning:hover {
    background: var(--pink);
    color: #fff;
    transform: translateY(-5px);
}

/* ===== Footer ===== */
footer {
    background: var(--pink);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-weight: bold;
}
