:root {
    --ink: #111827;
    --muted: #5b6472;
    --line: #dfe4ea;
    --paper: #f7f4ee;
    --surface: #ffffff;
    --night: #0e1117;
    --night-soft: #171c26;
    --teal: #0f766e;
    --coral: #f9735b;
    --gold: #d99a2b;
    --blue: #2563eb;
    --radius: 22px;
    --shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
    --mono: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 0%, rgba(15, 118, 110, 0.13), transparent 30rem),
        radial-gradient(circle at 90% 10%, rgba(249, 115, 91, 0.12), transparent 28rem),
        var(--paper);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

.site-header {
    position: fixed;
    top: 16px;
    left: 50%;
    z-index: 50;
    width: min(calc(100% - 32px), 1120px);
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    background: rgba(247, 244, 238, 0.72);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 40px rgba(17, 24, 39, 0.08);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 50px rgba(17, 24, 39, 0.12);
}

.brand,
.site-nav {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    padding-left: 4px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    font-family: var(--mono);
    font-size: 0.85rem;
}

.site-nav {
    gap: 4px;
}

.site-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--ink);
    background: rgba(17, 24, 39, 0.07);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
}

.hero,
.section,
.contact-section {
    width: min(100% - 40px, 1120px);
    margin: 0 auto;
}

.hero {
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 54px;
    align-items: center;
    padding: 128px 0 72px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--teal);
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 820px;
    margin-bottom: 18px;
    font-size: clamp(3.8rem, 8.4vw, 7.1rem);
    line-height: 0.9;
    letter-spacing: -0.035em;
}

h1 span {
    display: block;
}

h1 span + span {
    margin-top: 0.08em;
}

h2 {
    max-width: 780px;
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

h3 {
    margin-bottom: 10px;
    font-size: clamp(1.45rem, 2.4vw, 2.4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.hero-text {
    max-width: 650px;
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.hero-role {
    display: inline-flex;
    align-items: center;
    margin-bottom: 24px;
    border: 1px solid rgba(15, 118, 110, 0.22);
    border-radius: 999px;
    padding: 12px 18px;
    color: var(--teal);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 40px rgba(15, 118, 110, 0.12);
    font-family: var(--mono);
    font-size: clamp(1rem, 2vw, 1.42rem);
    font-weight: 800;
    line-height: 1.3;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 20px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #fff;
    background: var(--ink);
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.18);
}

.btn-secondary {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(17, 24, 39, 0.1);
}

.btn-whatsapp {
    color: #fff;
    background: #25d366;
    box-shadow: 0 16px 36px rgba(37, 211, 102, 0.24);
}

.btn-whatsapp:hover {
    background: #1ebe5d;
}

.btn-linkedin {
    color: #fff;
    background: #0a66c2;
    box-shadow: 0 16px 36px rgba(10, 102, 194, 0.24);
}

.btn-linkedin:hover {
    background: #084f96;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
}

.metrics div,
.project,
.skill-groups div,
.contact-panel,
.profile-card {
    border: 1px solid rgba(17, 24, 39, 0.09);
    background: rgba(255, 255, 255, 0.68);
    box-shadow: var(--shadow);
}

.metrics div {
    padding: 18px;
    border-radius: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.metrics strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.45rem;
}

.metrics span {
    color: var(--muted);
    font-size: 0.88rem;
}

.hero-visual {
    min-width: 0;
}

.portrait-wrap {
    width: min(100%, 380px);
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 32px;
    background: #fff;
}

.portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.profile-card {
    display: grid;
    gap: 24px;
    justify-items: center;
    border-radius: 36px;
    padding: clamp(20px, 3vw, 32px);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.62)),
        radial-gradient(circle at top left, rgba(249, 115, 91, 0.16), transparent 18rem);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.profile-info {
    width: 100%;
}

.profile-info h2 {
    margin: 18px 0 0;
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    line-height: 1.05;
}

.phone-frame,
.ipad-frame {
    overflow: hidden;
    background: #05070a;
    box-shadow: 0 28px 70px rgba(14, 17, 23, 0.32);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.phone-frame {
    width: 214px;
    aspect-ratio: 9 / 19;
    border: 7px solid #10131a;
    border-radius: 34px;
}

.phone-frame img,
.ipad-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease, filter 0.32s ease;
}

.phone-frame:hover,
.ipad-frame:hover {
    transform: translateY(-10px) scale(1.035);
    border-color: #253046;
    box-shadow: 0 36px 90px rgba(14, 17, 23, 0.42);
}

.phone-offset:hover {
    transform: translateY(24px) scale(1.035);
}

.ipad-offset:hover {
    transform: translateY(18px) scale(1.035);
}

.phone-frame:hover img,
.ipad-frame:hover img {
    transform: scale(1.045);
    filter: saturate(1.08) contrast(1.03);
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    border-radius: 999px;
    padding: 9px 13px;
    color: #0f5132;
    background: rgba(34, 197, 94, 0.13);
    font-weight: 800;
    font-size: 0.9rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.14);
}

.trusted-strip {
    display: flex;
    width: 100%;
    gap: 10px;
    justify-content: center;
    overflow: hidden;
    padding: 18px 20px;
    color: rgba(255, 255, 255, 0.75);
    background: var(--night);
}

.trusted-strip span {
    white-space: nowrap;
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.08);
    font-family: var(--mono);
    font-size: 0.82rem;
    transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.trusted-strip span:hover {
    color: #fff;
    background: rgba(37, 99, 235, 0.42);
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.section {
    padding: 96px 0;
}

.section-heading {
    margin-bottom: 38px;
}

.project-list {
    display: grid;
    gap: 22px;
}

.project {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 32px;
    align-items: center;
    min-height: 430px;
    border-radius: var(--radius);
    padding: clamp(22px, 4vw, 44px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project:hover,
.profile-card:hover,
.metrics div:hover,
.skill-groups div:hover,
.contact-details a:hover {
    transform: translateY(-6px);
    border-color: rgba(15, 118, 110, 0.28);
    box-shadow: 0 30px 80px rgba(17, 24, 39, 0.18);
}

.feature-project {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.88), rgba(17, 24, 39, 0.96)),
        var(--night);
}

.feature-project p,
.feature-project .project-meta,
.feature-project .project-index {
    color: rgba(255, 255, 255, 0.72);
}

.project-copy {
    position: relative;
    z-index: 2;
}

.project-index {
    display: inline-block;
    margin-bottom: 26px;
    color: var(--coral);
    font-family: var(--mono);
    font-weight: 800;
}

.project-meta {
    margin-bottom: 18px;
    color: var(--teal);
    font-family: var(--mono);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.app-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    border-radius: 999px;
    padding: 0 16px;
    color: #fff;
    background: var(--ink);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.18);
    transition: transform 0.2s ease, background 0.2s ease;
}

.app-link::after {
    content: "->";
    margin-left: 10px;
    font-family: var(--mono);
}

.app-link:hover {
    transform: translateY(-2px);
    background: var(--teal);
}

.feature-project .app-link {
    color: var(--ink);
    background: #fff;
}

.feature-project .app-link:hover {
    background: #dff7f2;
}

.device-pair,
.ipad-pair {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.device-pair {
    gap: clamp(10px, 2vw, 22px);
}

.device-pair.compact .phone-frame {
    width: 185px;
}

.phone-offset {
    transform: translateY(34px);
}

.ipad-pair {
    gap: 14px;
}

.ipad-frame {
    width: 300px;
    aspect-ratio: 4 / 5;
    border: 10px solid #10131a;
    border-radius: 26px;
}

.ipad-offset {
    transform: translateY(28px);
}

.split-section {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 44px;
}

.timeline {
    display: grid;
    gap: 14px;
}

.timeline article {
    border-left: 3px solid var(--teal);
    padding: 4px 0 20px 22px;
}

.timeline span {
    color: var(--coral);
    font-family: var(--mono);
    font-size: 0.82rem;
    font-weight: 800;
}

.timeline h3 {
    margin: 8px 0;
    font-size: 1.2rem;
}

.skills-section {
    color: #fff;
    width: 100%;
    max-width: none;
    padding: 96px max(20px, calc((100vw - 1120px) / 2));
    background:
        radial-gradient(circle at 18% 18%, rgba(249, 115, 91, 0.18), transparent 28rem),
        radial-gradient(circle at 82% 28%, rgba(37, 99, 235, 0.18), transparent 28rem),
        var(--night);
}

.skills-section p,
.skills-section .eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.skill-groups {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.skill-groups div {
    min-height: 210px;
    border-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 24px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.skill-groups div:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
}

.skill-groups h3 {
    font-size: 1.15rem;
}

.skill-groups p {
    margin-bottom: 0;
}

.contact-section {
    padding: 96px 0;
}

.contact-panel {
    border-radius: 32px;
    padding: clamp(28px, 6vw, 70px);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.66));
}

.contact-panel h2 {
    max-width: 720px;
}

.contact-panel p:not(.eyebrow) {
    max-width: 620px;
    margin-top: 18px;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.contact-details a {
    min-width: 0;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 18px;
    padding: 16px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.74);
    font-weight: 800;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-details span {
    display: block;
    margin-bottom: 6px;
    color: var(--teal);
    font-family: var(--mono);
    font-size: 0.74rem;
    text-transform: uppercase;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    width: min(100% - 40px, 1120px);
    margin: 0 auto;
    padding: 26px 0 34px;
    color: var(--muted);
    font-size: 0.92rem;
}

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

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

@media (max-width: 980px) {
    .project,
    .split-section {
        grid-template-columns: 1fr;
    }

    .hero {
        gap: 28px;
        padding-top: 116px;
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
    }

    .project {
        min-height: 0;
    }

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

    .skills-section {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .skills-section h2 {
        max-width: 680px;
        font-size: clamp(2rem, 6vw, 3.2rem);
        line-height: 1.05;
    }

    .skill-groups div {
        min-height: 0;
    }
}

@media (max-width: 720px) {
    .site-header {
        top: 10px;
        width: min(calc(100% - 20px), 1120px);
        border-radius: 26px;
        align-items: flex-start;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border-radius: 22px;
        padding: 8px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 14px 16px;
    }

    .hero,
    .section,
    .contact-section,
    .site-footer {
        width: min(100% - 28px, 1120px);
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-bottom: 48px;
    }

    .hero-visual {
        order: -1;
    }

    h1 {
        font-size: clamp(3.1rem, 16vw, 5rem);
    }

    h2 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

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

    .portrait-wrap {
        width: 96px;
        border-radius: 22px;
    }

    .profile-card {
        grid-template-columns: 96px 1fr;
        align-items: center;
        justify-items: start;
        border-radius: 24px;
        padding: 16px;
    }

    .profile-info h2 {
        font-size: 1rem;
        line-height: 1.25;
    }

    .trusted-strip {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .section {
        padding: 68px 0;
    }

    .skills-section {
        padding: 56px 18px;
    }

    .skills-section .section-heading {
        margin-bottom: 24px;
    }

    .skills-section h2 {
        font-size: clamp(2.2rem, 10vw, 3.15rem);
        line-height: 1.08;
        letter-spacing: -0.035em;
    }

    .skill-groups {
        gap: 12px;
    }

    .skill-groups div {
        border-radius: 20px;
        padding: 20px;
    }

    .skill-groups h3 {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }

    .skill-groups p {
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .project {
        padding: 22px;
        border-radius: 18px;
    }

    .device-pair.compact .phone-frame,
    .phone-frame {
        width: min(42vw, 170px);
        border-radius: 26px;
        border-width: 5px;
    }

    .ipad-frame {
        width: min(44vw, 170px);
        border-radius: 18px;
        border-width: 6px;
    }

    .phone-offset,
    .ipad-offset {
        transform: translateY(18px);
    }

    .phone-offset:hover,
    .ipad-offset:hover {
        transform: translateY(8px) scale(1.03);
    }

    .skill-groups,
    .contact-details {
        grid-template-columns: 1fr;
    }

    .skill-groups div {
        min-height: 0;
    }

    .site-footer {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
