:root {
    --bg: #06111f;
    --bg-soft: #0e1c2e;
    --panel: rgba(10, 24, 43, 0.88);
    --panel-strong: #10233c;
    --line: rgba(157, 214, 255, 0.14);
    --text: #f3f7fb;
    --muted: #a6b8cb;
    --accent: #ff6b4a;
    --accent-soft: rgba(255, 107, 74, 0.16);
    --cyan: #6fe7ff;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(111, 231, 255, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 107, 74, 0.18), transparent 24%),
        linear-gradient(180deg, #06111f 0%, #091726 44%, #0d2034 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
    pointer-events: none;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.2rem 2rem;
    background: rgba(5, 12, 22, 0.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand-kicker,
.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 700;
}

.brand h1 {
    margin: 0.35rem 0 0;
    font-size: clamp(1.4rem, 2vw, 1.9rem);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.site-nav a {
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    color: var(--muted);
    transition: 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus {
    color: var(--text);
    background: var(--accent-soft);
}

main {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.hero-section,
.content-section {
    position: relative;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    animation: fade-up 0.8s ease both;
}

@supports (animation-timeline: view()) {
    .hero-section,
    .content-section,
    .projeto-card,
    .info-card,
    .course-card,
    .mindset-card {
        animation: scroll-reveal linear both;
        animation-timeline: view();
        animation-range: entry 12% cover 28%;
    }
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.95fr);
    gap: 2rem;
    padding: clamp(1.6rem, 3vw, 3rem);
    margin-bottom: 1.6rem;
}

.hero-section::before,
.content-section::before {
    content: "";
    position: absolute;
    inset: auto -120px -120px auto;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 107, 74, 0.22), transparent 68%);
    pointer-events: none;
}

.hero-copy h2,
.section-heading h2 {
    margin: 0.65rem 0 0;
    line-height: 1.1;
}

.hero-copy h2 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    max-width: 12ch;
}

.hero-text,
.contact-copy,
.group-header p,
.projeto-info p,
.mindset-card p,
.hero-card p,
.course-card li {
    color: var(--muted);
    line-height: 1.7;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.6rem;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.cta-button:hover,
.cta-button:focus {
    transform: translateY(-2px);
}

.cta-primary {
    background: linear-gradient(135deg, #ff7b57, #ff5f3d);
    color: #fff;
    box-shadow: 0 18px 34px rgba(255, 95, 61, 0.38);
    border-color: rgba(255, 202, 190, 0.2);
}

.cta-secondary {
    background: rgba(111, 231, 255, 0.16);
    border-color: rgba(111, 231, 255, 0.34);
    color: #f3fcff;
}

.cta-ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text);
}

.hero-highlights span {
    padding: 0.8rem 1rem;
    border: 1px solid rgba(111, 231, 255, 0.18);
    border-radius: 999px;
    background: rgba(8, 25, 45, 0.72);
    color: #dff7ff;
    font-weight: 600;
    animation: float-badge 4.6s ease-in-out infinite;
}

.hero-panel {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.foto-perfil {
    width: min(100%, 260px);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    object-fit: cover;
    border-radius: 32px;
    border: 1px solid rgba(111, 231, 255, 0.22);
    box-shadow: 0 22px 38px rgba(0, 0, 0, 0.26);
}

.hero-card,
.info-card,
.course-card,
.mindset-card,
.projeto-card {
    background: linear-gradient(180deg, rgba(16, 35, 60, 0.96), rgba(9, 23, 39, 0.96));
    border: 1px solid rgba(157, 214, 255, 0.12);
    border-radius: 22px;
    animation: soft-reveal 0.7s ease both;
}

.hero-card {
    padding: 1.1rem 1.2rem;
}

.hero-card-title {
    margin: 0 0 0.4rem;
    color: var(--text);
    font-weight: 700;
}

.content-section {
    padding: clamp(1.4rem, 2.4vw, 2.2rem);
    margin-bottom: 1.4rem;
}

.section-heading {
    margin-bottom: 1.5rem;
}

.section-heading h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
}

.skill-groups,
.course-grid,
.mindset-grid {
    display: grid;
    gap: 1rem;
}

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

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

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

.info-card,
.course-card,
.mindset-card {
    padding: 1.3rem;
}

.info-card h3,
.course-card h3,
.mindset-card h3,
.group-header h3,
.projeto-info h4 {
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.skills-list,
.social-list,
.course-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skills-list li {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 0.95rem 0.65rem 0.7rem;
    border-radius: 999px;
    background: rgba(7, 18, 31, 0.92);
    border: 1px solid rgba(157, 214, 255, 0.1);
    color: #edf7ff;
    font-weight: 600;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
    animation: skill-appear 0.7s ease both;
}

.skills-list li:hover {
    transform: translateY(-4px);
    background: rgba(18, 38, 63, 0.96);
    border-color: rgba(111, 231, 255, 0.34);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

.skill-icon,
.social-icon {
    width: 32px;
    height: 32px;
    margin-right: 0.7rem;
    border-radius: 50%;
    padding: 0;
    background: transparent;
    object-fit: contain;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    filter: saturate(1.2) contrast(1.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.skills-list li:hover .skill-icon,
.projeto-linguagens .skill-icon:hover {
    transform: translateY(-2px) scale(1.12) rotate(-6deg);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.3);
    filter: saturate(1.35) contrast(1.12);
}

.course-card ul {
    display: grid;
    gap: 0.7rem;
}

.course-card li {
    position: relative;
    padding-left: 1rem;
}

.course-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.78rem;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--accent);
}

.project-group + .project-group {
    margin-top: 2rem;
}

.group-header {
    margin-bottom: 1rem;
}

.projetos-lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.single-project {
    grid-template-columns: minmax(0, 360px);
}

.projeto-card {
    overflow: hidden;
    position: relative;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.projeto-card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: rgba(111, 231, 255, 0.42);
    box-shadow: 0 28px 54px rgba(0, 0, 0, 0.36);
    background: linear-gradient(180deg, rgba(19, 42, 70, 0.98), rgba(9, 23, 39, 0.98));
}

.projeto-card::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #6fe7ff, #ff6b4a);
    opacity: 0.95;
}

.featured-project {
    border-color: rgba(255, 107, 74, 0.24);
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.36);
}

.featured-project::before {
    content: "Destaque";
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 107, 74, 0.14);
    border: 1px solid rgba(255, 107, 74, 0.22);
    color: #ffd4ca;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.projeto-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #071320;
}

.projeto-info {
    padding: 1.1rem;
}

.projeto-info h4 {
    font-size: 1.15rem;
}

.project-context {
    margin: 0 0 0.95rem;
    padding: 0.9rem 1rem;
    border-left: 3px solid rgba(255, 107, 74, 0.85);
    border-radius: 0 14px 14px 0;
    background: rgba(255, 255, 255, 0.04);
    color: #e8f1fa;
    line-height: 1.65;
}

.project-points {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding-left: 1rem;
    color: var(--muted);
}

.project-points li {
    line-height: 1.6;
}

.project-points strong {
    color: var(--text);
}

.project-depth {
    display: grid;
    gap: 0.8rem;
}

.depth-item {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(6, 20, 35, 0.88);
    border: 1px solid rgba(157, 214, 255, 0.09);
}

.depth-item span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.depth-item p {
    margin: 0;
    color: var(--text);
    line-height: 1.65;
}

.projeto-linguagens {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.projeto-linguagens .skill-icon {
    animation: icon-pop 0.65s ease both;
}

.project-links {
    margin-top: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(111, 231, 255, 0.1);
    border: 1px solid rgba(111, 231, 255, 0.2);
    color: #dff8ff;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.project-link:hover,
.project-link:focus {
    transform: translateY(-2px);
    background: rgba(255, 107, 74, 0.14);
    border-color: rgba(255, 107, 74, 0.28);
    color: #fff;
}

.contact-section {
    text-align: center;
}

.contact-copy {
    max-width: 680px;
    margin: 0 auto 1.5rem;
}

.contact-actions {
    justify-content: center;
    margin-bottom: 1.6rem;
}

.social-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
}

.social-list li a {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: rgba(7, 18, 31, 0.92);
    border: 1px solid rgba(157, 214, 255, 0.1);
    color: #edf7ff;
    font-weight: 600;
    transition: 0.22s ease;
}

.social-list li a:hover,
.social-list li a:focus {
    transform: translateY(-2px);
    background: var(--accent-soft);
    border-color: rgba(255, 107, 74, 0.28);
}

footer {
    padding: 0 1rem 2rem;
    text-align: center;
    color: var(--muted);
}

.skill-icon[alt="JavaScript"] { filter: saturate(1.28) contrast(1.1); }
.skill-icon[alt="Java"] { filter: saturate(1.22) contrast(1.08); }
.skill-icon[alt="Golang"] { filter: saturate(1.35) contrast(1.12); }
.skill-icon[alt="HTML & CSS"] { filter: saturate(1.3) contrast(1.1); }
.skill-icon[alt="React"] { filter: saturate(1.28) contrast(1.1); }
.skill-icon[alt="Node.js"] { filter: saturate(1.28) contrast(1.1); }
.skill-icon[alt="PHP"] { filter: saturate(1.24) contrast(1.08); }
.skill-icon[alt="MySQL"] { filter: saturate(1.3) contrast(1.12); }
.skill-icon[alt="Python"] { filter: saturate(1.26) contrast(1.1); }
.skill-icon[alt="Git"] { filter: saturate(1.32) contrast(1.1); }

.social-icon[alt="LinkedIn"] { filter: saturate(1.28) contrast(1.08); }
.social-icon[alt="WhatsApp"] { filter: saturate(1.35) contrast(1.08); }
.social-icon[alt="GitHub"] { filter: saturate(1.12) contrast(1.04); }
.social-icon[alt="Instagram"] { filter: saturate(1.18) contrast(1.06); }
.social-icon[alt="Twitter"] { filter: saturate(1.18) contrast(1.06); }
.social-icon[alt="YouTube"] { filter: saturate(1.22) contrast(1.08); }
.social-icon[alt="Email"] { filter: saturate(1.18) contrast(1.06); }

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

@keyframes soft-reveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

@keyframes scroll-reveal {
    from {
        opacity: 0;
        transform: translateY(26px) scale(0.985);
    }

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

@keyframes float-badge {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes skill-appear {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.96);
    }

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

@keyframes icon-pop {
    from {
        opacity: 0;
        transform: scale(0.88);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 980px) {
    .hero-section,
    .skill-groups,
    .course-grid,
    .mindset-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h2 {
        max-width: none;
    }
}

@media (max-width: 720px) {
    .site-header {
        padding: 1rem;
    }

    main {
        width: min(100% - 1rem, 1180px);
        padding-top: 1rem;
    }

    .hero-section,
    .content-section {
        border-radius: 22px;
    }

    .social-list,
    .skills-list {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .site-nav {
        gap: 0.45rem;
    }

    .site-nav a,
    .cta-button,
    .social-list li a,
    .skills-list li {
        width: 100%;
        justify-content: center;
    }

    .projetos-lista,
    .single-project {
        grid-template-columns: 1fr;
    }
}
