*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue: #4fbeec;
    --blue-dark: #2a9acc;
    --bg: #fbfbfb;
    --text: #112233;
    --white: #fafafa;
    --yellow: #ffd93d;
    --orange: #ff7f50;
    --pink: #ff6b9d;
    --green: #6bcb77;
    --purple: #9b5de5;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Nunito", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* ===== NAV ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(241, 241, 241, 0.92);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 5%;
    border-bottom: 2px solid var(--blue);
}

.nav-logo img {
    height: 48px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--blue);
}

.nav-cta {
    background: var(--blue);
    color: var(--white);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: "Baloo 2", cursive;
    font-size: 1rem;
    font-weight: 700;
    transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
    background: var(--blue-dark);
    transform: scale(1.02);
}

/* ===== HERO ===== */
.page-hero {
    min-height: 42vh;
    padding: 9rem 5% 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f7fd 0%, #f1f1f1 60%, #fdf3ff 100%);
    display: flex;
    align-items: center;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.45;
    animation: floatBob linear infinite;
    pointer-events: none;
}

@keyframes floatBob {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-22px) rotate(5deg);
    }

    50% {
        transform: translateY(-10px) rotate(-4deg);
    }

    75% {
        transform: translateY(-28px) rotate(3deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.s1 {
    width: 130px;
    height: 130px;
    background: var(--yellow);
    top: 8%;
    left: 3%;
    animation-duration: 7s;
    border-radius: 40% 60% 55% 45%/55% 45% 65% 35%;
}

.s2 {
    width: 90px;
    height: 90px;
    background: var(--pink);
    top: 15%;
    right: 8%;
    animation-duration: 5.5s;
    animation-delay: -2s;
    border-radius: 60% 40% 35% 65%/45% 55% 70% 30%;
}

.s3 {
    width: 70px;
    height: 70px;
    background: var(--green);
    bottom: 10%;
    left: 1%;
    animation-duration: 9s;
    animation-delay: -4s;
}

.s4 {
    width: 80px;
    height: 80px;
    background: var(--blue);
    top: 60%;
    right: 5%;
    animation-duration: 6s;
    animation-delay: -1s;
    border-radius: 50% 50% 30% 70%/60% 40% 60% 40%;
}

.s5 {
    width: 55px;
    height: 55px;
    background: var(--purple);
    top: 30%;
    left: 45%;
    animation-duration: 8s;
    animation-delay: -3s;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.section-tag {
    display: inline-block;
    background: rgba(79, 190, 236, 0.15);
    color: var(--blue);
    font-weight: 800;
    font-size: 0.82rem;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.hero-content h1 {
    font-family: "Baloo 2", cursive;
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 1rem;
}

.hero-content h1 span {
    color: var(--blue);
}

.hero-content p {
    font-size: 1.1rem;
    color: #334455;
    line-height: 1.7;
    max-width: 560px;
}

/* ===== PROJECTS SECTION ===== */
#projetos {
    background-color: var(--bg);
    padding: 5rem 5%;
}

.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* ===== PROJECT CARD ===== */
.project-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    border: 2px solid rgba(79, 190, 236, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(79, 190, 236, 0.18);
}

.project-card-body {
    padding: 2rem 2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* tag + badge row */
.project-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.project-tag {
    background: rgba(79, 190, 236, 0.12);
    color: var(--blue-dark);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    border: 1.5px solid rgba(79, 190, 236, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.project-tag.pink {
    background: rgba(255, 107, 157, 0.1);
    color: #c0365e;
    border-color: rgba(255, 107, 157, 0.3);
}

.project-tag.green {
    background: rgba(107, 203, 119, 0.1);
    color: #2e7d32;
    border-color: rgba(107, 203, 119, 0.3);
}

.project-tag.purple {
    background: rgba(155, 93, 229, 0.1);
    color: #6a1b9a;
    border-color: rgba(155, 93, 229, 0.3);
}

.project-status {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.22rem 0.7rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.status-active {
    background: rgba(107, 203, 119, 0.15);
    color: #2e7d32;
    border: 1.5px solid rgba(107, 203, 119, 0.4);
}

.status-development {
    background: rgba(255, 217, 61, 0.15);
    color: #8a6000;
    border: 1.5px solid rgba(255, 217, 61, 0.5);
}

.project-card h2 {
    font-family: "Baloo 2", cursive;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
    margin-bottom: 0.7rem;
}

.project-card h2 em {
    font-style: normal;
    color: var(--blue);
}

.project-card p {
    font-size: 0.92rem;
    color: #556677;
    line-height: 1.65;
    flex: 1;
}

/* stats row */
.project-stats {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px dashed #e8edf2;
    flex-wrap: wrap;
}

.pstat {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.pstat-val {
    font-family: "Baloo 2", cursive;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
}

.pstat-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #8899aa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* card footer with download */
.project-card-footer {
    padding: 0 2rem 2rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #4fbeec, #2a9acc);
    color: white;
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    border: none;
    font-family: "Baloo 2", cursive;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(79, 190, 236, 0.35);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(79, 190, 236, 0.45);
}

.btn-download svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-saiba {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    color: var(--blue);
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    border: 2px solid var(--blue);
    font-family: "Baloo 2", cursive;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-saiba:hover {
    background: var(--blue);
    color: white;
    transform: translateY(-2px);
}

/* ===== BANNER CTA ===== */
.projetos-cta {
    margin-top: 4rem;
    background: linear-gradient(135deg, #0d7ab5 0%, #4fbeec 45%, #7c3aed 100%);
    border-radius: 28px;
    padding: 3rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.projetos-cta::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    top: -100px;
    right: -80px;
    pointer-events: none;
}

.projetos-cta::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    bottom: -60px;
    left: 10%;
    pointer-events: none;
}

.cta-text {
    position: relative;
    z-index: 1;
}

.cta-text h3 {
    font-family: "Baloo 2", cursive;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.98rem;
    max-width: 420px;
    line-height: 1.6;
}

.cta-btn {
    background: white;
    color: var(--blue-dark);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: none;
    font-family: "Baloo 2", cursive;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
}

/* ===== FOOTER / CONTATO ===== */
footer#contato {
    background: linear-gradient(135deg, #0d7ab5 0%, #4fbeec 45%, #7c3aed 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 5rem 5% 3rem;
}

.footer-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: floatBob linear infinite;
}

.fs1 { width: 300px; height: 300px; background: rgba(255,255,255,0.06); top: -80px;  left: -80px;  animation-duration: 12s; border-radius: 60% 40% 55% 45%/50% 60% 40% 50%; }
.fs2 { width: 200px; height: 200px; background: rgba(255,255,255,0.05); top: 10%;    right: -60px; animation-duration: 8s;  animation-delay: -3s; }
.fs3 { width: 150px; height: 150px; background: rgba(155,93,229,0.25);  bottom: 20%; left: 5%;     animation-duration: 10s; animation-delay: -5s; border-radius: 40% 60% 60% 40%; }
.fs4 { width: 100px; height: 100px; background: rgba(255,255,255,0.07); bottom: 5%;  right: 12%;   animation-duration: 7s;  animation-delay: -2s; }
.fs5 { width: 70px;  height: 70px;  background: rgba(255,215,61,0.2);   top: 60%;    left: 40%;    animation-duration: 9s;  animation-delay: -4s; }
.fs6 { width: 50px;  height: 50px;  background: rgba(255,107,157,0.2);  top: 30%;    right: 30%;   animation-duration: 6s;  animation-delay: -1s; }

.footer-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3rem; }

.footer-cta-area { display: flex; flex-direction: column; align-items: center; gap: 1rem; }

.footer-tag { background: rgba(255,255,255,0.2); color: white; border: 1px solid rgba(255,255,255,0.35); }

footer#contato h2 { font-family: "Baloo 2", cursive; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 0.5rem; }
footer#contato h2 em { font-style: italic; opacity: 0.95; }
footer#contato p { font-size: 1.05rem; opacity: 0.88; max-width: 500px; line-height: 1.6; }

.contact-cards { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; width: 100%; }

.contact-card {
    background: rgba(255,255,255,0.14);
    border-radius: 20px;
    padding: 1.4rem 1.8rem;
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255,255,255,0.3);
    text-align: center;
    min-width: 175px;
    transition: transform 0.2s, background 0.2s;
}
.contact-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.2); }
.contact-card h4 { font-family: "Baloo 2", cursive; font-weight: 800; font-size: 1rem; margin-bottom: 0.3rem; }
.contact-card a { color: rgba(255,255,255,0.88); font-size: 0.88rem; text-decoration: none; display: block; }
.contact-card a:hover { text-decoration: underline; color: white; }

.btn-white {
    background: white;
    color: var(--blue-dark);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    font-family: "Baloo 2", cursive;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-decoration: none;
    display: inline-block;
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 14px 35px rgba(0,0,0,0.22); }

.footer-logo-area img { width: 150px; height: auto; }

.footer-divider { width: 100%; height: 1px; background: rgba(255,255,255,0.2); border-radius: 1px; }

.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.footer-logo { height: 44px; border-radius: 10px; margin-bottom: 0.4rem; }
.footer-copy { color: rgba(255,255,255,0.7); font-size: 0.88rem; }
.footer-love { color: rgba(255,255,255,0.55); font-size: 0.82rem; }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
    .nav-links {
        display: none;
    }

    .projetos-cta {
        flex-direction: column;
        text-align: center;
    }

    .cta-text p {
        margin: 0 auto;
    }

    .projetos-grid {
        grid-template-columns: 1fr;
    }
}