:root {
    --bg: #070b16;
    --bg-deep: #050812;
    --surface: #0e1526;
    --surface-raised: #121c31;
    --surface-tint: rgba(15, 23, 42, 0.72);
    --border: rgba(148, 163, 184, 0.14);
    --border-strong: rgba(56, 189, 248, 0.45);
    --accent: #38bdf8;
    --accent-2: #7c5cff;
    --success: #34d399;
    --text: #e6edf7;
    --muted: #94a3b8;
    --muted-light: #c4d0e3;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    --radius: 18px;
    --radius-sm: 12px;
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    color: var(--text);
    background:
        radial-gradient(circle at 10% 18%, rgba(14, 165, 233, 0.06), transparent 28rem),
        radial-gradient(circle at 90% 62%, rgba(124, 92, 255, 0.06), transparent 30rem),
        var(--bg);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
}

a {
    color: inherit;
}

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

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

h1,
h2,
h3 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

h2 {
    color: var(--text);
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -0.035em;
    line-height: 1.1;
}

h2 i {
    color: var(--accent);
    font-size: 0.7em;
    margin-right: 12px;
    vertical-align: 8%;
}

.page-width {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 120;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.65);
    transition: width 0.08s linear;
}

.site-nav {
    position: fixed;
    top: 12px;
    left: 50%;
    z-index: 100;
    display: flex;
    width: min(1180px, calc(100% - 40px));
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 10px 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(7, 11, 22, 0.72);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.scrolled {
    border-color: rgba(56, 189, 248, 0.24);
    background: rgba(7, 11, 22, 0.9);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.36);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 13px;
}

.nav-subtitle {
    color: var(--muted);
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    position: relative;
    display: block;
    padding: 10px 11px;
    color: var(--muted-light);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-links a::after {
    position: absolute;
    right: 11px;
    bottom: 3px;
    left: 11px;
    height: 2px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    content: '';
    opacity: 0;
    transform: scaleX(0.3);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-size: 16px;
}

.hero-section {
    position: relative;
    display: flex;
    min-height: min(850px, 100vh);
    align-items: center;
    overflow: hidden;
    padding: 150px 0 100px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, #000 28%, transparent 80%);
}

.hero-orb {
    display: none;
}

.hero-orb-a {
    top: -150px;
    left: -90px;
    width: 520px;
    height: 520px;
    background: #0ea5e9;
    animation: orbFloatA 18s ease-in-out infinite;
}

.hero-orb-b {
    right: -130px;
    bottom: -160px;
    width: 480px;
    height: 480px;
    background: var(--accent-2);
    animation: orbFloatB 22s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: clamp(42px, 7vw, 90px);
}

.profile-wrap {
    position: relative;
    flex: 0 0 278px;
    width: 278px;
    height: 278px;
    padding: 5px;
    border-radius: 50%;
    background: var(--bg);
    box-shadow: 0 0 0 8px rgba(56, 189, 248, 0.05), 0 0 70px rgba(56, 189, 248, 0.2);
}

.profile-wrap::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 50%;
    background: conic-gradient(from 160deg, var(--accent), var(--accent-2), #bf7cff, var(--accent));
    content: '';
    animation: ringSpin 8s linear infinite;
}

.profile-wrap::after {
    position: absolute;
    inset: 5px;
    z-index: 0;
    border-radius: 50%;
    background: var(--bg);
    content: '';
}

.profile-pic {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border: 4px solid var(--bg);
    border-radius: 50%;
    object-fit: cover;
    object-position: center 10%;
}

.hero-text {
    display: flex;
    max-width: 740px;
    flex-direction: column;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 20px;
    padding: 7px 14px;
    border: 1px solid rgba(52, 211, 153, 0.32);
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
    font-size: 12px;
    font-weight: 700;
}

.pulse-dot {
    position: relative;
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--success);
}

.pulse-dot::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--success);
    content: '';
    animation: pulse 2s ease-out infinite;
}

.hero-text h1 {
    max-width: 760px;
    color: #f5f8ff;
    font-size: clamp(42px, 6vw, 72px);
    letter-spacing: -0.055em;
    line-height: 1.02;
}

.hero-role {
    display: flex;
    min-height: 1.45em;
    align-items: baseline;
    gap: 9px;
    margin-top: 14px;
    color: var(--text);
    font-size: clamp(23px, 3vw, 32px);
    font-weight: 600;
}

.role-static {
    color: var(--muted);
    font-weight: 400;
}

.role-rotator {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    background-clip: text;
    color: transparent;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.role-rotator.is-swapping {
    opacity: 0;
    transform: translateY(8px);
}

.hero-sub {
    max-width: 650px;
    margin-top: 16px;
    color: var(--muted-light);
    font-size: 16px;
    line-height: 1.7;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn i {
    font-size: 11px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 28px rgba(56, 189, 248, 0.22);
    color: #fff;
}

.btn-primary:hover {
    box-shadow: 0 14px 34px rgba(56, 189, 248, 0.36);
    transform: translateY(-3px);
}

.btn-outline {
    border-color: var(--border);
    background: rgba(14, 21, 38, 0.5);
    color: var(--text);
}

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

.scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    transform: translateX(-50%);
    animation: bob 2.2s ease-in-out infinite;
}

.scroll-indicator i {
    color: var(--accent);
}

.content-section {
    position: relative;
    padding: 112px 0;
    scroll-margin-top: 90px;
}

.content-section:not(.hero-section) {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-tint {
    border-top: 1px solid rgba(148, 163, 184, 0.05);
    border-bottom: 1px solid rgba(148, 163, 184, 0.05);
    background: linear-gradient(110deg, rgba(14, 21, 38, 0.68), rgba(7, 11, 22, 0.28));
}

.section-heading-wide {
    margin-bottom: 42px;
}

.section-heading h2 {
    max-width: 760px;
}

.section-lead {
    max-width: 620px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(230px, 0.75fr) minmax(0, 1.25fr);
    gap: clamp(44px, 9vw, 130px);
}

.about-copy {
    max-width: 690px;
}

.about-copy > p {
    margin-bottom: 16px;
    color: var(--muted-light);
    font-size: 15px;
    line-height: 1.85;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 30px;
}

.stat-item {
    display: flex;
    min-height: 105px;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(14, 21, 38, 0.6);
}

.stat-item strong {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    background-clip: text;
    color: transparent;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    line-height: 1;
}

.stat-item span {
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.timeline {
    position: relative;
    max-width: 970px;
    padding-left: 28px;
}

.timeline::before {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 4px;
    width: 2px;
    background: linear-gradient(var(--accent), rgba(56, 189, 248, 0.1));
    content: '';
}

.timeline-item {
    position: relative;
}

.timeline-item + .timeline-item {
    margin-top: 28px;
}

.timeline-dot {
    position: absolute;
    top: 25px;
    left: -29px;
    width: 12px;
    height: 12px;
    border: 3px solid var(--bg);
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18), 0 0 18px rgba(56, 189, 248, 0.5);
}

.spotlight-card,
.project-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.spotlight-card::before,
.project-card::before {
    position: absolute;
    z-index: -1;
    top: var(--my, 50%);
    left: var(--mx, 50%);
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.13), transparent 68%);
    content: '';
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.spotlight-card:hover::before,
.project-card:hover::before {
    opacity: 1;
}

.experience-card {
    padding: 28px 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(18, 28, 49, 0.96), rgba(12, 19, 35, 0.96));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.experience-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.experience-logo {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    object-fit: cover;
}

.experience-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

.status-pill {
    padding: 3px 8px;
    border: 1px solid rgba(52, 211, 153, 0.28);
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.1);
    color: #6ee7b7;
    font-size: 10px;
    text-transform: uppercase;
}

.experience-info h3 {
    margin-top: 8px;
    color: #fff;
    font-size: 24px;
}

.experience-company {
    margin-top: 5px;
    color: var(--muted-light);
    font-size: 14px;
}

.experience-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.experience-location i {
    color: var(--accent-2);
    font-size: 11px;
}

.experience-desc {
    margin: 24px 0 0 90px;
    padding-left: 20px;
    color: var(--muted-light);
    font-size: 14px;
    line-height: 1.75;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 0 90px;
}

.experience-tags span,
.project-category,
.project-award,
.project-context {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.experience-tags span {
    padding: 6px 10px;
    background: rgba(56, 189, 248, 0.09);
    color: var(--muted-light);
}

.projects-section {
    background: radial-gradient(circle at 85% 20%, rgba(124, 92, 255, 0.07), transparent 28rem);
}

.projects-heading {
    display: block;
    max-width: 760px;
}

.projects-heading .section-lead {
    max-width: 680px;
    margin-top: 14px;
}

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

.project-card {
    display: flex;
    min-width: 0;
    min-height: 670px;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(14, 21, 38, 0.72);
    transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.project-card:hover {
    border-color: var(--border-strong);
    background: rgba(18, 28, 49, 0.9);
    transform: translateY(-4px);
}

.project-card.featured-project {
    border-color: rgba(56, 189, 248, 0.3);
    background: linear-gradient(145deg, rgba(18, 28, 49, 0.88), rgba(14, 21, 38, 0.72));
}

.project-card.featured-project .project-card-body {
    padding-top: 25px;
}

.project-featured-label {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 999px;
    background: rgba(7, 11, 22, 0.78);
    color: #bae6fd;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
}

.project-featured-label i {
    color: #facc15;
}

.project-image-wrap {
    position: relative;
    height: 220px;
    flex-shrink: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, #0a1221, #111b30);
}

.project-image-wrap::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(7, 11, 22, 0.78));
    content: '';
    pointer-events: none;
}

.project-image {
    display: block;
    width: 100%;
    height: 100%;
    padding: 12px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.025);
}

.project-image-title {
    position: absolute;
    bottom: 14px;
    left: 18px;
    z-index: 1;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

.project-number {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(7, 11, 22, 0.72);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.project-award {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    padding: 6px 9px;
    background: rgba(75, 55, 10, 0.86);
    color: #f6d365;
}

.project-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.project-card-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
}

.project-category {
    padding: 5px 9px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
}

.project-context {
    gap: 5px;
    padding: 5px 0;
    color: var(--muted);
    font-weight: 600;
}

.project-context i {
    color: var(--accent-2);
}

.project-card h3 {
    color: #fff;
    font-size: 20px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.project-date {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.project-pitch,
.project-action {
    font-size: 13px;
    line-height: 1.65;
}

.project-pitch {
    margin-top: 14px;
    color: var(--muted-light);
}

.project-action {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    color: #fff;
}

.project-action strong {
    display: block;
    margin-bottom: 4px;
    color: var(--accent);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.tag {
    padding: 5px 8px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.tag-blue { background: rgba(56, 189, 248, 0.12); color: #7dd3fc; }
.tag-green { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; }
.tag-yellow { background: rgba(250, 204, 21, 0.12); color: #fde68a; }
.tag-purple { background: rgba(167, 139, 250, 0.14); color: #c4b5fd; }
.tag-orange { background: rgba(251, 146, 60, 0.13); color: #fdba74; }
.tag-red { background: rgba(185, 28, 28, 0.18); color: #fca5a5; }
.tag-perimeter-cyan { background: rgba(14, 116, 144, 0.22); color: #67e8f9; }
.tag-perimeter-violet { background: rgba(109, 40, 217, 0.2); color: #c4b5fd; }
.tag-perimeter-green { background: rgba(20, 83, 45, 0.42); color: #86efac; }
.tag-perimeter-navy { background: rgba(30, 58, 95, 0.48); color: #93c5fd; }
.tag-perimeter-red { background: rgba(127, 29, 29, 0.36); color: #fca5a5; }
.tag-perimeter-teal { background: rgba(15, 118, 110, 0.3); color: #5eead4; }

.card-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 22px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--muted-light);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.card-link:hover {
    border-color: var(--accent);
    background: rgba(56, 189, 248, 0.1);
    color: #fff;
}

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

.cert-card {
    display: flex;
    min-height: 105px;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(14, 21, 38, 0.62);
    transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.cert-card:hover {
    border-color: var(--border-strong);
    background: rgba(18, 28, 49, 0.9);
    transform: translateY(-4px);
}

.cert-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.11);
    color: var(--accent);
    font-size: 19px;
}

.cert-card h3 {
    color: #fff;
    font-size: 14px;
    line-height: 1.3;
}

.cert-card div > span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

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

.tech-group {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(14, 21, 38, 0.55);
}

.tech-group h3 {
    margin-bottom: 17px;
    color: var(--muted-light);
    font-size: 14px;
    letter-spacing: 0.02em;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-list span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 9px;
    background: rgba(7, 11, 22, 0.45);
    color: var(--muted-light);
    font-size: 12px;
    font-weight: 600;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tech-list span:hover {
    border-color: var(--border-strong);
    color: #fff;
    transform: translateY(-2px);
}

.tech-list i {
    font-size: 19px;
}

.contact-section {
    padding-bottom: 124px;
}

.contact-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 45px;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 24px;
    background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.14), transparent 30rem), linear-gradient(135deg, rgba(18, 28, 49, 0.9), rgba(10, 16, 30, 0.9));
    box-shadow: var(--shadow);
}

.contact-card h2 {
    font-size: clamp(30px, 4vw, 45px);
}

.contact-card p:not(.eyebrow) {
    max-width: 620px;
    margin-top: 14px;
    color: var(--muted-light);
    font-size: 14px;
    line-height: 1.7;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 200px;
}

.contact-links a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--muted-light);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contact-links a i {
    width: 16px;
    color: var(--accent);
    text-align: center;
}

.contact-links a:hover {
    border-color: var(--accent);
    background: rgba(56, 189, 248, 0.1);
    color: #fff;
    transform: translateX(3px);
}

footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
    padding: 28px 48px 35px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

footer p span {
    padding: 0 5px;
    color: var(--accent);
}

footer a {
    position: absolute;
    right: 0;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--muted-light);
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

footer a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

@keyframes ringSpin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { opacity: 0.7; transform: scale(1); }
    100% { opacity: 0; transform: scale(3); }
}

@keyframes orbFloatA {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(60px, 40px); }
}

@keyframes orbFloatB {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-50px, -50px); }
}

@keyframes bob {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

@media (max-width: 1050px) {
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-card {
        min-height: 650px;
    }

    .projects-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 760px) {
    .page-width,
    footer {
        width: min(100% - 40px, 620px);
    }

    .site-nav {
        top: 8px;
        width: calc(100% - 24px);
        min-height: 56px;
        padding: 8px 10px 8px 14px;
    }

    .nav-subtitle {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: rgba(7, 11, 22, 0.96);
        box-shadow: var(--shadow);
        backdrop-filter: blur(18px);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px;
        font-size: 13px;
    }

    .nav-links a::after {
        right: 12px;
        bottom: 7px;
        left: auto;
        width: 24px;
    }

    .hero-section {
        min-height: 800px;
        padding: 140px 0 90px;
    }

    .hero-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .profile-wrap {
        flex-basis: 214px;
        width: 214px;
        height: 214px;
    }

    .hero-text {
        display: flex;
        width: 100%;
        min-width: 0;
        align-items: center;
    }

    .hero-text h1 {
        font-size: clamp(38px, 11vw, 54px);
    }

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

    .hero-sub {
        width: 100%;
        font-size: 14px;
    }

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

    .scroll-indicator {
        display: none;
    }

    .content-section {
        padding: 78px 0;
    }

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

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

    .stat-item {
        min-height: 76px;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline-dot {
        left: -21px;
    }

    .experience-card {
        padding: 20px;
    }

    .experience-header {
        gap: 13px;
    }

    .experience-logo {
        width: 54px;
        height: 54px;
        border-radius: 10px;
    }

    .experience-info h3 {
        font-size: 20px;
    }

    .experience-company {
        font-size: 12px;
    }

    .experience-desc,
    .experience-tags {
        margin-left: 0;
    }

    .project-grid,
    .cert-grid,
    .tech-groups {
        grid-template-columns: 1fr;
    }

    .project-card {
        min-height: 0;
    }

    .project-image-wrap {
        height: 205px;
    }

    .contact-card {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-links {
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
