@charset "UTF-8";

:root {
    --bg: #03030b;
    --bg-alt: #0b0b20;
    --surface: rgba(255, 255, 255, 0.06);
    --text: #f4f7ff;
    --text-muted: #a3acc5;
    --accent: #6a8bff;
    --accent-strong: #7af9ff;
    --danger: #ff4d6d;
    --border: rgba(255, 255, 255, 0.1);
    --gradient: radial-gradient(circle at 20% 20%, rgba(122, 249, 255, 0.2), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(106, 139, 255, 0.35), transparent 55%),
        linear-gradient(135deg, #05050f, #060422, #040312);
    --radius: 22px;
    --shadow: 0 30px 80px rgba(13, 15, 35, 0.65);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gradient);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.noise-overlay {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Crect width='200' height='200' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
    mix-blend-mode: soft-light;
    z-index: 1;
}

.shell {
    width: min(1200px, 92vw);
    margin-inline: auto;
}

main {
    position: relative;
    z-index: 2;
    /* padding-block: 4rem 6rem; */
}

/* Header ---------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: rgba(3, 3, 12, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.site-header .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1.2rem;
}

.brand {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.brand__logo {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #05050b;
    font-weight: 700;
    font-size: 1.1rem;
}

.brand__name {
    font-weight: 600;
    letter-spacing: 0.04em;
}

.brand__role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav__links a {
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s, opacity 0.2s;
}

.nav__links a:hover {
    color: var(--accent);
}

.nav__toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.nav__toggle span {
    width: 18px;
    height: 2px;
    background: var(--text);
    display: block;
    transition: transform 0.3s;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn.primary {
    background: linear-gradient(120deg, var(--accent), var(--accent-strong));
    color: #05050b;
    box-shadow: 0 25px 45px rgba(106, 139, 255, 0.35);
}

.btn.primary:hover {
    transform: translateY(-2px) scale(1.01);
}

.btn.ghost {
    border-color: var(--border);
    color: var(--text);
    background: rgba(255, 255, 255, 0.02);
}

.btn.ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Hero ------------------------------------------------------------------- */

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(2rem, 4vw, 4.5rem);
    align-items: center;
    padding-top: 0.8rem;
    scroll-margin-top: 110px;
}

.hero__content h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.1;
    margin-block: 1.5rem;
}

.hero__content h1 span {
    color: var(--accent-strong);
}

.hero__lead {
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2rem;
}

.pill {
    display: inline-flex;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
    color: var(--accent-strong);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.hero__metrics div {
    padding: 1.2rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
}

.hero__metrics p {
    font-size: 2rem;
    font-weight: 600;
}

.hero__metrics span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.hero__visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    position: relative;
    top: -20px;
}

.glass-card {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    width: min(360px, 80vw);
    box-shadow: var(--shadow);
}

.glass-card img {
    border-radius: 24px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.glass-card .glow {
    position: absolute;
    inset: 20px;
    border-radius: 1rem;
    border: 1px solid rgba(122, 249, 255, 0.35);
    pointer-events: none;
}

.hero__tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.hero__tags li {
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Sections --------------------------------------------------------------- */

.section {
    margin-top: clamp(4rem, 8vw, 6.5rem);
    scroll-margin-top: 110px;
}

.section__header {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent);
    font-size: 0.85rem;
}

.section__header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
}

.section__header p {
    color: var(--text-muted);
}

/* About cards */
.about__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.about-card {
    padding: 1.8rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 20px 45px rgba(4, 4, 15, 0.35);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(106, 139, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.about-card:hover::after {
    opacity: 1;
}

.about-card i {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-strong);
}

.about-card h3 {
    margin-bottom: 0.6rem;
}

.about-card p {
    color: var(--text-muted);
}

/* Skills */
.skills__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
    display: flex;
    align-items: center;
    /* justify-content: center; */
}

.skill-panel {
    padding: 1.6rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    position: relative;

}

.skill-panel--core {
    border-color: rgba(122, 249, 255, 0.5);
    background: rgba(122, 249, 255, 0.08);
    box-shadow: 0 25px 55px rgba(106, 139, 255, 0.25);
    padding: 2rem;
    width: 40%;
    margin-right: 50px;
}

.skill-panel--core h3 {
    font-size: 1.5rem;
}

.skill-panel--core li {
    font-size: 1.05rem;
}

.skill-panel--secondary {
    width: 30%;
}

.skill-panel header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.skill-panel .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-strong);
}

.skill-panel ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skill-panel li {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-muted);
}

@media (min-width: 900px) {
    .skills__grid {
        grid-template-columns: repeat(3, minmax(240px, 1fr));
        grid-auto-rows: 1fr;
    }

    .skill-panel--core {
        grid-column: 1 / -1;
    }

    .skill-panel--secondary {
        margin-top: 0.75rem;
    }
}

.skill-panel--core.in-view {
    transform: translateY(0) scale(1.05) !important;
}

/* Projects --------------------------------------------------------------- */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.project-card__media {
    position: relative;
    /* padding: 1.2rem; */
    background: linear-gradient(135deg, rgba(106, 139, 255, 0.2), rgba(122, 249, 255, 0.15));
}

.project-card__media img {
    /* border-radius: 18px; */
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.project-card .badge {
    position: absolute;
    top: 1.4rem;
    right: 1.4rem;
    padding: 0.4rem 0.9rem;
    background: rgba(5, 5, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.project-card__body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.project-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
}

.project-card__meta .links {
    display: flex;
    gap: 0.6rem;
}

.project-card__meta a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: grid;
    place-items: center;
    color: var(--text);
}

.project-card__meta a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.project-card h3 {
    font-size: 1.4rem;
    line-height: 1.3;
}

.project-card p {
    color: var(--text-muted);
    flex: 1;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chips span {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Contact --------------------------------------------------------------- */
.contact-section {
    margin-bottom: 4rem;
}

.contact__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.in-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.contact__info {
    padding: 1.8rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__info .label {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.contact__info a {
    color: var(--accent-strong);
    font-weight: 600;
}

.contact__form {
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form__group label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form__group input,
.form__group textarea {
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(5, 5, 15, 0.7);
    color: var(--text);
    font-family: inherit;
}

.form__group input:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(106, 139, 255, 0.25);
}

#submit-btn .btn-loading {
    display: none;
    gap: 0.4rem;
}

#submit-btn.loading .btn-text {
    display: none;
}

#submit-btn.loading .btn-loading {
    display: inline-flex;
}

/* Footer ---------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-block: 1.5rem 2.5rem;
    background: rgba(3, 3, 12, 0.8);
}

.footer__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.footer__grid p {
    color: var(--text-muted);
}

.footer__social {
    display: flex;
    gap: 0.75rem;
}

.footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: grid;
    place-items: center;
    color: var(--text);
}

.footer__social a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.footer__social-link--email:hover {
    border-color: #fbbc05;
    color: #fbbc05;
}

.footer__social-link--linkedin:hover {
    border-color: #0a66c2;
    color: #0a66c2;
}

.footer__social-link--github:hover {
    border-color: #f5f5f5;
    color: #f5f5f5;
}

.footer__social-link--whatsapp:hover {
    border-color: #25d366;
    color: #25d366;
}

/* Media Queries --------------------------------------------------------- */
@media (max-width: 900px) {
    .section__header {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 3rem;
    }

    .hero__metrics {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .site-nav {
        gap: 1rem;
    }

    .nav__links {
        position: fixed;
        top: 78px;
        right: 2rem;
        flex-direction: column;
        background: rgba(3, 3, 12, 0.95);
        padding: 1.5rem;
        border-radius: 18px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: var(--shadow);
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s;
    }

    .nav__links.open {
        opacity: 1;
        pointer-events: all;
    }

    .nav__toggle {
        display: inline-flex;
    }
}

@media (max-width: 600px) {
    .hero__actions {
        flex-direction: column;
    }

    .glass-card {
        width: 100%;
    }

    .contact__form,
    .contact__info {
        padding: 1.3rem;
    }

    .skills__grid {
        display: flex;
        flex-direction: column;
    }

    .skill-panel {
        width: 100%;
    }

    .skill-panel--core {
        position: relative;
        left: 8%;
        width: 95%;
        height: 95%;
    }
}
