:root {
  color-scheme: dark;
  --bg: #0d0d12;
  --bg-elevated: rgba(20, 20, 28, 0.95);
  --bg-panel: rgba(18, 18, 24, 0.7);
  --bg-panel-solid: #12121a;
  --fg: #e8e8f0;
  --fg-muted: #a0a0b8;
  --accent: linear-gradient(135deg, #c9184a 0%, #d4af37 50%, #c9184a 100%);
  --accent-glow: linear-gradient(135deg, rgba(201, 24, 74, 0.3), rgba(212, 175, 55, 0.3));
  --accent-solid: #c9184a;
  --accent-gold: #d4af37;
  --border: rgba(150, 100, 120, 0.2);
  --shadow: 0 25px 75px rgba(0, 0, 0, 0.8);
  --shadow-colored: 0 25px 75px rgba(201, 24, 74, 0.2);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1100px;
  --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;
}

[data-theme='light'] {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-elevated: rgba(255, 255, 255, 0.95);
  --bg-panel: rgba(255, 255, 255, 0.85);
  --bg-panel-solid: #ffffff;
  --fg: #0f172a;
  --fg-muted: #475569;
  --accent: linear-gradient(135deg, #c9184a 0%, #d4af37 50%, #c9184a 100%);
  --accent-glow: linear-gradient(135deg, rgba(201, 24, 74, 0.15), rgba(212, 175, 55, 0.15));
  --accent-solid: #c9184a;
  --accent-gold: #d4af37;
  --border: rgba(139, 34, 50, 0.15);
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-colored: 0 25px 75px rgba(201, 24, 74, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  position: relative;
  cursor: url('assets/t1-cursor.png') 8 8, auto;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 20% 10%, rgba(201, 24, 74, 0.08), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.06), transparent 45%),
    radial-gradient(circle at 50% 70%, rgba(180, 20, 60, 0.05), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(201, 24, 74, 0.06), transparent 45%);
  z-index: -2;
  animation: gradientShift 20s ease infinite;
}

[data-theme='light'] body::before {
  background: 
    radial-gradient(circle at 20% 10%, rgba(201, 24, 74, 0.04), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.03), transparent 45%),
    radial-gradient(circle at 50% 70%, rgba(180, 20, 60, 0.025), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(201, 24, 74, 0.03), transparent 45%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(201, 24, 74, 0.02) 2px, rgba(201, 24, 74, 0.02) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(212, 175, 55, 0.02) 2px, rgba(212, 175, 55, 0.02) 4px);
  z-index: -1;
  opacity: 0.5;
}

[data-theme='light'] body::after {
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(201, 24, 74, 0.015) 2px, rgba(201, 24, 74, 0.015) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(212, 175, 55, 0.015) 2px, rgba(212, 175, 55, 0.015) 4px);
  opacity: 0.3;
}

@keyframes gradientShift {
  0%, 100% {
    opacity: 1;
    filter: hue-rotate(0deg);
  }
  50% {
    opacity: 0.85;
    filter: hue-rotate(15deg);
  }
}

.panel,
.hero {
  scroll-margin-top: 120px;
}

.page {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 3.5rem clamp(1.25rem, 3vw, 2.75rem) 4rem;
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: clamp(1.25rem, 3vw, 2rem);
  padding: 1rem 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 20, 40, 0.8);
  backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 10;
  transition: all var(--transition);
}

.site-header:hover {
  border-color: rgba(228, 0, 43, 0.3);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(228, 0, 43, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.logo__glyph {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 12px;
  background: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(228, 0, 43, 0.4);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.logo__glyph::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.logo:hover .logo__glyph {
  transform: rotate(360deg) scale(1.05);
  box-shadow: 0 6px 30px rgba(228, 0, 43, 0.6);
}

.logo:hover .logo__glyph::before {
  opacity: 1;
}

.logo__text {
  font-size: 1rem;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav__links {
  display: flex;
  list-style: none;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
}

.site-nav__links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.site-nav__links a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(228, 0, 43, 0.2), rgba(255, 23, 68, 0.2));
  opacity: 0;
  transition: opacity var(--transition);
}

.site-nav__links a:hover,
.site-nav__links a:focus-visible,
.site-nav__links a.is-active {
  color: var(--fg);
  background: rgba(228, 0, 43, 0.2);
  box-shadow: 
    0 2px 10px rgba(228, 0, 43, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.site-nav__links a:hover::before,
.site-nav__links a.is-active::before {
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: inherit;
  cursor: url('assets/t1-cursor.png') 8 8, pointer;
}

.nav-toggle__icon {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  position: relative;
  transition: transform 200ms ease;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 24px;
  height: 2px;
  background: var(--fg);
  transition: transform 200ms ease, top 200ms ease, bottom 200ms ease;
}

.nav-toggle__icon::before {
  top: -7px;
}

.nav-toggle__icon::after {
  bottom: -7px;
}

.nav-is-open .nav-toggle__icon {
  background: transparent;
}

.nav-is-open .nav-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-is-open .nav-toggle__icon::after {
  bottom: 0;
  transform: rotate(-45deg);
}


.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 40vw, 420px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 25px 75px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(102, 126, 234, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.hero__content::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(228, 0, 43, 0.1), transparent 60%);
  animation: rotateSlow 30s linear infinite;
  pointer-events: none;
}

.hero__content:hover {
  border-color: rgba(228, 0, 43, 0.3);
  box-shadow: 
    0 30px 90px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(228, 0, 43, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero__eyebrow {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  background: linear-gradient(135deg, #ffffff, #e0e7ff, #c7d2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero__title::selection {
  -webkit-text-fill-color: var(--fg);
  background: rgba(102, 126, 234, 0.3);
}

.hero__subtitle {
  margin: 0;
  color: var(--fg-muted);
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.4em;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  color: rgba(148, 163, 184, 0.85);
  font-size: 0.95rem;
}

.hero__meta-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero__meta-item {
  position: relative;
}

.hero__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.65);
  color: inherit;
  text-decoration: none;
  padding: 0;
  cursor: url('assets/t1-cursor.png') 8 8, pointer;
  appearance: none;
  transition: color var(--transition), border-color var(--transition), transform var(--transition), background var(--transition);
}

.hero__icon-btn:hover,
.hero__icon-btn:focus-visible {
  color: var(--fg);
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(96, 165, 250, 0.2);
  transform: translateY(-1px);
}

.hero__icon-btn--toggle[aria-expanded='true'] {
  border-color: rgba(168, 85, 247, 0.6);
  background: rgba(168, 85, 247, 0.2);
  color: var(--fg);
}

.hero__meta-item--phone {
  position: relative;
}

.hero__location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.5);
  color: rgba(226, 232, 240, 0.92);
}

.hero__location .icon--contact {
  color: rgba(148, 163, 184, 0.75);
}

.hero__popover {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translate(-50%, 5px);
  min-width: 150px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.45);
  display: grid;
  gap: 0.4rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--fg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 5;
}

.hero__popover::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: inherit;
  border-left: inherit;
  border-top: inherit;
}

.hero__popover[aria-hidden='false'] {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.hero__popover-text {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero__popover-link {
  color: rgba(96, 165, 250, 0.9);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.hero__popover-link:hover,
.hero__popover-link:focus-visible {
  color: #f8fafc;
}

.hero__summary {
  margin: 0;
  color: var(--fg-muted);
  font-size: 1.05rem;
  max-width: 46ch;
}

.icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.icon--contact {
  color: rgba(148, 163, 184, 0.75);
  transition: color var(--transition), transform var(--transition);
}

.button--with-icon .icon--contact {
  color: currentColor;
}

.icon--social {
  width: 20px;
  height: 20px;
  color: rgba(94, 234, 212, 0.9);
  transition: color var(--transition), transform var(--transition);
}

.contact__social a .icon--social {
  color: currentColor;
}

.hero__typed {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--fg);
}

.hero__cursor {
  width: 1px;
  height: 1.4em;
  background: var(--fg);
  display: inline-block;
  animation: cursorBlink 0.8s steps(2, start) infinite;
}

.button--with-icon {
  gap: 0.65rem;
  padding-inline: 1.1rem 1.25rem;
}

.button--with-icon .icon {
  width: 18px;
  height: 18px;
}

.button--with-icon:hover .icon--contact,
.button--with-icon:focus-visible .icon--contact {
  transform: none;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
  cursor: url('assets/t1-cursor.png') 8 8, pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.button:hover::before {
  opacity: 1;
}

.button--primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 
    0 12px 30px rgba(102, 126, 234, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-weight: 700;
  background-size: 200% 200%;
  animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.button--primary:hover,
.button--primary:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 20px 45px rgba(102, 126, 234, 0.5),
    0 0 40px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.button--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--fg);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(148, 163, 184, 0.08);
}

.hero__stats {
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  position: relative;
  z-index: 1;
}

.hero__stats div {
  display: grid;
  gap: 0.4rem;
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(15, 15, 15, 0.6);
  border: 1px solid rgba(228, 0, 43, 0.2);
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero__stats div:hover {
  transform: translateY(-2px);
  background: rgba(15, 15, 15, 0.8);
  border-color: rgba(228, 0, 43, 0.4);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(228, 0, 43, 0.2);
}

.hero__stats dt {
  font-size: 1.8rem;
  font-weight: 700;
  font-feature-settings: 'tnum';
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stats dd {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.hero__visual {
  position: relative;
  padding: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.85));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  min-height: 380px;
  box-shadow: 
    0 25px 75px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(240, 147, 251, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  transition: all var(--transition);
}

.hero__visual:hover {
  border-color: rgba(228, 0, 43, 0.3);
  box-shadow: 
    0 30px 90px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(228, 0, 43, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.hero__portrait {
  position: relative;
  z-index: 1;
  margin: 0 auto 1.5rem;
  width: min(100%, 280px);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.3);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(201, 24, 74, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: url('assets/logan-headshot.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: all var(--transition);
}

.hero__portrait:hover {
  transform: scale(1.02) translateY(-4px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(212, 175, 55, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero__glow {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(201, 24, 74, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 65%, rgba(212, 175, 55, 0.25) 10%, transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(180, 20, 60, 0.2) 5%, transparent 55%);
  filter: blur(40px);
  opacity: 0.6;
  mix-blend-mode: screen;
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.hero__orb {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201, 24, 74, 0.25), rgba(212, 175, 55, 0.2));
  filter: blur(60px);
  animation: orbFloat 8s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(20px, -20px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.hero__orb--one {
  top: 12%;
  right: -35px;
  animation-delay: 0s;
}

.hero__orb--two {
  bottom: -45px;
  left: 40%;
  background: linear-gradient(135deg, rgba(180, 20, 60, 0.2), rgba(212, 175, 55, 0.25));
  width: 140px;
  height: 140px;
  animation-delay: -4s;
}

.hero__card {
  position: relative;
  margin-top: auto;
  padding: 2rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(15, 15, 15, 0.95), rgba(20, 20, 20, 0.9));
  border: 1px solid rgba(228, 0, 43, 0.3);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(228, 0, 43, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--fg);
  backdrop-filter: blur(16px) saturate(180%);
  transition: all var(--transition);
}

.hero__card:hover {
  transform: translateY(-4px);
  border-color: rgba(228, 0, 43, 0.5);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(228, 0, 43, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero__card-title {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.hero__card-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.95);
}

.hero__card-list li {
  padding-left: 1.2rem;
  position: relative;
}

.hero__card-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: rgba(228, 0, 43, 0.8);
  font-weight: bold;
}

.panel {
  display: grid;
  gap: 2.5rem;
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 
    0 25px 75px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0.6;
}

.panel:hover {
  border-color: rgba(102, 126, 234, 0.2);
  box-shadow: 
    0 30px 90px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(102, 126, 234, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.panel--accent {
  background: linear-gradient(130deg, rgba(24, 33, 71, 0.85), rgba(17, 24, 39, 0.85)),
    radial-gradient(circle at 10% 0%, rgba(59, 130, 246, 0.28), transparent 50%);
}

.panel--balanced {
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.92), rgba(12, 74, 110, 0.55));
}

.panel--inverted {
  background: rgba(12, 16, 30, 0.95);
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.panel__header {
  display: grid;
  gap: 0.5rem;
  max-width: 560px;
}

.panel__header h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, #e0e7ff, #c7d2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.panel__header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.panel__header p {
  margin: 0.5rem 0 0;
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.8rem;
}

.panel__card {
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(201, 24, 74, 0.25);
  background: linear-gradient(135deg, rgba(11, 16, 32, 0.95), rgba(15, 23, 42, 0.85));
  display: grid;
  gap: 0.8rem;
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.panel__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 24, 74, 0.05), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.panel__card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 24, 74, 0.4);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(201, 24, 74, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.panel__card:hover::before {
  opacity: 1;
}

.card__logo {
  width: 60px;
  height: 60px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all var(--transition);
  overflow: hidden;
}

.card__logo img,
.card__logo svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.panel__card:hover .card__logo {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(201, 24, 74, 0.3);
}

.panel__card h3 {
  margin: 0;
  font-size: 1.35rem;
  position: relative;
  z-index: 1;
}

.panel__card p {
  margin: 0;
  color: var(--fg-muted);
  position: relative;
  z-index: 1;
}

.detail {
  display: grid;
  gap: 0.4rem;
}

.detail__meta {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.8);
}

.detail__role {
  font-weight: 600;
  color: var(--fg);
}

.detail__list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
  color: var(--fg-muted);
  list-style: disc;
}

/* Education Timeline (Horizontal with Stairs) */
.education-timeline {
  position: relative;
  padding: 4rem 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  perspective: 2000px;
}

.education-timeline__line {
  position: absolute;
  top: 50%;
  left: 5%;
  width: 90%;
  height: 3px;
  background: transparent;
  z-index: 0;
  pointer-events: none;
}

/* Horizontal line from Bachelor's */
.education-timeline__line::before {
  content: '';
  position: absolute;
  width: 42%;
  height: 3px;
  left: 28%;
  top: 180px;
  background: linear-gradient(90deg, 
    rgba(201, 24, 74, 0.5), 
    rgba(212, 175, 55, 0.6)
  );
  box-shadow: 
    0 0 8px rgba(212, 175, 55, 0.3),
    0 0 16px rgba(212, 175, 55, 0.15);
  transform-origin: left;
  transform: scaleX(0);
  animation: lineDrawIn 1.2s cubic-bezier(0.65, 0, 0.35, 1) 0.5s forwards,
             lineGlowPulse 2s ease-in-out 2s infinite;
}

/* Vertical line going up */
.education-timeline__line::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 130px;
  left: calc(28% + 42%);
  top: 50px;
  background: linear-gradient(180deg, 
    rgba(212, 175, 55, 0.6),
    rgba(201, 24, 74, 0.5)
  );
  box-shadow: 
    0 0 8px rgba(212, 175, 55, 0.3),
    0 0 16px rgba(212, 175, 55, 0.15);
  transform-origin: bottom;
  transform: scaleY(0);
  animation: lineDrawVertical 1s cubic-bezier(0.65, 0, 0.35, 1) 1.7s forwards,
             lineGlowPulse 2s ease-in-out 3s infinite;
}

@keyframes lineDrawIn {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes lineDrawVertical {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }
  100% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes lineGlow {
  0%, 100% {
    opacity: 0.5;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
  }
}

@keyframes lineGlowPulse {
  0%, 100% {
    box-shadow: 
      0 0 8px rgba(212, 175, 55, 0.3),
      0 0 16px rgba(212, 175, 55, 0.15);
  }
  50% {
    box-shadow: 
      0 0 16px rgba(212, 175, 55, 0.5),
      0 0 32px rgba(212, 175, 55, 0.25);
  }
}

.education-timeline__items {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
  position: relative;
  min-height: 500px;
  padding: 0 5%;
}

.education-timeline__item {
  flex: 1;
  max-width: 400px;
  position: relative;
  opacity: 0;
  transform: translateY(-100px) rotateX(-90deg) scale(0.5);
  animation: dropInBounce 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Staircase Effect */
.education-timeline__item:nth-child(1) {
  margin-top: 120px;
  animation-delay: 0.3s;
}

.education-timeline__item:nth-child(2) {
  margin-top: 0px;
  animation-delay: 0.6s;
}

.education-timeline__item:nth-child(3) {
  animation-delay: 0.9s;
}

@keyframes dropInBounce {
  0% {
    opacity: 0;
    transform: translateY(-100px) rotateX(-90deg) scale(0.5);
  }
  60% {
    opacity: 1;
    transform: translateY(20px) rotateX(10deg) scale(1.05);
  }
  80% {
    transform: translateY(-10px) rotateX(-5deg) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
  }
}

.education-timeline__marker {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #c9184a, #d4af37);
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: 
    0 0 0 5px rgba(201, 24, 74, 0.15),
    0 0 16px rgba(212, 175, 55, 0.4);
  z-index: 3;
  opacity: 0;
  animation: markerDrop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, 
             pulse 2s ease-in-out 1s infinite;
}

.education-timeline__item:nth-child(1) .education-timeline__marker {
  animation-delay: 0.5s, 1.5s;
}

.education-timeline__item:nth-child(2) .education-timeline__marker {
  animation-delay: 0.8s, 1.8s;
}

.education-timeline__item:nth-child(3) .education-timeline__marker {
  animation-delay: 1.1s, 2.1s;
}

@keyframes markerDrop {
  0% {
    opacity: 0;
    top: -80px;
    transform: translateX(-50%) scale(0);
  }
  60% {
    opacity: 1;
    top: -10px;
    transform: translateX(-50%) scale(1.3);
  }
  80% {
    top: -20px;
    transform: translateX(-50%) scale(0.9);
  }
  100% {
    opacity: 1;
    top: -15px;
    transform: translateX(-50%) scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 
      0 0 0 5px rgba(201, 24, 74, 0.15),
      0 0 16px rgba(212, 175, 55, 0.4);
  }
  50% {
    transform: translateX(-50%) scale(1.08);
    box-shadow: 
      0 0 0 7px rgba(201, 24, 74, 0.25),
      0 0 24px rgba(212, 175, 55, 0.6);
  }
}

.education-timeline__content {
  background: linear-gradient(135deg, rgba(11, 16, 32, 0.95), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(201, 24, 74, 0.25);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.education-timeline__content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 24, 74, 0.05), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.education-timeline__content:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 24, 74, 0.4);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(201, 24, 74, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.education-timeline__content:hover::before {
  opacity: 1;
}

.education-timeline__logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  padding: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all var(--transition);
  overflow: hidden;
  opacity: 0;
  transform: scale(0) rotate(-180deg);
  animation: logoSpinIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.education-timeline__item:nth-child(1) .education-timeline__logo {
  animation-delay: 0.6s;
}

.education-timeline__item:nth-child(2) .education-timeline__logo {
  animation-delay: 0.9s;
}

.education-timeline__item:nth-child(3) .education-timeline__logo {
  animation-delay: 1.2s;
}

@keyframes logoSpinIn {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }
  70% {
    opacity: 1;
    transform: scale(1.2) rotate(20deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.education-timeline__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.education-timeline__content:hover .education-timeline__logo {
  transform: scale(1.15) rotate(360deg);
  box-shadow: 0 6px 20px rgba(201, 24, 74, 0.4);
}

.education-timeline__content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  color: var(--fg);
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
  animation: textSlideUp 0.6s ease forwards;
}

.education-timeline__item:nth-child(1) .education-timeline__content h3 {
  animation-delay: 0.8s;
}

.education-timeline__item:nth-child(2) .education-timeline__content h3 {
  animation-delay: 1.1s;
}

.education-timeline__item:nth-child(3) .education-timeline__content h3 {
  animation-delay: 1.4s;
}

.education-timeline__degree {
  margin: 0.75rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--fg);
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
  animation: textSlideUp 0.6s ease forwards;
}

.education-timeline__item:nth-child(1) .education-timeline__degree {
  animation-delay: 1s;
}

.education-timeline__item:nth-child(2) .education-timeline__degree {
  animation-delay: 1.3s;
}

.education-timeline__item:nth-child(3) .education-timeline__degree {
  animation-delay: 1.6s;
}

.education-timeline__dates {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-family: var(--font-mono);
  color: rgba(165, 180, 252, 0.9);
  background: rgba(201, 24, 74, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(201, 24, 74, 0.2);
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: scale(0.8);
  animation: badgePop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.education-timeline__item:nth-child(1) .education-timeline__dates {
  animation-delay: 1.2s;
}

.education-timeline__item:nth-child(2) .education-timeline__dates {
  animation-delay: 1.5s;
}

.education-timeline__item:nth-child(3) .education-timeline__dates {
  animation-delay: 1.8s;
}

@keyframes textSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes badgePop {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  70% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .education-timeline__items {
    flex-direction: column;
    align-items: center;
  }
  
  .education-timeline__items::before {
    display: none;
  }
  
  .education-timeline__line::before,
  .education-timeline__line::after {
    display: none;
  }
  
  .education-timeline__marker {
    display: none;
  }
  
  .education-timeline__item {
    max-width: 100%;
  }
  
  .education-timeline__item:nth-child(1),
  .education-timeline__item:nth-child(2) {
    margin-top: 0;
  }
}

.timeline {
  position: relative;
  display: grid;
  gap: 2.2rem;
  padding-left: 1.25rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.25rem;
  top: 0.3rem;
  bottom: 0.3rem;
  width: 2px;
  background: linear-gradient(to bottom, rgba(96, 165, 250, 0.5), rgba(168, 85, 247, 0.3));
}

.timeline__item {
  position: relative;
  padding: 2rem 2.2rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(12, 18, 35, 0.95), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 0.8rem;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  transition: all var(--transition);
}

.timeline__item:hover {
  transform: translateX(8px);
  border-color: rgba(201, 24, 74, 0.3);
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(201, 24, 74, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.timeline__logo {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all var(--transition);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.timeline__logo img,
.timeline__logo svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.timeline__item:hover .timeline__logo {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.timeline__marker {
  position: absolute;
  left: -1.7rem;
  top: 2rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 
    0 0 0 4px rgba(201, 24, 74, 0.2),
    0 0 20px rgba(201, 24, 74, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 
      0 0 0 4px rgba(201, 24, 74, 0.2),
      0 0 20px rgba(201, 24, 74, 0.4);
  }
  50% {
    box-shadow: 
      0 0 0 6px rgba(201, 24, 74, 0.3),
      0 0 30px rgba(212, 175, 55, 0.6);
  }
}

.timeline__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.timeline__header h3 {
  margin: 0;
  font-size: 1.3rem;
  flex: 0 1 auto;
}

.timeline__date {
  font-size: 0.95rem;
  color: rgba(165, 180, 252, 0.9);
  font-family: var(--font-mono);
  white-space: nowrap;
  flex-shrink: 0;
}

.timeline__employer {
  margin: 0.25rem 0 0.5rem 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--fg);
  flex-basis: 100%;
  order: 3;
}

.timeline__item p {
  margin: 0;
  color: var(--fg-muted);
}

.timeline__bullets {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.6rem;
  color: var(--fg-muted);
}

.timeline__tags {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline__tags li {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(201, 24, 74, 0.15);
  border: 1px solid rgba(201, 24, 74, 0.3);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.timeline__tags li:hover {
  background: rgba(201, 24, 74, 0.25);
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 0 15px rgba(212, 175, 55, 0.2);
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

.projects__card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  border: 1px solid rgba(102, 126, 234, 0.3);
  background: 
    radial-gradient(circle at 0% 0%, rgba(102, 126, 234, 0.15), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(240, 147, 251, 0.1), transparent 60%),
    rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px) saturate(180%);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.projects__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), transparent 50%, rgba(240, 147, 251, 0.1));
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.projects__card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1), transparent 60%);
  opacity: 0;
  transition: all var(--transition);
  pointer-events: none;
  animation: rotateSlow 30s linear infinite;
  animation-play-state: paused;
}

.projects__card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 
    0 25px 75px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.projects__card:hover::before {
  opacity: 1;
}

.projects__card:hover::after {
  opacity: 1;
  animation-play-state: running;
}

.projects__header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.projects__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.18em;
  font-weight: 600;
}

.projects__award {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(218, 165, 32, 0.15));
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #FFD700;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 
    0 2px 8px rgba(255, 215, 0, 0.2),
    inset 0 1px 0 rgba(255, 215, 0, 0.1);
  animation: awardGlow 3s ease-in-out infinite;
}

@keyframes awardGlow {
  0%, 100% {
    box-shadow: 
      0 2px 8px rgba(255, 215, 0, 0.2),
      inset 0 1px 0 rgba(255, 215, 0, 0.1);
  }
  50% {
    box-shadow: 
      0 4px 16px rgba(255, 215, 0, 0.4),
      inset 0 1px 0 rgba(255, 215, 0, 0.2);
  }
}

/* Floating Navigation Bar */
.floating-nav {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(139, 34, 50, 0.3);
  border-radius: 999px;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(139, 34, 50, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme='light'] .floating-nav {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(139, 34, 50, 0.2);
  box-shadow: 
    0 10px 40px rgba(15, 23, 42, 0.15),
    0 0 20px rgba(139, 34, 50, 0.1),
    inset 0 1px 0 rgba(139, 34, 50, 0.05);
}

.floating-nav:hover {
  transform: translateX(-50%) translateY(-4px) scale(1);
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(139, 34, 50, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.floating-nav__btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--fg);
  border-radius: 50%;
  transition: all 0.3s ease;
  cursor: url('assets/t1-cursor.png') 8 8, pointer;
  text-decoration: none;
  position: relative;
}

.floating-nav:hover .floating-nav__btn {
  width: 40px;
  height: 40px;
}

.floating-nav__btn svg {
  width: 18px;
  height: 18px;
  transition: all 0.3s ease;
}

.floating-nav:hover .floating-nav__btn svg {
  width: 20px;
  height: 20px;
}

.floating-nav__btn::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 0.4rem 0.75rem;
  background: rgba(15, 23, 42, 0.95);
  color: var(--fg);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(139, 34, 50, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

[data-theme='light'] .floating-nav__btn::before {
  background: rgba(255, 255, 255, 0.98);
  color: var(--fg);
  border-color: rgba(139, 34, 50, 0.2);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.floating-nav__btn::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(15, 23, 42, 0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

[data-theme='light'] .floating-nav__btn::after {
  border-top-color: rgba(255, 255, 255, 0.98);
}

.floating-nav__btn:hover::before,
.floating-nav__btn:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.floating-nav__btn:hover {
  background: rgba(139, 34, 50, 0.2);
  transform: translateY(-2px);
}

.floating-nav__btn:active {
  transform: translateY(0);
}


@media (prefers-reduced-motion: reduce) {
  .floating-nav,
  .floating-nav__btn,
  .floating-nav__btn::before,
  .floating-nav__btn::after {
    transition: none;
  }
}

@media (max-width: 768px) {
  .floating-nav {
    bottom: 1rem;
    padding: 0.4rem 0.8rem;
    gap: 0.2rem;
    transform: translateX(-50%) scale(0.85);
  }
  
  .floating-nav:hover {
    transform: translateX(-50%) translateY(-4px) scale(0.95);
    gap: 0.35rem;
    padding: 0.5rem 1rem;
  }
  
  .floating-nav__btn {
    width: 32px;
    height: 32px;
  }
  
  .floating-nav:hover .floating-nav__btn {
    width: 36px;
    height: 36px;
  }
  
  .floating-nav__btn svg {
    width: 16px;
    height: 16px;
  }
  
  .floating-nav:hover .floating-nav__btn svg {
    width: 18px;
    height: 18px;
  }
}

.projects__card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, #e0e7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.projects__meta {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(165, 180, 252, 0.75);
}

.projects__image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: rgba(0, 0, 0, 0.3);
}

.projects__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.projects__card:hover .projects__image img {
  transform: scale(1.05);
}

.projects__content {
  padding: 1.25rem;
  padding-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.projects__card p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.projects__stack {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.projects__stack li {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(102, 126, 234, 0.3);
  background: rgba(102, 126, 234, 0.15);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.projects__stack li:hover {
  background: rgba(102, 126, 234, 0.25);
  border-color: rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 0 15px rgba(102, 126, 234, 0.2);
}

.projects__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.projects__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  color: var(--fg);
  font-weight: 500;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: url('assets/t1-cursor.png') 8 8, pointer;
}

.projects__btn svg {
  flex-shrink: 0;
}

.projects__btn--github {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.projects__btn--github:hover,
.projects__btn--github:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.projects__btn--demo {
  background: linear-gradient(135deg, rgba(139, 34, 50, 0.3), rgba(201, 24, 74, 0.3));
  border-color: rgba(139, 34, 50, 0.4);
}

.projects__btn--demo:hover,
.projects__btn--demo:focus-visible {
  background: linear-gradient(135deg, rgba(139, 34, 50, 0.5), rgba(201, 24, 74, 0.5));
  border-color: rgba(139, 34, 50, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(139, 34, 50, 0.4);
}

.projects__btn--paper {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(165, 180, 252, 0.3));
  border-color: rgba(102, 126, 234, 0.4);
}

.projects__btn--paper:hover,
.projects__btn--paper:focus-visible {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.5), rgba(165, 180, 252, 0.5));
  border-color: rgba(102, 126, 234, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.skills__column {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(102, 126, 234, 0.3);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(8, 47, 73, 0.7));
  display: grid;
  gap: 1rem;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  align-content: start;
}

.skills__column::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}

.skills__column:hover {
  transform: translateY(-4px);
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(102, 126, 234, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.skills__column:hover::before {
  opacity: 1;
}

.skills__column h3 {
  margin: 0;
  font-size: 1.1rem;
}

.skills__column ul {
  margin: 0;
  color: rgba(224, 231, 255, 0.82);
}

.skills__column ul:not(.skills__badges) {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
}

.skills__badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.skills__badges--dense {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.5rem;
}

.skills__badges--icons {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.skills__badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(102, 126, 234, 0.25);
  color: rgba(224, 231, 255, 0.95);
  font-weight: 500;
  letter-spacing: 0.01em;
  font-size: 0.9rem;
  transition: all var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.skills__badge:hover {
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 
    0 5px 20px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(102, 126, 234, 0.2);
}

.skills__badge-icon {
  font-size: 1.4rem;
  width: 24px;
  height: 24px;
  min-width: 24px;
  text-align: center;
  color: rgba(224, 231, 255, 0.92);
  flex-shrink: 0;
}

.skills__badge-icon svg {
  width: 100%;
  height: 100%;
}

.skills__badge-label {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel--inverted .panel__header p,
.panel--inverted .contact__cta p {
  color: rgba(148, 163, 184, 0.85);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact__cta {
  display: grid;
  gap: 1rem;
}

.contact__cta h3 {
  font-size: 1.4rem;
}

.contact__cta p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.contact__social {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.contact__social a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(102, 126, 234, 0.25);
  background: rgba(15, 23, 42, 0.6);
  color: rgba(102, 126, 234, 0.9);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.contact__social a:hover,
.contact__social a:focus-visible {
  color: #ffffff;
  background: rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(102, 126, 234, 0.2);
}

.contact__social a:hover .icon--social,
.contact__social a:focus-visible .icon--social {
  color: #ffffff;
  transform: translateY(-1px) scale(1.1);
}

.contact__form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(102, 126, 234, 0.3);
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.85));
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  transition: all var(--transition);
}

.contact__form:hover {
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(102, 126, 234, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.input-group {
  display: grid;
  gap: 0.6rem;
}

.input-group label {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
}

.input-group input,
.input-group textarea {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  color: var(--fg);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.input-group input:hover,
.input-group textarea:hover {
  border-color: rgba(102, 126, 234, 0.5);
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: rgba(102, 126, 234, 0.8);
  box-shadow: 
    0 0 0 4px rgba(102, 126, 234, 0.15),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
  background: rgba(15, 23, 42, 1);
}

.contact__form button[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.site-footer {
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.9rem;
  padding: 2rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.6), rgba(30, 41, 59, 0.5));
  border: 1px solid rgba(102, 126, 234, 0.2);
  box-shadow: 
    0 -10px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  transition: all var(--transition);
}

.site-footer:hover {
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: 
    0 -15px 50px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(102, 126, 234, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero__content,
.hero__visual,
.panel,
.timeline__item,
.projects__card,
.skills__column,
.contact__cta,
.contact__form {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@keyframes cursorBlink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -4;
  opacity: 0.6;
}

[data-theme='light'] #three-canvas {
  opacity: 0.25;
}

#gradient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  opacity: 0.3;
}

[data-theme='light'] #gradient-canvas {
  opacity: 0.15;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 960px) {
  .page {
    padding: 2.5rem clamp(1rem, 4vw, 1.8rem) 3.5rem;
    gap: 4.5rem;
  }

  .site-header {
    position: fixed;
    inset-inline: clamp(1rem, 4vw, 1.8rem);
    top: 1.2rem;
    z-index: 20;
  }

  .site-nav__links {
    position: fixed;
    top: calc(1.2rem + 64px);
    right: clamp(1rem, 4vw, 1.8rem);
    width: min(240px, 80vw);
    flex-direction: column;
    align-items: stretch;
    padding: 1.2rem;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
  }

  .nav-is-open .site-nav__links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav__links a {
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-sm);
  }

  .nav-toggle {
    display: inline-flex;
  }

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

  .hero__visual {
    order: -1;
    min-height: 320px;
  }

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

@media (max-width: 640px) {
  .hero__content {
    padding: 1.6rem;
  }

  .panel {
    padding: 2rem;
  }

  .site-header {
    padding: 0.7rem 1rem;
  }

  .logo__glyph {
    width: 1.7rem;
    height: 1.7rem;
  }

  .hero__stats {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}
