* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #050812;
    --dark: #08111f;
    --card: rgba(12, 23, 39, 0.72);
    --glass: rgba(255, 255, 255, 0.055);
    --text: #f8fbff;
    --muted: #9aa8bd;
    --cyan: #00eaff;
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --border: rgba(255, 255, 255, 0.13);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 234, 255, 0.16), transparent 28%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.16), transparent 28%),
        radial-gradient(circle at 50% 100%, rgba(59, 130, 246, 0.14), transparent 30%),
        var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    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: 58px 58px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 75%);
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(0,234,255,.04) 50%, transparent 100%);
    animation: shine 9s linear infinite;
    pointer-events: none;
    z-index: -1;
}

a {
    color: inherit;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(5, 8, 18, 0.64);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
    z-index: 1000;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
    text-decoration: none;
}

.logo span {
    color: var(--cyan);
    text-shadow: 0 0 22px rgba(0, 234, 255, .75);
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 34px;
}

nav a {
    color: #ccd7e6;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: .3s;
}

nav a:hover {
    color: var(--cyan);
}

.header-btn {
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(0, 234, 255, .35);
    background: rgba(0, 234, 255, .08);
    color: var(--cyan);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: .3s;
}

.header-btn:hover {
    background: rgba(0, 234, 255, .15);
    box-shadow: 0 0 28px rgba(0, 234, 255, .18);
}

.hero {
    min-height: 100vh;
    padding: 135px 8% 70px;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: 74px;
}

.hero-content {
    animation: reveal .9s ease both;
}

.badge {
    width: fit-content;
    padding: 11px 17px;
    border: 1px solid rgba(0, 234, 255, .32);
    border-radius: 999px;
    background: rgba(0, 234, 255, .08);
    color: #c7fbff;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 26px;
    box-shadow: 0 0 32px rgba(0, 234, 255, .10);
}

.hero h4 {
    font-size: 23px;
    color: #dce8f7;
    margin-bottom: 10px;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(52px, 8vw, 94px);
    line-height: .9;
    letter-spacing: -4px;
    margin-bottom: 22px;
}

.hero h1 span {
    color: var(--cyan);
    text-shadow: 0 0 32px rgba(0, 234, 255, .45);
}

.hero h2 {
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.25;
    margin-bottom: 24px;
}

.hero h2 span {
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    color: transparent;
}

.description {
    max-width: 680px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 34px;
}

.buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    min-width: 158px;
    height: 54px;
    padding: 0 25px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 900;
    transition: .3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #001018;
    box-shadow: 0 0 34px rgba(0, 234, 255, .25);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 50px rgba(0, 234, 255, .40);
}

.btn-secondary {
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.06);
    color: var(--text);
}

.btn-secondary:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 234, 255, .45);
    color: var(--cyan);
}

.tech-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.tech-row span {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,.045);
    color: #cfd8e6;
    font-size: 13px;
    font-weight: 800;
}

.hero-visual {
    min-height: 580px;
    display: grid;
    place-items: center;
    position: relative;
    animation: pop .9s ease .15s both;
}

.profile-shell {
    position: relative;
    width: min(430px, 88vw);
    height: 540px;
    border-radius: 36px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0,234,255,.55), rgba(139,92,246,.15), rgba(59,130,246,.45));
    box-shadow: 0 40px 120px rgba(0,0,0,.5);
    animation: float 4.2s ease-in-out infinite;
}

.profile-card {
    width: 100%;
    height: 100%;
    padding: 28px;
    border-radius: 36px;
    background:
        linear-gradient(180deg, rgba(13, 26, 46, .92), rgba(5, 8, 18, .84));
    overflow: hidden;
    position: relative;
}

.profile-card::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(0,234,255,.15);
    filter: blur(60px);
    right: -80px;
    top: -80px;
}

.profile-image {
    position: relative;
    height: 265px;
    border-radius: 30px;
    border: 1px solid rgba(0, 234, 255, .25);
    background:
        linear-gradient(rgba(0,234,255,.09), rgba(0,0,0,.25)),
        url('background.png');
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 40px rgba(0,0,0,.28), 0 0 40px rgba(0,234,255,.12);
}

.profile-image::after {
    content: "Aperto";
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(81, 255, 0, 0.12);
    border: 1px solid rgba(43, 255, 0, 0.3);
    color: var(--cyan);
    font-size: 12px;
    font-weight: 900;
}

.profile-card h3 {
    margin-top: 24px;
    font-size: 28px;
}

.profile-card p {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.7;
}

.stats {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat {
    border: 1px solid var(--border);
    background: rgba(255,255,255,.045);
    border-radius: 18px;
    padding: 15px 8px;
    text-align: center;
}

.stat strong {
    display: block;
    color: var(--cyan);
    font-size: 22px;
}

.stat span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.orbit {
    position: absolute;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(0,234,255,.14);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.orbit::before,
.orbit::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 25px var(--cyan);
}

.orbit::before {
    width: 13px;
    height: 13px;
    top: 62px;
    left: 98px;
}

.orbit::after {
    width: 18px;
    height: 18px;
    right: 64px;
    bottom: 94px;
}

.mini-card {
    position: absolute;
    padding: 15px 18px;
    border-radius: 18px;
    background: rgba(6, 15, 29, .75);
    border: 1px solid rgba(0, 234, 255, .22);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 55px rgba(0,0,0,.35);
    font-weight: 900;
    color: #defbff;
}

.mini-card.left {
    left: -10px;
    top: 140px;
    animation: float 3.8s ease-in-out infinite;
}

.mini-card.right {
    right: -6px;
    bottom: 145px;
    animation: float 3.8s ease-in-out .7s infinite;
}

section {
    padding: 92px 8%;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    text-align: center;
    font-size: clamp(36px, 4vw, 54px);
    letter-spacing: -2px;
    margin-bottom: 14px;
}

.section-title span {
    color: var(--cyan);
}

.section-subtitle {
    text-align: center;
    max-width: 690px;
    color: var(--muted);
    line-height: 1.8;
    margin: 0 auto 46px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    position: relative;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: var(--card);
    backdrop-filter: blur(18px);
    overflow: hidden;
    transition: .35s;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,234,255,.10), transparent 45%, rgba(139,92,246,.10));
    opacity: 0;
    transition: .35s;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(0,234,255,.36);
    box-shadow: 0 28px 70px rgba(0,0,0,.35);
}

.card:hover::before {
    opacity: 1;
}

.card > * {
    position: relative;
}

.icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 19px;
    background: rgba(0, 234, 255, .10);
    border: 1px solid rgba(0, 234, 255, .18);
    color: var(--cyan);
    font-size: 27px;
    margin-bottom: 22px;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.card p {
    color: var(--muted);
    line-height: 1.75;
}

.skills-wrap {
    max-width: 1000px;
    margin: auto;
    display: grid;
    gap: 20px;
}

.skill {
    display: grid;
    grid-template-columns: 150px 1fr 55px;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.045);
}

.skill-name {
    font-weight: 900;
}

.progress {
    height: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    overflow: hidden;
}

.progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple));
    box-shadow: 0 0 20px rgba(0,234,255,.28);
}

.percent {
    color: var(--cyan);
    font-weight: 900;
    text-align: right;
}

.project-preview {
    height: 175px;
    border-radius: 24px;
    margin-bottom: 22px;
    border: 1px solid rgba(0,234,255,.16);
    background:
        radial-gradient(circle at 30% 25%, rgba(0,234,255,.30), transparent 24%),
        radial-gradient(circle at 70% 70%, rgba(139,92,246,.22), transparent 26%),
        linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    position: relative;
    overflow: hidden;
}

.project-preview::before {
    content: "";
    position: absolute;
    left: 26px;
    top: 28px;
    width: 48%;
    height: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.30);
    box-shadow: 0 32px 0 rgba(255,255,255,.12), 0 64px 0 rgba(255,255,255,.08);
}

.project-preview::after {
    content: "";
    position: absolute;
    right: 26px;
    bottom: 28px;
    width: 92px;
    height: 92px;
    border-radius: 28px;
    background: rgba(0,234,255,.18);
    box-shadow: 0 0 45px rgba(0,234,255,.20);
}

.contact-box {
    max-width: 960px;
    margin: auto;
    padding: 48px;
    border: 1px solid var(--border);
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(12, 23, 39, .88), rgba(9, 13, 26, .78));
    backdrop-filter: blur(18px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-box::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    left: -110px;
    bottom: -120px;
    border-radius: 50%;
    background: rgba(0,234,255,.12);
    filter: blur(70px);
}

.contact-box p,
.contact-box h2,
.contact-box a {
    position: relative;
}

.contact-box p {
    color: var(--muted);
    max-width: 690px;
    margin: 14px auto 30px;
    line-height: 1.8;
}

footer {
    text-align: center;
    padding: 28px 8%;
    color: var(--muted);
    border-top: 1px solid var(--border);
    background: rgba(5, 8, 18, .68);
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(36px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pop {
    from {
        opacity: 0;
        transform: scale(.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-18px);
    }
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes shine {
    from {
        transform: translateX(-70%);
    }
    to {
        transform: translateX(70%);
    }
}

@media (max-width: 1080px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .badge,
    .buttons,
    .tech-row {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    .description {
        margin-left: auto;
        margin-right: auto;
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 780px) {
    header {
        padding: 18px 5%;
    }

    nav,
    .header-btn {
        display: none;
    }

    .hero {
        padding: 120px 5% 55px;
        gap: 45px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero-visual {
        min-height: 500px;
    }

    .orbit {
        width: 340px;
        height: 340px;
    }

    .mini-card {
        display: none;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .skill {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .percent {
        text-align: left;
    }

    section {
        padding: 74px 5%;
    }

    .contact-box {
        padding: 34px 22px;
    }
}
