/* =============================
   Eduardo Carolino — Portfólio
   style.css (Tech Premium c/ logos locais + LinkedIn + WhatsApp flutuante)
   ============================= */

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

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

button,
input {
    font: inherit
}

/* Tokens */
:root {
    --bg: #0a0d13;
    --layer: #0f1320;
    --glass: rgba(255, 255, 255, .04);
    --text: #e9eef7;
    --muted: #9aa6b2;
    --brand: #6c7bff;
    --brand-2: #22d3ee;
    --accent: #7c3aed;
    --radius: 16px;
    --radius-lg: 22px;
    --max: 1200px;
    --grid-line: rgba(124, 58, 237, .12);
    --shadow-lg: 0 18px 50px rgba(2, 6, 23, .55);
    --shadow: 0 10px 28px rgba(2, 6, 23, .45);
    --border: 1px solid rgba(255, 255, 255, .10);
}

/* Background: gradient + grid */
body {
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Poppins, Arial, "Noto Sans", sans-serif;
    color: var(--text);
    line-height: 1.65;
    min-height: 100dvh;
    overflow-x: hidden;
    background:
        radial-gradient(1400px 600px at 10% -10%, rgba(34, 211, 238, .15), transparent 60%),
        radial-gradient(1200px 500px at 100% 10%, rgba(108, 123, 255, .18), transparent 65%),
        linear-gradient(180deg, #06080f 0%, #0a0d13 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        repeating-linear-gradient(0deg, transparent 0 23px, var(--grid-line) 23px 24px),
        repeating-linear-gradient(90deg, transparent 0 23px, var(--grid-line) 23px 24px);
    mask: linear-gradient(to bottom, rgba(255, 255, 255, .22), transparent 70%);
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: auto -15% -25% auto;
    width: 55vmax;
    height: 55vmax;
    background: radial-gradient(closest-side at 50% 50%, rgba(124, 58, 237, .28), transparent 55%),
        radial-gradient(closest-side at 65% 40%, rgba(34, 211, 238, .22), transparent 60%);
    filter: blur(40px);
    animation: float 26s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0)
    }

    50% {
        transform: translate(-6%, -4%) rotate(12deg)
    }
}

/* Layout */
section,
main {
    max-width: var(--max);
    margin: 80px auto;
    padding: 0 22px
}

header nav,
footer {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 22px
}

/* NAV */
header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: saturate(160%) blur(10px);
    background: rgba(8, 10, 16, .65);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

nav {
    height: 72px;
    display: flex;
    gap: 22px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

nav a {
    color: var(--muted);
    font-weight: 600;
    letter-spacing: .2px;
    position: relative;
    transition: color .2s ease;
}

nav a:hover {
    color: var(--text)
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    transition: width .25s ease;
}

nav a:hover::after {
    width: 100%
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800
}

.social-link i {
    font-size: 20px
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

/* HERO */
main {
    margin-top: 56px;
    text-align: center
}

main h1 {
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1.03;
    margin: 8px 0 12px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 60%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 10px 40px rgba(124, 58, 237, .18);
}

main p {
    color: var(--muted);
    font-size: clamp(16px, 2.2vw, 18px);
    max-width: 70ch;
    margin: 0 auto 22px
}

main a[href^="#"] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .18);
    color: #06101a;
    font-weight: 800;
    letter-spacing: .2px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 12px 36px rgba(34, 211, 238, .25);
    transition: transform .15s ease, box-shadow .25s ease;
}

main a[href^="#"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 50px rgba(124, 58, 237, .35)
}

/* Seções base */
h2 {
    text-align: center;
    font-size: clamp(26px, 3.4vw, 36px);
    margin: 0 0 14px
}

.section-lead {
    text-align: center;
    color: var(--muted);
    max-width: 70ch;
    margin: 6px auto 28px
}

/* ABOUT */
.about {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 26px;
    align-items: center
}

.about__text p {
    color: var(--muted)
}

.about__bullets {
    margin: 12px 0 0 18px;
    color: var(--muted)
}

.about__bullets li {
    margin: 6px 0
}

.about__cta {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 800
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #06101a;
    border: 0;
    box-shadow: var(--shadow)
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(34, 211, 238, .35)
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, .16);
    background: var(--glass);
    color: var(--text)
}

.btn-ghost:hover {
    transform: translateY(-4px) scale(1.02) rotateX(1deg);
    box-shadow: 0 16px 52px rgba(108, 123, 255, .25);
    border-color: rgba(124, 58, 237, .38);
    filter: none;
}

.about__photo {
    background: linear-gradient(160deg, #0b0f1c, #0c1120);
    border: var(--border);
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: var(--shadow-lg);
    position: relative;
    isolation: isolate;
}

.about__photo::after {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: inherit;
    background: conic-gradient(from 180deg, rgba(124, 58, 237, .25), rgba(34, 211, 238, .22), rgba(108, 123, 255, .25), transparent 60%);
    filter: blur(18px);
}

.about__photo img {
    border-radius: 12px;
    aspect-ratio: 1/1;
    object-fit: cover
}

/* TECNOLOGIAS */
.tech-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(6, 1fr)
}

.tech {
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    border: 1px solid rgba(108, 123, 255, .16);
    border-radius: 14px;
    padding: 16px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease, filter .2s ease;
    filter: saturate(.92);
    transform-style: preserve-3d;
}

.tech:hover {
    transform: translateY(-4px) scale(1.02) rotateX(1deg);
    box-shadow: 0 16px 52px rgba(108, 123, 255, .25);
    border-color: rgba(124, 58, 237, .38);
    filter: none;
}

.tech i {
    font-size: 36px
}

.tech span {
    font-weight: 700
}

.svg-icon {
    width: 36px;
    height: 36px;
    display: inline-block
}

.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, .06);
}

/* QUALIDADES */
.qualities {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, 1fr)
}

.quality {
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    border: var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease;
}

.quality::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(400px 120px at 20% 0%, rgba(124, 58, 237, .18), transparent 60%);
    opacity: .6;
    pointer-events: none;
    z-index: -1;
}

.quality:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 46px rgba(124, 58, 237, .28);
    border-color: rgba(124, 58, 237, .35)
}

.quality h3 {
    margin: 6px 0 8px;
    font-size: 18px
}

.quality p {
    color: var(--muted);
    margin: 0
}

/* SERVIÇOS */
.cards {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, 1fr)
}

.cards article {
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    border: var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease;
}

.cards article:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 50px rgba(34, 211, 238, .28);
    border-color: rgba(34, 211, 238, .35)
}

.cards h3 {
    margin: 8px 0 10px
}

.cards p {
    color: var(--muted)
}

/* CASES */
.cases {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, 1fr)
}

.case {
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    border: var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease;
}

.case:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 52px rgba(2, 6, 23, .5);
    border-color: rgba(108, 123, 255, .35)
}

.case img {
    aspect-ratio: 16/13;
    object-fit: cover;
    width: 100%
}

.case__body {
    padding: 16px
}

.case__body h3 {
    margin: 2px 0 8px
}

.case__body p {
    color: var(--muted);
    margin: 0 0 10px
}

.case__bullets {
    margin: 0 0 0 18px;
    color: var(--muted)
}

.case__bullets li {
    margin: 6px 0
}

/* RESULTADOS */
.metrics-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, 1fr)
}

.metric {
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    border: var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 24px;
    text-align: center;
}

.metric__value {
    font-size: clamp(26px, 4.5vw, 42px);
    font-weight: 800
}

.metric__label {
    color: var(--muted);
    margin-top: 6px
}

/* DEPOIMENTOS */
.testimonials {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, 1fr)
}

.quote {
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    border: var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    font-style: italic;
    color: var(--text);
}

.quote footer {
    margin-top: 10px;
    color: var(--muted);
    font-style: normal
}

/* GALERIA */
.gallery {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr)
}

.gallery img {
    width: 100%;
    aspect-ratio: 4/4;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, .12);
    transition: transform .25s ease, filter .25s ease;
    filter: saturate(.9) contrast(1.02)
}

.gallery img:hover {
    transform: scale(1.03);
    filter: none
}

/* CONTATO */
#contact form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto
}

#contact input[type="email"] {
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    outline: none;
}

#contact input[type="email"]:focus {
    border-color: rgba(124, 58, 237, .45);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, .14)
}

#contact button {
    padding: 12px 20px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #06101a;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .25s ease
}

#contact button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(34, 211, 238, .35)
}

.contact-social {
    display: flex;
    justify-content: center;
    margin-top: 14px
}

.contact-social .btn-ghost i {
    font-size: 18px
}

/* RODAPÉ */
footer {
    color: var(--muted);
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, .10);
    padding: 18px 22px;
    text-align: center;
    margin-top: 60px;
}

/* Botão flutuante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 9999;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 8px 22px rgba(18, 140, 126, .45);
    transition: transform .2s ease, box-shadow .3s ease;
}

.whatsapp-float a:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(18, 140, 126, .55);
}

.whatsapp-float img {
    width: 32px;
    height: 32px
}

/* Responsividade */
@media (max-width:1080px) {
    .tech-grid {
        grid-template-columns: repeat(5, 1fr)
    }
}

@media (max-width:980px) {
    .about {
        grid-template-columns: 1fr
    }

    .qualities {
        grid-template-columns: 1fr 1fr
    }

    .cards {
        grid-template-columns: 1fr 1fr
    }

    .cases {
        grid-template-columns: 1fr 1fr
    }

    .metrics-grid {
        grid-template-columns: 1fr 1fr
    }

    .testimonials {
        grid-template-columns: 1fr 1fr
    }

    .gallery {
        grid-template-columns: 1fr 1fr
    }

    .tech-grid {
        grid-template-columns: repeat(4, 1fr)
    }
}

@media (max-width:680px) {
    .tech-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media (max-width:560px) {
    nav {
        justify-content: center
    }

    .qualities,
    .cards,
    .cases,
    .metrics-grid,
    .testimonials,
    .gallery {
        grid-template-columns: 1fr
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

/* Reduced motion */
@media (prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important
    }
}

a {
    text-decoration: none;
}