/* Mohammed Al Hamlei — premium portfolio | CSS has no build-step dependencies */
:root {
    --bg: #090e1d;
    --bg2: #10172a;
    --panel: #121a30;
    --panel2: #17203a;
    --stroke: rgba(200, 207, 239, .13);
    --text: #f4f5ff;
    --muted: #9da8c5;
    --muted2: #72809e;
    --purple: #a98bff;
    --purple2: #7455e9;
    --purple3: #d0bcff;
    --gold: #d9ba7a;
    --shadow: 0 25px 85px rgba(0, 0, 0, .26);
    --radius: 22px;
    --transition: 250ms cubic-bezier(.2, .7, .2, 1)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 98px
}

body {
    margin: 0;
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    min-width: 320px;
    overflow-x: hidden
}

body[dir=ltr],
html[dir=ltr] body {
    font-family: 'Inter', 'Cairo', sans-serif;
    line-height: 1.65
}

body:before {
    content: "";
    z-index: -1;
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 42% 24% at 100% 24%, rgba(100, 73, 185, .11), transparent), radial-gradient(ellipse 30% 28% at 1% 70%, rgba(28, 91, 149, .08), transparent)
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font: inherit
}

button,
a {
    -webkit-tap-highlight-color: transparent
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--purple3);
    outline-offset: 5px
}

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

::selection {
    background: #9a83fa;
    color: #080c16
}

.svg-definitions {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden
}

.icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0
}

html[dir=rtl] .btn .icon:has(use[href="#ic-arrow"]),
html[dir=rtl] .method-arrow,
html[dir=rtl] .header-contact .icon,
html[dir=rtl] .back-to-top .icon {
    transform: scaleX(-1)
}

.skip-link {
    position: fixed;
    top: -90px;
    right: 20px;
    z-index: 999;
    background: white;
    color: #151529;
    padding: 8px 20px
}

.skip-link:focus {
    top: 18px
}

.scroll-progress {
    position: fixed;
    inset-inline-start: 0;
    top: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--purple), var(--gold));
    z-index: 150
}

.container {
    width: min(1192px, calc(100% - 72px));
    margin-inline: auto
}

.section {
    padding: 110px 0;
    position: relative
}

.section-kicker {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .5px;
    color: var(--purple3);
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 16px
}

.section-kicker>span:first-child {
    color: var(--gold)
}

.section-heading h2 {
    font-size: clamp(31px, 4vw, 54px);
    letter-spacing: -1.9px;
    line-height: 1.4;
    margin: 0 0 20px;
    font-weight: 900
}

.gradient-text {
    background: linear-gradient(100deg, #d0bbff, #9775ff 75%, #e4bd82);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent
}

.section-lead {
    margin: 0;
    max-width: 630px;
    font-size: 15px;
    line-height: 2;
    color: var(--muted)
}

.section-heading.centered {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 43px
}

.section-heading.centered .section-kicker {
    justify-content: center
}

.section-heading.centered .section-lead {
    margin: auto
}

.heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 32px
}

.heading-row .section-lead {
    max-width: 680px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 13px;
    min-height: 52px;
    padding: 11px 23px;
    font-weight: 800;
    font-size: 13px;
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition), border-color var(--transition);
    cursor: pointer;
    white-space: nowrap
}

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

.btn-primary {
    background: linear-gradient(115deg, #b18cfb, #7850e8);
    color: #fff;
    box-shadow: 0 12px 26px rgba(107, 74, 222, .26)
}

.btn-primary:hover {
    box-shadow: 0 14px 38px rgba(133, 89, 252, .38)
}

.btn-outline {
    border-color: rgba(192, 178, 255, .38);
    background: rgba(165, 143, 245, .05);
    color: #f7f2ff
}

.btn-outline:hover {
    background: rgba(133, 95, 230, .16);
    border-color: var(--purple)
}

.data-note {
    font-size: 12px;
    line-height: 2;
    color: var(--muted2);
    margin: 24px 0 0
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(205, 211, 253, .09);
    background: rgba(8, 12, 24, .89);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    transition: box-shadow .3s
}

.site-header.is-scrolled {
    box-shadow: 0 16px 30px rgba(0, 0, 0, .13)
}

.header-inner {
    display: flex;
    align-items: center;
    min-height: 82px;
    gap: 32px
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0
}

.brand-logo {
    font-family: Inter, sans-serif;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    background: linear-gradient(145deg, #f9e4ff, #9565ef);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent
}

.brand-logo span {
    color: var(--gold)
}

.brand-text {
    color: #e6e8f7;
    font-size: 13px;
    font-weight: 900
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    flex: 1
}

.desktop-nav a {
    position: relative;
    font-weight: 700;
    color: #b9c0d5;
    font-size: 12px;
    white-space: nowrap;
    padding: 29px 0;
    transition: color var(--transition)
}

.desktop-nav a::after {
    content: "";
    height: 2px;
    position: absolute;
    bottom: 20px;
    right: 0;
    left: 0;
    background: linear-gradient(90deg, var(--purple), var(--gold));
    transform: scaleX(0);
    transition: transform var(--transition)
}

.desktop-nav a.active,
.desktop-nav a:hover {
    color: #fff
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 11px
}

.language-switch,
.menu-button {
    border: 1px solid var(--stroke);
    background: #1b2237;
    color: #fff;
    border-radius: 11px;
    min-height: 41px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800
}

.language-switch .icon {
    height: 16px;
    width: 16px
}

.header-contact {
    min-height: 41px;
    border-radius: 11px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(164, 140, 245, .13);
    border: 1px solid rgba(172, 138, 255, .29);
    font-size: 12px;
    font-weight: 800
}

.header-contact .icon {
    width: 15px
}

.menu-button {
    display: none;
    padding: 0 10px
}

.mobile-nav {
    display: none
}

.mobile-nav[hidden] {
    display: none !important
}

/* HERO */
.hero {
    position: relative;
    padding-top: 86px;
    overflow: hidden
}

.hero-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 50% 45% at 81% 25%, rgba(111, 77, 200, .22), transparent 70%), radial-gradient(ellipse 38% 40% at 9% 0%, rgba(99, 73, 167, .12), transparent 80%), linear-gradient(160deg, transparent 66%, rgba(71, 72, 131, .05));
    z-index: 0
}

.hero::before {
    position: absolute;
    content: "";
    width: 550px;
    height: 550px;
    right: -380px;
    top: 0;
    border: 1px solid rgba(185, 168, 249, .1);
    border-radius: 50%;
    box-shadow: 0 0 0 110px rgba(160, 125, 249, .025), 0 0 0 220px rgba(160, 125, 249, .015)
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 65px;
    align-items: center;
    position: relative;
    z-index: 1
}

.hero-content {
    padding: 5px 0 35px
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(173, 141, 244, .27);
    border-radius: 99px;
    background: rgba(134, 105, 215, .12);
    color: #d4c3ff;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 800;
    max-width: 100%
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    background: #c4a3ff;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(165, 140, 248, .13)
}

.hero-intro {
    font-size: 14px;
    color: #a8b0cb;
    margin: 25px 0 4px
}

.hero h1 {
    font-size: clamp(37px, 4.2vw, 61px);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.37;
    margin: 0;
    max-width: 730px
}

.hero h1 em {
    font-style: normal;
    color: #b499ff
}

.name-en {
    font-family: Inter, sans-serif;
    color: #aab2cb;
    font-size: 12px;
    letter-spacing: 1.7px;
    font-weight: 700;
    line-height: 1.8;
    margin: 8px 0 18px;
    direction: ltr;
    text-align: start
}

.hero-role {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-wrap: wrap;
    color: #e3e6f9;
    font-size: 13px;
    font-weight: 800
}

.role-sep {
    height: 16px;
    width: 1px;
    background: #665e86
}

.hero-description {
    font-size: 15px;
    line-height: 2.15;
    color: #b3bdd9;
    margin: 24px 0 27px;
    max-width: 600px
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.hero-contactline {
    display: flex;
    gap: 19px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 31px;
    font-size: 11px;
    color: #aab4d0
}

.hero-contactline>span,
.hero-contactline>a {
    display: flex;
    gap: 6px;
    align-items: center
}

.hero-contactline .icon {
    color: #b19cff;
    width: 16px;
    height: 16px
}

.hero-contactline a {
    direction: ltr
}

.hero-visual {
    max-width: 440px;
    min-width: 0;
    width: 100%;
    justify-self: center;
    position: relative;
    padding: 0 14px 25px 4px
}

.hero-photo-frame {
    height: 525px;
    position: relative;
    border-radius: 35% 35% 21px 21px;
    isolation: isolate;
    background: #172039;
    box-shadow: var(--shadow);
    border: 1px solid rgba(182, 156, 255, .28);
    overflow: hidden
}

.hero-photo-glow {
    position: absolute;
    z-index: -1;
    inset: -3px;
    background: linear-gradient(155deg, #9171f6, #242c4d 48%, #5c4caf)
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
    filter: contrast(1.03) saturate(.9)
}

.photo-bottom-shade {
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(0deg, rgba(8, 12, 32, .95), transparent)
}

.photo-caption {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 12px
}

.mini-mark {
    font-family: Inter, sans-serif;
    color: #bfa0ff;
    border: 1px solid rgba(201, 179, 255, .5);
    border-radius: 11px;
    font-weight: 900;
    font-size: 17px;
    padding: 8px
}

.photo-caption strong {
    display: block;
    font-size: 15px
}

.photo-caption small {
    font-family: Inter, sans-serif;
    font-size: 9px;
    color: #bcb2db;
    letter-spacing: 1px
}

.floating-tag {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(19, 23, 42, .95);
    border: 1px solid rgba(190, 164, 252, .28);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
    border-radius: 13px;
    padding: 10px 14px;
    z-index: 2;
    backdrop-filter: blur(15px)
}

.floating-tag-one {
    top: 100px;
    inset-inline-start: -25px;
    font-family: Inter, sans-serif;
    font-size: 10px;
    color: #e0d3ff;
    font-weight: 800;
    letter-spacing: 1px
}

.floating-tag-one .icon {
    color: var(--gold)
}

.floating-tag-two {
    bottom: 91px;
    inset-inline-end: -30px;
    flex-direction: column;
    align-items: start;
    gap: 0;
    font-size: 11px;
    color: #ced6f0;
    line-height: 1.4
}

.tag-number {
    font-family: Inter, sans-serif;
    font-size: 33px;
    font-weight: 900;
    color: #fff
}

.tag-number span {
    font-size: 20px;
    color: var(--gold)
}

.hero-metrics {
    position: relative;
    margin-top: 35px;
    margin-bottom: 38px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px
}

.metric {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 107px;
    background: linear-gradient(145deg, rgba(35, 44, 76, .55), rgba(17, 25, 46, .42));
    border: 1px solid var(--stroke);
    border-radius: 17px;
    padding: 18px
}

.metric:not(:last-child)::after {
    content: "";
    position: absolute;
    inset-inline-end: -9px;
    top: 40%;
    height: 19px;
    width: 1px;
    background: rgba(201, 176, 255, .25)
}

.metric strong {
    font-family: Inter, sans-serif;
    direction: ltr;
    font-size: 33px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px
}

.metric strong span {
    font-size: 16px;
    color: var(--purple);
    letter-spacing: 0
}

.metric>span {
    font-size: 11px;
    color: #aab5d1;
    margin-top: 10px
}

.clients-band {
    border-top: 1px solid var(--stroke);
    border-bottom: 1px solid var(--stroke);
    background: rgba(16, 23, 41, .65)
}

.clients-inner {
    display: flex;
    gap: 38px;
    align-items: center;
    padding: 24px 0
}

.clients-label {
    font-size: 11px;
    white-space: nowrap;
    color: var(--muted);
    font-weight: 700
}

.clients-list {
    display: flex;
    flex: 1;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap
}

.clients-list span {
    font-family: Inter, sans-serif;
    color: #c5cbdb;
    opacity: .8;
    font-size: clamp(11px, 1.3vw, 17px);
    font-weight: 800;
    letter-spacing: -.3px
}

/* ABOUT */
.about-section {
    background: linear-gradient(180deg, rgba(17, 26, 49, .27), transparent)
}

.about-layout {
    display: grid;
    grid-template-columns: .86fr 1.14fr;
    gap: 70px;
    align-items: center
}

.about-panels {
    display: grid;
    gap: 17px
}

.about-quote {
    padding: 31px 34px 26px;
    border: 1px solid rgba(181, 152, 255, .23);
    background: radial-gradient(circle at 0% 0%, rgba(130, 87, 228, .14), transparent 55%), linear-gradient(140deg, #18223e, #141c33);
    border-radius: 22px;
    position: relative
}

.quote-mark {
    font-family: Georgia, serif;
    font-size: 69px;
    line-height: .7;
    color: #ac92fe;
    display: block
}

.about-quote p {
    font-size: 17px;
    line-height: 2;
    color: #e4e7f7;
    margin: 17px 0
}

.quote-rule {
    width: 55px;
    height: 2px;
    background: var(--gold);
    margin: 22px 0
}

.about-quote strong {
    display: block;
    font-size: 13px
}

.about-quote small {
    font-size: 11px;
    color: var(--muted)
}

.about-points {
    display: grid;
    gap: 12px
}

.about-points>div {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 11px 16px;
    border: 1px solid rgba(213, 218, 250, .1);
    border-radius: 13px;
    background: rgba(24, 31, 52, .54)
}

.point-icon {
    border-radius: 9px;
    background: rgba(150, 121, 233, .14);
    color: #b8a0ff;
    padding: 6px 11px;
    font-family: Inter, sans-serif;
    font-weight: 800;
    font-size: 13px
}

.about-points p {
    font-size: 12px;
    line-height: 1.8;
    margin: 0;
    color: #c1c9df
}

/* EXPERTISE */
.expertise-section {
    background: #0d1426
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.expertise-card {
    background: linear-gradient(165deg, #18223a, #11192e);
    border: 1px solid var(--stroke);
    border-radius: 20px;
    padding: 29px 26px;
    min-height: 415px;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition)
}

.expertise-card:hover {
    transform: translateY(-7px);
    border-color: rgba(184, 154, 255, .38);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .17)
}

.expertise-icon {
    height: 51px;
    width: 51px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(148, 118, 248, .28), rgba(139, 116, 228, .07));
    border: 1px solid rgba(190, 172, 255, .22);
    border-radius: 14px;
    font-family: Inter, sans-serif;
    font-size: 21px;
    font-weight: 800;
    color: #d5c1ff
}

.expertise-card h3 {
    font-size: 17px;
    line-height: 1.5;
    margin: 22px 0 9px
}

.expertise-card p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.9;
    min-height: 70px;
    margin: 0 0 20px
}

.expertise-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px
}

.expertise-card li {
    position: relative;
    padding-inline-start: 20px;
    font-size: 12px;
    color: #c4cee6
}

.expertise-card li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 12px;
    height: 6px;
    width: 6px;
    border: 1px solid var(--purple);
    background: rgba(177, 141, 249, .32);
    transform: rotate(45deg)
}

.tools-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border: 1px dashed rgba(178, 164, 223, .23);
    background: #121b30;
    padding: 17px 20px;
    border-radius: 15px;
    margin-top: 25px
}

.tools-strip strong {
    font-size: 13px;
    margin-inline-end: 7px
}

.tools-strip>span {
    color: #c7cde0;
    background: #202b46;
    border-radius: 50px;
    padding: 5px 13px;
    font-family: Inter, sans-serif;
    font-size: 11px
}

.tools-strip small {
    width: 100%;
    color: var(--muted2);
    font-size: 11px
}

/* PROJECTS */
.project-counter {
    min-width: 112px;
    height: 108px;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid rgba(183, 151, 255, .33);
    background: rgba(132, 97, 219, .09)
}

.project-counter b {
    font: 800 35px Inter, sans-serif;
    color: #c4abff
}

.project-counter small {
    font-size: 11px;
    color: var(--muted)
}

.filters {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin: 0 0 25px
}

.filter {
    border: 1px solid var(--stroke);
    background: #151d33;
    color: #aeb9d2;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition)
}

.filter:hover {
    color: white;
    border-color: rgba(182, 156, 255, .4)
}

.filter.active {
    color: #fff;
    background: #6547ca;
    border-color: #9175eb;
    box-shadow: 0 5px 20px rgba(116, 88, 217, .17)
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px
}

.project-card {
    display: flex;
    flex-direction: column;
    min-height: 282px;
    padding: 26px 27px;
    border-radius: 19px;
    background: linear-gradient(150deg, #171f38, #11182a);
    border: 1px solid var(--stroke);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition)
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 75px;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), transparent)
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(171, 141, 244, .4);
    box-shadow: 0 22px 40px rgba(0, 0, 0, .16)
}

.project-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 17px
}

.project-category {
    display: inline-flex;
    border-radius: 6px;
    background: rgba(138, 113, 231, .14);
    color: #d2c3ff;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 800
}

.project-date {
    font: 600 11px Inter, sans-serif;
    color: #a6b2cd;
    direction: ltr
}

.project-card h3 {
    font-size: 17px;
    line-height: 1.65;
    margin: 0 0 9px
}

.project-client {
    color: #aeb9d0;
    font-size: 12px;
    margin: 0 0 11px
}

.project-desc {
    color: #a5afca;
    line-height: 1.9;
    font-size: 12px;
    margin: 0 0 16px;
    flex: 1
}

.project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 11px;
    border-top: 1px solid rgba(203, 208, 244, .11);
    padding-top: 15px
}

.project-role {
    font-size: 11px;
    color: #e1d5fd;
    font-weight: 700
}

.project-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--gold);
    font-weight: 800
}

.project-stats span {
    direction: ltr;
    unicode-bidi: isolate
}

.projects-grid:empty:after {
    content: "Loading projects...";
    color: var(--muted)
}

/* TIMELINE */
.experience-section {
    background: linear-gradient(160deg, #121c31, #0c1223 75%)
}

.experience-layout {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 80px
}

.experience-aside {
    border-top: 1px solid var(--stroke);
    padding: 25px 0;
    margin-top: 32px;
    display: flex;
    flex-direction: column
}

.experience-aside strong {
    font: 800 30px Inter, sans-serif;
    color: #c5afff;
    direction: ltr;
    text-align: start
}

.experience-aside span {
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px
}

.timeline {
    border-inline-start: 1px solid rgba(164, 141, 230, .27);
    padding-inline-start: 28px
}

.timeline-entry {
    position: relative;
    padding: 0 0 28px
}

.timeline-entry:last-child {
    padding-bottom: 0
}

.timeline-entry:before {
    content: "";
    position: absolute;
    inset-inline-start: -35px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #bd9cff;
    border: 3px solid #182039;
    box-shadow: 0 0 0 3px rgba(156, 130, 231, .25)
}

.timeline-period {
    color: #ae9bf3;
    font: 700 11px Inter, sans-serif;
    direction: ltr;
    display: block;
    text-align: start;
    letter-spacing: .3px;
    margin-bottom: 5px
}

.timeline-role {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 4px
}

.timeline-company {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.9;
    margin: 0
}

.timeline-highlights {
    font-size: 12px;
    color: #aeb6cf;
    margin: 6px 0 0;
    line-height: 1.8
}

/* CREDENTIALS */
.credentials-section {
    background: rgba(11, 17, 33, .95)
}

.credential-mark {
    font: 900 32px Inter, sans-serif;
    direction: ltr;
    color: #fff;
    line-height: 1.2;
    padding: 12px 24px;
    border-inline-start: 2px solid var(--purple);
    background: linear-gradient(90deg, rgba(171, 133, 236, .09), transparent)
}

.credential-mark>span {
    font-size: 14px;
    vertical-align: top
}

.credential-mark small {
    display: block;
    font: 800 15px Inter, sans-serif;
    color: #bdadf5;
    margin-top: 6px
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 19px
}

.cert-card {
    border: 1px solid var(--stroke);
    background: linear-gradient(145deg, #1a223a, #11182b);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition)
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: rgba(165, 137, 242, .45);
    box-shadow: 0 17px 36px rgba(0, 0, 0, .24)
}

.cert-image-button {
    background: #e9e9ed;
    border: 0;
    width: 100%;
    height: 185px;
    cursor: pointer;
    padding: 10px;
    overflow: hidden;
    position: relative
}

.cert-image-button:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 66%, rgba(12, 16, 28, .33));
    pointer-events: none;
    z-index: 1
}

.cert-image-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .4s
}

.cert-card:hover .cert-image-button img {
    transform: scale(1.045)
}

.cert-details {
    padding: 20px 19px 18px;
    flex: 1;
    display: flex;
    flex-direction: column
}

.cert-status {
    font-size: 10px;
    letter-spacing: .15px;
    color: var(--gold);
    font-weight: 800
}

.cert-details h3 {
    font-size: 14px;
    line-height: 1.75;
    margin: 6px 0
}

.cert-details p {
    font-size: 11px;
    line-height: 1.9;
    color: var(--muted);
    margin: 0 0 11px
}

.cert-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(216, 220, 252, .09)
}

.cert-date {
    font-family: Inter, sans-serif;
    direction: ltr;
    font-size: 10px;
    color: #a3aac2
}

.cert-open {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #bfaeff;
    background: transparent;
    border: 0;
    padding: 4px;
    font-size: 11px;
    cursor: pointer;
    font-weight: 800
}

.cert-open .icon {
    width: 15px;
    height: 15px
}

.cert-download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 29px;
    padding: 24px 29px;
    border: 1px solid rgba(175, 147, 255, .31);
    border-radius: 19px;
    background: radial-gradient(ellipse at 0% 0%, rgba(151, 113, 228, .14), transparent 65%), #172039
}

.cert-download strong {
    font-size: 17px
}

.cert-download p {
    font-size: 12px;
    color: var(--muted);
    margin: 4px 0 0
}

.cert-download .btn {
    flex-shrink: 0
}

/* EDUCATION */
.education-section {
    background: linear-gradient(160deg, #131c31, #0d1425)
}

.education-layout {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    align-items: center;
    gap: 65px
}

.education-card {
    display: flex;
    gap: 28px;
    align-items: start;
    padding: 34px;
    border-radius: 21px;
    border: 1px solid var(--stroke);
    background: linear-gradient(120deg, rgba(150, 121, 242, .12), rgba(25, 34, 61, .85));
    position: relative
}

.education-year {
    font: 900 40px Inter, sans-serif;
    letter-spacing: -2px;
    color: #bba2ff;
    line-height: 1.3
}

.badge-outline {
    display: inline-flex;
    border: 1px solid rgba(191, 157, 255, .37);
    padding: 2px 12px;
    border-radius: 100px;
    font-size: 11px;
    color: #cbbaff
}

.education-card h3 {
    font-size: 23px;
    margin: 8px 0 2px
}

.education-card p {
    font-size: 14px;
    margin: 0;
    color: #d1d6e8
}

.education-meta {
    border-top: 1px solid var(--stroke);
    margin-top: 19px;
    padding-top: 16px;
    display: grid;
    gap: 8px
}

.education-meta span {
    color: var(--muted);
    font-size: 11px
}

/* CONTACT */
.contact-section {
    padding-bottom: 80px
}

.contact-panel {
    background: radial-gradient(ellipse at 12% 15%, rgba(114, 80, 204, .21), transparent 55%), linear-gradient(140deg, #1c2845, #121b31);
    border: 1px solid rgba(175, 150, 244, .33);
    border-radius: 28px;
    padding: 49px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden
}

.contact-panel:after {
    content: "";
    pointer-events: none;
    position: absolute;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(203, 184, 255, .1);
    border-radius: 50%;
    inset-inline-end: -190px;
    top: -110px
}

.contact-copy h2 {
    font-size: clamp(31px, 3.5vw, 46px);
    margin: 0 0 13px;
    line-height: 1.45;
    font-weight: 900
}

.contact-copy>p:not(.section-kicker) {
    font-size: 13px;
    color: var(--muted);
    line-height: 2;
    max-width: 440px;
    margin: 0 0 25px
}

.contact-methods {
    display: grid;
    gap: 11px
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 71px;
    padding: 10px 15px;
    background: rgba(9, 14, 29, .4);
    border: 1px solid rgba(179, 172, 215, .13);
    border-radius: 13px;
    text-align: start;
    transition: border-color var(--transition), transform var(--transition);
    min-width: 0
}

.contact-method:is(a, button):hover {
    border-color: rgba(187, 159, 251, .48);
    transform: translateY(-2px)
}

.contact-icon {
    height: 42px;
    width: 42px;
    flex-shrink: 0;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: rgba(142, 113, 232, .15);
    border: 1px solid rgba(180, 148, 255, .22);
    color: #c0a5ff;
    font: 900 11px Inter, sans-serif
}

.contact-method>span:nth-child(2) {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1
}

.contact-method small {
    font-size: 10px;
    color: var(--muted)
}

.contact-method strong {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere
}

.contact-method .ltr-value {
    direction: ltr;
    text-align: start;
    unicode-bidi: isolate;
    font-family: Inter, sans-serif;
    font-size: 11px
}

.method-arrow {
    color: var(--muted2);
    height: 17px;
    width: 17px
}

.copy-site {
    width: 100%;
    cursor: pointer;
    color: inherit;
    font-family: inherit
}

.site-footer {
    padding: 25px 0 35px;
    border-top: 1px solid var(--stroke)
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: space-between
}

.footer-logo {
    font-size: 28px
}

.footer-inner>div {
    flex: 1
}

.footer-inner p {
    margin: 0 0 4px;
    color: #b8c2dc;
    font-size: 11px
}

.footer-inner small {
    color: var(--muted2);
    font-size: 10px
}

.back-to-top {
    font-size: 11px;
    font-weight: 800;
    color: var(--purple3);
    display: flex;
    align-items: center;
    gap: 7px
}

.back-to-top .icon {
    width: 15px;
    height: 15px;
    transform: rotate(-90deg) !important
}

/* MODAL & SMALL SYSTEM FEEDBACK */
.certificate-modal {
    position: fixed;
    border: 1px solid rgba(195, 171, 255, .35);
    padding: 0;
    color: var(--text);
    background: #12192b;
    border-radius: 23px;
    box-shadow: 0 35px 110px rgba(0, 0, 0, .7);
    width: min(840px, calc(100% - 24px));
    max-height: calc(100dvh - 32px);
    overflow: auto;
    overscroll-behavior: contain
}

.certificate-modal::backdrop {
    background: rgba(2, 5, 14, .84);
    backdrop-filter: blur(7px)
}

.modal-top {
    padding: 21px 26px;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 20px
}

.modal-top h3 {
    font-size: 17px;
    line-height: 1.5;
    margin: 4px 0 0
}

.modal-category {
    font-size: 11px;
    color: var(--gold)
}

.modal-close {
    width: 37px;
    height: 37px;
    border-radius: 9px;
    border: 1px solid var(--stroke);
    color: #eee;
    background: #202941;
    cursor: pointer;
    display: grid;
    place-items: center
}

.modal-image-wrap {
    background: #e5e6ed;
    margin: 0 20px;
    border-radius: 10px;
    min-height: 200px;
    display: grid;
    place-items: center;
    overflow: hidden
}

.modal-image-wrap img {
    max-height: min(54dvh, 560px);
    object-fit: contain
}

.modal-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 26px
}

.modal-bottom p {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
    max-width: 450px
}

.modal-bottom .btn {
    min-height: 44px
}

.toast {
    position: fixed;
    z-index: 500;
    bottom: 22px;
    left: 50%;
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    background: #cab5ff;
    color: #101124;
    border-radius: 12px;
    padding: 9px 18px;
    font-size: 12px;
    font-weight: 900;
    transition: opacity .2s, transform .2s
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0)
}

.noscript-note {
    padding: 20px;
    text-align: center;
    color: #fff;
    background: #5d3688
}

/* reveal never hides content when JavaScript is unavailable */
.js-enabled .reveal {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity 1.5s ease, transform 1.5s cubic-bezier(0.22, 1, 0.36, 1)
}

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

html[dir=ltr] .hero h1 {
    letter-spacing: -2px;
    font-size: clamp(37px, 3.9vw, 57px)
}

html[dir=ltr] .hero-role {
    gap: 11px
}

html[dir=ltr] .name-en {
    letter-spacing: .5px
}

html[dir=ltr] .section-heading h2 {
    letter-spacing: -1.8px
}

html[dir=ltr] .brand-text {
    font-size: 11px
}

html[dir=ltr] .section-lead,
html[dir=ltr] .hero-description {
    line-height: 1.85
}

html[dir=ltr] .project-date,
html[dir=ltr] .timeline-period,
html[dir=ltr] .name-en {
    text-align: start
}

html[dir=ltr] .cert-details h3,
html[dir=ltr] .expertise-card h3 {
    line-height: 1.5
}

@media(max-width:1100px) {
    .container {
        width: min(100% - 52px, 1080px)
    }

    .desktop-nav {
        gap: 17px
    }

    .brand-text {
        display: none
    }

    .header-inner {
        gap: 19px
    }

    .hero-grid {
        gap: 32px
    }

    .hero h1 {
        font-size: clamp(36px, 4.1vw, 50px)
    }

    .hero-photo-frame {
        height: 480px
    }

    .floating-tag-one {
        inset-inline-start: -12px
    }

    .floating-tag-two {
        inset-inline-end: -13px
    }

    .experience-layout {
        gap: 45px
    }

    .contact-panel {
        gap: 32px
    }
}

@media(max-width:900px) {

    .desktop-nav,
    .header-contact {
        display: none
    }

    .header-inner {
        justify-content: space-between;
        min-height: 70px
    }

    .brand-text {
        display: inline
    }

    .menu-button {
        display: flex
    }

    .mobile-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 13px 26px 20px;
        border-top: 1px solid var(--stroke);
        background: #0b1121
    }

    .mobile-nav a {
        padding: 12px 14px;
        border: 1px solid var(--stroke);
        border-radius: 10px;
        background: #131c31;
        color: #e2e6f5;
        text-align: center;
        font-size: 12px;
        font-weight: 700
    }

    .hero {
        padding-top: 60px
    }

    .hero-grid {
        grid-template-columns: 1.05fr .95fr;
        gap: 22px
    }

    .hero-photo-frame {
        height: 420px
    }

    .hero h1 {
        font-size: clamp(33px, 4.4vw, 43px)
    }

    .hero-description {
        font-size: 13px
    }

    .hero-contactline {
        gap: 9px
    }

    .hero-buttons .btn {
        padding: 10px 15px;
        font-size: 12px
    }

    .hero-metrics {
        grid-template-columns: repeat(4, 1fr)
    }

    .metric strong {
        font-size: 26px
    }

    .about-layout,
    .experience-layout,
    .education-layout {
        grid-template-columns: 1fr;
        gap: 28px
    }

    .about-layout>.section-heading,
    .experience-layout>.section-heading,
    .education-layout>.section-heading {
        max-width: 690px
    }

    .experience-aside {
        display: none
    }

    .expertise-grid {
        gap: 11px
    }

    .expertise-card {
        padding: 22px 19px
    }

    .cert-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .contact-panel {
        padding: 32px;
        grid-template-columns: 1fr 1.1fr;
        gap: 25px
    }

    .contact-copy h2 {
        font-size: 33px
    }

    .footer-inner {
        gap: 14px
    }
}

@media(max-width:700px) {
    .container {
        width: calc(100% - 36px)
    }

    .section {
        padding: 72px 0
    }

    .header-inner {
        min-height: 66px
    }

    .mobile-nav {
        grid-template-columns: repeat(2, 1fr);
        padding-inline: 18px
    }

    .brand-logo {
        font-size: 26px
    }

    .hero {
        padding: 46px 0 0
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px
    }

    .hero-content {
        padding: 0
    }

    .hero-intro {
        margin-top: 21px
    }

    .hero h1,
    html[dir=ltr] .hero h1 {
        font-size: clamp(35px, 7.8vw, 53px);
        letter-spacing: -1px
    }

    .name-en {
        font-size: 10px;
        letter-spacing: .9px
    }

    .hero-description {
        max-width: 640px
    }

    .hero-visual {
        max-width: 420px;
        width: calc(100% - 28px);
        padding: 0 2px 5px
    }

    .hero-photo-frame {
        height: 440px
    }

    .floating-tag-one {
        top: 80px;
        inset-inline-start: -13px
    }

    .floating-tag-two {
        bottom: 48px;
        inset-inline-end: -15px
    }

    .hero-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 32px;
        margin-bottom: 25px
    }

    .metric {
        min-height: 95px
    }

    .metric::after {
        display: none
    }

    .clients-inner {
        flex-direction: column;
        gap: 17px;
        align-items: start
    }

    .clients-list {
        gap: 18px 26px;
        justify-content: start
    }

    .clients-list span {
        font-size: 12px
    }

    .section-heading h2 {
        font-size: 37px
    }

    .section-lead {
        font-size: 13px
    }

    .about-panels {
        gap: 12px
    }

    .expertise-grid {
        grid-template-columns: 1fr
    }

    .expertise-card {
        min-height: 0;
        padding: 24px
    }

    .expertise-card p {
        min-height: 0
    }

    .expertise-card ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 15px
    }

    .heading-row {
        align-items: start
    }

    .project-counter {
        display: none
    }

    .projects-grid {
        grid-template-columns: 1fr
    }

    .project-card {
        min-height: 260px
    }

    .cert-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px
    }

    .cert-image-button {
        height: 150px
    }

    .cert-details {
        padding: 14px 13px
    }

    .cert-details h3 {
        font-size: 12px
    }

    .cert-details p {
        font-size: 10px
    }

    .cert-download {
        flex-direction: column;
        align-items: stretch;
        padding: 21px
    }

    .cert-download .btn {
        width: 100%
    }

    .education-card {
        padding: 25px
    }

    .contact-panel {
        grid-template-columns: 1fr;
        padding: 29px 21px;
        border-radius: 22px;
        gap: 25px
    }

    .contact-copy h2 {
        font-size: 33px
    }

    .contact-method strong {
        font-size: 12px
    }

    .footer-inner {
        align-items: start;
        flex-wrap: wrap
    }

    .footer-inner>div {
        flex: 1 1 calc(100% - 80px)
    }

    .back-to-top {
        margin-inline-start: auto
    }

    .modal-bottom {
        align-items: stretch;
        flex-direction: column
    }

    .modal-bottom .btn {
        width: 100%
    }
}

@media(max-width:410px) {

    .hero h1,
    html[dir=ltr] .hero h1 {
        font-size: 35px
    }

    .hero-buttons {
        flex-direction: column
    }

    .hero-buttons .btn {
        width: 100%
    }

    .hero-contactline {
        font-size: 10px
    }

    .hero-photo-frame {
        height: 365px
    }

    .floating-tag {
        padding: 8px 10px
    }

    .floating-tag-one {
        font-size: 8px
    }

    .tag-number {
        font-size: 25px
    }

    .section-heading h2 {
        font-size: 31px
    }

    .expertise-card ul {
        grid-template-columns: 1fr
    }

    .cert-grid {
        grid-template-columns: 1fr
    }

    .cert-image-button {
        height: 185px
    }

    .cert-details {
        padding: 18px
    }

    .cert-details h3 {
        font-size: 14px
    }

    .filters {
        gap: 7px
    }

    .filter {
        padding: 7px 12px
    }

    .education-card {
        flex-direction: column;
        gap: 10px
    }

    .education-year {
        font-size: 32px
    }

    .contact-method {
        padding: 9px
    }

    .contact-icon {
        width: 37px;
        height: 37px
    }

    .contact-method .ltr-value {
        font-size: 10px
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important
    }

    .js-enabled .reveal {
        opacity: 1;
        transform: none
    }
}