:root {
    --bg: #080c10;
    --bg2: #0d1117;
    --card: #111820;
    --border: #1e2d3d;
    --cyan: #00e5ff;
    --cyan2: #00b8cc;
    --white: #e8f0fe;
    --gray: #8892a4;
    --white: #ffffff;
    --font-display: 'Syne', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-display);
    overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg2);
}

::-webkit-scrollbar-thumb {
    background: var(--cyan2);
    border-radius: 3px;
}

/* ── CURSOR ── */
.cursor {
    width: 18px;
    height: 18px;
    border: 2px solid var(--cyan);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform .15s ease, background .2s;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 5px;
    height: 5px;
    background: var(--cyan);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform .05s;
}

body:has(a:hover) .cursor,
body:has(button:hover) .cursor {
    transform: translate(-50%, -50%) scale(2.5);
    background: rgba(0, 229, 255, .12);
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 60px;
    background: rgba(8, 12, 16, .85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 229, 255, .08);
    transition: padding .3s;
}

nav.scrolled {
    padding: 14px 60px;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--cyan);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-logo span {
    color: var(--white);
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: .78rem;
    color: var(--gray);
    text-decoration: none;
    letter-spacing: 1px;
    position: relative;
    transition: color .3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--cyan);
    transition: width .3s;
}

.nav-links a:hover {
    color: var(--cyan);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ── SECTION BASE ── */
section {
    padding: 100px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--cyan);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 14px;
    opacity: 0;
    animation: fadeUp .6s forwards;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 50px;
}

.section-title em {
    font-style: normal;
    color: var(--cyan);
}

/* ── HERO ── */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 60px;
    position: relative;
    max-width: 100%;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 229, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, .04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 229, 255, .12) 0%, transparent 70%);
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-pre {
    font-family: var(--font-mono);
    font-size: .82rem;
    color: var(--cyan);
    letter-spacing: 3px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp .6s .2s forwards;
}

.hero-name {
    font-size: clamp(3rem, 9vw, 7rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 18px;
    opacity: 0;
    animation: fadeUp .7s .4s forwards;
}

.hero-name span {
    color: var(--cyan);
}

.hero-role {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--gray);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp .7s .6s forwards;
    min-height: 2em;
}

.type-cursor {
    color: var(--cyan);
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

.hero-btns {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp .7s .8s forwards;
}

.btn {
    padding: 14px 32px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: .82rem;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .3s;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--cyan);
    color: #000;
    border: 2px solid var(--cyan);
    font-weight: 700;
}

.btn-primary:hover {
    background: transparent;
    color: var(--cyan);
    box-shadow: 0 0 24px rgba(0, 229, 255, .35);
}

.btn-outline {
    background: transparent;
    color: var(--cyan);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, .2);
}

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeUp .7s 1.2s forwards;
}

.hero-scroll span {
    font-family: var(--font-mono);
    font-size: .65rem;
    color: var(--gray);
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(var(--cyan), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 1
    }

    50% {
        transform: scaleY(.5);
        opacity: .5
    }
}

/* ── ABOUT ── */
#sobre {
    padding-top: 80px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-img-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    max-width: 320px;
}

.about-img-border {
    position: absolute;
    inset: -14px;
    border: 2px solid var(--cyan);
    border-radius: 8px;
    opacity: .3;
    animation: borderRotate 6s linear infinite;
}

@keyframes borderRotate {
    0% {
        clip-path: inset(0 100% 0 0)
    }

    25% {
        clip-path: inset(0 0 100% 0)
    }

    50% {
        clip-path: inset(100% 0 0 0)
    }

    75% {
        clip-path: inset(0 0 0 100%)
    }

    100% {
        clip-path: inset(0 100% 0 0)
    }
}

.about-img-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
    display: block;
    filter: grayscale(15%);
    transition: filter .4s, transform .4s;
}

.about-img-placeholder:hover img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.about-img-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 229, 255, .08) 100%);
    z-index: 1;
    pointer-events: none;
}

.about-img-tag {
    position: absolute;
    bottom: -16px;
    right: -16px;
    background: var(--cyan);
    color: #000;
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.about-text p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 18px;
}

.about-text p strong {
    color: var(--white);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 34px;
}

.stat-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 20px;
    transition: border-color .3s, transform .3s;
}

.stat-box:hover {
    border-color: var(--cyan);
    transform: translateY(-3px);
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--cyan);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: .8rem;
    color: var(--gray);
    margin-top: 4px;
}

/* ── SKILLS ── */
#habilidades {
    background: var(--bg2);
    max-width: 100%;
    padding: 100px 0;
}

#habilidades>* {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    padding: 0 60px;
}

.skill-category {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px;
    transition: border-color .3s, transform .3s;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), transparent);
    opacity: 0;
    transition: opacity .3s;
}

.skill-category:hover {
    border-color: var(--cyan);
    transform: translateY(-5px);
}

.skill-category:hover::before {
    opacity: 1;
}

.skill-cat-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.skill-cat-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 18px;
    color: var(--white);
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    font-family: var(--font-mono);
    font-size: .7rem;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    color: var(--gray);
    transition: all .3s;
    letter-spacing: .5px;
}

.pill:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

/* ── PROJETOS CAROUSEL ── */
#projetos {
    overflow: hidden;
}

.carousel-wrap {
    position: relative;
    
}

.carousel {
    display: flex;
    gap: 28px;
    transition: transform .5s cubic-bezier(.25, .1, .25, 1);
    will-change: transform;
}

.project-card {
    min-width: 360px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .3s, transform .3s;
    flex-shrink: 0;
}

.project-card:hover {
    border-color: var(--cyan);
    transform: translateY(-6px);
}

.project-thumb {
    height: 200px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.project-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 229, 255, .1), transparent 60%);
}

.project-thumb img {
    width: 60%;
    height: 60%;
}

.project-thumb-num {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-family: var(--font-mono);
    font-size: .85rem;
    color: var(--cyan);
    opacity: .5;
    letter-spacing: 2px;
}

.project-body {
    padding: 24px;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.project-tags-desenvolvimento {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.project-tag-desenvolvimento {
    font-family: var(--font-mono);
    font-size: .75rem;
    padding: 3px 10px;
    border-radius: 3px;
    background: rgba(162, 26, 26, 0.443);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: .5px;
}

.project-tag {
    font-family: var(--font-mono);
    font-size: .75rem;
    padding: 3px 10px;
    border-radius: 3px;
    background: rgba(0, 229, 255, .1);
    color: var(--cyan);
    border: 1px solid rgba(0, 229, 255, .2);
    letter-spacing: .5px;
}

.project-name {
    font-size: 1.20rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-desc {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-links {
    display: flex;
    gap: 14px;
}

.project-link {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--gray);
    text-decoration: none;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .3s;
}

.project-link:hover {
    color: var(--cyan);
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
}

.carousel-arrows {
    display: flex;
    gap: 14px;
}

.arrow-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
}

.arrow-btn:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 18px rgba(0, 229, 255, .2);
}

.arrow-btn:disabled {
    opacity: .3;
    cursor: not-allowed;
}

.carousel-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    transition: all .3s;
    cursor: pointer;
}

.dot.active {
    width: 24px;
    background: var(--cyan);
}

/* ── CERTIFICADOS ── */
#certificados {
    background: var(--bg2);
    max-width: 100%;
    padding: 100px 0;
}

#certificados .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.cert-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 36px 28px;
    text-align: center;
    transition: all .3s;
    position: relative;
    overflow: hidden;
}

.cert-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    transform: scaleX(0);
    transition: transform .4s;
}

.cert-card:hover {
    border-color: rgba(0, 229, 255, .4);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}

.cert-card:hover::after {
    transform: scaleX(1);
}

.cert-logo {
    width: 100px;
    height: 100px;
    border-radius: 14px;
    background: var(--white);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 1px solid var(--border);
}

.cert-logo-free-code {
    width: 100px;
    height: 100px;
    border-radius: 14px;
    background: #02091f;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 1px solid var(--border);
}

.cert-logo-free-code img{
    width: 90%;
}

.cert-logo img {
    width: 90%;
}

.cert-institution {
    font-family: var(--font-mono);
    font-size: .7rem;
    color: var(--cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.cert-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.cert-title-senac-2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;

}

.cert-title-senac-2 span {
    color: #c2cc00;
}

.cert-desc {
    font-size: .83rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 22px;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 229, 255, .08);
    border: 1px solid rgba(0, 229, 255, .2);
    border-radius: 20px;
    padding: 5px 14px;
    font-family: var(--font-mono);
    font-size: .68rem;
    color: var(--cyan);
}

/* ── CONTATO ── */
#contato {
    text-align: center;
}

.contact-wrap {
    max-width: 700px;
    margin: 0 auto;
}

.contact-sub {
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 48px;
}

.contact-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 60px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 24px;
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: .8rem;
    letter-spacing: .5px;
    transition: all .3s;
}

.contact-link:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, .12);
}

.contact-link .icon {
    font-size: 1.2rem;
}

.contact-form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 40px;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--gray);
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 16px;
    color: var(--white);
    font-family: var(--font-display);
    font-size: .9rem;
    outline: none;
    transition: border-color .3s;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--cyan);
}

.form-group textarea {
    min-height: 120px;
}

.form-submit {
    margin-top: 18px;
    width: 100%;
    justify-content: center;
}

/* ── FOOTER ── */
footer {
    border-top: 1px solid var(--border);
    padding: 28px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--gray);
    
}

footer p {
    margin-left: 250px;
    transition: 0.3s;
}

p:hover {
  color: #00bfff;
  text-shadow: 0 0 8px rgba(0, 191, 255, 0.7);
}

footer p a{
    text-decoration: none;
    cursor: pointer;
    color: inherit;
}

a:hover {
  text-decoration: underline;
}

footer span {
    color: var(--cyan);
}

/* ── FADE UP ANIMATION ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── NOISE OVERLAY ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: .4;
}

/* ── RESPONSIVE ── */
@media(max-width: 900px) {
    nav {
        padding: 16px 24px;
    }

    .nav-links {
        display: none;
    }

    section {
        padding: 80px 24px;
    }

    #hero {
        padding: 0 24px;
    }

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

    .about-img-wrap {
        max-width: 280px;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}