:root {
    --bg: #07111f;
    --bg-soft: #0b1728;
    --surface: rgba(13, 28, 47, 0.82);
    --surface-solid: #0e1c2f;
    --surface-2: #12243a;
    --text: #eef6ff;
    --muted: #9fb0c5;
    --muted-2: #7f93aa;
    --primary: #38bdf8;
    --primary-strong: #0ea5e9;
    --cyan-soft: rgba(56, 189, 248, 0.12);
    --green: #4ade80;
    --line: rgba(148, 163, 184, 0.17);
    --line-strong: rgba(56, 189, 248, 0.28);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1180px;
    --header-h: 76px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
    min-width: 320px;
    background:
        radial-gradient(circle at 88% 8%, rgba(14, 165, 233, 0.08), transparent 28%),
        radial-gradient(circle at 8% 32%, rgba(37, 99, 235, 0.07), transparent 26%),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

button,
input,
textarea,
select {
    font: inherit;
}

button {
    color: inherit;
}

::selection {
    background: rgba(56, 189, 248, 0.3);
    color: #fff;
}

:focus-visible {
    outline: 3px solid rgba(56, 189, 248, 0.75);
    outline-offset: 3px;
}

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

.skip-link {
    position: fixed;
    left: 18px;
    top: -70px;
    z-index: 9999;
    padding: 10px 16px;
    border-radius: 10px;
    background: #fff;
    color: #08111d;
    font-weight: 800;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 14px;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(7, 17, 31, 0.74);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
    background: rgba(7, 17, 31, 0.92);
    border-color: var(--line);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
}

.nav-wrap {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(14, 165, 233, 0.05));
    color: var(--primary);
    font-weight: 900;
    letter-spacing: -0.04em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brand-copy {
    display: grid;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 0.98rem;
    letter-spacing: 0.01em;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--muted-2);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #c9d6e4;
    font-size: 0.91rem;
    font-weight: 650;
}

.primary-nav > a {
    position: relative;
    padding: 9px 0;
    transition: color 0.2s ease;
}

.primary-nav > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 3px;
    width: 100%;
    height: 2px;
    border-radius: 10px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.primary-nav > a:hover,
.primary-nav > a.active {
    color: #fff;
}

.primary-nav > a:hover::after,
.primary-nav > a.active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 99px;
    background: var(--text);
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hero {
    position: relative;
    min-height: 100svh;
    padding: calc(var(--header-h) + 82px) 0 76px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(14px);
    pointer-events: none;
}

.hero-glow-one {
    width: 420px;
    height: 420px;
    right: -140px;
    top: 110px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.12), transparent 68%);
}

.hero-glow-two {
    width: 320px;
    height: 320px;
    left: -130px;
    bottom: 70px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent 68%);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
    align-items: center;
    gap: clamp(44px, 7vw, 94px);
}

.eyebrow,
.section-eyebrow,
.card-label,
.profile-label {
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid rgba(74, 222, 128, 0.22);
    border-radius: 999px;
    color: #bbf7d0;
    background: rgba(74, 222, 128, 0.06);
    font-size: 0.73rem;
    letter-spacing: 0.055em;
    text-transform: none;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.08);
}

.hero-kicker {
    margin-top: 27px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.22em;
}

.hero h1 {
    margin-top: 10px;
    font-size: clamp(3.25rem, 7vw, 6.8rem);
    line-height: 0.94;
    letter-spacing: -0.065em;
}

.hero h2 {
    max-width: 770px;
    margin-top: 24px;
    color: #d8e6f5;
    font-size: clamp(1.45rem, 2.45vw, 2.2rem);
    line-height: 1.22;
    letter-spacing: -0.035em;
}

.hero h2 span {
    color: var(--primary);
}

.hero-summary {
    max-width: 720px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 1.04rem;
}

.hero-summary strong {
    color: #dceaf8;
    font-weight: 750;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 25px;
}

.hero-tags span,
.project-badge,
.architecture-flow span {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    color: #c7d5e4;
    font-size: 0.78rem;
    font-weight: 720;
}

.hero-tags span {
    padding: 7px 11px;
}

.hero-actions,
.contact-actions,
.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.92rem;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
    color: #03131d;
    background: linear-gradient(135deg, #67d7ff, var(--primary));
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.18);
}

.btn-primary:hover {
    box-shadow: 0 16px 34px rgba(14, 165, 233, 0.26);
}

.btn-secondary {
    color: #d9e8f7;
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.025);
}

.btn-secondary:hover {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.5);
}

.btn-small {
    min-height: 43px;
    padding: 10px 15px;
    font-size: 0.86rem;
}

.hero-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 22px;
    align-items: center;
}

.hero-socials a.social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: #eef6ff;
    color: #07111f;
    font-size: 1.5rem;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.hero-socials a.social-icon-btn:hover {
    transform: translateY(-3px);
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 720;
    transition: color 0.2s ease;
}

.text-link:hover {
    color: var(--primary);
}

.profile-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, rgba(17, 36, 58, 0.92), rgba(8, 20, 35, 0.96));
    box-shadow: var(--shadow);
}

.profile-panel::before {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    top: -120px;
    right: -80px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.09);
    filter: blur(4px);
}

.profile-photo-wrap {
    position: relative;
    padding: 26px 26px 0;
}

.profile-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0a1727;
}

.availability-badge {
    position: absolute;
    right: 39px;
    bottom: 13px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid rgba(74, 222, 128, 0.25);
    border-radius: 999px;
    background: rgba(6, 20, 16, 0.9);
    color: #bbf7d0;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.availability-badge span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
}

.profile-panel-copy {
    padding: 24px 26px 28px;
}

.profile-panel h3 {
    margin-top: 7px;
    font-size: 1.65rem;
    letter-spacing: -0.03em;
}

.profile-meta {
    display: grid;
    gap: 11px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.86rem;
}

.profile-meta p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.profile-meta i {
    width: 17px;
    margin-top: 4px;
    color: var(--primary);
    text-align: center;
}

.profile-email {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #dbeafe;
    font-size: 0.84rem;
    font-weight: 700;
    word-break: break-all;
}

.profile-email:hover {
    color: var(--primary);
}

.impact-strip {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 76px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(10, 24, 41, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    overflow: hidden;
}

.impact-strip article {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    border-right: 1px solid var(--line);
}

.impact-strip article:last-child {
    border-right: 0;
}

.impact-strip strong {
    color: #fff;
    font-size: clamp(1.55rem, 2.4vw, 2.05rem);
    line-height: 1;
    letter-spacing: -0.035em;
}

.impact-strip span {
    margin-top: 9px;
    color: var(--muted-2);
    font-size: 0.82rem;
}

.section {
    padding: 104px 0;
}

.section-alt {
    border-block: 1px solid rgba(148, 163, 184, 0.08);
    background: rgba(8, 20, 34, 0.55);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 46px;
}

.section-heading.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

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

.section-heading h2,
.credential-card h2,
.contact-copy h2 {
    margin-top: 10px;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.048em;
}

.section-heading h2 span,
.contact-copy h2 span {
    color: var(--primary);
}

.section-heading > p:last-child {
    margin-top: 14px;
    color: var(--muted);
    font-size: 1rem;
}

.section-heading-with-action {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.section-heading-with-action > div {
    max-width: 760px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
}

.about-card,
.focus-card,
.experience-card,
.skill-card,
.project-card,
.process-card-8,
.credential-card,
.contact-card {
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.about-card,
.focus-card {
    border-radius: var(--radius-lg);
    padding: 32px;
}

.about-card h3 {
    margin-bottom: 14px;
    font-size: 1.4rem;
}

.about-card p {
    color: var(--muted);
}

.about-card p + p {
    margin-top: 16px;
}

.focus-list {
    display: grid;
    gap: 9px;
    margin-top: 18px;
}

.focus-list > div {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 13px;
    align-items: center;
    padding: 13px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.018);
}

.focus-list i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--cyan-soft);
    color: var(--primary);
}

.focus-list span {
    display: grid;
}

.focus-list strong {
    font-size: 0.92rem;
}

.focus-list small {
    margin-top: 2px;
    color: var(--muted-2);
    font-size: 0.77rem;
}

.experience-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.experience-top {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    padding: 30px 32px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.055), transparent 60%);
}

.experience-top h3 {
    margin-top: 7px;
    font-size: 1.55rem;
    letter-spacing: -0.025em;
}

.company {
    margin-top: 3px;
    color: var(--muted);
}

.experience-top time {
    height: fit-content;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #c9d8e7;
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.82rem;
    font-weight: 750;
    white-space: nowrap;
}

.experience-content {
    padding: 31px 32px 34px;
}

.check-list,
.project-points,
.credential-list {
    list-style: none;
}

.check-list {
    display: grid;
    gap: 15px;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    color: var(--muted);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.1);
    color: #86efac;
    font-size: 0.72rem;
    font-weight: 900;
}

.check-list strong {
    color: #edf7ff;
}

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

.skill-card {
    min-height: 245px;
    border-radius: var(--radius-lg);
    padding: 26px;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.skill-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    background: rgba(15, 32, 53, 0.96);
}

.skill-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 14px;
    background: var(--cyan-soft);
    color: var(--primary);
    font-size: 1.15rem;
}

.skill-card h3 {
    margin-top: 20px;
    font-size: 1.04rem;
}

.skill-card p {
    margin-top: 10px;
    color: var(--muted-2);
    font-size: 0.88rem;
}

.skill-card-wide {
    min-height: auto;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 18px;
    align-items: start;
}

.skill-card-wide h3 {
    margin-top: 2px;
}

.skill-card-wide p {
    max-width: 920px;
}

.project-card {
    border-radius: var(--radius-xl);
}

.featured-project {
    display: grid;
    grid-template-columns: 0.96fr 1.04fr;
    gap: 28px;
    padding: 30px;
}

.project-copy {
    min-width: 0;
}

.project-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    color: #bfeaff;
    border-color: rgba(56, 189, 248, 0.18);
    background: rgba(56, 189, 248, 0.07);
}

.project-number {
    color: rgba(148, 163, 184, 0.42);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.project-card h3 {
    margin-top: 18px;
    font-size: clamp(1.35rem, 2.5vw, 1.95rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.project-stack {
    margin-top: 10px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.5;
}

.project-description {
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.93rem;
}

.architecture-flow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 20px;
}

.architecture-flow span {
    padding: 6px 9px;
    color: #d7e7f6;
    font-size: 0.71rem;
}

.architecture-flow i {
    color: rgba(56, 189, 248, 0.55);
    font-size: 0.68rem;
}

.mini-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 20px;
}

.mini-metrics div {
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.018);
}

.mini-metrics strong,
.mini-metrics span {
    display: block;
}

.mini-metrics strong {
    font-size: 0.95rem;
}

.mini-metrics span {
    margin-top: 3px;
    color: var(--muted-2);
    font-size: 0.69rem;
}

.project-points {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.project-points li {
    position: relative;
    padding-left: 18px;
    color: var(--muted-2);
    font-size: 0.83rem;
}

.project-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.67em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.07);
}

.project-gallery {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.project-gallery-two {
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.dashboard-preview {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #07111f;
    cursor: zoom-in;
    text-align: left;
}

.dashboard-preview img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    max-height: 330px;
    object-fit: contain;
    background: #091523;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.dashboard-preview > span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    background: rgba(4, 12, 22, 0.82);
    color: #e6f4ff;
    font-size: 0.72rem;
    font-weight: 750;
    backdrop-filter: blur(9px);
}

.dashboard-preview:hover img {
    transform: scale(1.018);
    opacity: 0.91;
}

.project-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 22px;
}

.compact-project {
    overflow: hidden;
}

.compact-project-image {
    padding: 18px 18px 0;
}

.compact-project-image .dashboard-preview img {
    height: 240px;
    min-height: 0;
}

.compact-project .project-copy {
    padding: 24px 26px 28px;
}

.short-list {
    margin-bottom: 21px;
}

/* Process section 8 grid styles */
.process-grid-8 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    max-width: 1000px;
    margin: 0 auto;
}

.process-card-8 {
    position: relative;
    padding: 24px 20px;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.process-card-8:hover {
    transform: translateY(-3px);
    background: rgba(15, 32, 53, 0.95);
}

.process-card-8 > span {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.03);
    font-size: 4rem;
    line-height: 1;
    font-weight: 900;
    z-index: 1;
    pointer-events: none;
}

.process-card-8 h3 {
    position: relative;
    z-index: 2;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    color: #eef6ff;
}

.credential-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
}

.credential-card {
    border-radius: var(--radius-xl);
    padding: 32px;
}

.credential-card h2 {
    font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.credential-list {
    display: grid;
    gap: 0;
    margin-top: 25px;
}

.credential-list li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.credential-list span {
    font-size: 0.9rem;
    font-weight: 700;
}

.credential-list small {
    color: var(--muted-2);
    font-size: 0.76rem;
    text-align: right;
}

.education-school {
    margin-top: 16px;
    color: var(--muted);
}

.education-meta {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 25px;
    padding: 14px 0;
    border-block: 1px solid var(--line);
    color: #cbd9e7;
    font-size: 0.85rem;
    font-weight: 720;
}

.education-note {
    margin-top: 20px;
    color: var(--muted-2);
    font-size: 0.88rem;
}

.contact-section {
    padding-top: 90px;
}

.contact-card {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 44px;
    padding: 42px;
    border-radius: 30px;
    background:
        linear-gradient(120deg, rgba(56, 189, 248, 0.07), transparent 46%),
        var(--surface-solid);
    box-shadow: var(--shadow);
}

.contact-copy h2 {
    max-width: 650px;
    font-size: clamp(2rem, 4vw, 3.1rem);
}

.contact-copy > p:last-of-type {
    max-width: 660px;
    margin-top: 16px;
    color: var(--muted);
}

.contact-details {
    display: grid;
    align-content: center;
    gap: 10px;
}

.contact-details > a,
.contact-details > div {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.018);
}

.contact-details > a:hover {
    border-color: var(--line-strong);
    background: rgba(56, 189, 248, 0.04);
}

.contact-details i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--cyan-soft);
    color: var(--primary);
}

.contact-details span {
    min-width: 0;
    font-size: 0.84rem;
    font-weight: 700;
    word-break: break-word;
}

.contact-details small {
    display: block;
    margin-bottom: 2px;
    color: var(--muted-2);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer {
    padding: 28px 0 34px;
    color: var(--muted-2);
    font-size: 0.8rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.footer-inner a:hover {
    color: var(--primary);
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: rgba(10, 27, 44, 0.92);
    color: var(--primary);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(56, 189, 248, 0.12);
}

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 72px 24px 28px;
    background: rgba(2, 8, 16, 0.92);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.image-modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-inner {
    width: min(1200px, 100%);
    max-height: calc(100vh - 100px);
    display: grid;
    justify-items: center;
    gap: 12px;
}

.modal-inner img {
    max-width: 100%;
    max-height: calc(100vh - 145px);
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #07111f;
    box-shadow: var(--shadow);
}

.modal-inner p {
    color: #d9e6f3;
    font-size: 0.85rem;
    font-weight: 700;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.58s ease, transform 0.58s ease;
}

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

body.modal-open {
    overflow: hidden;
}

@media (max-width: 1080px) {
    .primary-nav { gap: 17px; font-size: 0.86rem; }
    .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.72fr); gap: 48px; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-project { grid-template-columns: 1fr; }
    .project-gallery-two { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; }
    .dashboard-preview img { min-height: 200px; }
}

@media (max-width: 900px) {
    :root { --header-h: 70px; }

    .menu-toggle { display: block; }

    .primary-nav {
        position: absolute;
        top: calc(var(--header-h) - 2px);
        left: 22px;
        right: 22px;
        display: grid;
        gap: 3px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: rgba(8, 20, 34, 0.98);
        box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
        transform: translateY(-10px) scale(0.985);
        transform-origin: top;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .primary-nav.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .primary-nav > a {
        width: 100%;
        padding: 11px 12px;
        border-radius: 10px;
    }

    .primary-nav > a::after { display: none; }
    .primary-nav > a:hover,
    .primary-nav > a.active { background: rgba(56, 189, 248, 0.06); }

    .hero {
        min-height: auto;
        padding-top: calc(var(--header-h) + 62px);
    }

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

    .hero-copy {
        max-width: 790px;
    }

    .profile-panel {
        display: grid;
        grid-template-columns: 250px 1fr;
        align-items: center;
    }

    .profile-photo-wrap { padding: 22px; }
    .profile-panel-copy { padding: 26px 28px 26px 6px; }
    .availability-badge { right: 30px; bottom: 31px; }

    .impact-strip {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 52px;
    }

    .impact-strip article:nth-child(2) { border-right: 0; }
    .impact-strip article:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }

    .about-grid,
    .credential-grid,
    .contact-card {
        grid-template-columns: 1fr;
    }

    .process-grid-8 { grid-template-columns: repeat(2, 1fr); max-width: 600px; }
    
    .project-pair { grid-template-columns: 1fr; }
    .section-heading-with-action { align-items: flex-start; flex-direction: column; }
    .contact-card { gap: 28px; }
}

@media (max-width: 720px) {
    .container { width: min(100% - 30px, var(--container)); }
    .section { padding: 78px 0; }

    .brand-copy small { display: none; }
    .brand-mark { width: 39px; height: 39px; }

    .hero {
        padding-top: calc(var(--header-h) + 46px);
        padding-bottom: 54px;
    }

    .eyebrow { font-size: 0.68rem; }
    .hero-kicker { margin-top: 22px; }
    .hero h1 { font-size: clamp(3rem, 16vw, 4.6rem); }
    .hero h2 { margin-top: 19px; font-size: clamp(1.35rem, 6vw, 1.8rem); }
    .hero-summary { font-size: 0.96rem; }

    .hero-actions,
    .contact-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-actions .btn,
    .contact-actions .btn {
        width: 100%;
    }

    .profile-panel {
        grid-template-columns: 1fr;
    }

    .profile-photo-wrap { padding: 20px 20px 0; }
    .profile-photo { max-height: 390px; object-position: center 20%; }
    .profile-panel-copy { padding: 23px 22px 25px; }
    .availability-badge { right: 32px; bottom: 13px; }

    .impact-strip { border-radius: 16px; }
    .impact-strip article { min-height: 115px; padding: 19px; }

    .section-heading { margin-bottom: 34px; }
    .section-heading h2,
    .contact-copy h2 { font-size: clamp(1.85rem, 9vw, 2.65rem); }

    .about-card,
    .focus-card,
    .credential-card { padding: 24px; }

    .experience-top {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px 23px;
    }

    .experience-content { padding: 24px 23px 27px; }
    .check-list li { padding-left: 28px; font-size: 0.91rem; }

    .skills-grid { grid-template-columns: 1fr; }
    .skill-card { min-height: auto; }
    .skill-card-wide { grid-template-columns: 48px 1fr; }

    .featured-project { padding: 20px; }
    .project-gallery-two { grid-template-columns: 1fr; }
    .project-gallery-two .dashboard-preview img { min-height: 0; height: auto; }
    .mini-metrics { grid-template-columns: 1fr; }

    .compact-project-image { padding: 14px 14px 0; }
    .compact-project .project-copy { padding: 22px 21px 25px; }
    .compact-project-image .dashboard-preview img { height: auto; min-height: 0; }

    .process-grid-8 { grid-template-columns: 1fr 1fr; }

    .credential-list li { flex-direction: column; gap: 5px; }
    .credential-list small { text-align: left; }

    .contact-card { padding: 27px 23px; border-radius: 22px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .container { width: min(100% - 24px, var(--container)); }
    .primary-nav { left: 12px; right: 12px; }

    .hero-tags { gap: 7px; }
    .hero-tags span { font-size: 0.72rem; }

    .impact-strip { grid-template-columns: 1fr; }
    .impact-strip article,
    .impact-strip article:nth-child(2) { border-right: 0; }
    .impact-strip article:not(:last-child) { border-bottom: 1px solid var(--line); }

    .skill-card-wide { grid-template-columns: 1fr; }
    .project-heading-row { align-items: flex-start; }
    .architecture-flow i { transform: rotate(90deg); }
    .architecture-flow { align-items: flex-start; }
    .process-grid-8 { grid-template-columns: 1fr; }
    
    .education-meta { flex-direction: column; gap: 6px; }

    .contact-details > a,
    .contact-details > div { grid-template-columns: 38px 1fr; padding: 11px; }
    .contact-details i { width: 38px; height: 38px; }
    .back-to-top { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}


/* New Stacked Project Layout Styles */
.projects-stack {
    display: grid;
    gap: 40px;
}

.stacked-project {
    display: flex;
    flex-direction: column;
    padding: 34px;
    gap: 30px;
}

.project-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
    width: 100%;
}

.small-preview {
    min-height: 140px;
    max-height: 180px;
}

.small-preview img {
    width: 100%;
    height: 100%;
    min-height: 140px !important;
    max-height: 180px !important;
    object-fit: cover;
    display: block;
}

.dashboard-preview {
    position: relative;
    display: block;
    width: 100%;
    height: 100%; /* Ensure container takes full height */
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #07111f;
    cursor: zoom-in;
    text-align: left;
}

.video-container {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #07111f;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

@media (max-width: 720px) {
    .stacked-project {
        padding: 24px;
        gap: 24px;
    }
}
