@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --ink: #eef3f9;
    --muted: #b9c7d9;
    --paper: #0d1520;
    --teal: #3fd4c6;
    --coral: #ff9d85;
    --line: #243447;
    /* Liquid glass materials on a dark canvas: translucent sheen, soft rim
       light, and deep ambient shadow. */
    --glass: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.04) 42%, rgba(255,255,255,.07));
    --glass-soft: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03) 48%, rgba(255,255,255,.06));
    --glass-border: rgba(255,255,255,.16);
    --glass-shadow: 0 22px 48px rgba(0,0,0,.45), 0 4px 14px rgba(0,0,0,.28), inset 0 1px 1px rgba(255,255,255,.16), inset 0 -1px 2px rgba(255,255,255,.05);
    --glass-shadow-sm: 0 12px 28px rgba(0,0,0,.34), inset 0 1px 1px rgba(255,255,255,.14), inset 0 -1px 1px rgba(255,255,255,.04);
    --blur: blur(18px) saturate(150%);
    --blur-lg: blur(24px) saturate(160%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: hidden; }
[x-cloak] { display: none !important; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Inter', sans-serif !important;
    font-size: 17px;
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-tap-highlight-color: rgba(63,212,198,.28);
}
/* Aurora backdrop: saturated colour fields for the glass to refract.
   Drifts very slowly underneath everything. */
body::before {
    content: '';
    position: fixed;
    inset: -6%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(620px 620px at 10% 6%, rgba(20,160,150,.32), transparent 62%),
        radial-gradient(720px 720px at 88% 14%, rgba(220,130,80,.24), transparent 62%),
        radial-gradient(820px 820px at 80% 56%, rgba(95,110,225,.22), transparent 64%),
        radial-gradient(720px 720px at 14% 84%, rgba(45,135,195,.26), transparent 62%),
        radial-gradient(640px 640px at 52% 98%, rgba(205,115,155,.18), transparent 62%),
        linear-gradient(160deg, #0a121b, #0d1826 42%, #111a20);
    animation: aurora-drift 26s ease-in-out infinite alternate;
}
@keyframes aurora-drift {
    from { transform: translate3d(-1.5%, -1%, 0) scale(1.02); }
    to { transform: translate3d(1.5%, 1%, 0) scale(1.07); }
}
body > div { position: relative; }
h1, h2, h3, .font-bold { font-family: 'Inter', sans-serif !important; }
a { transition: color .2s ease, background-color .2s ease, transform .2s ease; }
a:focus-visible, button:focus-visible { outline: 2px solid rgba(63,212,198,.85); outline-offset: 3px; border-radius: 999px; }
img { max-width: 100%; }
::selection { background: rgba(63,212,198,.35); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: rgba(10,18,27,.85); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #2ba8a0, #14606e); border-radius: 999px; border: 2px solid rgba(13,21,32,.9); }

/* Navigation: floating liquid-glass pill */
#navbar {
    height: 58px !important;
    top: 12px !important;
    left: clamp(12px, 3vw, 32px) !important;
    right: clamp(12px, 3vw, 32px) !important;
    width: auto;
    padding: 0 clamp(1.1rem, 3vw, 1.9rem) !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.16);
    background: linear-gradient(135deg, rgba(16,26,39,.88), rgba(13,21,32,.78) 50%, rgba(16,30,42,.84)) !important;
    background-size: 180% 180%;
    box-shadow: 0 18px 42px rgba(0,0,0,.45), inset 0 1px 1px rgba(255,255,255,.14), inset 0 -1px 1px rgba(255,255,255,.05) !important;
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
}
#navbar > div:first-child { color: var(--ink) !important; letter-spacing: -.06em; }
#navbar ul { align-items: center; gap: clamp(.4rem, 1.5vw, 1rem) !important; }
#navbar a {
    padding: .45rem .95rem !important;
    border-radius: 999px !important;
    color: #d3dfeb;
    text-decoration: none;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px transparent;
}
#navbar a:hover {
    color: var(--teal);
    background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.06)) !important;
    padding: .45rem .95rem !important;
    box-shadow: inset 0 1px 1px rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.14), 0 6px 16px rgba(0,0,0,.3);
    transform: translateY(-1px);
}
.mobile-menu-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border: 1px solid rgba(255,255,255,.2);
    padding: 0; border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
    box-shadow: inset 0 1px 1px rgba(255,255,255,.18), 0 6px 16px rgba(0,0,0,.3);
    color: var(--ink); cursor: pointer;
    transition: transform .2s ease, background-color .2s ease;
}
.mobile-menu-toggle:hover { background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,.08)); color: var(--teal); }
.mobile-menu-toggle:active { transform: scale(.94); }
.mobile-menu {
    position: fixed; z-index: 49;
    top: 84px; right: clamp(12px, 3vw, 32px);
    width: min(290px, calc(100vw - 24px)); padding: .65rem;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(16,26,39,.95), rgba(13,21,32,.9) 55%, rgba(16,30,42,.94));
    box-shadow: 0 24px 50px rgba(0,0,0,.5), inset 0 1px 1px rgba(255,255,255,.16);
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
}
.mobile-menu ul { display: grid; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.mobile-menu a { display: flex; align-items: center; min-height: 46px; padding: .7rem .9rem; border-radius: 18px; color: var(--ink); font-weight: 700; text-decoration: none; }
.mobile-menu a:hover, .mobile-menu a:focus-visible { background: rgba(255,255,255,.1); color: var(--teal); outline: none; box-shadow: inset 0 1px 1px rgba(255,255,255,.16); }

/* Hero: transparent over the aurora backdrop */
nav > .flex.flex-col {
    position: relative;
    min-height: 690px !important;
    padding: 118px clamp(12px, 3vw, 32px) 84px;
    overflow: hidden;
    background: transparent !important;
}
nav > .flex.flex-col::before,
nav > .flex.flex-col::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02) 55%, rgba(255,255,255,.04));
    box-shadow: inset 0 1px 2px rgba(255,255,255,.12), inset 0 -12px 24px rgba(255,255,255,.02), 0 24px 60px rgba(0,0,0,.4);
    backdrop-filter: blur(6px) saturate(150%);
    -webkit-backdrop-filter: blur(6px) saturate(150%);
}
nav > .flex.flex-col::before { width: 440px; height: 440px; right: -110px; top: 84px; }
nav > .flex.flex-col::after { width: 270px; height: 270px; right: -28px; top: 182px; }
nav > .flex.flex-col > .grow {
    position: relative; z-index: 1;
    align-self: center;
    width: min(960px, 100%);
    gap: 1.35rem !important;
    padding: clamp(2.2rem, 6vw, 3.8rem) clamp(1.35rem, 5vw, 3.2rem);
    border-radius: clamp(28px, 5vw, 40px);
    background: transparent;
    border: 0;
    box-shadow: none;
}
nav > .flex.flex-col .text-3xl { color: var(--teal) !important; font-size: 1rem !important; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
nav > .flex.flex-col .text-md { color: var(--ink) !important; font-size: clamp(1.55rem, 4vw, 2.8rem) !important; line-height: 1.45; text-align: center; }
nav > .flex.flex-col .text-backgroundname { display: block; margin-top: .12em; color: var(--ink) !important; font-family: 'Inter', sans-serif !important; font-size: clamp(2.8rem, 7vw, 5.4rem) !important; font-weight: 700; letter-spacing: -.045em; line-height: 1.18; }
nav > .flex.flex-col .text-base { color: var(--ink) !important; }
nav > .flex.flex-col .text-base span {
    display: inline-block;
    border: 1px solid rgba(63,212,198,.45);
    background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.05)) !important;
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-radius: 999px !important;
    padding: .65rem 1.35rem !important;
    color: var(--teal) !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.32), inset 0 1px 1px rgba(255,255,255,.18), inset 0 -1px 1px rgba(255,255,255,.05);
    letter-spacing: .05em;
    transition: transform .25s ease;
}
nav > .flex.flex-col .text-base:hover span { transform: translateY(-2px); }
nav > .flex.flex-col a img {
    width: 44px !important; height: 44px !important;
    object-fit: contain; padding: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.22);
    background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.06));
    box-shadow: 0 12px 26px rgba(0,0,0,.4), inset 0 1px 1px rgba(255,255,255,.22), inset 0 -1px 2px rgba(255,255,255,.05);
    filter: grayscale(0) !important;
    transition: transform .22s ease, box-shadow .22s ease;
}
nav > .flex.flex-col a:hover img { transform: translateY(-3px) scale(1.07); box-shadow: 0 16px 32px rgba(0,0,0,.5), inset 0 1px 1px rgba(255,255,255,.25); }

/* Section rhythm and headings: transparent sections over the aurora */
body > div > section > div { padding-bottom: 3.5rem; }
body > div > section { background: transparent; }
body > div > section > div > .sticky { position: relative !important; top: auto !important; padding: 2.5rem 0 1.25rem; text-align: center; }
body > div > section blockquote { margin: 0; }
body > div > section blockquote > span {
    padding: .55rem 1.3rem !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.2) !important;
    background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.06)) !important;
    box-shadow: 0 14px 32px rgba(0,0,0,.35), inset 0 1px 1px rgba(255,255,255,.2), inset 0 -1px 1px rgba(255,255,255,.05) !important;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
}
body > div > section blockquote > span::before { display: none !important; }
body > div > section blockquote .relative.text-base { color: #6fe3d8 !important; font-size: .85rem !important; font-weight: 800 !important; letter-spacing: .13em; text-transform: uppercase; }

/* About */
#aboutme > div { min-height: 0 !important; background: transparent !important; }
.about-panel {
    width: min(1040px, calc(100% - 2rem)); max-width: 1040px; align-self: center;
    display: grid; grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(1.6rem, 4vw, 3.2rem); align-items: center;
    padding: clamp(1.8rem, 4.5vw, 3rem) clamp(1.4rem, 5vw, 3.2rem);
    margin: 0 auto;
    border-radius: 36px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
}
.about-photo-wrap {
    position: relative; justify-self: center;
    padding: 14px; border-radius: 50%;
    background: conic-gradient(from 210deg, rgba(63,212,198,.75), rgba(130,152,221,.55), rgba(255,157,133,.6), rgba(63,212,198,.75));
    box-shadow: 0 24px 48px rgba(0,0,0,.4);
}
.about-photo-wrap::after {
    content: ''; position: absolute; inset: -26px; border-radius: 50%;
    border: 1px dashed rgba(255,255,255,.22); pointer-events: none;
}
.about-photo {
    display: block; width: clamp(170px, 22vw, 230px); height: clamp(170px, 22vw, 230px);
    object-fit: cover; border-radius: 50%;
    border: 4px solid rgba(13,21,32,.9);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
    transition: transform .3s ease;
}
.about-photo-wrap:hover .about-photo { transform: scale(1.03) rotate(-1deg); }
.about-copy { display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.about-lead {
    margin: 0; color: var(--ink);
    font-size: clamp(1.2rem, 2.3vw, 1.55rem); font-weight: 700;
    line-height: 1.55; letter-spacing: -.02em;
}
.about-highlight { color: var(--teal); }
.about-body { margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.9; }
.about-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .35rem; }
.about-chips span {
    padding: .45rem .95rem; border-radius: 999px;
    background: linear-gradient(135deg, rgba(63,212,198,.18), rgba(63,212,198,.07));
    border: 1px solid rgba(63,212,198,.35);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.16);
    color: #a7f0e7; font-size: .85rem; font-weight: 700;
    transition: transform .2s ease, border-color .2s ease;
}
.about-chips span:hover { transform: translateY(-2px); border-color: rgba(63,212,198,.6); }

/* Education card: standalone glass row under the about panel */
.edu-card {
    position: relative; overflow: hidden;
    width: min(1040px, calc(100% - 2rem)); max-width: 1040px; align-self: center;
    display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem;
    margin: 1.5rem auto 0;
    padding: clamp(1.3rem, 3vw, 1.75rem) clamp(1.5rem, 4vw, 2.25rem) clamp(1.3rem, 3vw, 1.75rem) clamp(1.75rem, 4.5vw, 2.6rem);
    border-radius: 28px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.edu-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
    background: linear-gradient(180deg, var(--teal), #8298dd 55%, var(--coral));
}
.edu-card:hover {
    transform: translateY(-3px);
    border-color: rgba(63,212,198,.4);
    box-shadow: 0 30px 60px rgba(0,0,0,.5), inset 0 1px 1px rgba(255,255,255,.2);
}
.edu-icon {
    flex: none; width: 62px; height: 62px;
    display: grid; place-items: center;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(63,212,198,.3), rgba(63,212,198,.1));
    border: 1px solid rgba(63,212,198,.4);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.28), 0 8px 18px rgba(0,0,0,.3);
    color: var(--teal);
}
.edu-icon svg { width: 32px; height: 32px; }
.edu-body { display: flex; flex-direction: column; gap: .22rem; min-width: 0; flex: 1; }
.edu-label {
    color: #7ff0e4; font-size: .72rem; font-weight: 800;
    letter-spacing: .14em; text-transform: uppercase;
}
.edu-school {
    color: var(--ink); font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 800;
    letter-spacing: -.02em; line-height: 1.35;
}
.edu-degree { color: #d4e0ef; font-size: 1rem; font-weight: 600; line-height: 1.55; }
.edu-location {
    flex: none; margin-left: auto;
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .5rem 1rem; border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,157,133,.2), rgba(255,157,133,.08));
    border: 1px solid rgba(255,157,133,.4);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.16);
    color: #ffd0c2; font-size: .88rem; font-weight: 700; white-space: nowrap;
}
.edu-location::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: var(--coral); box-shadow: 0 0 0 3px rgba(255,157,133,.25);
}

/* Skills: compact glass panels with flowing chips */
#technical-skill > div { min-height: 0 !important; background: transparent !important; }
#technical-skill > div > div:nth-child(2) { background: transparent !important; box-shadow: none !important; }
.skills-panel {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem; align-self: center;
    width: min(1120px, calc(100% - 2rem));
    padding: 1.25rem 0 3rem;
}
.skill-group {
    position: relative; overflow: hidden;
    padding: 1.6rem 1.4rem 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    background: var(--glass);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    transition: transform .25s ease, box-shadow .25s ease;
}
.skill-group::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--teal), #8298dd);
}
.skill-group:nth-child(2)::before { background: linear-gradient(90deg, #8298dd, var(--coral)); }
.skill-group:nth-child(3)::before { background: linear-gradient(90deg, var(--coral), var(--teal)); }
.skill-group:hover { transform: translateY(-3px); box-shadow: 0 30px 60px rgba(0,0,0,.48); }
.skill-group h3 {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    margin: 0 0 .95rem; color: var(--ink);
    font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em;
}
.skill-count {
    flex: none; min-width: 30px; text-align: center;
    padding: .15rem .6rem; border-radius: 999px;
    background: rgba(63,212,198,.16); border: 1px solid rgba(63,212,198,.35);
    color: #7ff0e4; font-size: .78rem; font-weight: 800;
}
.skill-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.skill-chip {
    display: inline-flex; align-items: center; gap: .6rem;
    max-width: 100%; min-height: 44px;
    padding: .45rem 1.05rem .45rem .5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.04));
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.14);
    color: var(--ink); font-size: .93rem; font-weight: 600; line-height: 1.3;
    transition: transform .2s ease, border-color .2s ease, background-position .4s ease;
}
.skill-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(63,212,198,.5);
    background: linear-gradient(135deg, rgba(63,212,198,.16), rgba(255,255,255,.05));
}
.skill-chip img {
    flex: none; width: 32px; height: 32px;
    object-fit: contain;
    padding: 4px; border-radius: 9px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
}
.skill-chip small { color: var(--muted); font-size: .78rem; font-weight: 500; }
.tech-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.tech-tags span {
    padding: .38rem .72rem; border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.04));
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.14);
    color: #c9d8ea; font-size: .8rem; font-weight: 700;
    transition: transform .2s ease;
}
.tech-tags span:hover { transform: translateY(-1px); }

/* Experience: distinct header band per card, separated project blocks, generous spacing */
#experience > div { min-height: 0 !important; }
#experience .animate__fadeIn { max-width: 1040px; margin: 0 auto; width: 100%; padding: 1rem clamp(1rem, 5vw, 4rem) 3rem !important; gap: 1.75rem; }
.experience-list { max-width: 1040px; width: 100%; margin: 0 auto; padding: 1rem clamp(1rem, 5vw, 4rem) 3rem; display: grid; gap: 1.75rem; }
.experience-card {
    padding: clamp(1.2rem, 3vw, 1.9rem);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    overflow: hidden;
    background: var(--glass);
    background-size: 180% 180%;
    background-position: 0% 0%;
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    transition: transform .3s ease, box-shadow .3s ease, background-position .6s ease;
}
.experience-card:hover { transform: translateY(-4px); background-position: 75% 75%; box-shadow: 0 30px 60px rgba(0,0,0,.5), inset 0 1px 1px rgba(255,255,255,.2), inset 0 -1px 2px rgba(255,255,255,.06); }
.experience-card.current-role { border-top: 3px solid var(--teal); }
.experience-card:nth-child(2) { border-top: 3px solid #e0a35c; }
.experience-card:nth-child(3) { border-top: 3px solid #8298dd; }
.experience-card:nth-child(4) { border-top: 3px solid var(--coral); }

.experience-heading {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 1.25rem;
    margin: calc(-1 * clamp(1.2rem, 3vw, 1.9rem)) calc(-1 * clamp(1.2rem, 3vw, 1.9rem)) 0;
    padding: clamp(1.2rem, 3vw, 1.9rem);
    background: linear-gradient(135deg, rgba(63,212,198,.16), rgba(255,255,255,.05) 55%, rgba(255,255,255,.03));
    border-bottom: 1px solid rgba(255,255,255,.14);
    border-radius: 27px 27px 0 0;
}
.experience-heading > div { min-width: 0; }
.experience-heading h3 { margin: .25rem 0; color: var(--ink); font-size: clamp(1.25rem, 2.8vw, 1.6rem); font-weight: 800; line-height: 1.4; letter-spacing: -.025em; }
.experience-heading p { margin: .5rem 0 0; color: #6fe3d8; font-size: 1.08rem; font-weight: 800; line-height: 1.55; }
.experience-heading p span {
    display: inline-block; margin-left: .35rem; padding: .2rem .75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.16);
    color: #cddaec; font-size: .85rem; font-weight: 700; white-space: nowrap;
}
.eyebrow {
    display: inline-block; padding: .3rem .8rem; border-radius: 999px;
    background: linear-gradient(135deg, rgba(63,212,198,.24), rgba(63,212,198,.1));
    border: 1px solid rgba(63,212,198,.35);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.16);
    color: #7ff0e4; font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
}
.role-mark {
    display: grid; place-items: center;
    width: 48px; height: 48px; flex: none; border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(63,212,198,.24));
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.24), 0 8px 18px rgba(0,0,0,.3);
    color: var(--teal); font-size: .85rem; font-weight: 800;
}
.project-block {
    margin-top: 1.25rem; padding: 1.25rem 1.35rem; border-radius: 20px;
    background: rgba(0,0,0,.28);
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.08);
}
.project-block + .project-block { margin-top: 1rem; }
.project-block h4 { margin: 0; color: #7ff0e4; font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; }
.project-subtitle { margin: .25rem 0 .5rem; color: var(--muted); font-size: .92rem; }
.project-block ul { margin: .75rem 0 .95rem; padding-left: 1.3rem; color: #d4e0ef; font-size: 1rem; line-height: 1.85; }
.project-block li::marker { color: var(--coral); }
#experience li { margin: .35rem 0; line-height: 1.8; }

/* Projects */
#projects > div { min-height: 0 !important; padding: 3.5rem 0 4rem; }
#projects h3 { color: var(--ink) !important; }
#projects .text-3xl {
    color: var(--ink) !important;
    letter-spacing: -.03em;
    padding: .6rem 1.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.2);
    background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
    box-shadow: 0 14px 32px rgba(0,0,0,.35), inset 0 1px 1px rgba(255,255,255,.2);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
}
#projects .grid { max-width: 1200px; margin: 0 auto; padding: 2rem clamp(1rem, 5vw, 4rem) !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr)); }
#projects .grid > div {
    display: flex; flex-direction: column;
    padding: 1.35rem !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    border-radius: 26px !important;
    background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.05) 45%, rgba(255,255,255,.08)) !important;
    background-size: 180% 180% !important;
    background-position: 0% 0% !important;
    box-shadow: var(--glass-shadow) !important;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    transition: transform .3s ease, box-shadow .3s ease, background-position .6s ease;
}
#projects .grid > div:hover {
    transform: translateY(-6px) scale(1.01);
    background-position: 75% 75% !important;
    box-shadow: 0 32px 64px rgba(0,0,0,.5), inset 0 1px 1px rgba(255,255,255,.2), inset 0 -1px 2px rgba(255,255,255,.06) !important;
}
#projects .grid > div h3 { font-size: 1.1rem !important; }
#projects .grid > div > div:nth-child(2) img {
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.2);
    box-shadow: 0 10px 24px rgba(0,0,0,.4), inset 0 1px 1px rgba(255,255,255,.15);
}
#projects .grid > div p { color: #c6d4e6 !important; font-size: .95rem !important; line-height: 1.75; }
#projects .text-xs, #projects .text-sm { font-size: .95rem !important; }
#projects .grid > div > div:last-child { margin-top: auto; }
#projects .grid a {
    display: inline-flex; align-items: center;
    color: var(--teal); text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,.18);
    background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
    box-shadow: inset 0 1px 1px rgba(255,255,255,.16), 0 6px 16px rgba(0,0,0,.25);
    transition: transform .22s ease, box-shadow .22s ease;
}
#projects .grid a:hover {
    color: #8ff0e6;
    transform: translateY(-1px);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.2), 0 10px 22px rgba(0,0,0,.35);
}

/* Contact: dark aurora footer with dark-glass contact tiles */
#contact > div {
    min-height: 0 !important;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem !important;
    padding: 4rem clamp(1rem, 8vw, 7rem);
    background:
        radial-gradient(ellipse at 12% 15%, rgba(45,196,181,.3), transparent 46%),
        radial-gradient(ellipse at 88% 85%, rgba(247,151,102,.22), transparent 46%),
        linear-gradient(150deg, rgba(9,22,38,.98), rgba(14,40,58,.97) 55%, rgba(8,55,58,.98)) !important;
    color: #eff5f4;
    border: 0 !important;
    border-top: 1px solid rgba(255,255,255,.2) !important;
}
#contact > div > .text-center { grid-column: 1 / -1; padding-bottom: 1rem !important; }
#contact > div > .text-center > div:first-child { color: #fff; font-size: 2.1rem !important; letter-spacing: -.05em; }
#contact > div > .text-center > div:nth-child(2) { color: #b5e4de; font-size: 1.1rem !important; }
#contact > div > div:not(.text-center) {
    padding: 1.6rem 1rem;
    border-radius: 26px;
    background-image: linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.05) 50%, rgba(255,255,255,.09));
    background-size: 180% 180%;
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 18px 38px rgba(0,0,0,.35), inset 0 1px 1px rgba(255,255,255,.24);
    transition: transform .3s ease, box-shadow .3s ease, background-position .6s ease;
}
#contact > div > div:not(.text-center):hover { transform: translateY(-4px); background-position: 75% 75%; box-shadow: 0 26px 48px rgba(0,0,0,.45), inset 0 1px 1px rgba(255,255,255,.3); }
#contact .w-12 {
    width: 56px; height: 56px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
    border: 1px solid rgba(255,255,255,.28);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.3), 0 10px 22px rgba(0,0,0,.3);
}
#contact svg { width: 30px; height: 30px; color: #8fe3d7; }
#contact .font-semibold { color: #fff; font-size: 1.05rem; }
#contact .font-semibold + div, #contact .font-semibold + a { color: #d3dde8; font-size: .98rem; overflow-wrap: anywhere; }
#contact a.contact-value { text-decoration: none; transition: color .2s ease; }
#contact a.contact-value:hover, #contact a.contact-value:focus-visible { color: var(--teal); }
#projects .bg-clip-text { background-image: linear-gradient(135deg, #f472ff, #ff8a70) !important; }

@media (max-width: 640px) {
    html { scroll-padding-top: 76px; }
    body { font-size: 16px; }
    #navbar { height: 54px !important; top: 10px !important; left: 10px !important; right: 10px !important; padding: 0 1rem !important; }
    #navbar > div:first-child { font-size: 1.1rem; }
    .mobile-menu { top: 76px; right: .75rem; }
    nav > .flex.flex-col { min-height: 560px !important; padding: 96px 10px 56px; }
    nav > .flex.flex-col::before { width: 300px; height: 300px; right: -90px; top: 90px; }
    nav > .flex.flex-col::after { display: none; }
    nav > .flex.flex-col > .grow { border-radius: 28px; padding: 1.6rem 1rem; }
    .about-photo-wrap { padding: 10px; }
    .about-photo-wrap::after { inset: -12px; }
    #contact > div { grid-template-columns: 1fr; padding: 3rem 1.5rem; }
    #contact > div > .text-center { grid-column: auto; }
    #contact > div > .text-center > div:first-child { font-size: 1.75rem !important; }
    #contact > div > div:not(.text-center) { padding: 1.25rem 1rem; }
    #projects > div { padding-top: 2.5rem; }
    .skills-panel { grid-template-columns: 1fr; padding: 1rem 0 2rem; }
    .skill-group h3 { justify-content: center; flex-wrap: wrap; gap: .5rem; text-align: center; }
    .skill-chips { justify-content: center; }
    .skill-chip { font-size: .95rem; padding: .5rem 1.1rem .5rem .55rem; }
    .skill-chip img { width: 34px; height: 34px; padding: 4px; }
    .experience-list { padding-left: 1rem !important; padding-right: 1rem !important; }
    .experience-heading { gap: .5rem; }
    .experience-heading h3 { font-size: 1.15rem; }
    .experience-heading p { font-size: .98rem; }
    .project-block { padding: 1rem 1rem; }
    .project-block ul { font-size: .95rem; padding-left: 1.15rem; }
    .about-panel { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 2rem 1.35rem; }
    .about-copy { text-align: center; align-items: center; }
    .about-chips { justify-content: center; }
    .edu-card { flex-direction: column; align-items: center; text-align: center; gap: .9rem; padding: 1.5rem 1.25rem; }
    .edu-body { align-items: center; }
    .edu-icon { width: 56px; height: 56px; border-radius: 16px; }
    .edu-icon svg { width: 28px; height: 28px; }
    .edu-location { margin-left: 0; }
    #projects .grid { justify-items: center; }
    #projects .grid > div { width: 100%; max-width: 420px; }
    body > div > section blockquote .relative.text-base { font-size: .78rem !important; letter-spacing: .1em; }
}

/* Short landscape screens: let the hero size to content */
@media (max-height: 520px) and (orientation: landscape) {
    nav > .flex.flex-col { min-height: auto !important; padding-top: 88px; padding-bottom: 48px; }
    nav > .flex.flex-col::before, nav > .flex.flex-col::after { display: none; }
}

@media (min-width: 641px) and (max-width: 900px) { .skills-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Users who want less transparency get near-opaque surfaces instead. */
@media (prefers-reduced-transparency: reduce) {
    body::before { animation: none; }
    *, *::before, *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
    #navbar, .mobile-menu, .skill-group, .experience-card, .about-panel, .edu-card, #projects .grid > div { background: rgba(15,23,36,.97) !important; }
}

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