/* ==========================================================================
   Base
   ========================================================================== */

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

:root {
    color-scheme: dark;
    --bg-color: #0d1117;
    --bg-soft: #111820;
    --surface: #151b23;
    --surface-strong: #1b232d;
    --header-color: rgba(13, 17, 23, 0.86);
    --card-color: #161d26;
    --text-color: #f5f7fb;
    --secondary-text: #b5c0ce;
    --muted-text: #8d99a8;
    --border: rgba(205, 217, 229, 0.12);
    --border-strong: rgba(205, 217, 229, 0.22);
    --primary: #14b8a6;
    --primary-strong: #0f766e;
    --primary-hover: #0b5f57;
    --accent: #d97706;
    --accent-soft: rgba(217, 119, 6, 0.11);
    --success-soft: rgba(20, 184, 166, 0.14);
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.18);
    --radius: 8px;
    --header-height: 82px;
}

body.light-mode {
    color-scheme: light;
    --bg-color: #f7f9fc;
    --bg-soft: #eef3f8;
    --surface: #ffffff;
    --surface-strong: #f1f5f9;
    --header-color: rgba(255, 255, 255, 0.9);
    --card-color: #ffffff;
    --text-color: #121826;
    --secondary-text: #4b5565;
    --muted-text: #667085;
    --border: rgba(18, 24, 38, 0.12);
    --border-strong: rgba(18, 24, 38, 0.2);
    --primary: #0f766e;
    --primary-strong: #115e59;
    --primary-hover: #0f4f4a;
    --accent: #9a3412;
    --accent-soft: rgba(154, 52, 18, 0.09);
    --success-soft: rgba(15, 118, 110, 0.12);
    --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 8%, rgba(20, 184, 166, 0.1), transparent 28%),
        radial-gradient(circle at 86% 18%, rgba(245, 158, 11, 0.08), transparent 26%),
        linear-gradient(180deg, var(--bg-color), var(--bg-soft) 48%, var(--bg-color));
    color: var(--text-color);
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.mobile-menu-open {
    overflow: hidden;
}

body.modal-open {
    overflow: hidden;
}

body.is-translating main,
body.is-translating footer {
    opacity: 0.35;
    transition: opacity 0.16s ease;
}

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

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

section {
    scroll-margin-top: calc(var(--header-height) + 32px);
}

.section-shell {
    padding: 84px 8%;
}

.section-title {
    max-width: 840px;
    margin-bottom: 30px;
}

.section-title h2 {
    max-width: 820px;
    color: var(--text-color);
    font-size: 2.35rem;
    line-height: 1.18;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
}

.section-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

:focus-visible {
    outline: 3px solid rgba(20, 184, 166, 0.72);
    outline-offset: 3px;
}

/* ==========================================================================
   Buttons and Tags
   ========================================================================== */

.btn,
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-github,
.btn-demo {
    min-height: 46px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    padding: 12px 18px;
    cursor: pointer;
    color: inherit;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        color 0.22s ease;
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-outline:hover,
.btn-github:hover,
.btn-demo:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary-strong);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(20, 184, 166, 0.22);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 18px 36px rgba(20, 184, 166, 0.28);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
    color: var(--text-color);
}

.btn-secondary:hover,
.btn-outline:hover,
.btn-github:hover {
    border-color: rgba(20, 184, 166, 0.46);
    background: var(--success-soft);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text-color);
}

.btn-github,
.btn-demo {
    flex: 1;
    min-width: 148px;
}

.btn-github {
    background: transparent;
    border-color: var(--border);
}

.btn-demo {
    border-color: rgba(20, 184, 166, 0.3);
    background: var(--primary-strong);
    color: #ffffff;
}

body.light-mode .btn-demo {
    color: #ffffff;
}

.btn-demo:hover {
    background: var(--primary-hover);
    box-shadow: 0 14px 28px rgba(20, 184, 166, 0.22);
}

body.light-mode .btn-demo:hover {
    background: var(--primary-hover);
}

.tag-list,
.project-techs,
.experience-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list span,
.project-techs span,
.experience-techs span,
.about-highlights span,
.hero__stack li {
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-color);
    padding: 7px 10px;
    font-size: 0.84rem;
    font-weight: 700;
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}

.tag-list span:hover,
.project-techs span:hover,
.experience-techs span:hover,
.about-highlights span:hover,
.hero__stack li:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 184, 166, 0.42);
    background: var(--success-soft);
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 14px 8%;
    border-bottom: 1px solid transparent;
    background: var(--header-color);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition:
        min-height 0.24s ease,
        box-shadow 0.24s ease,
        border-color 0.24s ease,
        background 0.24s ease;
}

.header.scrolled {
    min-height: 70px;
    border-color: var(--border);
    box-shadow: var(--shadow-soft);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
    text-decoration: none;
}

.logo__mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    color: #ffffff;
    font-weight: 900;
}

.logo__text {
    display: grid;
    gap: 1px;
}

.logo__text strong {
    font-size: 0.98rem;
}

.logo__text small {
    color: var(--secondary-text);
    font-size: 0.78rem;
    font-weight: 700;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

.navbar a {
    border-radius: var(--radius);
    padding: 9px 11px;
    color: var(--secondary-text);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    transition:
        color 0.22s ease,
        background 0.22s ease;
}

.navbar a:hover,
.navbar a.active-link {
    background: var(--success-soft);
    color: var(--text-color);
    box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.12);
}

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

.language-switcher {
    position: relative;
}

.language-button,
.theme-toggle,
.menu-mobile {
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-color);
    cursor: pointer;
    transition:
        transform 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease;
}

.language-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    font-weight: 800;
}

.language-button i {
    color: var(--muted-text);
    font-size: 0.78rem;
    transition: transform 0.22s ease;
}

.language-button[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.language-button:hover,
.theme-toggle:hover,
.menu-mobile:hover {
    transform: translateY(-1px);
    border-color: rgba(20, 184, 166, 0.42);
    background: var(--success-soft);
}

.language-button__flag,
.language-menu__flag {
    font-size: 1rem;
    line-height: 1;
}

.language-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 190px;
    display: grid;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    transform-origin: top right;
    animation: dropdownReveal 0.18s ease both;
}

.language-menu[hidden] {
    display: none;
}

.language-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    padding: 10px 12px;
    text-align: left;
    font-weight: 800;
}

.language-option:hover,
.language-option[aria-current="true"] {
    background: var(--success-soft);
}

.theme-toggle,
.menu-mobile {
    width: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle i,
.menu-mobile i {
    transition: transform 0.22s ease;
}

.theme-toggle:hover i,
.menu-mobile:hover i {
    transform: rotate(-8deg);
}

.menu-mobile {
    display: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    min-height: min(820px, 100vh);
    display: grid;
    align-items: center;
    overflow: hidden;
    padding: calc(var(--header-height) + 44px) 8% 40px;
    background:
        linear-gradient(135deg, #0b0f14 0%, #101922 52%, #0f211e 100%);
    color: #f7fafc;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 92%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 92%);
}

.hero__ambient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(110deg, rgba(20, 184, 166, 0.18), transparent 34%),
        linear-gradient(250deg, rgba(217, 119, 6, 0.1), transparent 36%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.24fr) minmax(270px, 0.52fr);
    align-items: center;
    gap: 48px;
    margin: 0 auto;
}

.hero__text {
    display: grid;
    align-content: start;
    justify-items: start;
}

.hero .section-kicker {
    color: #99f6e4;
}

.hero h1 {
    max-width: 740px;
    margin-bottom: 8px;
    font-size: 4.05rem;
    line-height: 1.03;
    font-weight: 900;
}

.hero__role {
    margin-bottom: 16px;
    color: #facc15;
    font-size: 1.55rem;
    font-weight: 900;
}

.hero__description {
    max-width: 760px;
    color: #d9e3ee;
    font-size: 1.08rem;
    line-height: 1.76;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero__actions .btn-secondary,
.hero__actions .btn-outline {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.16);
    color: #f7fafc;
}

.resume-preview-link {
    margin-top: 14px;
    border: 0;
    background: transparent;
    color: #99f6e4;
    cursor: pointer;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.resume-preview-link:hover {
    color: #ffffff;
}

.hero__stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    list-style: none;
}

.hero__stack li {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #f7fafc;
}

.hero__visual {
    position: relative;
    display: grid;
    justify-self: end;
    gap: 12px;
    width: min(320px, 100%);
}

.profile-card,
.architecture-card {
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius);
    background: rgba(13, 17, 23, 0.72);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.profile-card {
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(13, 17, 23, 0.72);
}

.profile-card img {
    width: 100%;
    height: 300px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 28%;
    padding: 10px;
    border-radius: 16px;
}

.profile-card__content {
    display: grid;
    gap: 7px;
    padding: 14px;
}

.profile-card__status {
    width: fit-content;
    border: 1px solid rgba(20, 184, 166, 0.38);
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.13);
    color: #99f6e4;
    padding: 6px 9px;
    font-size: 0.78rem;
    font-weight: 900;
}

.profile-card__content strong {
    font-size: 0.98rem;
}

.architecture-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.2);
}

.architecture-card__header {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.architecture-card__header span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fb7185;
}

.architecture-card__header span:nth-child(2) {
    background: #d97706;
}

.architecture-card__header span:nth-child(3) {
    background: #2dd4bf;
}

.architecture-card__body {
    padding: 12px;
}

.architecture-card__body p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.architecture-flow {
    display: grid;
    gap: 6px;
}

.architecture-flow span {
    border-left: 3px solid #2dd4bf;
    background: rgba(255, 255, 255, 0.06);
    padding: 7px 9px;
    color: #d9e3ee;
    font-size: 0.77rem;
    font-weight: 800;
}

/* ==========================================================================
   Metrics and About
   ========================================================================== */

.metrics {
    padding-top: 36px;
    padding-bottom: 34px;
}

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

.metric-card,
.about-card,
.work-card,
.tech-category,
.experience-card,
.project-card,
.cert-card,
.roadmap-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-color);
    box-shadow: var(--shadow-soft);
    transition:
        transform 0.24s ease,
        border-color 0.24s ease,
        box-shadow 0.24s ease,
        background 0.24s ease;
}

.metric-card:hover,
.about-card:hover,
.work-card:hover,
.tech-category:hover,
.experience-card:hover,
.project-card:hover,
.cert-card:hover,
.roadmap-card:hover {
    transform: translateY(-5px);
    border-color: rgba(20, 184, 166, 0.38);
    box-shadow: var(--shadow);
}

.metric-card {
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: center;
    gap: 8px;
    min-height: 112px;
    padding: 20px 20px 18px;
}

.metric-card::after {
    content: "";
    position: absolute;
    inset: auto 18px 0 18px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.82;
}

.metric-card__icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(20, 184, 166, 0.18);
    border-radius: var(--radius);
    background: var(--success-soft);
    color: var(--primary);
    font-size: 0.95rem;
}

.metric-card strong {
    color: var(--primary);
    font-size: 1.86rem;
    line-height: 1.1;
}

.metric-card span {
    color: var(--secondary-text);
    font-weight: 800;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    gap: 24px;
    align-items: start;
}

.about-card {
    display: grid;
    gap: 16px;
    padding: 26px;
}

.about-card p {
    max-width: 880px;
    color: var(--secondary-text);
    font-size: 1.02rem;
    line-height: 1.84;
}

.about-card p:first-child {
    color: var(--text-color);
    font-weight: 800;
}

.about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-highlights span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.about-highlights i {
    color: var(--primary);
}

/* ==========================================================================
   Work Style, Technologies, Experience
   ========================================================================== */

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

.work-card,
.tech-category,
.cert-card {
    padding: 24px;
}

.work-card i,
.tech-category h3 i {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: var(--radius);
    background: var(--success-soft);
    color: var(--primary);
    font-size: 1.1rem;
}

.work-card h3,
.tech-category h3,
.cert-card h3 {
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 1.12rem;
}

.work-card p,
.cert-card p {
    color: var(--secondary-text);
    line-height: 1.75;
}

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

.tech-category h3 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tech-category h3 i {
    margin-bottom: 0;
}

.experience-card {
    padding: 24px;
}

.experience-card__header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.experience-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-size: 1.25rem;
}

.experience-card h3 i {
    color: var(--primary);
}

.company-name,
.experience-date,
.experience-description,
.experience-list {
    color: var(--secondary-text);
}

.company-name {
    margin-top: 6px;
    color: var(--text-color);
    font-weight: 800;
}

.experience-date {
    width: fit-content;
    height: fit-content;
    border: 1px solid rgba(20, 184, 166, 0.28);
    border-radius: 999px;
    background: var(--success-soft);
    color: var(--primary);
    padding: 7px 10px;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 900;
}

.experience-description {
    max-width: 900px;
    margin-bottom: 14px;
    line-height: 1.72;
}

.experience-list {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
    list-style: none;
}

.experience-list li {
    position: relative;
    padding-left: 18px;
}

.experience-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
}

/* ==========================================================================
   Projects
   ========================================================================== */

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

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
    align-items: stretch;
    border-color: rgba(20, 184, 166, 0.34);
    background:
        linear-gradient(135deg, rgba(20, 184, 166, 0.08), transparent 34%),
        var(--card-color);
    box-shadow: 0 24px 62px rgba(20, 184, 166, 0.11), var(--shadow-soft);
}

.project-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 4;
    border: 1px solid rgba(20, 184, 166, 0.38);
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.18);
    color: #99f6e4;
    padding: 7px 10px;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

body.light-mode .project-badge {
    color: var(--primary-strong);
}

.project-carousel {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.carousel-viewport {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(20, 184, 166, 0.13), transparent 42%),
        #0a0f15;
    aspect-ratio: 16 / 9.6;
    touch-action: pan-y;
}

.project-card--featured .carousel-viewport {
    height: 100%;
    min-height: 350px;
    aspect-ratio: auto;
}

.carousel-slides,
.carousel-slide {
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.015);
    transition:
        opacity 0.38s ease,
        transform 0.38s ease;
}

.carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(13, 17, 23, 0.76);
    color: #ffffff;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        transform 0.22s ease;
}

.carousel-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.04);
}

.carousel-arrow--prev {
    left: 12px;
}

.carousel-arrow--next {
    right: 12px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
}

.carousel-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: var(--border-strong);
    cursor: pointer;
    transition:
        width 0.22s ease,
        background 0.22s ease,
        transform 0.22s ease;
}

.carousel-dot:hover {
    transform: translateY(-1px);
}

.carousel-dot.is-active {
    width: 26px;
    background: var(--primary);
}

.project-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    padding: 0 24px 24px;
}

.project-card--featured .project-info {
    padding: 26px 28px 26px 6px;
}

.project-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-title h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    line-height: 1.25;
}

.project-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: var(--radius);
    font-size: 1.08rem;
}

.project-icon--stock {
    background: rgba(56, 189, 248, 0.14);
    color: #38bdf8;
}

.project-icon--bank {
    background: rgba(34, 197, 94, 0.14);
    color: #22c55e;
}

.project-icon--event {
    background: rgba(217, 119, 6, 0.12);
    color: var(--accent);
}

.project-description {
    color: var(--secondary-text);
    line-height: 1.68;
}

.project-deploy {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    border: 1px solid rgba(20, 184, 166, 0.24);
    border-radius: 999px;
    background: var(--success-soft);
    color: var(--text-color);
    padding: 8px 12px;
    font-size: 0.88rem;
    font-weight: 850;
}

.project-deploy i {
    color: var(--primary);
}

.case-study {
    display: grid;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.case-study__item {
    display: grid;
    gap: 5px;
}

.case-study__item strong {
    color: var(--text-color);
    font-size: 0.86rem;
    text-transform: uppercase;
}

.case-study__item p,
.case-study__item li {
    color: var(--secondary-text);
    font-size: 0.92rem;
}

.case-study__item ul {
    display: grid;
    gap: 6px;
    margin-left: 0;
    list-style: none;
}

.case-study__item li {
    position: relative;
    padding-left: 18px;
}

.case-study__item li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
}

.project-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 4px;
}

.project-roadmap {
    margin-top: 30px;
}

.project-roadmap h3 {
    margin-bottom: 16px;
    color: var(--text-color);
    font-size: 1.2rem;
}

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

.roadmap-card {
    min-height: 168px;
    display: grid;
    align-content: start;
    padding: 20px;
}

.roadmap-card span {
    display: inline-flex;
    margin-bottom: 12px;
    border-radius: 999px;
    background: var(--success-soft);
    color: var(--primary);
    padding: 6px 9px;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.roadmap-card h4 {
    margin-bottom: 8px;
}

.roadmap-card p {
    color: var(--secondary-text);
    line-height: 1.62;
}

/* ==========================================================================
   Certificates and Contact
   ========================================================================== */

.cert-card p {
    font-weight: 700;
    color: var(--secondary-text);
}

.cert-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-height: 178px;
}

.cert-card > div {
    display: grid;
    align-content: start;
}

.cert-card__icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: var(--radius);
    background: var(--success-soft);
    color: var(--primary);
    font-size: 1.18rem;
}

.cert-card__tag {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 10px;
    border-radius: 999px;
    background: var(--success-soft);
    color: var(--primary);
    padding: 5px 9px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.cert-card small {
    display: block;
    margin-top: 10px;
    color: var(--muted-text);
    line-height: 1.6;
}

.contact {
    background:
        linear-gradient(180deg, transparent, rgba(20, 184, 166, 0.07), transparent);
}

.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.9fr);
    gap: 24px;
    align-items: start;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(20, 184, 166, 0.08), transparent 42%),
        var(--card-color);
    padding: 26px;
    box-shadow: var(--shadow-soft);
}

.contact-copy h2 {
    margin-bottom: 12px;
    color: var(--text-color);
    font-size: 2.4rem;
    line-height: 1.16;
}

.contact-copy p {
    max-width: 620px;
    color: var(--secondary-text);
    font-size: 1.05rem;
    line-height: 1.72;
}

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

.contact-note {
    margin-top: 14px;
    color: var(--muted-text);
    font-size: 0.92rem;
}

.contact-form {
    display: grid;
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
    padding: 20px;
}

.contact-form__header {
    display: grid;
    gap: 4px;
    padding-bottom: 2px;
}

.contact-form__header strong {
    color: var(--text-color);
    font-size: 1.08rem;
}

.contact-form__header span {
    color: var(--secondary-text);
    font-size: 0.92rem;
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: var(--text-color);
    font-weight: 900;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-color);
    color: var(--text-color);
    padding: 14px 15px;
    outline: none;
    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(20, 184, 166, 0.62);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.botcheck {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* ==========================================================================
   Resume Modal, Footer and Back to Top
   ========================================================================== */

.resume-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.resume-modal[hidden] {
    display: none;
}

.resume-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.resume-modal__dialog {
    position: relative;
    width: min(1100px, 100%);
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    animation: modalReveal 0.22s ease;
}

.resume-modal__header,
.resume-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
}

.resume-modal__header {
    border-bottom: 1px solid var(--border);
}

.resume-modal__footer {
    border-top: 1px solid var(--border);
    color: var(--secondary-text);
}

.resume-modal__eyebrow {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.resume-modal__header h3 {
    color: var(--text-color);
    font-size: 1.35rem;
}

.resume-modal__content {
    min-height: 70vh;
    background: #0a0f15;
}

.resume-modal__content iframe {
    width: 100%;
    height: 100%;
    min-height: 70vh;
    border: 0;
}

.resume-modal__close {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}

.resume-modal__close:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 184, 166, 0.42);
    background: var(--success-soft);
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 34px 8%;
    border-top: 1px solid var(--border);
    color: var(--secondary-text);
}

.footer-links {
    display: flex;
    gap: 12px;
}

.footer-links a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        color 0.22s ease;
}

.footer-links a:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 184, 166, 0.42);
    background: var(--success-soft);
    color: var(--primary);
}

#backToTop {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    width: 48px;
    height: 48px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: var(--primary-strong);
    color: #ffffff;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition:
        transform 0.22s ease,
        background 0.22s ease;
}

#backToTop:hover {
    transform: translateY(-3px);
    background: var(--primary-hover);
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */

.hidden {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.62s ease,
        transform 0.62s ease;
}

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

@keyframes dropdownReveal {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalReveal {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .hidden {
        opacity: 1;
        transform: none;
    }
}
