/* =========================================================
   MSTECNO — STYLES.CSS
   Versão reorganizada e responsiva
   ========================================================= */


/* =========================================================
   1. VARIÁVEIS
   ========================================================= */

:root {
    --primary: #2563eb;
    --secondary: #22d3ee;

    --dark: #0f172a;
    --dark-2: #16233a;
    --dark-3: #1e293b;

    --white: #ffffff;
    --gray: #cbd5e1;
    --gray-2: #94a3b8;

    --border: rgba(148, 163, 184, 0.18);

    --gradient: linear-gradient(
        135deg,
        var(--secondary),
        var(--primary)
    );

    --radius: 18px;
    --transition: 0.3s ease;
}


/* =========================================================
   2. RESET / BASE
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 0;
    color: var(--white);
    background: var(--dark);
    font-family: "Inter", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    font: inherit;
}

section[id] {
    scroll-margin-top: 120px;
}

p {
    color: var(--gray);
}

h1,
h2,
h3,
h4 {
    font-family: "Poppins", sans-serif;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(2.65rem, 5.5vw, 4.8rem);
}

h2 {
      font-size: clamp(2.2rem, 4.3vw, 3.3rem);
}

h3 {
    font-size: 1.18rem;
}


/* =========================================================
   3. CONTAINER / TÍTULOS
   ========================================================= */

.container {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

.section-title {
    max-width: 760px;
    margin: 0 auto 52px;
    text-align: center;
}


.section-title p {
    margin-inline: auto;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 18px;
    padding: 7px 15px;

    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 999px;

    color: var(--secondary);
    background: rgba(34, 211, 238, 0.07);

    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


/* =========================================================
   4. FUNDO
   ========================================================= */

.background {
    position: fixed;
    inset: 0;
    z-index: -2;

    overflow: clip;

    background:
        radial-gradient(
            circle at top right,
            #2563eb2d,
            transparent 35%
        ),
        radial-gradient(
            circle at bottom left,
            #22d3ee20,
            transparent 30%
        ),
        var(--dark);
}

.grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        );

    background-size: 48px 48px;

    mask-image:
        radial-gradient(
            circle,
            #000 30%,
            transparent 88%
        );
}

.blur {
    position: absolute;

    border-radius: 50%;

    opacity: 0.28;

    filter: blur(110px);
}

.blur-1 {
    width: 420px;
    height: 420px;

    top: -120px;
    right: -120px;

    background: var(--secondary);
}

.blur-2 {
    width: 360px;
    height: 360px;

    bottom: -130px;
    left: -110px;

    background: var(--primary);
}


/* =========================================================
   5. BOTÕES
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 48px;
    padding: 13px 27px;

    border: 0;
    border-radius: 999px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition),
        background var(--transition);
}

.btn-primary {
    color: #fff;
    background: var(--gradient);

    box-shadow:
        0 12px 28px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);

    box-shadow:
        0 18px 36px rgba(34, 211, 238, 0.28);
}

.btn-outline {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.035);
}

.btn-outline:hover {
    color: var(--secondary);
    border-color: var(--secondary);
}


/* =========================================================
   6. CARDS — BASE
   ========================================================= */

.about-card,
.service-card,
.feature,
.stack-card,
.timeline-item,
.contact-card,
.project-featured,
.stat-card,
.faq details {
    border: 1px solid var(--border);
    border-radius: var(--radius);

    background:
        linear-gradient(
            145deg,
            rgba(22, 35, 58, 0.86),
            rgba(15, 23, 42, 0.72)
        );

    box-shadow:
        0 12px 34px rgba(0, 0, 0, 0.12);
}

.about-card,
.service-card,
.feature,
.stack-card,
.timeline-item,
.contact-card {
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.about-card:hover,
.service-card:hover,
.feature:hover,
.stack-card:hover,
.timeline-item:hover,
.contact-card:hover {
    transform: translateY(-5px);

    border-color: rgba(34, 211, 238, 0.5);

    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.24),
        0 0 22px rgba(34, 211, 238, 0.08);
}


/* =========================================================
   7. HEADER
   ========================================================= */

#header {
    position: fixed;
    z-index: 20;

    top: 0;
    left: 0;

    width: 100%;

    padding: 18px 0;

    transition:
        padding var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

#header.scroll {
    padding: 10px 0;

    background: rgba(15, 23, 42, 0.86);

    border-bottom: 1px solid var(--border);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.2);

    backdrop-filter: blur(16px);
}

#header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;
}

.logo {
    flex: 0 0 auto;
}

.logo img {
    width: auto;
    height: 82px;

    border-radius: 50px;

    filter:
        drop-shadow(
            0 0 12px rgba(34, 211, 238, 0.2)
        );

    transition: transform var(--transition);
}

.logo:hover img {
    transform: scale(1.04);
}

#menu {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.6vw, 38px);
}

#menu a {
    position: relative;

    color: var(--gray);

    font-weight: 600;

    transition: color var(--transition);
}

#menu a::after {
    position: absolute;

    right: 0;
    bottom: -8px;
    left: 0;

    height: 2px;

    content: "";

    background: var(--secondary);

    transform: scaleX(0);
    transform-origin: left;

    transition: transform var(--transition);
}

#menu a:hover {
    color: var(--white);
}

#menu a:hover::after {
    transform: scaleX(1);
}

#menu-mobile {
    display: none;

    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 12px;

    color: var(--secondary);
    background: rgba(6, 27, 45, 0.92);

    cursor: pointer;
}

#menu-mobile span {
    display: block;

    width: 22px;
    height: 2px;

    margin: 4px auto;

    border-radius: 3px;

    background: currentColor;

    transition:
        transform var(--transition),
        opacity var(--transition);
}


/* =========================================================
   8. HERO
   ========================================================= */

.hero {
    display: flex;
    align-items: center;

    min-height: 100vh;

    padding: 150px 0 90px;
}

.hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    align-items: center;

    gap: clamp(42px, 6vw, 80px);
}

.hero-content {
    min-width: 0;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    max-width: 100%;

    margin-bottom: 26px;
    padding: 9px 16px;

    border: 1px solid rgba(34, 211, 238, 0.15);
    border-radius: 999px;

    color: var(--secondary);
    background: rgba(34, 211, 238, 0.08);

    font-size: 0.83rem;
    letter-spacing: 0.06em;
}

.hero h1 {
    margin-bottom: 24px;
}

.hero h1 span {
    color: transparent;

    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    max-width: 580px;

    margin: 0 0 35px;

    font-size: 1.07rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-info {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;

    margin-top: 52px;
}

.hero-info div {
    min-width: 0;

    padding-left: 15px;

    border-left:
        2px solid rgba(34, 211, 238, 0.3);
}

.hero-info strong {
    display: block;

    font-family: "Poppins", sans-serif;

    font-size: 1.55rem;
}

.hero-info span {
    display: block;

    color: var(--gray);

    font-size: 0.82rem;
}

.hero-image {
    position: relative;

    display: grid;
    place-items: center;

    min-width: 0;
}

.hero-glow {
    position: absolute;

    width: min(420px, 90%);
    aspect-ratio: 1;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #22d3ee55,
            transparent 68%
        );

    filter: blur(46px);
}

.hero-image svg {
    position: relative;

    width: 100%;
    max-width: 650px;

    filter:
        drop-shadow(
            0 38px 50px rgba(0, 0, 0, 0.3)
        );

    animation: float 6s ease-in-out infinite;
}


/* =========================================================
   9. DESTAQUES
   ========================================================= */

.highlights {
    padding: 38px 0;

    border-block:
        1px solid rgba(255, 255, 255, 0.06);

    background: rgba(255, 255, 255, 0.02);
}

.highlights .container {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 10px;
}

.highlight {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;

    gap: 9px;

    padding: 12px;

    color: var(--gray);

    text-align: center;

    font-size: 0.9rem;
}

.highlight i {
    flex: 0 0 auto;

    color: var(--secondary);

    font-size: 1.2rem;
}


/* =========================================================
   10. SOBRE
   ========================================================= */

#sobre {
    padding: 105px 0;
}

.about-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}

.about-card {
    min-width: 0;

    padding: 28px 22px;

    text-align: center;
}

.about-card > i {
    display: grid;

    width: 46px;
    height: 46px;

    margin: 0 auto 18px;

    place-items: center;

    border-radius: 14px;

    color: var(--secondary);
    background: rgba(34, 211, 238, 0.1);

    font-size: 1.4rem;
}

.about-card h3 {
    margin-bottom: 9px;
}

.about-card p {
    font-size: 0.91rem;
}


/* =========================================================
   11. SERVIÇOS
   ========================================================= */

.services {
    padding: 105px 0;

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(22, 211, 238, 0.025),
            transparent
        );
}

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}

.service-card {
    min-width: 0;

    padding: 30px;
}

.service-card .icon,
.feature > i {
    display: grid;

    width: 50px;
    height: 50px;

    margin-bottom: 20px;

    place-items: center;

    border-radius: 15px;

    color: var(--secondary);
    background: rgba(34, 211, 238, 0.1);

    font-size: 1.5rem;
}

.service-card h3 {
    margin-bottom: 12px;
}

.service-card p {
    margin-bottom: 18px;
}

.service-card ul {
    display: grid;

    gap: 8px;

    color: var(--gray);

    font-size: 0.9rem;
}

.service-card li::before {
    margin-right: 8px;

    color: var(--secondary);

    content: "✓";
}


/* =========================================================
   12. FEATURES
   ========================================================= */

.features {
    padding: 105px 0;
    padding-top: 0;
}

.features-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}

.feature {
    min-width: 0;

    padding: 25px 20px;

    text-align: center;
}

.feature > i {
    margin-inline: auto;
}

.feature h3 {
    margin-bottom: 8px;
}

.feature p {
    font-size: 0.9rem;
}


/* =========================================================
   13. TECNOLOGIAS
   ========================================================= */

.technologies {
    padding: 105px 0;

    background: rgba(255, 255, 255, 0.018);
}

.stack-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
}

.stack-card {
    display: grid;

    min-width: 0;
    min-height: 130px;

    padding: 20px;

    place-items: center;

    gap: 12px;

    text-align: center;

    font-weight: 700;
}

.stack-card i {
    color: var(--secondary);

    font-size: 2rem;

    transition: transform var(--transition);
}

.stack-card:hover i {
    transform: scale(1.12);
}


/* =========================================================
   14. PROCESSO
   ========================================================= */

.process {
    padding: 105px 0;
}

.timeline {
    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 14px;
}

.timeline-item {
    min-width: 0;

    padding: 21px 16px;
}

.timeline-item .number {
    display: grid;

    width: 34px;
    height: 34px;

    margin-bottom: 17px;

    place-items: center;

    border-radius: 50%;

    color: var(--secondary);
    background: rgba(34, 211, 238, 0.12);

    font-size: 0.75rem;
    font-weight: 800;
}

.timeline-item h3 {
    margin-bottom: 8px;

    font-size: 1rem;
}

.timeline-item p {
    font-size: 0.8rem;
    line-height: 1.5;
}

.process-footer {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;

    max-width: 760px;

    margin: 34px auto 0;
}

.process-footer div {
    padding: 13px 15px;

    border-left:
        2px solid rgba(34, 211, 238, 0.35);
}

.process-footer strong,
.process-footer span {
    display: block;
}

.process-footer strong {
    font-size: 1.12rem;
}

.process-footer span {
    color: var(--gray);

    font-size: 0.83rem;
}


/* =========================================================
   15. PORTFÓLIO
   ========================================================= */

.portfolio {
    padding: 105px 0;
    padding-top: 0;
}

.portfolio-grid {
    display: grid;
}

.project-featured {
    width: min(100%, 1080px);

    margin-inline: auto;

    overflow: hidden;
}

.project-browser {
    display: flex;
    align-items: center;

    min-width: 0;

    gap: 12px;

    padding: 11px 16px;

    border-bottom: 1px solid var(--border);

    background: rgba(5, 14, 29, 0.72);
}

.browser-bar,
.browser-dots {
    display: flex;
    gap: 5px;
}

.browser-bar {
    flex: 0 0 auto;
}

.browser-dots span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--gray-2);
}

.browser-dots span:nth-child(1) {
    background: #fb7185;
}

.browser-dots span:nth-child(2) {
    background: #fbbf24;
}

.browser-dots span:nth-child(3) {
    background: #4ade80;
}

.browser-address {
    min-width: 0;

    overflow: hidden;

    padding: 5px 10px;

    border-radius: 7px;

    color: var(--gray-2);
    background: rgba(255, 255, 255, 0.05);

    font-size: 0.75rem;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.browser-status {
    margin-left: auto;

    color: #4ade80;

    font-size: 0.68rem;

    white-space: nowrap;
}

.project-image {
    position: relative;

    overflow: hidden;
}

.project-image img {
    width: 100%;

    transition: transform 0.6s ease;
}

.project-featured:hover .project-image img {
    transform: scale(1.025);
}

.project-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    color: #fff;

    background: rgba(15, 23, 42, 0.55);

    opacity: 0;

    transition: opacity var(--transition);
}

.project-featured:hover .project-overlay {
    opacity: 1;
}

.project-tag {
    position: absolute;

    top: 18px;
    right: 18px;

    padding: 6px 10px;

    border-radius: 999px;

    color: #fff;
    background: rgba(15, 23, 42, 0.82);

    font-size: 0.75rem;
}

.project-content {
    padding: 30px;
}

.project-category {
    color: var(--secondary);

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;

    text-transform: uppercase;
}

.project-content h3 {
    margin: 7px 0 11px;

    font-size: 1.65rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin: 20px 0;
}

.project-tech span {
    padding: 5px 10px;

    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 999px;

    color: var(--gray);
    background: rgba(34, 211, 238, 0.06);

    font-size: 0.76rem;
}

.project-link {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: var(--secondary);

    font-weight: 700;
}


/* =========================================================
   16. ESTATÍSTICAS
   ========================================================= */

.stats {
    padding: 20px 0 105px;
}

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
}

.stat-card {
    display: flex;
    align-items: center;

    min-width: 0;
    min-height: 110px;

    padding: 18px;
}

.stat-card > strong {
    flex: 0 0 auto;

    margin-right: 14px;

    color: var(--secondary);

    font-family: "Poppins", sans-serif;

    font-size: 1.65rem;
}

.stat-content {
    min-width: 0;
}

.stat-content h3 {
    margin-bottom: 3px;

    font-size: 1rem;
}

.stat-content span {
    display: block;

    color: var(--gray);

    font-size: 0.8rem;

    line-height: 1.45;
}


/* =========================================================
   17. FAQ
   ========================================================= */

.faq {
    padding: 105px 0;
    padding-top: 0;
}

.faq-container {
    display: grid;

    gap: 12px;

    max-width: 850px;

    margin-inline: auto;
}

.faq details {
    padding: 18px 20px;
}

.faq summary {
    cursor: pointer;

    font-family: "Poppins", sans-serif;

    font-weight: 700;
}

.faq details p {
    margin-top: 13px;
}


/* =========================================================
   18. CTA / CONTATO
   ========================================================= */

.cta {
    padding: 105px 0;

    background:
        linear-gradient(
            180deg,
            rgba(34, 211, 238, 0.025),
            transparent
        );
}

.cta-content {
    max-width: 760px;

    margin: 0 auto 42px;

    text-align: center;
}

.cta-content p {
    margin-top: 16px;
}

.contact-grid {
    display: grid;
}

.contact-info {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: flex-start;

    min-width: 0;

    gap: 13px;

    padding: 22px 18px;
}

.contact-card > i {
    flex: 0 0 auto;

    color: var(--secondary);

    font-size: 1.45rem;
}

.contact-card h4 {
    margin-bottom: 4px;

    font-size: 0.98rem;
}

.contact-card a,
.contact-card span {
    color: var(--gray);

    font-size: 0.85rem;

    overflow-wrap: anywhere;
}


/* =========================================================
   19. FOOTER
   ========================================================= */

footer {
    padding: 65px 0 20px;

    border-top: 1px solid var(--border);

    background: rgba(5, 15, 31, 0.56);
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.5fr
        repeat(4, minmax(0, 1fr));

    gap: 30px;
}

.footer-logo {
    width: 106px;

    margin-bottom: 14px;

    border-radius: 50px;
}

.footer-grid p {
    max-width: 250px;

    font-size: 0.9rem;
}

.footer-grid h4 {
    margin-bottom: 13px;

    font-size: 0.98rem;
}

.footer-grid ul {
    display: grid;

    gap: 7px;

    color: var(--gray-2);

    font-size: 0.82rem;
}

.footer-grid a {
    transition: color var(--transition);
}

.footer-grid a:hover {
    color: var(--secondary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;

    gap: 15px;

    margin-top: 48px;
    padding-top: 18px;

    border-top: 1px solid var(--border);
}

.footer-bottom p,
.footer-links {
    color: var(--gray-2);

    font-size: 0.72rem;
}

.footer-links {
    display: flex;

    gap: 14px;
}


/* =========================================================
   20. BOTÕES FLUTUANTES
   ========================================================= */

#backToTop,
.whatsapp-float {
    position: fixed;

    right: 24px;
    z-index: 15;

    display: grid;

    width: 52px;
    height: 52px;

    place-items: center;

    border: 0;
    border-radius: 50%;

    color: #fff;

    background: var(--gradient);

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.3);

    cursor: pointer;
}

#backToTop {
    bottom: 88px;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity var(--transition),
        transform var(--transition),
        visibility var(--transition);
}

.whatsapp-float {
    bottom: 24px;

    font-size: 1.45rem;
}

.whatsapp-float:hover,
#backToTop:hover {
    transform: translateY(-4px);
}

.show {
    opacity: 1 !important;
    visibility: visible !important;
}


/* =========================================================
   21. ANIMAÇÕES
   ========================================================= */

/* =========================================================
   21. ANIMAÇÕES
   ========================================================= */

.hidden {
    opacity: 0;

    transform:
        translateY(32px)
        scale(0.98);

    transition:
        opacity 0.7s ease,
        transform 0.7s cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );

    transition-delay: var(--delay, 0s);

    will-change:
        opacity,
        transform;
}

.hidden.show {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}

@keyframes float {
    50% {
        transform: translateY(-10px);
    }
}


/* =========================================================
   22. REDUÇÃO DE MOVIMENTO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}


/* =========================================================
   23. TABLET / NOTEBOOK PEQUENO
   1100px
   ========================================================= */

@media (max-width: 1100px) {

    #menu {
        gap: 18px;
    }

    .logo img {
        height: 70px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timeline {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-grid > :first-child {
        grid-column: span 3;
    }

    .contact-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   24. TABLET / MOBILE
   820px
   ========================================================= */

@media (max-width: 820px) {

    #header {
        position: relative;

        padding: 10px 0;

        background: rgba(15, 23, 42, 0.72);

        border-bottom: 1px solid var(--border);
    }

    .logo img {
        height: 64px;
    }

    #header > .container > .btn {
        display: none;
    }

    #menu-mobile {
        display: flex;

        flex: 0 0 auto;
    }

    #menu {
        display: none;

        flex-basis: 100%;
        order: 3;

        margin-top: 10px;
        padding: 8px;

        border: 1px solid rgba(34, 211, 238, 0.25);
        border-radius: 14px;

        background: #061321;
    }

    #menu.active {
        display: grid;

        grid-template-columns: 1fr;
    }

    #menu a {
        min-height: 45px;

        padding: 11px 14px;

        border-radius: 9px;
    }

    #menu a::after {
        display: none;
    }

    #menu a:hover {
        color: var(--secondary);

        background: rgba(34, 211, 238, 0.07);
    }

    #menu-mobile.active span:nth-child(1) {
        transform:
            translateY(6px)
            rotate(45deg);
    }

    #menu-mobile.active span:nth-child(2) {
        opacity: 0;
    }

    #menu-mobile.active span:nth-child(3) {
        transform:
            translateY(-6px)
            rotate(-45deg);
    }

    section[id] {
        scroll-margin-top: 20px;
    }

    .hero {
        min-height: auto;

        padding: 78px 0 80px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
    }

    .hero p {
        margin-inline: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-info {
        max-width: 600px;

        margin-inline: auto;

        text-align: left;
    }

    .hero-image {
        max-width: 620px;

        margin-inline: auto;
    }

    .highlights .container {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .about-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .stack-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   25. MOBILE
   700px
   ========================================================= */

@media (max-width: 700px) {

    .container {
        width: calc(100% - 32px);
    }

    #sobre,
    .services,
    .features,
    .technologies,
    .process,
    .portfolio,
    .faq,
    .cta {
        padding: 72px 0;
    }

    .section-title {
        margin-bottom: 36px;
    }


    /* -------------------------
       HEADER
       ------------------------- */

    #header .container {
        gap: 15px;
    }

    .logo img {
        height: 58px;
    }


    /* -------------------------
       HERO
       ------------------------- */

    .hero {
        padding-top: 52px;
        padding-bottom: 65px;
    }

    .hero-tag {
        justify-content: center;

        width: 100%;
        max-width: 100%;

        padding: 9px 13px;

        text-align: center;

        font-size: 0.72rem;

        line-height: 1.4;
    }

    .hero h1 {
        font-size: clamp(
            2.35rem,
            10vw,
            3.5rem
        );
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;

        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-info {
        grid-template-columns: 1fr;

        gap: 14px;

        margin-top: 38px;
    }

    .hero-info div {
        padding-left: 14px;
    }


    /* -------------------------
       DESTAQUES
       ------------------------- */

    .highlights {
        padding: 28px 0;
    }

    .highlights .container {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .highlight {
        justify-content: flex-start;

        padding: 9px 0;

        text-align: left;
    }


    /* -------------------------
       SOBRE
       ------------------------- */

    .about-grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }

    .about-card {
        padding: 26px 22px;
    }


    /* -------------------------
       SERVIÇOS
       ------------------------- */

    .services-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .service-card {
        padding: 26px 22px;
    }


    /* -------------------------
       FEATURES
       ------------------------- */

    .features-grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }


    /* -------------------------
       TECNOLOGIAS
       ------------------------- */

    .stack-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .stack-card {
        min-height: 100px;

        padding: 18px;
    }


    /* -------------------------
       PROCESSO
       ------------------------- */

    .timeline {
        grid-template-columns: 1fr;

        gap: 16px;
    }

    .timeline-item {
        padding: 22px 20px;
    }

    .timeline-item h3 {
        font-size: 1.08rem;
    }

    .timeline-item p {
        font-size: 0.9rem;

        line-height: 1.6;
    }

    .process-footer {
        grid-template-columns: 1fr;

        gap: 12px;

        margin-top: 28px;
    }


    /* -------------------------
       PORTFÓLIO
       ------------------------- */

    .project-browser {
        padding: 10px 12px;
    }

    .browser-status {
        display: none;
    }

    .project-tag {
        top: 10px;
        right: 10px;

        font-size: 0.66rem;
    }

    .project-content {
        padding: 24px 20px;
    }

    .project-content h3 {
        font-size: 1.4rem;
    }


    /* -------------------------
       ESTATÍSTICAS
       ------------------------- */

    .stats {
        padding: 20px 0 72px;
    }

    .stats-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .stat-card {
        min-height: 100px;

        padding: 20px;
    }

    .stat-card > strong {
        min-width: 75px;

        margin-right: 15px;

        font-size: 1.45rem;
    }


    /* -------------------------
       FAQ
       ------------------------- */

    .faq-container {
        gap: 10px;
    }

    .faq details {
        padding: 17px;
    }


    /* -------------------------
       CONTATO
       ------------------------- */

    .contact-info {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .contact-card {
        padding: 19px;
    }


    /* -------------------------
       CTA
       ------------------------- */

    .cta-content {
        margin-bottom: 32px;
    }


    /* -------------------------
       FOOTER
       ------------------------- */

    footer {
        padding: 55px 0 20px;
    }

    .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
    text-align: left;
    }

    .footer-grid > :first-child {
    grid-column: 1 / -1;
    }

    .footer-grid p {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;

        align-items: flex-start;

        margin-top: 34px;
    }

    .footer-links {
        flex-wrap: wrap;
    }


    /* -------------------------
       BOTÕES FLUTUANTES
       ------------------------- */

    #backToTop,
    .whatsapp-float {
        right: 16px;

        width: 48px;
        height: 48px;
    }

    #backToTop {
        bottom: 76px;
    }

    .whatsapp-float {
        bottom: 16px;
    }
}


/* =========================================================
   26. CELULARES PEQUENOS
   480px
   ========================================================= */

@media (max-width: 480px) {

    .container {
        width: calc(100% - 28px);
    }

    h2 {
        font-size: 1.9rem;
    }

    .section-title {
        margin-bottom: 32px;
    }

    .section-tag {
        font-size: 0.68rem;
    }

    .hero h1 {
        font-size: 2.35rem;

        line-height: 1.08;
    }

    .hero-tag {
        font-size: 0.68rem;
    }

    .about-card,
    .service-card,
    .feature,
    .stack-card,
    .timeline-item {
        width: 100%;
    }

    .stat-card {
        align-items: flex-start;
    }

    .stat-card > strong {
        min-width: 70px;

        font-size: 1.35rem;
    }

    .project-content {
        padding: 22px 18px;
    }

    .project-tech {
        gap: 6px;
    }

    .project-tech span {
        font-size: 0.7rem;
    }

    .contact-card {
        padding: 18px 16px;
    }

    .footer-bottom {
        gap: 10px;
    }
}


/* =========================================================
   27. TELAS MUITO PEQUENAS
   360px
   ========================================================= */

@media (max-width: 360px) {

    .container {
        width: calc(100% - 24px);
    }

    .logo img {
        height: 52px;
    }

    #menu-mobile {
        width: 42px;
        height: 42px;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero-tag {
        font-size: 0.63rem;
    }

    .timeline-item {
        padding: 20px 17px;
    }

    .stat-card {
        padding: 17px;
    }
}
/* =========================================================
   28. AJUSTES FINAIS — MENU E ANIMAÇÕES
   ========================================================= */

/* Menu hamburger */
#menu-mobile {
    flex-direction: column;
    gap: 0;
}

#menu-mobile span {
    flex: 0 0 auto;
}


/* Animação de entrada das seções */
.hidden {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.hidden.show {
    opacity: 1;
    transform: translateY(0);
}


/* Entrada suave dos cards */
.about-card.hidden,
.service-card.hidden,
.feature.hidden,
.stack-card.hidden,
.timeline-item.hidden,
.contact-card.hidden,
.stat-card.hidden {
    transition:
        opacity 0.65s ease,
        transform 0.65s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* Pequeno atraso entre os elementos */
.about-card:nth-child(1),
.service-card:nth-child(1),
.feature:nth-child(1),
.stack-card:nth-child(1),
.timeline-item:nth-child(1),
.stat-card:nth-child(1) {
    transition-delay: 0.05s;
}

.about-card:nth-child(2),
.service-card:nth-child(2),
.feature:nth-child(2),
.stack-card:nth-child(2),
.timeline-item:nth-child(2),
.stat-card:nth-child(2) {
    transition-delay: 0.10s;
}

.about-card:nth-child(3),
.service-card:nth-child(3),
.feature:nth-child(3),
.stack-card:nth-child(3),
.timeline-item:nth-child(3),
.stat-card:nth-child(3) {
    transition-delay: 0.15s;
}

.about-card:nth-child(4),
.service-card:nth-child(4),
.feature:nth-child(4),
.stack-card:nth-child(4),
.timeline-item:nth-child(4),
.stat-card:nth-child(4) {
    transition-delay: 0.20s;
}

.timeline-item:nth-child(5),
.stack-card:nth-child(5) {
    transition-delay: 0.25s;
}

.timeline-item:nth-child(6),
.stack-card:nth-child(6) {
    transition-delay: 0.30s;
}

.stack-card:nth-child(7) {
    transition-delay: 0.35s;
}

.stack-card:nth-child(8) {
    transition-delay: 0.40s;
}


/* Animação suave do botão hamburger */
#menu-mobile span {
    transform-origin: center;
}


/* Mantém o botão funcionando como X quando aberto */
#menu-mobile.active span:nth-child(1) {
    transform:
        translateY(6px)
        rotate(45deg);
}

#menu-mobile.active span:nth-child(2) {
    opacity: 0;
}

#menu-mobile.active span:nth-child(3) {
    transform:
        translateY(-6px)
        rotate(-45deg);
}


/* Movimento suave do logo */
.logo img {
    will-change: transform;
}


/* Animação do elemento visual do Hero */
.hero-image svg {
    will-change: transform;
}


/* Acessibilidade: reduz animações se o usuário pedir */
@media (prefers-reduced-motion: reduce) {

    .hidden,
    .hidden.show,
    .about-card,
    .service-card,
    .feature,
    .stack-card,
    .timeline-item,
    .contact-card,
    .stat-card {
        transition: none;
        transform: none;
    }

    .hero-image svg {
        animation: none;
    }
}/* =========================================================
   ANIMAÇÕES DE SCROLL REVEAL
   ========================================================= */

.hidden {
    opacity: 0;
    transform: translateY(32px) scale(0.98);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;

    transition-delay: var(--delay, 0s);
}

.hidden.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}


/* Cards aparecem em sequência */

.about-card:nth-child(1),
.service-card:nth-child(1),
.feature:nth-child(1),
.stack-card:nth-child(1),
.timeline-item:nth-child(1),
.stat-card:nth-child(1),
.contact-card:nth-child(1) {
    --delay: 0.05s;
}

.about-card:nth-child(2),
.service-card:nth-child(2),
.feature:nth-child(2),
.stack-card:nth-child(2),
.timeline-item:nth-child(2),
.stat-card:nth-child(2),
.contact-card:nth-child(2) {
    --delay: 0.12s;
}

.about-card:nth-child(3),
.service-card:nth-child(3),
.feature:nth-child(3),
.stack-card:nth-child(3),
.timeline-item:nth-child(3),
.stat-card:nth-child(3),
.contact-card:nth-child(3) {
    --delay: 0.19s;
}

.about-card:nth-child(4),
.service-card:nth-child(4),
.feature:nth-child(4),
.stack-card:nth-child(4),
.timeline-item:nth-child(4),
.stat-card:nth-child(4),
.contact-card:nth-child(4) {
    --delay: 0.26s;
}

.stack-card:nth-child(5),
.timeline-item:nth-child(5) {
    --delay: 0.33s;
}

.stack-card:nth-child(6),
.timeline-item:nth-child(6) {
    --delay: 0.40s;
}

.stack-card:nth-child(7) {
    --delay: 0.47s;
}

.stack-card:nth-child(8) {
    --delay: 0.54s;
}


/* Respeita usuários que preferem menos movimento */

@media (prefers-reduced-motion: reduce) {

    .hidden,
    .hidden.show {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
/* Link para FAQ completa */
.faq-more {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.faq-more .btn {
    min-width: 230px;
    padding: 14px 24px;
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 999px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.45);
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
}

.faq-more .btn:hover {
    border-color: var(--secondary);
    background: rgba(34, 211, 238, 0.10);
    color: var(--secondary);
    transform: translateY(-2px);
}
/* ==========================================
   PÁGINA DE FAQ
========================================== */

.faq-page {
    padding-top: 150px;
    padding-bottom: 100px;
}

.faq-page-title {
    max-width: 900px;
    margin: 0 auto 70px;
    text-align: center;
}

.faq-page-title h1 {
    max-width: 850px;
    margin: 22px auto 20px;
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    line-height: 1.08;
}

.faq-page-title p {
    max-width: 760px;
    margin: 0 auto;
}

.faq-category {
    max-width: 1000px;
    margin: 0 auto 60px;
}

.faq-category h2 {
    margin-bottom: 22px;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.2;
    text-align: left;
}

.faq-page-cta {
    max-width: 850px;
    margin: 90px auto 0;
    padding: 55px 30px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.45);
}

.faq-page-cta h2 {
    margin: 18px auto;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

.faq-page-cta p {
    max-width: 650px;
    margin: 0 auto 28px;
}
@media (max-width: 560px) {

    .faq-page {
        padding-top: 105px;
        padding-bottom: 70px;
    }

    .faq-page-title {
        margin-bottom: 70px;
    }

    .faq-page-title h1 {
        font-size: 2.35rem;
        line-height: 1.1;
    }

    .faq-category {
        margin-bottom: 48px;
    }

    .faq-category h2 {
        font-size: 1.75rem;
    }

    .faq-page-cta {
        margin-top: 60px;
        padding: 40px 22px;
    }

}
/* ==========================================
   FAQ — PERGUNTAS
========================================== */

.faq-page .faq-container {
    display: grid;
    gap: 12px;
    max-width: 1000px;
    margin-inline: auto;
}

.faq-page details {
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.48);
    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease;
}

.faq-page details:hover {
    border-color: rgba(34, 211, 238, 0.30);
    background: rgba(22, 35, 58, 0.72);
}

.faq-page summary {
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    color: var(--white);
    line-height: 1.5;
}

.faq-page details p {
    max-width: 900px;
    margin-top: 15px;
    color: var(--gray);
    line-height: 1.7;
}


/* ==========================================
   FAQ — MOBILE
========================================== */

@media (max-width: 560px) {

    .faq-page .faq-category h2 {
        text-align: center;
    }

    .faq-page details {
        padding: 18px;
    }

    .faq-page summary {
        font-size: 0.95rem;
        line-height: 1.45;
    }

    .faq-page details p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

}