:root {
    --primary: #1388ff;
    --secondary: #3d66ff;
    --accent: #7a46ff;
    --cyan: #4db7ff;
    --purple: #8751ff;
    --white: #f8fbff;
    --bg-dark: #040507;
    --bg-darker: #020203;
    --bg-card: #0d1220;
    --bg-card-2: #12192b;
    --bg-hover: #182136;
    --border: #24304c;
    --text-primary: #f4f7ff;
    --text-secondary: #c2cae0;
    --text-muted: #7f8ba8;
    --gradient-1: linear-gradient(135deg, #1388ff 0%, #3d66ff 50%, #7a46ff 100%);
    --gradient-2: linear-gradient(135deg, #7a46ff 0%, #3d66ff 52%, #4db7ff 100%);
    --gradient-3: linear-gradient(135deg, rgba(19, 136, 255, 0.18) 0%, rgba(122, 70, 255, 0.22) 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.14);
    --shadow-md: 0 8px 18px rgba(0, 0, 0, 0.22);
    --shadow-lg: 0 18px 34px rgba(0, 0, 0, 0.32);
    --shadow-xl: 0 28px 64px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 30px rgba(19, 136, 255, 0.22);
    --transition: 0.24s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.16s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-primary: 'Tajawal', sans-serif;
    --font-code: 'Fira Code', monospace;
    --shell-width: min(1760px, calc(100vw - 32px));
}

[data-theme="light"] {
    --bg-dark: #f6f8ff;
    --bg-darker: #eef2ff;
    --bg-card: rgba(255, 255, 255, 0.82);
    --bg-card-2: rgba(255, 255, 255, 0.94);
    --bg-hover: #e7ecff;
    --border: #d6ddf4;
    --text-primary: #111b2d;
    --text-secondary: #42506c;
    --text-muted: #73809b;
    --shadow-md: 0 10px 24px rgba(35, 55, 110, 0.12);
    --shadow-lg: 0 22px 38px rgba(35, 55, 110, 0.16);
    --shadow-xl: 0 30px 60px rgba(35, 55, 110, 0.18);
}

[dir="rtl"] { direction: rtl; text-align: right; }
[dir="ltr"] { direction: ltr; text-align: left; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: 500;
    background:
        radial-gradient(circle at 18% 18%, rgba(19, 136, 255, 0.16), transparent 30%),
        radial-gradient(circle at 80% 12%, rgba(122, 70, 255, 0.14), transparent 26%),
        linear-gradient(180deg, #030407 0%, #050811 36%, #04060d 100%);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background var(--transition-fast), color var(--transition-fast);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body[data-theme="light"] {
    background:
        radial-gradient(circle at 18% 18%, rgba(19, 136, 255, 0.1), transparent 30%),
        radial-gradient(circle at 80% 12%, rgba(122, 70, 255, 0.09), transparent 26%),
        linear-gradient(180deg, #f9fbff 0%, #f1f5ff 36%, #eef2ff 100%);
}

body.menu-open,
body.modal-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.hero-name,
.section-title,
.timeline-title,
.project-title,
.category-title {
    font-weight: 800;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

:focus-visible {
    outline: 2px solid rgba(77, 183, 255, 0.92);
    outline-offset: 3px;
}

.nav-container,
.section-container,
.hero-container,
.footer-container {
    width: var(--shell-width);
    max-width: 1760px;
    margin: 0 auto;
}

.loader-screen {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 85%, rgba(135, 81, 255, 0.28) 0%, transparent 48%),
        radial-gradient(ellipse at 85% 15%, rgba(19, 136, 255, 0.28) 0%, transparent 48%),
        radial-gradient(circle at 50% 50%, rgba(19, 136, 255, 0.10), transparent 38%),
        linear-gradient(135deg, #03050e 0%, #070a18 50%, #040308 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
    overflow: hidden;
}

.loader-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.03) 0,
            rgba(255, 255, 255, 0.03) 1px,
            transparent 1px,
            transparent 3px
        );
    opacity: 0.14;
    pointer-events: none;
}

.loader-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    width: min(1160px, calc(100vw - 32px));
    display: grid;
    gap: 1.6rem;
    position: relative;
    z-index: 1;
}

.loader-terminal {
    background:
        linear-gradient(135deg, rgba(19, 136, 255, 0.08), rgba(122, 70, 255, 0.08)),
        rgba(7, 10, 16, 0.92);
    border: 1px solid rgba(61, 102, 255, 0.22);
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 16px 42px rgba(0, 0, 0, 0.38),
        0 0 50px rgba(19, 136, 255, 0.14);
    backdrop-filter: blur(20px);
}

.loader-terminal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(61, 102, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
}

.loader-terminal-dots {
    display: flex;
    gap: 0.45rem;
}

.loader-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: block;
}

.loader-dot-red { background: #ff5f57; }
.loader-dot-yellow { background: #ffbd2e; }
.loader-dot-green { background: #28c840; }

.loader-terminal-title,
.loader-progress-label {
    font-family: var(--font-code);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.loader-terminal-title {
    font-size: 0.74rem;
    color: rgba(242, 247, 255, 0.72);
}

.loader-terminal-body {
    padding: 1.2rem;
    display: grid;
    gap: 0.65rem;
    font-family: var(--font-code);
}

.loader-terminal-line {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    min-height: 1.35rem;
}

.loader-terminal-line.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.loader-prompt {
    color: var(--primary);
    margin-inline-end: 0.4rem;
}

.loader-command {
    color: var(--white);
}

.loader-output {
    color: rgba(220, 230, 255, 0.78);
}

.loader-output strong {
    color: var(--cyan);
}

.loader-brand-band {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.8rem, 2vw, 1.4rem);
}

.loader-word {
    font-family: var(--font-code);
    font-size: clamp(2rem, 6vw, 5.4rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.9;
    color: var(--white);
    text-shadow: 0 0 26px rgba(19, 136, 255, 0.15);
}

.loader-word-start {
    color: rgba(255, 255, 255, 0.95);
}

.loader-word-end {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loader-brand-box {
    width: clamp(6rem, 8vw, 7.4rem);
    height: clamp(6rem, 8vw, 7.4rem);
    border-radius: 2rem;
    background:
        radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.12), transparent 30%),
        linear-gradient(135deg, rgba(19, 136, 255, 0.15), rgba(122, 70, 255, 0.2)),
        rgba(8, 10, 17, 0.94);
    border: 1px solid rgba(61, 102, 255, 0.24);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.35),
        0 0 40px rgba(19, 136, 255, 0.15);
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
    transform-origin: center center;
}

.loader-brand-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent);
    pointer-events: none;
}

.loader-brand-box-inner {
    width: 76%;
    height: 76%;
    display: grid;
    place-items: center;
}

.loader-brand-image {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 18px rgba(19, 136, 255, 0.22));
}

.loader-brand-box.is-glitching {
    animation: loaderGlitchSplit 0.42s linear forwards;
}

@keyframes loaderGlitchSplit {
    0%   { filter: none; }
    15%  { filter: drop-shadow(-4px 0 0 rgba(0,255,255,0.7)) drop-shadow(4px 0 0 rgba(255,0,180,0.7)); }
    30%  { filter: drop-shadow(6px 0 0 rgba(0,255,255,0.5)) drop-shadow(-6px 0 0 rgba(255,0,180,0.5)) brightness(1.6); }
    50%  { filter: drop-shadow(-8px 0 0 rgba(0,255,255,0.8)) drop-shadow(8px 0 0 rgba(255,0,180,0.8)) brightness(2); }
    70%  { filter: drop-shadow(4px 0 0 rgba(0,255,255,0.4)) drop-shadow(-4px 0 0 rgba(255,0,180,0.4)) brightness(0.5); }
    90%  { filter: drop-shadow(-2px 0 0 rgba(0,255,255,0.9)) brightness(3); }
    100% { filter: none; }
}

.loader-progress-shell {
    width: min(460px, 100%);
    justify-self: center;
}

.loader-progress-wrapper {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(61, 102, 255, 0.18);
}

.loader-progress-bar {
    height: 100%;
    background: var(--gradient-1);
    width: 0%;
    box-shadow: 0 0 18px rgba(19, 136, 255, 0.28);
    transition: width 0.2s ease;
}

.loader-progress-meta {
    margin-top: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.loader-progress-label {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.56);
}

.loader-percentage {
    font-family: var(--font-code);
    color: var(--primary);
    font-size: 0.95rem;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(4, 7, 14, 0.78);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(36, 48, 76, 0.7);
    z-index: 1000;
    transition: all var(--transition);
}

body.menu-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(2, 3, 7, 0.58);
    backdrop-filter: blur(8px);
    z-index: 998;
}

.main-header.scrolled {
    background: rgba(4, 7, 14, 0.92);
    box-shadow: var(--shadow-md);
}

.nav-container {
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.4rem;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
}

.brand-logo-image {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 0 20px rgba(19, 136, 255, 0.24));
}

.brand-copy {
    font-family: var(--font-code);
    font-size: 1.32rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.logo-bracket {
    color: var(--purple);
}

.logo-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0.2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::before {
    width: 72%;
}

.nav-controls {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.lang-toggle,
.theme-toggle,
.menu-toggle {
    background: rgba(13, 18, 32, 0.9);
    border: 1px solid rgba(36, 48, 76, 0.9);
    color: var(--text-primary);
    padding: 0.62rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
}

.lang-toggle:hover,
.theme-toggle:hover,
.menu-toggle:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0.62rem;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.main-content {
    margin-top: 88px;
}

/* ── Scroll snap: cada seta = uma seção completa ── */
html {
    scroll-snap-type: y proximity;
}

section[id] {
    scroll-snap-align: start;
    scroll-margin-top: 88px;
}

.section[id] {
    min-height: calc(100vh - 88px);
}

@supports (height: 100dvh) {
    .section[id] {
        min-height: calc(100dvh - 88px);
    }
}

.hero-section {
    min-height: calc(100vh - 88px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 2.5rem 0 3rem;
}

@supports (height: 100dvh) {
    .hero-section {
        min-height: calc(100dvh - 88px);
    }
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-signal-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.42;
    mix-blend-mode: screen;
    pointer-events: none;
}

.hero-aura {
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.26;
}

.hero-aura-left {
    left: -10vw;
    top: 18%;
    background: rgba(19, 136, 255, 0.3);
}

.hero-aura-right {
    right: -8vw;
    top: 10%;
    background: rgba(122, 70, 255, 0.28);
}

.code-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(77, 183, 255, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77, 183, 255, 0.16) 1px, transparent 1px);
    background-size: 56px 56px;
    opacity: 0.08;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(56px, 56px); }
}

.floating-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    font-family: var(--font-code);
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0.1;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10%, 90% {
        opacity: 0.1;
    }
    50% {
        transform: translateY(-120px) rotate(180deg);
        opacity: 0.25;
    }
}

.hero-container {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
    gap: 3rem;
    align-items: center;
}

.hero-greeting {
    font-family: var(--font-code);
    font-size: 1.12rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.greeting-cursor {
    animation: blink 1s infinite;
    color: var(--primary);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-name {
    font-family: var(--font-code);
    font-size: clamp(3.2rem, 5vw, 5.3rem);
    font-weight: 700;
    margin-bottom: 1.6rem;
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.name-prefix { color: var(--purple); }
.name-operator { color: var(--cyan); margin: 0 0.45rem; }
.name-value {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.name-suffix { color: var(--primary); }

.hero-title {
    font-family: var(--font-code);
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    color: var(--cyan);
    margin-bottom: 1.5rem;
}

.title-prefix {
    color: var(--text-muted);
    margin-inline-end: 0.5rem;
}

.hero-description {
    font-size: 1.08rem;
    color: var(--text-secondary);
    margin-bottom: 2.4rem;
    line-height: 1.85;
    max-width: 760px;
}

.hero-identity-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.8rem;
    max-width: 980px;
}

.hero-identity-item {
    padding: 1rem 1.05rem;
    border-radius: 16px;
    background: rgba(13, 18, 32, 0.78);
    border: 1px solid rgba(36, 48, 76, 0.88);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(14px);
}

.hero-identity-label {
    display: block;
    font-family: var(--font-code);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cyan);
    margin-bottom: 0.55rem;
}

.hero-identity-value {
    display: block;
    color: var(--text-primary);
    font-size: 0.96rem;
    line-height: 1.55;
}

.glitch-stage {
    margin: 0 0 2rem;
}

.glitch-kicker {
    font-family: var(--font-code);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.9rem;
}

.glitch-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 1.4rem;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(19, 136, 255, 0.08), rgba(122, 70, 255, 0.08)),
        rgba(6, 10, 18, 0.75);
    border: 1px solid rgba(61, 102, 255, 0.22);
    overflow: hidden;
    isolation: isolate;
}

.glitch-container::before {
    content: '';
    position: absolute;
    inset: -24px;
    background: radial-gradient(circle at 35% 50%, rgba(19, 136, 255, 0.22) 0%, transparent 48%);
    filter: blur(28px);
    animation: glowPulse 3s infinite;
    z-index: -1;
}

.glitch-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.04) 0,
        rgba(255, 255, 255, 0.04) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0.2;
    pointer-events: none;
    animation: noise 0.5s infinite;
}

.glitch-text {
    font-family: var(--font-code);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 18px rgba(19, 136, 255, 0.32);
    position: relative;
    display: inline-block;
    animation: glitch-skew 4s infinite;
    letter-spacing: 0.22em;
    white-space: nowrap;
    line-height: 0.98;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background: transparent;
}

.glitch-text::before {
    animation: glitch-1 0.8s infinite linear alternate-reverse;
    color: var(--accent);
    text-shadow: 2px 0 0 var(--secondary), -2px 0 0 #66d9ff;
    z-index: -1;
    opacity: 0.86;
}

.glitch-text::after {
    animation: glitch-2 0.8s infinite linear alternate-reverse;
    color: var(--cyan);
    text-shadow: 2px 0 0 var(--accent), -2px 0 0 #ffffff;
    z-index: -2;
    opacity: 0.82;
}

.scanline {
    position: absolute;
    top: -30%;
    left: -10%;
    width: 120%;
    height: 160%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.28) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    animation: scanline 7s linear infinite;
    z-index: 1;
    mix-blend-mode: soft-light;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 1rem 1.7rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(19, 136, 255, 0.3);
}

.btn-secondary {
    background: rgba(13, 18, 32, 0.75);
    color: var(--primary);
    border-color: rgba(19, 136, 255, 0.42);
}

.btn-secondary:hover {
    background: rgba(19, 136, 255, 0.12);
    transform: translateY(-2px);
}

.hero-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 18, 32, 0.88);
    border: 1px solid rgba(36, 48, 76, 0.82);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 18px rgba(19, 136, 255, 0.15);
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    position: relative;
    width: min(34vw, 560px);
    height: min(34vw, 560px);
    min-width: 420px;
    min-height: 420px;
}

.profile-image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 128%;
    height: 128%;
    background: radial-gradient(circle, rgba(19, 136, 255, 0.22) 0%, rgba(122, 70, 255, 0.18) 45%, transparent 72%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.52;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.08);
        opacity: 0.86;
    }
}

@keyframes glitch-skew {
    0%, 100% { transform: skew(0deg); }
    2% { transform: skew(2deg); }
    4% { transform: skew(-2deg); }
    6% { transform: skew(1deg); }
    8% { transform: skew(-1deg); }
    10%, 90% { transform: skew(0deg); }
}

@keyframes glitch-1 {
    0%, 100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
        opacity: 0.82;
    }
    10% {
        clip-path: inset(20% 0 30% 0);
        transform: translate(-5px, 3px);
        opacity: 1;
    }
    20% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(5px, -3px);
        opacity: 0.6;
    }
    30% {
        clip-path: inset(40% 0 40% 0);
        transform: translate(-5px, 5px);
        opacity: 1;
    }
    40% {
        clip-path: inset(70% 0 10% 0);
        transform: translate(5px, -5px);
        opacity: 0.7;
    }
    50% {
        clip-path: inset(30% 0 50% 0);
        transform: translate(-3px, 3px);
        opacity: 0.9;
    }
    60% {
        clip-path: inset(50% 0 30% 0);
        transform: translate(3px, -3px);
        opacity: 0.5;
    }
    70% {
        clip-path: inset(80% 0 10% 0);
        transform: translate(-4px, 4px);
        opacity: 0.8;
    }
    80% {
        clip-path: inset(15% 0 70% 0);
        transform: translate(4px, -4px);
        opacity: 1;
    }
}

@keyframes glitch-2 {
    0%, 100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
        opacity: 0.82;
    }
    10% {
        clip-path: inset(60% 0 20% 0);
        transform: translate(5px, -3px);
        opacity: 0.6;
    }
    20% {
        clip-path: inset(30% 0 50% 0);
        transform: translate(-5px, 3px);
        opacity: 1;
    }
    30% {
        clip-path: inset(10% 0 70% 0);
        transform: translate(5px, -5px);
        opacity: 0.7;
    }
    40% {
        clip-path: inset(40% 0 40% 0);
        transform: translate(-5px, 5px);
        opacity: 0.9;
    }
    50% {
        clip-path: inset(70% 0 10% 0);
        transform: translate(3px, -3px);
        opacity: 0.5;
    }
    60% {
        clip-path: inset(20% 0 60% 0);
        transform: translate(-3px, 3px);
        opacity: 1;
    }
    70% {
        clip-path: inset(50% 0 30% 0);
        transform: translate(4px, -4px);
        opacity: 0.8;
    }
    80% {
        clip-path: inset(80% 0 10% 0);
        transform: translate(-4px, 4px);
        opacity: 0.6;
    }
}

@keyframes noise {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-1%, -1%); }
    20% { transform: translate(1%, 1%); }
    30% { transform: translate(-1%, 1%); }
    40% { transform: translate(1%, -1%); }
    50% { transform: translate(-1%, -1%); }
    60% { transform: translate(1%, 1%); }
    70% { transform: translate(-1%, 1%); }
    80% { transform: translate(1%, -1%); }
    90% { transform: translate(-1%, -1%); }
}

@keyframes scanline {
    0% { transform: translateY(-10%); }
    100% { transform: translateY(10%); }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.08);
    }
}

.profile-image-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid rgba(19, 136, 255, 0.84);
    box-shadow:
        0 0 30px rgba(19, 136, 255, 0.28),
        0 0 70px rgba(122, 70, 255, 0.16);
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(19, 136, 255, 0.16), transparent 30%),
        linear-gradient(180deg, rgba(13, 18, 32, 0.92) 0%, rgba(9, 13, 22, 0.98) 100%);
}

.profile-image {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: transparent;
    will-change: transform;
}

.hero-logo-image {
    display: block;
    width: 88%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    filter: drop-shadow(0 0 28px rgba(19, 136, 255, 0.32));
}

.floating-badge {
    position: absolute;
    background: rgba(13, 18, 32, 0.92);
    border: 1px solid rgba(36, 48, 76, 0.92);
    border-radius: 16px;
    padding: 1rem 1.35rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: var(--shadow-md);
    animation: floatBadge 3.2s ease-in-out infinite;
    min-width: 220px;
    transition: all var(--transition-smooth);
}

.floating-badge:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: var(--primary);
    box-shadow: 0 12px 28px rgba(19, 136, 255, 0.22);
}

.floating-badge i {
    font-size: 1.8rem;
    color: var(--primary);
    flex-shrink: 0;
}

.badge-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.badge-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
}

.badge-libs {
    font-size: 0.74rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.4;
}

.badge-1 {
    top: 8%;
    right: -8%;
}

.badge-2 {
    bottom: 16%;
    right: -14%;
    animation-delay: 1s;
}

.badge-3 {
    top: 48%;
    left: -16%;
    animation-delay: 2s;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 10px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

.section {
    padding: 4rem 0;
    position: relative;
    scroll-margin-top: 88px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.section-number {
    font-family: var(--font-code);
    font-size: 1.45rem;
    color: var(--primary);
    font-weight: 700;
}

.section-title {
    font-family: var(--font-code);
    font-size: clamp(2rem, 2.2vw, 2.8rem);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.title-bracket {
    color: var(--purple);
}

.title-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-line {
    flex: 1;
    height: 2px;
    background: var(--gradient-1);
    margin-inline-start: 1.5rem;
    opacity: 0.84;
}

.about-content,
.contact-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.about-text,
.timeline-description,
.project-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.82;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.stat-item,
.skill-category,
.resume-panel,
.timeline-content,
.project-card,
.contact-item,
.code-block {
    background: rgba(13, 18, 32, 0.86);
    border: 1px solid rgba(36, 48, 76, 0.88);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
}

.stat-item {
    text-align: center;
    padding: 1.8rem 1.2rem;
    border-radius: 14px;
    transition: all var(--transition-fast);
}

.stat-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(19, 136, 255, 0.16);
}

.stat-number {
    font-family: var(--font-code);
    font-size: 2.35rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.code-block {
    border-radius: 16px;
    padding: 2.4rem;
    font-family: var(--font-code);
    font-size: 0.92rem;
    line-height: 1.8;
    height: 100%;
}

.code-line.indent {
    padding-inline-start: 2rem;
}

.code-keyword { color: var(--purple); }
.code-variable { color: var(--cyan); }
.code-operator { color: var(--primary); }
.code-brace,
.code-bracket { color: #ffffff; }
.code-property { color: var(--cyan); }
.code-string { color: #9f86ff; }
.code-comma,
.code-semicolon { color: var(--text-muted); }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.resume-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1.4rem;
    margin-bottom: 1.4rem;
}

.resume-panel {
    border-radius: 18px;
    padding: 1.75rem;
}

.resume-kicker,
.resume-meta-label {
    font-family: var(--font-code);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.resume-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--primary);
    font-size: 0.76rem;
    margin-bottom: 0.9rem;
}

.resume-name {
    font-family: var(--font-code);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
    margin-bottom: 0.9rem;
}

.resume-summary {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.82;
}

.resume-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.2rem;
}

.resume-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.resume-cta-note {
    margin-top: 0.95rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.7;
    max-width: 40rem;
}

.resume-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.74rem;
    border-radius: 999px;
    background: rgba(19, 136, 255, 0.1);
    border: 1px solid rgba(19, 136, 255, 0.18);
    color: #dcebff;
    font-family: var(--font-code);
    font-size: 0.82rem;
}

.resume-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
    height: 100%;
}

.resume-meta-item {
    display: grid;
    align-content: start;
    gap: 0.55rem;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(36, 48, 76, 0.72);
}

.resume-meta-label {
    font-size: 0.7rem;
    color: var(--cyan);
}

.resume-meta-value {
    color: var(--text-primary);
    font-size: 0.96rem;
    line-height: 1.62;
}

.resume-tech-overview {
    margin-bottom: 1.4rem;
}

.resume-tech-header {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.resume-tech-lead {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 64rem;
}

.resume-tech-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.resume-tech-card {
    display: grid;
    align-content: start;
    gap: 0.9rem;
    min-height: 100%;
}

.resume-tech-title {
    font-family: var(--font-code);
    font-size: 1.02rem;
    color: var(--primary);
}

.resume-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.skill-category,
.timeline-content,
.project-card,
.contact-item {
    border-radius: 16px;
}

.skill-category {
    padding: 2rem;
}

.category-title {
    font-family: var(--font-code);
    font-size: 1.34rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name,
.skill-percent {
    font-family: var(--font-code);
    font-weight: 600;
}

.skill-name { color: var(--cyan); }
.skill-percent { color: var(--primary); }

.skill-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(36, 48, 76, 0.88);
}

.skill-progress {
    height: 100%;
    width: 0%;
    background: var(--gradient-1);
    box-shadow: 0 0 14px rgba(19, 136, 255, 0.24);
    border-radius: 999px;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.timeline {
    position: relative;
    padding-inline-start: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-1);
}

.timeline-item {
    position: relative;
    padding-inline-start: 3rem;
    padding-bottom: 2.4rem;
}

.timeline-marker {
    position: absolute;
    left: -0.55rem;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 18px rgba(19, 136, 255, 0.45);
}

.timeline-content {
    padding: 2rem;
    transition: all var(--transition-smooth);
}

.timeline-content:hover {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: 0 18px 28px rgba(19, 136, 255, 0.14);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.timeline-year {
    font-family: var(--font-code);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.timeline-badge {
    background: var(--gradient-1);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    font-family: var(--font-code);
}

.timeline-title {
    font-family: var(--font-code);
    font-size: 1.45rem;
    color: var(--cyan);
    margin-bottom: 0.4rem;
}

.timeline-company {
    color: var(--purple);
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-achievements {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
    padding: 1.1rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 3px solid var(--primary);
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.achievement-item i {
    color: #8dc0ff;
    font-size: 0.98rem;
}

.timeline-tags,
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(255, 255, 255, 0.04);
    color: var(--primary);
    padding: 0.32rem 0.74rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-family: var(--font-code);
    border: 1px solid rgba(36, 48, 76, 0.88);
}

.fronts-section {
    padding-top: 1.2rem;
}

.fronts-slider {
    position: relative;
}

.fronts-slider-viewport {
    overflow: hidden;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(122, 70, 255, 0.1), transparent 28%),
        rgba(13, 18, 32, 0.9);
    border: 1px solid rgba(36, 48, 76, 0.92);
    box-shadow: var(--shadow-lg);
}

.fronts-slider-track {
    display: flex;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.front-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    padding: 2rem;
}

.front-slide-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    gap: 1.4rem;
    align-items: stretch;
    min-height: 420px;
}

.front-slide-copy,
.front-slide-side {
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 34%),
        rgba(8, 11, 18, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
}

.front-slide-copy {
    padding: 2rem;
}

.front-slide-copy::before,
.front-slide-side::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--front-primary) 18%, transparent), transparent 40%);
    opacity: 0.9;
}

.front-slide-kicker,
.front-slide-stage,
.front-slide-projects,
.front-slide-counter-label {
    font-family: var(--font-code);
}

.front-slide-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.38rem 0.78rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--front-cyan);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.front-slide-title {
    position: relative;
    z-index: 1;
    font-family: var(--font-code);
    font-size: clamp(2rem, 3.3vw, 3.2rem);
    line-height: 1.02;
    margin-bottom: 0.9rem;
}

.front-slide-title strong {
    display: block;
    background: linear-gradient(135deg, var(--front-primary), var(--front-secondary), var(--front-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.front-slide-description {
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
    line-height: 1.86;
    color: var(--text-secondary);
    max-width: 48rem;
}

.front-slide-projects {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.35rem;
}

.front-project-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 0.82rem;
}

.front-slide-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.front-slide-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.92rem 1.28rem;
    border-radius: 12px;
    font-family: var(--font-code);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.front-slide-link-primary {
    color: white;
    background: linear-gradient(135deg, var(--front-primary), var(--front-secondary), var(--front-accent));
    box-shadow: 0 14px 28px color-mix(in srgb, var(--front-primary) 20%, transparent);
}

.front-slide-link-secondary {
    color: var(--front-cyan);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.front-slide-link:hover {
    transform: translateY(-2px);
}

.front-slide-side {
    padding: 1.6rem;
    display: grid;
    gap: 1rem;
    align-content: space-between;
}

.front-slide-icon {
    width: 5.8rem;
    height: 5.8rem;
    display: grid;
    place-items: center;
    border-radius: 22px;
    font-size: 2rem;
    color: white;
    background: linear-gradient(135deg, var(--front-primary), var(--front-secondary), var(--front-accent));
    box-shadow: 0 18px 36px color-mix(in srgb, var(--front-primary) 24%, transparent);
    position: relative;
    z-index: 1;
}

.front-slide-stage {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: fit-content;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.front-slide-metrics {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.front-slide-metric {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: grid;
    gap: 0.35rem;
}

.front-slide-metric-value {
    font-family: var(--font-code);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.front-slide-metric-label {
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.55;
}

.front-slide-summary {
    position: relative;
    z-index: 1;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.front-slide-counter-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: var(--front-cyan);
    margin-bottom: 0.55rem;
}

.front-slide-summary p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.72;
}

.fronts-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.35rem;
}

.fronts-slider-nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(36, 48, 76, 0.92);
    background: rgba(13, 18, 32, 0.88);
    color: var(--text-primary);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.fronts-slider-nav:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.fronts-slider-indicators {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.fronts-slider-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.fronts-slider-indicator.active {
    background: var(--primary);
    border-color: rgba(255, 255, 255, 0.22);
    transform: scale(1.25);
    box-shadow: 0 0 16px rgba(19, 136, 255, 0.25);
}

.fronts-slider-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    margin-top: 1rem;
}

.fronts-slider-counter {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-code);
}

.fronts-slider-current {
    color: var(--text-primary);
    font-weight: 800;
}

.fronts-slider-separator,
.fronts-slider-total {
    color: var(--text-muted);
}

.fronts-slider-progress {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.fronts-slider-progress-fill {
    height: 100%;
    width: 20%;
    background: var(--gradient-1);
    box-shadow: 0 0 16px rgba(19, 136, 255, 0.24);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.4rem;
}

.project-card {
    overflow: hidden;
    transition: all var(--transition-smooth);
    cursor: default;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 22px 38px rgba(19, 136, 255, 0.16);
}

.project-image {
    position: relative;
    width: 100%;
    height: 220px;
    background:
        radial-gradient(circle at top left, rgba(19, 136, 255, 0.22), transparent 40%),
        radial-gradient(circle at bottom right, rgba(122, 70, 255, 0.22), transparent 42%),
        linear-gradient(180deg, rgba(13, 18, 32, 0.95), rgba(7, 10, 18, 1));
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 4rem;
    color: rgba(248, 251, 255, 0.8);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 3, 7, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 0;
    cursor: pointer;
}

.project-link:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 18px rgba(19, 136, 255, 0.22);
}

.project-content {
    padding: 1.8rem;
}

.project-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.26rem 0.65rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-family: var(--font-code);
    color: #d8e6ff;
    background: rgba(19, 136, 255, 0.12);
    border: 1px solid rgba(19, 136, 255, 0.22);
    margin-bottom: 0.9rem;
}

.project-title {
    font-family: var(--font-code);
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
}

.project-description {
    margin-bottom: 1.3rem;
    font-size: 0.99rem;
}

.project-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    margin-top: 1.25rem;
}

.project-inline-link,
.project-inline-button {
    font-family: var(--font-code);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.project-inline-link {
    color: var(--primary);
}

.project-inline-button {
    color: var(--text-secondary);
    padding: 0;
}

.project-inline-link:hover,
.project-inline-button:hover {
    color: var(--cyan);
    transform: translateX(2px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    gap: 1.2rem;
    padding: 1.5rem;
    transition: all var(--transition-smooth);
}

.contact-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.contact-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    background: var(--gradient-1);
    border-radius: 14px;
    color: white;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.contact-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.28rem;
    font-family: var(--font-code);
}

.contact-value {
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: none;
}

.contact-value:hover {
    color: var(--cyan);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(13, 18, 32, 0.86);
    border: 1px solid rgba(36, 48, 76, 0.88);
    box-shadow: var(--shadow-md);
    border-radius: 16px;
    padding: 1.6rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(36, 48, 76, 0.88);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(19, 136, 255, 0.12);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    align-self: flex-start;
}

.main-footer {
    background: rgba(10, 13, 22, 0.92);
    border-top: 1px solid rgba(36, 48, 76, 0.82);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.footer-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-text,
.footer-author {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.footer-copyright {
    color: var(--text-primary);
    font-weight: 700;
}

.footer-divider {
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 0.8rem;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(36, 48, 76, 0.82);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-social-link:hover {
    background: var(--gradient-1);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition);
}

.project-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.project-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 3, 7, 0.8);
    backdrop-filter: blur(16px);
}

.project-modal-panel {
    position: relative;
    width: min(1180px, calc(100vw - 40px));
    max-height: calc(100vh - 50px);
    margin: 25px auto;
    overflow: auto;
    background: linear-gradient(180deg, rgba(9, 13, 22, 0.98), rgba(6, 8, 14, 0.98));
    border: 1px solid rgba(36, 48, 76, 0.95);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    padding: 2rem;
}

.project-modal-close {
    position: sticky;
    top: 0;
    margin-left: auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid rgba(36, 48, 76, 0.82);
    border-radius: 50%;
    cursor: pointer;
}

.project-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 2rem;
}

.project-modal-title {
    font-family: var(--font-code);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
    margin-bottom: 1rem;
}

.project-modal-subtitle,
.project-modal-copy,
.project-modal-list li {
    color: var(--text-secondary);
}

.project-modal-copy {
    font-size: 1.02rem;
    line-height: 1.86;
    margin-bottom: 1rem;
}

.project-modal-section {
    margin-top: 1.5rem;
}

.project-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.project-modal-section h4 {
    font-family: var(--font-code);
    color: var(--primary);
    margin-bottom: 0.7rem;
}

.project-modal-list {
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.project-modal-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-panel-box {
    padding: 1.2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(36, 48, 76, 0.82);
}

.project-panel-box h5 {
    color: var(--white);
    font-family: var(--font-code);
    margin-bottom: 0.8rem;
}

.project-panel-box ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.project-panel-box li {
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    background: rgba(19, 136, 255, 0.1);
    border: 1px solid rgba(19, 136, 255, 0.18);
    color: #dcebff;
    font-size: 0.84rem;
    font-family: var(--font-code);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1280px) {
    .hero-container,
    .about-content,
    .resume-intro-grid,
    .resume-tech-grid,
    .contact-content,
    .project-modal-grid {
        grid-template-columns: 1fr;
    }

    .front-slide-shell {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
    }

    .hero-greeting {
        justify-content: center;
    }

    .hero-description {
        margin-inline: auto;
    }

    .hero-identity-strip {
        margin-inline: auto;
    }

    .glitch-stage {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons,
    .hero-social {
        justify-content: center;
    }

    .hero-image-wrapper {
        order: -1;
    }

    .hero-image-container {
        min-width: 380px;
        min-height: 380px;
    }

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

@media (max-width: 860px) {
    .main-content {
        margin-top: 84px;
    }

    .loader-content {
        width: min(100vw - 20px, 760px);
        gap: 1.1rem;
    }

    .loader-terminal-body {
        padding: 1rem;
        font-size: 0.82rem;
    }

    .loader-word {
        font-size: clamp(1.6rem, 8vw, 2.8rem);
    }

    .loader-brand-box {
        width: clamp(4.8rem, 18vw, 6rem);
        height: clamp(4.8rem, 18vw, 6rem);
        border-radius: 1.5rem;
    }

    .nav-container {
        padding: 0.8rem 0;
        gap: 0.7rem;
    }

    .nav-menu {
        position: fixed;
        top: 84px;
        left: 50%;
        width: min(calc(100vw - 20px), 560px);
        max-height: calc(100dvh - 98px);
        overflow-y: auto;
        background: rgba(13, 18, 32, 0.96);
        border: 1px solid rgba(36, 48, 76, 0.9);
        border-radius: 16px;
        flex-direction: column;
        padding: 1rem;
        gap: 0.55rem;
        box-shadow: 0 22px 44px rgba(2, 3, 7, 0.42);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate(-50%, -12px);
        transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
        z-index: 999;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(-50%, 0);
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 0.95rem 1rem;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(36, 48, 76, 0.55);
    }

    .nav-link::before {
        display: none;
    }

    .nav-link.active {
        background: rgba(19, 136, 255, 0.12);
        border-color: rgba(19, 136, 255, 0.32);
    }

    .nav-controls {
        gap: 0.5rem;
    }

    .lang-toggle,
    .theme-toggle,
    .menu-toggle {
        min-width: 46px;
        min-height: 46px;
        justify-content: center;
        padding: 0.72rem;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-section,
    .section {
        padding: 2.4rem 0;
    }

    .hero-section {
        min-height: auto;
        padding-top: 1.3rem;
        padding-bottom: 2.4rem;
    }

    .hero-container {
        gap: 1.8rem;
    }

    .hero-greeting {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-title {
        line-height: 1.5;
        margin-bottom: 1.2rem;
    }

    .hero-description {
        margin-bottom: 1.8rem;
        font-size: 1rem;
        line-height: 1.76;
    }

    .glitch-stage {
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .hero-identity-strip {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 42rem;
    }

    .glitch-container {
        width: min(100%, 34rem);
        padding: 1rem 1.05rem;
        border-radius: 18px;
    }

    .glitch-text {
        font-size: clamp(1.7rem, 7vw, 2.7rem);
        letter-spacing: 0.14em;
        white-space: normal;
        text-align: center;
    }

    .hero-buttons {
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .hero-social {
        flex-wrap: wrap;
    }

    .social-icon {
        width: 48px;
        height: 48px;
    }

    .scroll-indicator {
        display: none;
    }

    .about-stats,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .front-slide {
        padding: 1.15rem;
    }

    .front-slide-shell {
        min-height: auto;
        gap: 1rem;
    }

    .front-slide-copy,
    .front-slide-side {
        padding: 1.2rem;
        border-radius: 20px;
    }

    .front-slide-title {
        font-size: clamp(1.55rem, 7vw, 2.2rem);
    }

    .front-slide-description {
        font-size: 0.96rem;
        line-height: 1.72;
    }

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

    .fronts-slider-controls {
        gap: 0.8rem;
    }

    .fronts-slider-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .about-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resume-meta-grid {
        grid-template-columns: 1fr 1fr;
    }

    .resume-tech-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-image-container {
        width: min(78vw, 320px);
        height: min(78vw, 320px);
        min-width: auto;
        min-height: auto;
    }

    .floating-badge {
        display: none;
    }

    .section-header {
        gap: 1rem;
        margin-bottom: 2rem;
        flex-wrap: wrap;
    }

    .section-line {
        width: 100%;
        margin-inline-start: 0;
    }

    .code-block,
    .skill-category,
    .timeline-content,
    .project-content,
    .contact-form {
        padding: 1.4rem;
    }

    .timeline {
        padding-inline-start: 1.2rem;
    }

    .timeline-item {
        padding-inline-start: 1.55rem;
        padding-bottom: 2.2rem;
    }

    .timeline-marker {
        left: -1.5rem;
        width: 13px;
        height: 13px;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
    }

    .timeline-achievements {
        padding: 0.95rem 1rem;
    }

    .projects-grid {
        gap: 1rem;
    }

    .project-image {
        height: 190px;
    }

    .contact-content {
        gap: 1.2rem;
    }

    .contact-item {
        align-items: flex-start;
    }

    .btn-submit {
        align-self: stretch;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-text,
    .footer-author,
    .footer-social {
        justify-content: center;
    }

    .project-modal-panel {
        width: min(100vw - 18px, 920px);
        max-height: calc(100dvh - 18px);
        margin: 9px auto;
        padding: 1.2rem;
        border-radius: 20px;
        overscroll-behavior: contain;
    }

    .project-modal-grid {
        gap: 1.2rem;
    }

    .project-modal-copy {
        line-height: 1.72;
    }

    .project-panel-box {
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .loader-terminal-title,
    .loader-progress-label {
        letter-spacing: 0.12em;
    }

    .loader-brand-band {
        gap: 0.6rem;
    }

    .loader-word {
        font-size: clamp(1.2rem, 9vw, 2rem);
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .resume-panel {
        padding: 1.2rem;
    }

    .resume-cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .resume-meta-grid {
        grid-template-columns: 1fr;
    }

    .resume-tech-grid {
        grid-template-columns: 1fr;
    }

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

    .front-slide-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .front-slide-link {
        justify-content: center;
    }

    .front-slide-projects {
        gap: 0.5rem;
    }

    .project-card-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-item {
        flex-direction: column;
        gap: 0.9rem;
        padding: 1.15rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.15rem;
    }

    .project-image {
        height: 176px;
    }

    .project-content {
        padding: 1.2rem;
    }

    .timeline-title {
        font-size: 1.22rem;
    }

    .project-modal-title {
        font-size: clamp(1.55rem, 8vw, 2rem);
    }

    .project-modal-copy {
        font-size: 0.96rem;
    }
}

@media (max-width: 520px) {
    html {
        font-size: 14px;
    }

    :root {
        --shell-width: calc(100vw - 16px);
    }

    .nav-container {
        gap: 0.45rem;
    }

    .hero-name {
        font-size: clamp(1.95rem, 10vw, 2.35rem);
        line-height: 1.12;
    }

    .brand-logo-image {
        width: 46px;
        height: 46px;
    }

    .loader-terminal {
        border-radius: 18px;
    }

    .loader-terminal-header,
    .loader-terminal-body {
        padding-inline: 0.85rem;
    }

    .loader-terminal-body {
        gap: 0.5rem;
        font-size: 0.74rem;
    }

    .loader-brand-box {
        width: 4.2rem;
        height: 4.2rem;
        border-radius: 1.2rem;
    }

    .brand-copy {
        font-size: 0.92rem;
        gap: 0.14rem;
    }

    .nav-controls {
        gap: 0.42rem;
    }

    .lang-toggle,
    .theme-toggle,
    .menu-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 0.62rem;
    }

    .hero-image-container {
        width: min(76vw, 250px);
        height: min(76vw, 250px);
    }

    .hero-title {
        font-size: 0.95rem;
    }

    .hero-identity-item {
        padding: 0.9rem;
        border-radius: 14px;
    }

    .hero-identity-value {
        font-size: 0.9rem;
    }

    .glitch-kicker {
        font-size: 0.7rem;
        letter-spacing: 0.2em;
    }

    .glitch-container {
        padding: 0.86rem 0.95rem;
        border-radius: 16px;
    }

    .glitch-text {
        font-size: clamp(1.28rem, 9.6vw, 1.85rem);
        letter-spacing: 0.08em;
    }

    .front-slide {
        padding: 0.85rem;
    }

    .front-slide-copy,
    .front-slide-side {
        padding: 1rem;
        border-radius: 18px;
    }

    .front-slide-icon {
        width: 4.6rem;
        height: 4.6rem;
        font-size: 1.55rem;
        border-radius: 18px;
    }

    .fronts-slider-controls {
        justify-content: space-between;
    }

    .fronts-slider-indicators {
        flex: 1;
        justify-content: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.45rem;
    }

    .section-number {
        font-size: 1.05rem;
    }

    .code-block {
        padding: 1.1rem;
        font-size: 0.78rem;
        overflow: auto;
    }

    .timeline {
        padding-inline-start: 0.95rem;
    }

    .timeline-item {
        padding-inline-start: 1.28rem;
    }

    .timeline-marker {
        left: -1.15rem;
    }

    .project-modal-panel {
        padding: 1rem 0.92rem 1.1rem;
    }

    .project-modal-close {
        width: 40px;
        height: 40px;
    }

    .footer-text,
    .footer-author {
        flex-direction: column;
        gap: 0.25rem;
    }

    .footer-divider {
        display: none;
    }
}

@media (hover: none), (pointer: coarse) {
    .btn-primary:hover,
    .btn-secondary:hover,
    .social-icon:hover,
    .timeline-content:hover,
    .project-card:hover,
    .project-link:hover,
    .front-slide-link:hover,
    .contact-item:hover,
    .footer-social-link:hover {
        transform: none;
        box-shadow: none;
    }

    .project-card:hover .project-overlay {
        opacity: 0;
    }

    .hero-aura {
        opacity: 0.18;
    }
}

/* ── Hero compacto em viewports com altura ≤ 900px ── */
@media (max-height: 900px) {
    .hero-section {
        padding-top: 1.2rem;
        padding-bottom: 1.5rem;
    }
    .hero-name          { margin-bottom: 1rem; }
    .hero-title         { margin-bottom: 0.9rem; }
    .glitch-stage       { margin-bottom: 1.2rem; }
    .hero-description   { margin-bottom: 1.4rem; }
    .hero-identity-strip{ margin-bottom: 1rem; }
    .hero-buttons       { margin-bottom: 1.2rem; }
}

@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;
    }
}
