:root {
    color-scheme: dark;
    --bg: #06101d;
    --bg-soft: #091528;
    --panel: rgba(13, 26, 47, 0.62);
    --panel-strong: rgba(15, 30, 54, 0.8);
    --panel-light: rgba(255, 255, 255, 0.08);
    --text-main: #eef5ff;
    --text-muted: #97a9c2;
    --text-soft: #74849b;
    --stroke: rgba(255, 255, 255, 0.13);
    --stroke-strong: rgba(126, 249, 255, 0.22);
    --primary: #7ef9ff;
    --primary-strong: #3cd4ff;
    --secondary: #ffc96b;
    --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.34);
    --shadow-md: 0 18px 45px rgba(0, 0, 0, 0.24);
    --hero-overlay: linear-gradient(135deg, rgba(4, 11, 22, 0.88), rgba(7, 17, 34, 0.7));
    --hero-surface-start: rgba(8, 19, 38, 0.94);
    --hero-surface-end: rgba(9, 22, 42, 0.8);
    --hero-accent-wash: rgba(126, 249, 255, 0.08);
    --hero-bottom-glow: rgba(255, 255, 255, 0.02);
    --portrait-overlay-end: rgba(4, 17, 27, 0.14);
    --container: 1180px;
    --nav-bg: rgba(8, 16, 31, 0.7);
}

body.light-mode {
    color-scheme: light;
    --bg: #edf4ff;
    --bg-soft: #f7faff;
    --panel: rgba(255, 255, 255, 0.64);
    --panel-strong: rgba(255, 255, 255, 0.82);
    --panel-light: rgba(0, 103, 139, 0.06);
    --text-main: #081321;
    --text-muted: #4f647e;
    --text-soft: #73849a;
    --stroke: rgba(8, 19, 33, 0.12);
    --stroke-strong: rgba(0, 140, 181, 0.18);
    --primary: #0098bf;
    --primary-strong: #006d9a;
    --secondary: #b57a00;
    --shadow-lg: 0 26px 70px rgba(76, 95, 122, 0.16);
    --shadow-md: 0 18px 45px rgba(76, 95, 122, 0.12);
    --hero-overlay: linear-gradient(135deg, rgba(239, 246, 255, 0.86), rgba(233, 242, 255, 0.58));
    --hero-surface-start: rgba(255, 255, 255, 0.92);
    --hero-surface-end: rgba(234, 243, 255, 0.8);
    --hero-accent-wash: rgba(0, 152, 191, 0.08);
    --hero-bottom-glow: rgba(255, 255, 255, 0.18);
    --portrait-overlay-end: rgba(255, 255, 255, 0.08);
    --nav-bg: rgba(244, 249, 255, 0.72);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--bg-soft), var(--bg));
    color: var(--text-main);
    font-family: "Manrope", sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
    transition: background 0.35s ease, color 0.35s ease;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 1400;
}

.cursor-glow {
    position: fixed;
    left: 0;
    top: 0;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(126, 249, 255, 0.18), transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.cursor-glow.is-hidden {
    opacity: 0;
}

.section-shell,
.nav-shell {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.glass-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
        var(--panel);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1200;
    padding: 1rem 0;
    transition: padding 0.3s ease;
}

.site-nav.scrolled {
    padding: 0.75rem 0;
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.9rem 1.15rem;
    border-radius: 24px;
    border: 1px solid transparent;
    background: transparent;
    box-shadow: none;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.site-nav.scrolled .nav-shell {
    background: var(--nav-bg);
    border-color: var(--stroke);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
}

.brand-mark {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-family: "Sora", sans-serif;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, rgba(126, 249, 255, 0.22), rgba(255, 201, 107, 0.2));
    border: 1px solid var(--stroke-strong);
    color: var(--text-main);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong,
h1,
h2,
h3 {
    font-family: "Sora", sans-serif;
}

.brand-copy strong {
    font-size: 0.98rem;
}

.brand-copy small {
    color: var(--text-soft);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    position: relative;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    transition: color 0.25s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: transform 0.28s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-btn,
.mobile-menu-btn {
    width: 2.9rem;
    height: 2.9rem;
    border: 1px solid var(--stroke);
    border-radius: 18px;
    background: var(--panel-light);
    color: var(--text-main);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.theme-btn:hover,
.mobile-menu-btn:hover {
    transform: translateY(-2px);
    border-color: var(--stroke-strong);
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
}

main {
    position: relative;
    z-index: 1;
    padding-bottom: 5rem;
}

.hero,
.content-section {
    scroll-margin-top: 8rem;
}

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: center;
    gap: 2rem;
    padding-top: 8.5rem;
    padding-bottom: 3rem;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 6rem 0 0;
    border-radius: 36px;
    background:
        linear-gradient(145deg, var(--hero-surface-start), var(--hero-surface-end)),
        var(--hero-overlay);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow-lg);
    z-index: -2;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 6rem 0 0;
    border-radius: 36px;
    background:
        linear-gradient(120deg, var(--hero-accent-wash), transparent 30%),
        linear-gradient(180deg, transparent 45%, var(--hero-bottom-glow));
    z-index: -1;
}

.hero-copy {
    max-width: 38rem;
    padding: 2rem 0 2rem 2.25rem;
}

.hero-badge,
.contact-availability {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--stroke);
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 700;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.pulse-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 0 rgba(126, 249, 255, 0.5);
    animation: pulse 2.2s infinite;
}

.section-kicker {
    margin-top: 1.35rem;
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 10ch;
    margin-top: 1rem;
    font-size: clamp(3rem, 5.6vw, 5rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero h1 span {
    display: block;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    max-width: 34rem;
    margin-top: 1.35rem;
    color: var(--text-muted);
    font-size: 1.03rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.8rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.5rem;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    color: #04111b;
    background: linear-gradient(135deg, var(--primary), #c7fbff);
    box-shadow: 0 16px 30px rgba(126, 249, 255, 0.24);
}

.btn-primary:hover {
    box-shadow: 0 24px 40px rgba(126, 249, 255, 0.3);
}

.btn-secondary {
    color: var(--text-main);
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.06);
}

.btn-secondary:hover {
    border-color: var(--stroke-strong);
    background: rgba(255, 255, 255, 0.1);
}

.btn-whatsapp {
    color: #ffffff;
    background: linear-gradient(135deg, #27d366, #18a94f);
    box-shadow: 0 16px 30px rgba(39, 211, 102, 0.24);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.hero-trust span,
.skill-pills span,
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.58rem 0.92rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-showcase {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 1rem 1rem 0;
}

.portrait-card {
    position: relative;
    width: min(100%, 25rem);
    padding: 0.95rem;
    border-radius: 30px;
    overflow: hidden;
}

.portrait-glow {
    position: absolute;
    inset: auto 14% 1.5rem;
    height: 7rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(126, 249, 255, 0.18), transparent 72%);
    filter: blur(20px);
    z-index: 0;
}

.portrait-frame {
    position: relative;
    min-height: 27rem;
    border-radius: 24px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
        linear-gradient(160deg, rgba(126, 249, 255, 0.09), rgba(255, 201, 107, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.portrait-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 14%, rgba(126, 249, 255, 0.08), transparent 40%),
        linear-gradient(180deg, transparent 45%, var(--portrait-overlay-end));
    pointer-events: none;
}

.portrait-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 30px 35px rgba(0, 0, 0, 0.32));
}

.portrait-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0.35rem 0.15rem;
}

.portrait-role {
    display: inline-block;
    margin-bottom: 0.3rem;
    color: var(--secondary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.portrait-footer h2 {
    font-size: 1.35rem;
}

.portrait-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-size: 0.78rem;
    font-weight: 800;
}

.floating-card {
    display: none;
}

.floating-card i {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(126, 249, 255, 0.12);
    color: var(--primary);
    flex-shrink: 0;
}

.floating-card strong {
    display: block;
    font-size: 0.9rem;
}

.floating-card span {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.floating-card-top {
    top: 4rem;
    left: -0.5rem;
}

.floating-card-bottom {
    right: -0.25rem;
    bottom: 3rem;
    animation-delay: -2.75s;
}

.impact-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

.impact-card {
    padding: 1.25rem;
    border-radius: 24px;
}

.impact-card i,
.skill-cluster-head i,
.summary-point i {
    width: 3rem;
    height: 3rem;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    background: rgba(126, 249, 255, 0.12);
    color: var(--primary);
    font-size: 1.1rem;
}

.impact-card strong {
    display: block;
    font-family: "Sora", sans-serif;
    margin-bottom: 0.45rem;
}

.impact-card p,
.section-heading p,
.project-card p,
.timeline-item p,
.summary-point p,
.contact-copy p,
.footer-text {
    color: var(--text-muted);
}

.content-section {
    padding-top: 7rem;
}

.section-heading {
    max-width: 46rem;
    margin-bottom: 2.25rem;
}

.section-heading h2 {
    margin: 0.65rem 0 0.8rem;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    counter-reset: project-count;
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 18.8rem;
    padding: 1.5rem;
    border-radius: 28px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
        var(--panel);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    counter-increment: project-count;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(126, 249, 255, 0.12), transparent 35%),
        linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.05), transparent 72%);
    opacity: 0.8;
    transition: transform 0.4s ease;
}

.project-card::after {
    content: counter(project-count, decimal-leading-zero);
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-family: "Sora", sans-serif;
    font-size: 0.86rem;
    color: var(--text-muted);
    opacity: 0.35;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--stroke-strong);
    box-shadow: var(--shadow-lg);
}

.project-card:hover::before {
    transform: scale(1.03);
}

.project-card h3 {
    position: relative;
    z-index: 1;
    margin: 1rem 0 0.75rem;
    font-size: 1.35rem;
}

.project-card p {
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    flex-grow: 1;
}

.project-tags {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.tag {
    padding: 0.45rem 0.8rem;
    font-size: 0.74rem;
    color: var(--primary);
}

.project-links {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.35rem;
}

.project-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.72rem 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.84rem;
    font-weight: 800;
    transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.project-links a:hover {
    transform: translateY(-2px);
    color: var(--primary);
    border-color: var(--stroke-strong);
}

.experience-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 1.25rem;
    align-items: start;
}

.timeline,
.experience-summary,
.skill-cluster,
.contact-panel {
    border-radius: 30px;
}

.timeline {
    padding: 1.8rem;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
}

.timeline-item:not(:last-child) {
    padding-bottom: 1.8rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    margin-left: 0.45rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -0.1rem;
    top: 0.25rem;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 0 24px rgba(126, 249, 255, 0.35);
}

.timeline-date {
    color: var(--secondary);
    font-size: 0.83rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.timeline-title {
    margin-top: 0.4rem;
    font-family: "Sora", sans-serif;
    font-size: 1.25rem;
}

.timeline-company {
    margin-bottom: 0.45rem;
    color: var(--text-soft);
    font-weight: 700;
}

.experience-summary {
    padding: 1.6rem;
}

.summary-label {
    color: var(--secondary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.experience-summary h3 {
    margin: 0.9rem 0 1.2rem;
    font-size: 1.65rem;
    line-height: 1.15;
}

.summary-points {
    display: grid;
    gap: 1rem;
}

.summary-point {
    display: flex;
    gap: 0.95rem;
    align-items: flex-start;
}

.summary-point i {
    margin-bottom: 0;
    flex-shrink: 0;
}

.summary-point strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.96rem;
}

.skills-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.skill-cluster {
    padding: 1.5rem;
}

.skill-cluster-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.skill-cluster-head i {
    margin-bottom: 0;
    flex-shrink: 0;
}

.skill-cluster-head span {
    display: block;
    color: var(--secondary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.skill-cluster-head h3 {
    margin-top: 0.35rem;
    font-size: 1.25rem;
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 1.25rem;
    padding: 1.45rem;
}

.contact-copy,
.contact-actions-box {
    padding: 1.25rem;
    border-radius: 24px;
}

.contact-copy h2 {
    margin: 0.7rem 0 0.9rem;
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.08;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-info-item {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.04);
}

.contact-info-item i {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(126, 249, 255, 0.12);
    color: var(--primary);
    flex-shrink: 0;
}

.contact-info-item span {
    display: block;
    color: var(--text-soft);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-info-item strong {
    font-size: 0.95rem;
}

.contact-actions-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--stroke);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.35rem;
}

.footer-text {
    margin-top: 1.25rem;
    font-size: 0.9rem;
}

.floating-actions {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 1250;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.floating-action {
    width: 3.6rem;
    height: 3.6rem;
    border: 1px solid var(--stroke);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    transition: transform 0.25s ease, opacity 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.floating-action:hover {
    transform: translateY(-4px);
    border-color: var(--stroke-strong);
}

.floating-action i {
    font-size: 1.2rem;
}

.floating-action-whatsapp {
    background: linear-gradient(135deg, #2ce27b, #179b49);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 35px rgba(39, 211, 102, 0.3);
}

.floating-action-up {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
        var(--panel-strong);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
}

.floating-action-up.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.reveal-target {
    opacity: 0;
    transform: translateY(36px) scale(0.985);
    transition:
        opacity 0.72s ease,
        transform 0.72s ease;
    transition-delay: var(--reveal-delay, 0s);
}

.reveal-target.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(126, 249, 255, 0.5);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(126, 249, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(126, 249, 255, 0);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 1080px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 4rem;
    }

    .hero::before,
    .hero::after {
        inset: 5.5rem 0 0;
    }

    .hero-copy,
    .hero-showcase {
        padding: 1.5rem;
    }

    .hero h1 {
        max-width: 12ch;
    }

    .hero-showcase {
        padding-top: 0;
    }

    .floating-card-top {
        left: 0.4rem;
    }

    .floating-card-bottom {
        right: 0.4rem;
    }

    .impact-strip,
    .skills-layout,
    .contact-panel,
    .experience-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-panel {
        gap: 1rem;
    }
}

@media (max-width: 860px) {
    .section-shell,
    .nav-shell {
        width: min(var(--container), calc(100% - 1.25rem));
    }

    .site-nav {
        padding: 0.8rem 0;
    }

    .nav-shell {
        padding: 0.8rem 0.9rem;
        gap: 0.8rem;
    }

    .nav-links {
        position: fixed;
        top: 5rem;
        left: 50%;
        transform: translateX(-50%) translateY(-12px);
        width: min(94vw, 420px);
        max-height: calc(100svh - 6rem);
        overflow-y: auto;
        padding: 1rem;
        border-radius: 24px;
        background: var(--nav-bg);
        border: 1px solid var(--stroke);
        box-shadow: var(--shadow-md);
        display: flex;
        flex-direction: column;
        gap: 1rem;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
        backdrop-filter: blur(18px) saturate(150%);
        -webkit-backdrop-filter: blur(18px) saturate(150%);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

    .mobile-menu-btn {
        display: grid;
    }

    .hero {
        min-height: auto;
        gap: 1.4rem;
        padding-top: 7rem;
        padding-bottom: 2rem;
    }

    .hero::before,
    .hero::after {
        inset: 4.9rem 0 0;
    }

    .hero-copy,
    .hero-showcase {
        padding: 1.15rem;
    }

    .hero-copy,
    .section-heading,
    .contact-copy {
        text-align: center;
    }

    .hero-badge,
    .contact-availability {
        justify-content: center;
    }

    .hero-cta,
    .hero-trust,
    .contact-actions {
        justify-content: center;
    }

    .hero h1 {
        max-width: none;
        font-size: clamp(2.8rem, 9vw, 4.3rem);
    }

    .hero-lead {
        max-width: 100%;
        font-size: 1rem;
    }

    .impact-strip,
    .skills-layout,
    .contact-panel,
    .experience-layout,
    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .hero-showcase {
        flex-direction: column;
        align-items: center;
        gap: 0.9rem;
        padding-top: 0;
    }

    .portrait-card {
        width: min(100%, 32rem);
    }

    .portrait-frame {
        min-height: 27rem;
    }

    .impact-strip {
        margin-top: 1rem;
    }

    .section-heading {
        margin-inline: auto;
    }

    .project-links {
        flex-direction: column;
    }

    .project-links a {
        justify-content: center;
    }

    .experience-summary h3,
    .contact-copy h2 {
        max-width: 18ch;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-info-item {
        text-align: left;
    }

}

@media (max-width: 640px) {
    .section-shell,
    .nav-shell {
        width: min(var(--container), calc(100% - 0.85rem));
    }

    .brand-copy small {
        display: none;
    }

    .brand-copy strong {
        font-size: 0.9rem;
    }

    .brand-mark,
    .theme-btn,
    .mobile-menu-btn {
        width: 2.6rem;
        height: 2.6rem;
        border-radius: 16px;
    }

    .hero {
        padding-top: 6.7rem;
    }

    .hero::before,
    .hero::after {
        inset: 4.55rem 0 0;
        border-radius: 24px;
    }

    .hero-copy,
    .hero-showcase {
        padding: 0.85rem;
    }

    .hero-badge,
    .contact-availability {
        width: 100%;
        font-size: 0.8rem;
        padding: 0.72rem 0.9rem;
    }

    .section-kicker {
        margin-top: 1rem;
        font-size: 0.72rem;
        letter-spacing: 0.22em;
    }

    .hero h1 {
        max-width: none;
        font-size: clamp(2.3rem, 11vw, 3.5rem);
    }

    .hero-lead {
        font-size: 0.95rem;
    }

    .hero-trust {
        gap: 0.65rem;
    }

    .hero-trust span,
    .skill-pills span,
    .tag {
        width: 100%;
        justify-content: center;
        padding-inline: 0.8rem;
    }

    .hero-cta,
    .contact-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .portrait-card {
        width: 100%;
        padding: 0.85rem;
        border-radius: 26px;
    }

    .portrait-frame {
        min-height: 20.5rem;
        border-radius: 22px;
    }

    .portrait-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.95rem 0.2rem 0.1rem;
    }

    .portrait-footer h2 {
        font-size: 1.25rem;
    }

    .portrait-chip {
        width: 100%;
        justify-content: center;
    }

    .project-card {
        min-height: auto;
        padding: 2.5rem 1.15rem 1.15rem;
        border-radius: 22px;
    }

    .project-card::after {
        top: 1rem;
        right: 1.2rem;
        font-size: 0.8rem;
        opacity: 0.3;
    }

    .project-card h3 {
        font-size: 1.2rem;
    }

    .project-links a {
        width: 100%;
    }

    .timeline,
    .experience-summary,
    .skill-cluster,
    .contact-panel {
        border-radius: 24px;
    }

    .timeline,
    .experience-summary,
    .skill-cluster,
    .contact-panel,
    .contact-copy,
    .contact-actions-box {
        padding: 1rem;
    }

    .timeline-item {
        padding-left: 1.45rem;
    }

    .timeline-title {
        font-size: 1.1rem;
    }

    .summary-point {
        gap: 0.75rem;
    }

    .summary-point i,
    .impact-card i,
    .skill-cluster-head i {
        width: 2.7rem;
        height: 2.7rem;
        border-radius: 16px;
    }

    .impact-card,
    .skill-cluster {
        padding: 1.1rem;
        border-radius: 22px;
    }

    .skill-cluster-head {
        gap: 0.8rem;
    }

    .contact-copy h2 {
        font-size: clamp(1.75rem, 9vw, 2.3rem);
    }

    .contact-info-grid {
        gap: 0.75rem;
    }

    .contact-info-item {
        align-items: flex-start;
        padding: 0.9rem;
        border-radius: 18px;
    }

    .contact-info-item strong {
        font-size: 0.9rem;
    }

    .footer-text {
        font-size: 0.82rem;
    }

    .floating-actions {
        right: 0.85rem;
        bottom: 0.85rem;
        gap: 0.6rem;
    }

    .floating-action {
        width: 3.2rem;
        height: 3.2rem;
        border-radius: 18px;
    }
}

@media (max-width: 420px) {
    .hero {
        padding-top: 6.45rem;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .portrait-frame {
        min-height: 18.5rem;
    }

    .project-links a,
    .contact-info-item,
    .floating-card {
        font-size: 0.85rem;
    }

    .nav-links {
        top: 4.7rem;
        width: calc(100vw - 0.85rem);
    }

    .floating-actions {
        right: 0.7rem;
        bottom: 0.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
