/* ===== CSS Variables ===== */
:root {
  --radius: 1rem;

  /* Colors */
  --background: oklch(0.16 0.018 250);
  --foreground: oklch(0.97 0.005 250);
  --card: oklch(0.21 0.02 250);
  --card-foreground: oklch(0.97 0.005 250);
  --primary: oklch(0.65 0.13 240);
  --primary-foreground: oklch(0.16 0.018 250);
  --muted: oklch(0.24 0.02 250);
  --muted-foreground: oklch(0.7 0.02 245);
  --border: oklch(0.4 0.025 245 / 40%);
  --accent: oklch(0.7 0.1 200);

  /* Brand Colors */
  --brand-violet: oklch(0.6 0.13 270);
  --brand-cyan: oklch(0.7 0.1 210);
  --brand-pink: oklch(0.65 0.13 350);
  --brand-amber: oklch(0.75 0.12 75);
  --brand-emerald: oklch(0.68 0.11 165);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, var(--brand-violet) 0%, var(--brand-pink) 50%, var(--brand-amber) 100%);
  --gradient-cool: linear-gradient(135deg, var(--brand-violet), var(--brand-cyan));
  --gradient-warm: linear-gradient(135deg, var(--brand-pink), var(--brand-amber));
  --gradient-iris: linear-gradient(120deg, var(--brand-cyan), var(--brand-violet), var(--brand-pink));

  /* Shadows */
  --shadow-glow: 0 25px 80px -20px oklch(0.6 0.13 270 / 0.4);
  --shadow-glow-cyan: 0 25px 80px -20px oklch(0.7 0.1 210 / 0.38);
  --shadow-glow-pink: 0 25px 80px -20px oklch(0.65 0.13 350 / 0.32);
  --shadow-card: 0 12px 40px -10px oklch(0.05 0.01 250 / 0.7);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

::selection {
  background: oklch(0.7 0.22 295 / 0.4);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: oklch(0.7 0.22 295 / 0.4);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: oklch(0.7 0.22 295 / 0.7);
}

/* ===== Layout ===== */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aurora-bg::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 20%, oklch(0.6 0.13 270 / 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 10%, oklch(0.7 0.1 210 / 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, oklch(0.68 0.11 165 / 0.1) 0%, transparent 50%);
  animation: aurora 20s ease-in-out infinite;
}

@keyframes aurora {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-5%, 5%, 0) rotate(8deg); }
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding-top: 80px;
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* ===== Header / Navbar ===== */
.navbar {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 2rem);
  max-width: 560px;
}

.navbar nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: oklch(0.21 0.04 275 / 0.92);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid oklch(0.6 0.06 280 / 0.18);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  box-shadow: var(--shadow-card);
}

.logo {
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--gradient-iris);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 8s ease infinite;
  padding: 0.375rem 0.75rem;
}

.nav-links {
  display: none;
}

.nav-links a {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 999px;
  transition: all 0.3s ease;
  color: var(--muted-foreground);
}

.nav-links a:hover {
  color: var(--foreground);
}

.nav-links a.active {
  background: oklch(0.65 0.13 240 / 0.15);
  color: var(--foreground);
}

.menu-toggle {
  display: flex;
  align-items: center;
  padding: 0.375rem;
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  border-radius: 999px;
}

.menu-toggle:hover {
  color: var(--foreground);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: oklch(0.21 0.02 250);
  border-left: 1px solid oklch(0.6 0.06 280 / 0.18);
  padding: 5rem 1.5rem 1.5rem;
  transition: right 0.3s ease;
  z-index: 200;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: oklch(0.16 0.018 250 / 0.8);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 150;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu .close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1.125rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.mobile-menu a:hover {
  background: oklch(0.65 0.13 240 / 0.1);
  color: var(--foreground);
}

.mobile-menu a.active {
  background: oklch(0.65 0.13 240 / 0.15);
  color: var(--foreground);
  font-weight: 600;
}

/* ===== Section ===== */
.section {
  padding: 2rem 0;
}

@media (min-width: 640px) {
  .section {
    padding: 3rem 0;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-cyan);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2rem;
  }
}

.section-subtitle {
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Glass Card ===== */
.glass {
  background: oklch(0.21 0.04 275 / 0.5);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid oklch(0.6 0.06 280 / 0.18);
  border-radius: 1rem;
}

.glass-strong {
  background: oklch(0.21 0.04 275 / 0.75);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid oklch(0.6 0.06 280 / 0.22);
}

/* ===== Text Gradient ===== */
.text-gradient {
  background: var(--gradient-iris);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 8s ease infinite;
}

.text-gradient-warm {
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-cool {
  background: var(--gradient-cool);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Gradients ===== */
.bg-gradient-iris {
  background: var(--gradient-iris);
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

.bg-gradient-cool {
  background: var(--gradient-cool);
}

.bg-gradient-warm {
  background: var(--gradient-warm);
}

.bg-gradient-hero {
  background: var(--gradient-hero);
}

/* ===== Shadows ===== */
.shadow-glow {
  box-shadow: var(--shadow-glow);
}

.shadow-glow-cyan {
  box-shadow: var(--shadow-glow-cyan);
}

.shadow-glow-pink {
  box-shadow: var(--shadow-glow-pink);
}

.shadow-card {
  box-shadow: var(--shadow-card);
}

/* ===== Animations ===== */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

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

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spin-slow 18s linear infinite;
}

/* ===== Hero Section ===== */
.hero {
  padding: 1.5rem 0 3rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  padding: 0.375rem 1rem 0.375rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.15), transparent);
  background-size: 200% 100%;
  animation: shimmer 2.5s linear infinite;
}

.hero-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #34d399;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-desc {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--muted-foreground);
  max-width: 32rem;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--gradient-iris);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: scale(1.04);
}

.btn-secondary {
  background: oklch(0.21 0.04 275 / 0.5);
  border: 1px solid oklch(0.6 0.06 280 / 0.18);
  color: var(--foreground);
}

.btn-secondary:hover {
  background: oklch(0.65 0.13 240 / 0.1);
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hero-stats span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-stats .icon-cyan {
  color: var(--brand-cyan);
}

.hero-stats .icon-pink {
  color: var(--brand-pink);
}

/* Hero Image */
.hero-image-wrapper {
  position: relative;
  margin: 2rem auto 1rem;
  width: 14rem;
  height: 14rem;
}

@media (min-width: 640px) {
  .hero-image-wrapper {
    width: 18rem;
    height: 18rem;
  }
}

@media (min-width: 768px) {
  .hero-image-wrapper {
    width: 20rem;
    height: 20rem;
  }
}

.hero-image-ring {
  position: absolute;
  inset: -1.5rem;
  border-radius: 50%;
  background: var(--gradient-iris);
  opacity: 0.4;
  filter: blur(16px);
  animation: spin-slow 18s linear infinite;
}

.hero-image {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  animation: float 6s ease-in-out infinite;
  border: 1px solid oklch(0.6 0.06 280 / 0.18);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-chip {
  position: absolute;
  padding: 0.5rem 0.85rem;
  border-radius: 2rem;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.hero-chip-1 {
  left: -4.5rem;
  top: 1.5rem;
}

.hero-chip-2 {
  right: -0.5rem;
  bottom: 1.5rem;
}

.hero-chip-3 {
  left: -2.5rem;
  bottom: 1rem;
}

.hero-chip-4 {
  right: -4rem;
  top: 0.5rem;
}

/* Mobile chips - hide overflowing chips */
@media (max-width: 640px) {
  .hero-image-wrapper {
    width: 11rem;
    height: 11rem;
    margin: 1.5rem auto 3rem;
  }

  .hero-chip {
    font-size: 0.6rem;
    padding: 0.35rem 0.6rem;
    border-radius: 1.5rem;
    gap: 0.3rem;
  }

  .hero-chip-1 {
    /* left: -3rem; */
    top: 0.25rem;
  }

  .hero-chip-2 {
    right: -2.5rem;
    /* top: 1.5rem; */
  }

  .hero-chip-3 {
    left: -2rem;
    bottom: 0.25rem;
  }

  .hero-chip-4 {
    right: -3rem;
    /* bottom: 1rem; */
  }
}

.hero-chip-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

/* ===== Stats Grid ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.stat-card {
  text-align: center;
  padding: 1rem;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border: none;
}

@media (min-width: 640px) {
  .stat-card {
    padding: 1.5rem;
  }
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.15;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-card:hover::before {
  opacity: 0.25;
}

.stat-card > * {
  position: relative;
  z-index: 1;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  .stat-value {
    font-size: 1.875rem;
  }
}

@media (min-width: 768px) {
  .stat-value {
    font-size: 2.25rem;
  }
}

.stat-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* ===== Skills Marquee ===== */
.skills-scroll {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1rem 0;
}

.skills-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: scroll 25s linear infinite;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.skill-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.skill-tag img {
  width: 1rem;
  height: 1rem;
}

/* ===== CTA Cards ===== */
.cta-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .cta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cta-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cta-card {
  display: block;
  padding: 2rem;
  border-radius: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  min-height: 220px;
}

.cta-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.cta-card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.cta-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-card p {
  color: var(--muted-foreground);
  font-size: 1rem;
  margin-top: 0.5rem;
}

.cta-card-glow {
  position: absolute;
  top: -3rem;
  right: -3rem;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.cta-card:hover .cta-card-glow {
  opacity: 0.6;
}

/* ===== About Page ===== */
.about-intro {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  color: var(--muted-foreground);
  line-height: 1.625;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 3rem;
}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
    padding-left: 0;
    padding-right: 2.5rem;
  }

  .timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 2.5rem;
  }
}

.timeline-dot {
  position: absolute;
  left: -0.25rem;
  top: 1rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

@media (min-width: 768px) {
  .timeline-dot {
    left: auto;
    right: -0.375rem;
  }

  .timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: -0.375rem;
  }
}

.timeline-content {
  padding: 1.25rem;
  border-radius: 1rem;
}

.timeline-period {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.timeline-role {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.timeline-org {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.timeline-detail {
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Education Grid */
.edu-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .edu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.edu-card {
  padding: 1.25rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.edu-card:hover {
  box-shadow: var(--shadow-glow);
}

.edu-period {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.edu-degree {
  font-weight: 600;
  margin-top: 0.25rem;
}

.edu-inst {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Achievements */
.achievements-grid {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.achievement-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
}

.achievement-icon {
  color: var(--primary);
}

/* Certifications */
.cert-grid {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cert-item {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.cert-item:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.cert-item .arrow {
  color: var(--primary);
}

.cert-icon {
  margin-right: 0.5rem;
  font-size: 1rem;
}

/* ===== Research Page ===== */
.metrics-grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 3rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.metric-card {
  text-align: center;
  padding: 1rem;
  border-radius: 1rem;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .metric-card {
    padding: 1.25rem;
  }
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.15;
  z-index: 0;
  transition: opacity 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
}

.metric-card:hover::before {
  opacity: 0.25;
}

.metric-card > * {
  position: relative;
  z-index: 1;
}

.metric-card:hover::before {
  opacity: 0.5;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .metric-value {
    font-size: 1.875rem;
  }
}

.metric-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}


/* Profile Links */
.profile-links {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
  margin: 0 auto 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .profile-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

.profile-link {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.profile-link:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.profile-link h3 {
  font-weight: 600;
}

.profile-link p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.125rem;
}

.profile-link svg {
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

.profile-link:hover svg {
  color: var(--foreground);
}

/* Patents */
.patents-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .patents-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.patent-card {
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .patent-card {
    padding: 1.5rem;
  }
}

.patent-card::before {
  content: "";
  position: absolute;
  top: -3rem;
  left: -3rem;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: var(--gradient-warm);
  opacity: 0.2;
}

.patent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  position: relative;
}

.patent-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
}

.patent-status svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--brand-amber);
}

.patent-number {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-family: monospace;
}

.patent-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.375;
  position: relative;
}

@media (min-width: 768px) {
  .patent-title {
    font-size: 1.125rem;
  }
}

.patent-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 1rem;
  position: relative;
}

.patent-date::before {
  content: "";
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: var(--muted-foreground);
  opacity: 0.5;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  position: relative;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid oklch(0.6 0.06 280 / 0.1);
  background: oklch(0.21 0.04 275 / 0.5);
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  color: var(--foreground);
}

.filter-btn.active {
  background: var(--gradient-iris);
  border-color: transparent;
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}

/* Publications */
.pubs-list {
  display: grid;
  gap: 1rem;
  max-width: 64rem;
  margin: 0 auto;
  overflow-x: hidden;
}

.pub-item {
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  .pub-item {
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem;
  }
}

.pub-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-iris);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pub-item:hover {
  border-color: oklch(0.65 0.13 240 / 0.3);
}

.pub-item:hover::before {
  opacity: 1;
}

.pub-main {
  flex: 1;
  min-width: 0;
}

.pub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.pub-type {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: oklch(0.4 0.06 270 / 0.1);
  color: var(--brand-violet);
  border: 1px solid oklch(0.4 0.06 270 / 0.2);
}

.pub-year {
  font-size: 0.65rem;
  color: var(--muted-foreground);
}

.pub-type {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: oklch(0.4 0.06 270 / 0.1);
  color: var(--brand-violet);
  border: 1px solid oklch(0.4 0.06 270 / 0.2);
}

.pub-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.375;
  transition: color 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.pub-item:hover .pub-title {
  background: var(--gradient-iris);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pub-authors {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pub-venue {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  opacity: 0.8;
  font-style: italic;
  margin-top: 0.125rem;
}

.pub-citations {
  text-align: center;
  flex-shrink: 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .pub-citations {
    padding-top: 0;
    border-top: none;
    text-align: center;
    min-width: 60px;
  }
}

.pub-cite-count {
  font-size: 1rem;
  font-weight: 700;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.pub-cite-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* Outreach */
.outreach-grid {
  display: grid;
  gap: 1rem;
  max-width: 48rem;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .outreach-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.outreach-card {
  padding: 1.5rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.outreach-card:hover {
  box-shadow: var(--shadow-glow-cyan);
}

.outreach-card h3 {
  font-weight: 600;
  background: var(--gradient-cool);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.outreach-card ul {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.75rem;
}

.outreach-card li {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
}

.outreach-card li::before {
  content: "▸";
  color: var(--brand-cyan);
}

/* ===== Projects Page ===== */
.projects-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .projects-grid {
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  padding: 1.25rem;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .project-card {
    padding: 2rem;
    border-radius: 1.25rem;
    min-height: 200px;
  }
}

.project-card::before {
  content: "";
  position: absolute;
  top: -5rem;
  right: -5rem;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: oklch(0.65 0.13 240 / 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.project-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  position: relative;
}

.project-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--gradient-iris);
  color: white;
}

.project-icon svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 768px) {
  .project-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .project-icon svg {
    width: 32px;
    height: 32px;
  }
}

.project-card[data-type="Android"] .project-icon { background: linear-gradient(135deg, #3DDC84, #34A853); }
.project-card[data-type="Web"] .project-icon { background: linear-gradient(135deg, #4285F4, #34A853); }
.project-card[data-type="Dashboard"] .project-icon { background: linear-gradient(135deg, #7C3AED, #DB2777); }
.project-card[data-type="Analytics"] .project-icon { background: linear-gradient(135deg, #F59E0B, #EF4444); }
.project-card[data-type="Desktop"] .project-icon { background: linear-gradient(135deg, #06B6D4, #8B5CF6); }

.project-tag {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  font-weight: 500;
}

.project-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 0.5rem;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .project-title {
    font-size: 1.5rem;
  }
}

.project-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .project-desc {
    font-size: 1rem;
  }
}
  color: var(--muted-foreground);
  margin-top: 0.75rem;
  line-height: 1.5;
}

.project-arrow {
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.project-card:hover .project-arrow {
  transform: translate(4px, -4px);
}

.projects-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 2.5rem;
}

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  gap: 1rem;
  max-width: 48rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-item {
  display: block;
  padding: 1.25rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.contact-item:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.contact-value {
  font-weight: 500;
  margin-top: 0.25rem;
  word-break: break-all;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid oklch(0.4 0.025 245 / 0.6);
  padding: 2.5rem 1.5rem;
  margin-top: 5rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 56rem;
  margin: 0 auto;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .footer-content {
    flex-direction: row;
  }
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--foreground);
}

/* ===== Responsive Nav ===== */
@media (min-width: 640px) {
  .nav-links {
    display: flex;
    gap: 0.25rem;
  }

  .menu-toggle {
    display: none;
  }
}

/* ===== Utility ===== */
.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;
}

/* Color Classes */
.border-violet { border-color: oklch(0.7 0.22 295 / 0.45); }
.border-cyan { border-color: oklch(0.78 0.18 200 / 0.45); }
.border-pink { border-color: oklch(0.74 0.22 0 / 0.45); }
.border-amber { border-color: oklch(0.83 0.16 75 / 0.45); }
.border-emerald { border-color: oklch(0.78 0.17 160 / 0.45); }

.hover-violet:hover { background: oklch(0.7 0.22 295 / 0.15); box-shadow: 0 0 30px -5px oklch(0.7 0.22 295 / 0.6); }
.hover-cyan:hover { background: oklch(0.78 0.18 200 / 0.15); box-shadow: 0 0 30px -5px oklch(0.78 0.18 200 / 0.6); }
.hover-pink:hover { background: oklch(0.74 0.22 0 / 0.15); box-shadow: 0 0 30px -5px oklch(0.74 0.22 0 / 0.6); }
.hover-amber:hover { background: oklch(0.83 0.16 75 / 0.15); box-shadow: 0 0 30px -5px oklch(0.83 0.16 75 / 0.6); }
.hover-emerald:hover { background: oklch(0.78 0.17 160 / 0.15); box-shadow: 0 0 30px -5px oklch(0.78 0.17 160 / 0.6); }

.text-violet { color: oklch(0.7 0.22 295); }
.text-cyan { color: oklch(0.78 0.18 200); }
.text-pink { color: oklch(0.74 0.22 0); }
.text-amber { color: oklch(0.83 0.16 75); }
.text-emerald { color: oklch(0.78 0.17 160); }

/* .from-violet-500 { --tw-gradient-from: oklch(0.5 0.06 270); }
.from-cyan-500 { --tw-gradient-from: oklch(0.55 0.06 210); }
.from-pink-500 { --tw-gradient-from: oklch(0.55 0.08 15); }
.from-amber-500 { --tw-gradient-from: oklch(0.65 0.08 75); }
.from-emerald-500 { --tw-gradient-from: oklch(0.5 0.06 150); } */

.to-violet-600 { --tw-gradient-to: oklch(0.4 0.06 270); }
.to-cyan-600 { --tw-gradient-to: oklch(0.45 0.06 210); }
.to-pink-600 { --tw-gradient-to: oklch(0.45 0.08 15); }
.to-amber-600 { --tw-gradient-to: oklch(0.55 0.08 75); }
.to-emerald-600 { --tw-gradient-to: oklch(0.4 0.06 150); }

.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to));
}

/* ===== Animations on load ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

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

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Dashboard Card Gradient Backgrounds */
.stat-card.violet::before,
.metric-card.violet::before {
  background: var(--gradient-iris);
}

.stat-card.cyan::before,
.metric-card.cyan::before {
  background: var(--gradient-cool);
}

.stat-card.pink::before,
.metric-card.pink::before {
  background: var(--gradient-warm);
}

.stat-card.amber::before,
.metric-card.amber::before {
  background: var(--gradient-hero);
}

.stat-card.emerald::before,
.metric-card.emerald::before {
  background: linear-gradient(135deg, var(--brand-emerald), var(--brand-cyan));
}