*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #060810;
    --bg2: #0d1117;
    --bg3: #111520;
    --surface: #13171f;
    --surface2: #1a1f2e;
    --border: #1e2435;
    --border2: rgba(255, 255, 255, .06);
    --accent: #00e5ff;
    --accent2: #7c3aed;
    --accent3: #f59e0b;
    --text: #e8eaf0;
    --text2: #8892a4;
    --text3: #4a5568;
    --fd: 'Syne', sans-serif;
    --fb: 'Cabinet Grotesk', sans-serif;
    --fm: 'DM Mono', monospace;
    --expo: cubic-bezier(0.19, 1, 0.22, 1);
    --smooth: cubic-bezier(0.87, 0, 0.13, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--fb);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* ── CURSOR ── */
#cur {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: width .25s var(--expo), height .25s var(--expo);
}

#cur2 {
    position: fixed;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(0, 229, 255, .35);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width .4s var(--expo), height .4s var(--expo), border-color .3s;
}

body:has(a:hover) #cur,
body:has(button:hover) #cur {
    width: 5px;
    height: 5px;
}

body:has(a:hover) #cur2,
body:has(button:hover) #cur2 {
    width: 60px;
    height: 60px;
    border-color: var(--accent);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
    width: 2px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent2);
}

/* ── CANVAS ── */
#bgc {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ── NOISE ── */
.noise {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── PROGRESS BAR ── */
#progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    z-index: 200;
    width: 0%;
    transition: width .1s;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.4rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(6, 8, 16, .75);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    transition: all .4s;
}

.nav-logo {
    font-family: var(--fd);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.02em;
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--fm);
    font-size: .72rem;
    color: var(--text2);
    text-decoration: none;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: color .3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--expo);
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-links a.active {
    color: var(--accent);
}

.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-cta {
    font-family: var(--fm);
    font-size: .72rem;
    color: var(--accent);
    border: 1px solid rgba(0, 229, 255, .5);
    padding: .5rem 1.3rem;
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: all .3s;
    background: transparent;
    cursor: none;
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--expo);
    z-index: -1;
}

.nav-cta:hover {
    color: var(--bg);
}

.nav-cta:hover::before {
    transform: scaleX(1);
}

.ham {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: none;
    padding: 4px;
    flex-shrink: 0;
}

.ham span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    transition: all .3s var(--expo);
}

.ham.open span:nth-child(1) {
    transform: rotate(45deg) translate(4.5px, 4.5px);
}

.ham.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.ham.open span:nth-child(3) {
    transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* ── MOBILE MENU ── */
.mob-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--bg2);
    border-left: 1px solid var(--border);
    z-index: 200;
    padding: 5rem 2rem 2rem;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .45s var(--expo), visibility .45s;
}

.mob-menu.open {
    transform: translateX(0);
    visibility: visible;
}

.mob-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.mob-menu a {
    font-family: var(--fd);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    transition: color .3s;
}

.mob-menu a:hover {
    color: var(--accent);
}

.veil {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

.veil.show {
    opacity: 1;
    pointer-events: all;
}

/* ── MAIN ── */
main {
    position: relative;
    z-index: 2;
}

section {
    min-height: 100vh;
    padding: 8rem 0 6rem;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* ── SECTION LABEL ── */
.s-label {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    font-family: var(--fm);
    font-size: .7rem;
    color: var(--accent);
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.s-label::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--accent);
}

/* ═══════════════════════════════════ HERO ═══════════════════════════════════ */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 0;
    overflow: hidden;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

/* Left */
.avail {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--fm);
    font-size: .7rem;
    color: #27c93f;
    background: rgba(39, 201, 63, .08);
    border: 1px solid rgba(39, 201, 63, .22);
    padding: .35rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: aUp .8s var(--expo) .2s forwards;
}

.avail::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #27c93f;
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

.hlabel {
    font-family: var(--fm);
    font-size: .73rem;
    color: var(--accent);
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: aUp .8s var(--expo) .35s forwards;
}

.htitle {
    font-family: var(--fd);
    font-size: clamp(3rem, 6.5vw, 6.2rem);
    font-weight: 800;
    line-height: .93;
    letter-spacing: -.04em;
    margin-bottom: 1.6rem;
}

.htitle .line {
    display: block;
    overflow: hidden;
}

.htitle .line span {
    display: block;
    opacity: 0;
    animation: slideUp .9s var(--expo) forwards;
}

.htitle .line:nth-child(1) span {
    animation-delay: .45s;
}

.htitle .line:nth-child(2) span {
    animation-delay: .6s;
}

.htitle .line:nth-child(3) span {
    animation-delay: .75s;
}

.grad {
    background: linear-gradient(130deg, #00e5ff 0%, #7c3aed 55%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.outline {
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1.5px rgba(0, 229, 255, .55);
}

.hdesc {
    font-size: 1.05rem;
    color: var(--text2);
    line-height: 1.8;
    max-width: 470px;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: aUp .8s var(--expo) .9s forwards;
}

.hactions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: aUp .8s var(--expo) 1.05s forwards;
}

.btn-p {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: var(--accent);
    color: var(--bg);
    font-family: var(--fm);
    font-size: .77rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .88rem 2.1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all .4s var(--expo);
    position: relative;
    overflow: hidden;
    cursor: none;
    border: none;
}

.btn-p::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .18);
    transform: translateX(-101%);
    transition: transform .5s var(--expo);
}

.btn-p:hover::before {
    transform: translateX(0);
}

.btn-p:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 229, 255, .3);
}

.btn-g {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    border: 1px solid var(--border);
    color: var(--text2);
    font-family: var(--fm);
    font-size: .77rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .88rem 2.1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all .4s var(--expo);
    cursor: none;
    background: transparent;
}

.btn-g:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

.hstats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
    opacity: 0;
    animation: aUp .8s var(--expo) 1.2s forwards;
}

.stat-n {
    font-family: var(--fd);
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1;
}

.stat-n em {
    color: var(--accent);
    font-style: normal;
}

.stat-l {
    font-family: var(--fm);
    font-size: .65rem;
    color: var(--text3);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-top: .3rem;
}

/* Right — code card */
.hero-r {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: aIn 1.2s var(--expo) .6s forwards;
}

.hcard {
    width: 340px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 100px rgba(0, 229, 255, .07), 0 40px 80px rgba(0, 0, 0, .5);
    position: relative;
}

.hcard::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 229, 255, .04) 0%, transparent 40%, rgba(124, 58, 237, .04) 100%);
    pointer-events: none;
}

.hcard-top {
    padding: 1.2rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: .6rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot:nth-child(1) {
    background: #ff5f57;
}

.dot:nth-child(2) {
    background: #febc2e;
}

.dot:nth-child(3) {
    background: #28c840;
}

.hcard-body {
    padding: 1.5rem;
    font-family: var(--fm);
    font-size: .74rem;
    line-height: 1.9;
    color: var(--text2);
}

.cl {
    display: block;
}

.ck {
    color: var(--accent2);
}

.cs {
    color: #27c93f;
}

.cv {
    color: var(--accent3);
}

.cc {
    color: var(--accent);
}

.cm {
    color: var(--text3);
}

/* Typing cursor on last line */
.typing::after {
    content: '█';
    color: var(--accent);
    animation: blink .8s step-end infinite;
    font-size: .65rem;
}

/* Glowing ring */
.ring {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 1px solid rgba(0, 229, 255, .06);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ringPulse 4s ease-in-out infinite;
}

.ring2 {
    width: 380px;
    height: 380px;
    border-color: rgba(124, 58, 237, .08);
    animation-delay: 1.5s;
}

.ring3 {
    width: 260px;
    height: 260px;
    border-color: rgba(245, 158, 11, .06);
    animation-delay: 3s;
}

/* Floating badge */
.fbadge {
    position: absolute;
    top: -18px;
    right: -18px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--fd);
    font-weight: 800;
    box-shadow: 0 0 40px rgba(0, 229, 255, .35);
    animation: floatBadge 4s ease-in-out infinite;
}

.fbadge span:first-child {
    font-size: 1.3rem;
    color: var(--bg);
}

.fbadge span:last-child {
    font-size: .5rem;
    color: rgba(6, 8, 16, .7);
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

.o1 {
    width: 320px;
    height: 320px;
    background: rgba(0, 229, 255, .07);
    top: -100px;
    right: -80px;
    animation: floatOrb 9s ease-in-out infinite;
}

.o2 {
    width: 240px;
    height: 240px;
    background: rgba(124, 58, 237, .09);
    bottom: -80px;
    left: -60px;
    animation: floatOrb 11s ease-in-out infinite reverse;
}

.o3 {
    width: 180px;
    height: 180px;
    background: rgba(245, 158, 11, .05);
    top: 40%;
    right: -40px;
    animation: floatOrb 7s ease-in-out 2s infinite;
}

/* ── LANGUAGE SWITCHER ── */
.lang-switcher {
    display: flex;
    gap: 0.3rem;
}

.lang-btn {
    font-family: var(--fm);
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text2);
    cursor: none;
    transition: all 0.3s;
    letter-spacing: 0.05em;
}

.lang-btn:hover,
.lang-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 229, 255, 0.08);
}

.lang-btn[data-lang="ar"] {
    font-family: 'Tajawal', sans-serif;
}

/* RTL Support */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] body {
    font-family: 'Tajawal', var(--fb);
}

html[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

html[dir="rtl"] .hero-grid {
    direction: rtl;
}

html[dir="rtl"] .htitle {
    direction: rtl;
}

html[dir="rtl"] .hdesc {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .hactions {
    flex-direction: row-reverse;
}

html[dir="rtl"] .hstats {
    flex-direction: row-reverse;
}

html[dir="rtl"] .about-g {
    direction: rtl;
}

html[dir="rtl"] .acard {
    flex-direction: row-reverse;
}

html[dir="rtl"] .titem {
    text-align: right;
}

html[dir="rtl"] .timeline {
    padding-left: 0;
    padding-right: 2.5rem;
}

html[dir="rtl"] .timeline::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .titem::before {
    left: auto;
    right: -2.6rem;
}

html[dir="rtl"] .pgrid {
    direction: rtl;
}

html[dir="rtl"] .ct-links {
    flex-direction: row-reverse;
}

html[dir="rtl"] .mob-menu {
    right: auto;
    left: 0;
    border-left: none;
    border-right: 1px solid var(--border);
    transform: translateX(-105%);
}

html[dir="rtl"] .mob-menu.open {
    transform: translateX(0);
}

/* RTL Critical Fixes */
html[dir="rtl"] .nav-logo {
    margin-right: 0;
    margin-left: auto;
}

html[dir="rtl"] .nav-cta {
    margin-left: 0;
    margin-right: 1rem;
}

html[dir="rtl"] .s-label::before {
    margin-right: 0;
    margin-left: 0.7rem;
}

html[dir="rtl"] .about-tags {
    flex-direction: row-reverse;
}

html[dir="rtl"] .pills,
html[dir="rtl"] .ttechs,
html[dir="rtl"] .pstack {
    flex-direction: row-reverse;
}

html[dir="rtl"] .plinks {
    right: auto;
    left: 0.9rem;
}

html[dir="rtl"] .fbadge {
    right: auto;
    left: -18px;
}

html[dir="rtl"] .hcard-body {
    text-align: right;
    direction: ltr;
}

/* Keep code LTR */
html[dir="rtl"] .typing::after {
    margin-right: 2px;
}

/* Mobile menu RTL */
@media(max-width:920px) {
    html[dir="rtl"] .mob-menu {
        left: 0;
        right: auto;
        border-right: 1px solid var(--border);
        border-left: none;
        transform: translateX(-105%);
    }

    html[dir="rtl"] .mob-menu.open {
        transform: translateX(0);
    }

    html[dir="rtl"] .ham {
        margin-left: 0;
        margin-right: auto;
    }
}

/* ═══════════════════════════════════ ABOUT ═══════════════════════════════════ */
#about {
    padding: 8rem 0;
}

.about-g {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text h2 {
    font-family: var(--fd);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.about-text p {
    color: var(--text2);
    line-height: 1.88;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.about-text p strong {
    color: var(--text);
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 2rem;
}

.tag {
    font-family: var(--fm);
    font-size: .68rem;
    color: var(--accent2);
    border: 1px solid rgba(124, 58, 237, .28);
    background: rgba(124, 58, 237, .07);
    padding: .32rem .9rem;
    border-radius: 100px;
    letter-spacing: .04em;
    transition: all .3s;
}

.tag:hover {
    background: rgba(124, 58, 237, .18);
    border-color: var(--accent2);
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.acard {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.4rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all .5s var(--expo);
    transform: translateX(36px);
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.acard::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), var(--accent2));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .4s var(--expo);
}

.acard.vis {
    transform: translateX(0);
    opacity: 1;
}

.acard:hover {
    border-color: rgba(0, 229, 255, .25);
    transform: translateX(6px);
}

.acard:hover::before {
    transform: scaleY(1);
}

.aicon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 229, 255, .12), rgba(124, 58, 237, .12));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.acard h4 {
    font-family: var(--fd);
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: .15rem;
}

.acard p {
    font-size: .82rem;
    color: var(--text2);
}

/* ═══════════════════════════════════ SKILLS ═══════════════════════════════════ */
#skills {
    padding: 6rem 0;
}

.sk-head {
    text-align: center;
    margin-bottom: 4rem;
}

.sk-head h2 {
    font-family: var(--fd);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 1rem;
}

.sk-head p {
    color: var(--text2);
    max-width: 500px;
    margin: 0 auto;
    font-size: 1rem;
}

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

.scat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all .45s var(--expo);
    position: relative;
    overflow: hidden;
}

.scat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s var(--expo);
}

.scat:hover {
    border-color: rgba(0, 229, 255, .18);
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

.scat:hover::before {
    transform: scaleX(1);
}

.scat-t {
    font-family: var(--fd);
    font-size: .85rem;
    font-weight: 700;
    color: var(--text2);
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 1.4rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.pill {
    font-family: var(--fm);
    font-size: .69rem;
    padding: .38rem .95rem;
    border-radius: 6px;
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text2);
    letter-spacing: .04em;
    transition: all .3s;
    cursor: default;
}

.pill:hover {
    background: rgba(0, 229, 255, .09);
    border-color: rgba(0, 229, 255, .38);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════ EXPERIENCE ═══════════════════════════════════ */
#experience {
    padding: 8rem 0;
    min-height: auto;
}

/* — header row — */
.exp-header {
    margin-bottom: 4rem;
}

.exp-header h2 {
    font-family: var(--fd);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.1;
    margin-bottom: .8rem;
}

.exp-header p {
    color: var(--text2);
    font-size: 1rem;
    max-width: 500px;
}

/* — timeline — */
.timeline {
    position: relative;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: .4rem;
    bottom: .4rem;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--border) 10%, var(--border) 90%, transparent);
}

.titem {
    position: relative;
    margin-bottom: 0;
    padding: 2rem 2rem 2.5rem 2.5rem;
    border-radius: 16px;
    transition: all .4s var(--expo);
    opacity: 0;
    transform: translateY(30px);
}

.titem.vis {
    opacity: 1;
    transform: translateY(0);
}

.titem:hover {
    background: rgba(255, 255, 255, .018);
}

/* dot on the line */
.titem::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 2.4rem;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bg3);
    border: 2px solid var(--border);
    transition: all .4s;
    box-shadow: none;
}

.titem:hover::before {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 6px rgba(0, 229, 255, .12), 0 0 20px rgba(0, 229, 255, .4);
}

/* active/current dot */
.titem.current::before {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 5px rgba(0, 229, 255, .1), 0 0 16px rgba(0, 229, 255, .35);
}

.tdate {
    font-family: var(--fm);
    font-size: .68rem;
    color: var(--accent);
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: .7rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.tdate .badge-now {
    background: rgba(0, 229, 255, .12);
    border: 1px solid rgba(0, 229, 255, .25);
    border-radius: 100px;
    padding: .1rem .55rem;
    font-size: .6rem;
    color: var(--accent);
}

.trole {
    font-family: var(--fd);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: .35rem;
    line-height: 1.2;
}

.tco {
    font-family: var(--fm);
    font-size: .76rem;
    color: var(--text2);
    letter-spacing: .05em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.tco::before {
    content: '@';
    color: var(--accent3);
    font-size: .7rem;
}

.tdesc {
    color: var(--text2);
    font-size: .94rem;
    line-height: 1.78;
}

.ttechs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.2rem;
}

.ttech {
    font-family: var(--fm);
    font-size: .63rem;
    padding: .24rem .7rem;
    background: rgba(124, 58, 237, .09);
    border: 1px solid rgba(124, 58, 237, .22);
    border-radius: 5px;
    color: #a78bfa;
    letter-spacing: .04em;
    transition: all .3s;
}

.ttech:hover {
    background: rgba(124, 58, 237, .2);
    border-color: var(--accent2);
}

/* ═══════════════════════════════════ PROJECTS ═══════════════════════════════════ */
#projects {
    padding: 8rem 0;
}

.proj-head {
    margin-bottom: 3.5rem;
}

.proj-head h2 {
    font-family: var(--fd);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 1rem;
}

.proj-head p {
    color: var(--text2);
    font-size: 1rem;
    max-width: 500px;
}

.pgrid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.4rem;
}

.pcard {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all .55s var(--expo);
    position: relative;
}

.pcard:hover {
    border-color: rgba(0, 229, 255, .2);
    transform: translateY(-8px);
    box-shadow: 0 32px 80px rgba(0, 0, 0, .45);
}

.pcard--lg {
    grid-column: span 7;
}

.pcard--sm {
    grid-column: span 5;
}

.pvis {
    height: 200px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcard--lg .pvis {
    height: 240px;
}

.pbg {
    position: absolute;
    inset: 0;
    transition: transform .6s var(--expo);
}

.pcard:hover .pbg {
    transform: scale(1.06);
}

.pb1 {
    background: linear-gradient(135deg, #0a0e1a, #12113a, #0a1a2a);
}

.pb2 {
    background: linear-gradient(135deg, #0a0e1a, #0b2418, #0a1a2a);
}

.pb3 {
    background: linear-gradient(135deg, #0a0e1a, #1a0c2e, #2a0d1a);
}

.pb4 {
    background: linear-gradient(135deg, #0a0e1a, #1a1228, #0a1a28);
}

.pico {
    font-size: 3.5rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, .2));
    transition: transform .4s var(--expo);
}

.pcard:hover .pico {
    transform: scale(1.12) rotate(-5deg);
}

.plinks {
    position: absolute;
    top: .9rem;
    right: .9rem;
    display: flex;
    gap: .4rem;
    z-index: 2;
    opacity: 0;
    transform: translateY(-6px);
    transition: all .35s;
}

.pcard:hover .plinks {
    opacity: 1;
    transform: translateY(0);
}

.plink {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: rgba(6, 8, 16, .8);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text2);
    text-decoration: none;
    font-size: .85rem;
    transition: all .3s;
    cursor: none;
}

.plink:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pcont {
    padding: 1.4rem 1.8rem 1.8rem;
}

.ptag {
    font-family: var(--fm);
    font-size: .63rem;
    color: var(--accent3);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: .6rem;
}

.ptitle {
    font-family: var(--fd);
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: .6rem;
}

.pdesc {
    font-size: .88rem;
    color: var(--text2);
    line-height: 1.7;
    margin-bottom: 1.1rem;
}

.pstack {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.pstack span {
    font-family: var(--fm);
    font-size: .62rem;
    padding: .2rem .6rem;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text3);
}

/* ═══════════════════════════════════ CONTACT ═══════════════════════════════════ */
#contact {
    padding: 8rem 0;
    min-height: auto;
}

.ct-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.ct-inner h2 {
    font-family: var(--fd);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.ct-inner p {
    color: var(--text2);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.ct-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.clink {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-family: var(--fm);
    font-size: .76rem;
    color: var(--text2);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .85rem 1.5rem;
    transition: all .4s var(--expo);
    cursor: none;
}

.clink:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0, 229, 255, .12);
}

.cemail {
    font-family: var(--fd);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    border-bottom: 2px solid var(--accent);
    padding-bottom: .3rem;
    transition: color .3s;
    display: inline-block;
}

.cemail:hover {
    color: var(--accent);
}

.cloc {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-family: var(--fm);
    font-size: .7rem;
    color: var(--text3);
    letter-spacing: .07em;
    margin-top: 1.8rem;
}

/* ── FOOTER ── */
footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 2.2rem 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

footer p {
    font-family: var(--fm);
    font-size: .7rem;
    color: var(--text3);
    letter-spacing: .06em;
}

footer span {
    color: var(--accent);
}

/* ═══════════════════════════════════ KEYFRAMES ═══════════════════════════════════ */
@keyframes aUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(105%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes pulseDot {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(39, 201, 63, .4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(39, 201, 63, 0);
    }
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(3deg);
    }
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(15px, -18px);
    }

    66% {
        transform: translate(-10px, 12px);
    }
}

@keyframes ringPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.06);
        opacity: .5;
    }
}

@keyframes shimmer {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

@keyframes glowLine {

    0%,
    100% {
        opacity: .3;
        transform: scaleX(1);
    }

    50% {
        opacity: 1;
        transform: scaleX(1.3);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════ SCROLL REVEAL ═══════════════════════════════════ */
.rev {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .85s var(--expo), transform .85s var(--expo);
}

.rev.vis {
    opacity: 1;
    transform: translateY(0);
}

.rev-l {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity .85s var(--expo), transform .85s var(--expo);
}

.rev-l.vis {
    opacity: 1;
    transform: translateX(0);
}

/* ── GLOW TEXT EFFECT on hover ── */
.glow-hover {
    transition: text-shadow .3s;
}

.glow-hover:hover {
    text-shadow: 0 0 30px rgba(0, 229, 255, .4);
}

/* ── SHIMMER gradient text animation ── */
.shimmer-text {
    background: linear-gradient(90deg, var(--text) 0%, var(--accent) 40%, var(--accent2) 60%, var(--text) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 5s linear infinite;
}

/* ── Section divider ── */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border) 30%, var(--border) 70%, transparent);
    margin: 0;
}

/* ═══════════════════════════════════ RESPONSIVE ═══════════════════════════════════ */
@media(max-width:920px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-r {
        display: none;
    }

    .hdesc {
        max-width: 100%;
    }

    .hactions {
        justify-content: center;
    }

    .hstats {
        justify-content: center;
    }

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

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

    .pcard--lg,
    .pcard--sm {
        grid-column: span 12;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .ham {
        display: flex;
    }

    .mob-menu {
        display: block;
    }
}

@media(max-width:600px) {
    .container {
        padding: 0 1.4rem;
    }

    nav {
        padding: 1.2rem 1.4rem;
    }

    section {
        padding: 6rem 0 4rem;
    }

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