:root {
  --bg: #07111f;
  --bg-2: #0d1728;
  --panel: rgba(10, 18, 33, 0.72);
  --panel-strong: rgba(13, 24, 43, 0.9);
  --card: rgba(11, 20, 36, 0.88);
  --card-alt: rgba(15, 27, 47, 0.94);
  --text: #ebf2ff;
  --muted: #9eb0ca;
  --line: rgba(144, 175, 220, 0.18);
  --line-strong: rgba(144, 175, 220, 0.32);
  --strong: #ffffff;
  --accent: #67e8f9;
  --accent-2: #8b5cf6;
  --accent-3: #22c55e;
  --glow: 0 0 0 1px rgba(103, 232, 249, 0.08), 0 24px 60px rgba(2, 8, 23, 0.6);
  --shadow-soft: 0 18px 50px rgba(2, 8, 23, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(103, 232, 249, 0.08), transparent 26%),
    radial-gradient(circle at 85% 18%, rgba(139, 92, 246, 0.12), transparent 24%),
    linear-gradient(180deg, #07101d 0%, #091321 42%, #050b15 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 80%);
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.45;
}

.orb-a {
  width: 280px;
  height: 280px;
  top: 70px;
  right: -60px;
  background: rgba(103, 232, 249, 0.16);
}

.orb-b {
  width: 260px;
  height: 260px;
  left: -70px;
  top: 42%;
  background: rgba(139, 92, 246, 0.16);
}

img {
  max-width: 100%;
  display: block;
}

h1,
 h2,
 h3,
 h4 {
  margin: 0;
}

p,
ul {
  margin: 0;
}

ul {
  padding-left: 1.2rem;
}

.mono {
  font-family: "JetBrains Mono", monospace;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1380px, calc(100% - 32px));
  margin: 24px auto 48px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
}

.sidebar,
.content {
  background: var(--panel);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  border-radius: 30px;
}

.sidebar {
  position: sticky;
  top: 20px;
  padding: 28px;
}

.content {
  padding: 28px;
}

.identity-card {
  display: grid;
  gap: 12px;
}

.avatar-wrap {
  width: 128px;
  height: 128px;
  padding: 4px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.7), rgba(139, 92, 246, 0.65));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
  object-position: center;
}

.overline {
  margin-top: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.identity-card h1,
.hero h2,
.section-title-wrap h3,
.side-section h2 {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.identity-card h1 {
  font-size: 2.35rem;
  line-height: 0.95;
}

.role {
  color: var(--text);
  font-weight: 700;
  font-size: 0.96rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-statement {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

.side-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.side-section h2 {
  margin-bottom: 14px;
  font-size: 1.22rem;
}

.contact-panel {
  background: linear-gradient(180deg, rgba(14, 28, 47, 0.74), rgba(8, 17, 31, 0.2));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
}

.contact-list {
  display: grid;
  gap: 10px;
}

.contact-list a,
.link-list a {
  color: var(--text);
  text-decoration: none;
}

.contact-list a:hover,
.link-list a:hover,
.top-nav a:hover {
  color: var(--accent);
}

.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.primary-button,
.secondary-button,
.ghost-button {
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--accent), #4ade80);
  color: #03101c;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.18);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}

.link-list,
.plain-list,
.tag-list,
.focus-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list,
.plain-list {
  display: grid;
  gap: 10px;
}

.skill-group + .skill-group {
  margin-top: 14px;
}

.group-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-list li {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dbe7fb;
  font-size: 0.92rem;
}

.plain-list li,
.compact li {
  color: var(--muted);
  line-height: 1.55;
}

.language-item {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.language-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.language-row span {
  font-weight: 600;
}

.language-row strong {
  color: var(--muted);
  font-size: 0.85rem;
}

.bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: inherit;
}

.bar.full::after {
  width: 100%;
}

.bar.mid::after {
  width: 76%;
}

.top-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 22px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.metric-card,
.card,
.timeline-item {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--glow);
}

.hero-copy,
.hero-panel {
  border-radius: 28px;
  padding: 26px;
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero h2 {
  font-size: clamp(2rem, 3.3vw, 3.5rem);
  line-height: 1.04;
  max-width: 880px;
}

.hero-summary {
  margin-top: 18px;
  max-width: 760px;
  line-height: 1.75;
  color: var(--muted);
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-panel {
  background:
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.2), transparent 46%),
    linear-gradient(180deg, rgba(15, 28, 48, 0.96), rgba(9, 18, 33, 0.95));
}

.hero-panel-title {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.focus-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.focus-list li {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: #deebff;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.metric-card {
  border-radius: 22px;
  padding: 22px;
}

.metric-value {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--strong);
}

.metric-label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.content-section {
  margin-top: 28px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.section-index {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.2), rgba(139, 92, 246, 0.25));
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.section-title-wrap h3 {
  font-size: 1.85rem;
}

.card {
  border-radius: 26px;
  padding: 24px;
}

.spotlight-card {
  background:
    radial-gradient(circle at top right, rgba(103, 232, 249, 0.08), transparent 32%),
    var(--card-alt);
}

.card p + p {
  margin-top: 14px;
}

.card p,
.timeline-item p,
.timeline-item li,
.card li {
  line-height: 1.7;
}

.muted {
  color: var(--muted);
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.strength-card h4 {
  margin-top: 12px;
  font-size: 1.18rem;
  line-height: 1.4;
}

.strength-card p:last-child {
  color: var(--muted);
  margin-top: 10px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(103, 232, 249, 0.38), rgba(139, 92, 246, 0.2));
}

.timeline-item {
  position: relative;
  margin-left: 52px;
  border-radius: 26px;
  padding: 24px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 28px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(103, 232, 249, 0.08);
}

.timeline-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.timeline-kicker {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}

.timeline-head h4 {
  font-size: 1.12rem;
  line-height: 1.45;
}

.timeline-head h4 span,
.timeline-head > p {
  color: var(--muted);
  font-weight: 600;
}

.timeline-item ul,
.card ul {
  display: grid;
  gap: 10px;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1180px) {
  .hero,
  .metric-grid,
  .strength-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100%, calc(100% - 16px));
    margin: 8px auto 24px;
    gap: 16px;
  }

  .sidebar,
  .content,
  .hero-copy,
  .hero-panel,
  .card,
  .timeline-item,
  .metric-card {
    border-radius: 22px;
  }

  .sidebar,
  .content {
    padding: 20px;
  }

  .identity-card h1 {
    font-size: 1.85rem;
  }

  .top-nav {
    gap: 12px;
  }

  .metric-grid,
  .strength-grid,
  .grid-two {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    margin-left: 30px;
    padding: 18px;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-item::before {
    left: -24px;
    width: 14px;
    height: 14px;
  }

  .timeline-head {
    flex-direction: column;
  }

  .hero h2 {
    font-size: 1.95rem;
  }

  .section-title-wrap h3 {
    font-size: 1.45rem;
  }

  .brand-statement,
  .hero-summary,
  .timeline-item p,
  .timeline-item li,
  .card p,
  .card li {
    font-size: 0.96rem;
  }
}


/* subtle premium animations */
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 { transition-delay: 24ms; }
  .reveal-delay-2 { transition-delay: 48ms; }
  .reveal-delay-3 { transition-delay: 72ms; }

  .hover-lift {
    transition:
      transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1),
      border-color 180ms ease;
  }

  .hover-lift:hover {
    transform: translateY(-1px);
  }

  .hero-avatar,
  .avatar,
  .profile-photo,
  .hero img,
  .hero__image img {
    animation: floatSoft 12s ease-in-out infinite;
  }

  @keyframes floatSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-1.5px); }
  }

  .timeline-item::before,
  .experience-item::before {
    animation: pulseSoft 6s ease-in-out infinite;
  }

  @keyframes pulseSoft {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.10); }
    50% { box-shadow: 0 0 0 3px rgba(255,255,255,0.0); }
  }

  .top-progress {
    position: fixed;
    inset: 0 auto auto 0;
    height: 1px;
    width: 0%;
    z-index: 9999;
    background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(140,180,255,0.95));
    box-shadow: 0 0 6px rgba(140,180,255,0.18);
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* mobile visibility fix */
@media (max-width: 760px) {
  .content-section.reveal,
  .metric-grid.reveal,
  .grid-two.reveal,
  .hero.reveal {
    opacity: 1;
    transform: none;
  }

  .top-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: -4px -4px 18px;
    padding: 12px 4px 14px;
    background: linear-gradient(180deg, rgba(7,17,31,0.98), rgba(7,17,31,0.78));
    backdrop-filter: blur(10px);
  }

  .top-nav a {
    white-space: nowrap;
    font-size: 0.9rem;
  }

  .timeline-item ul {
    padding-left: 1rem;
  }
}



/* Tech icon chips */
.tag-chip,
.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tech-icon {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  object-fit: cover;
  flex: 0 0 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 16px;
}

.tech-pill {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dbe7fb;
  font-size: 0.88rem;
  line-height: 1;
}

.tag-chip .tech-icon,
.tech-pill .tech-icon {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.tag-chip:hover .tech-icon,
.tech-pill:hover .tech-icon {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
}

.stack-group {
  margin-bottom: 28px;
}

.stack-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}

.stack-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stack-pill {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 14px;
  border-radius: 999px;

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);

  backdrop-filter: blur(8px);
}

.stack-pill img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.stack-pill.detailed {
  align-items: flex-start;
  border-radius: 18px;
  padding: 14px 16px;
}

.stack-pill.detailed div {
  display: flex;
  flex-direction: column;
}

.stack-pill.detailed strong {
  font-size: 0.92rem;
  color: #fff;
  line-height: 1.2;
}

.stack-pill.detailed small {
  margin-top: 3px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.58);
  letter-spacing: 0.02em;
}

@media (max-width: 700px) {
  .tech-row {
    gap: 8px;
    margin: 12px 0 14px;
  }

  .tech-pill {
    font-size: 0.82rem;
    padding: 7px 10px;
  }

  .tech-icon {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }
}
