/* ================================
   RESET & BASE
   ================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Dark premium colors */
  --bg: #0a0a0f;
  --bg-alt: #111118;
  --bg-card: #16161e;
  --bg-card-hover: #1c1c28;

  --text: #e8e8f0;
  --text-secondary: #9898b0;
  --text-muted: #606080;

  --accent: #6c63ff;
  --accent-light: #8b83ff;
  --accent-glow: rgba(108, 99, 255, 0.15);
  --accent-glow-strong: rgba(108, 99, 255, 0.3);

  --gradient-1: linear-gradient(135deg, #6c63ff 0%, #e04ecf 50%, #ff6b6b 100%);
  --gradient-2: linear-gradient(135deg, #6c63ff 0%, #3b82f6 100%);
  --gradient-3: linear-gradient(135deg, #0a0a0f 0%, #16161e 100%);

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(108, 99, 255, 0.3);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-padding: 2rem;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg);
}

html::-webkit-scrollbar {
  width: 6px;
}

html::-webkit-scrollbar-track {
  background: var(--bg);
}

html::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ================================
   PARTICLE CANVAS
   ================================ */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ================================
   CURSOR GLOW
   ================================ */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(108, 99, 255, 0.06) 0%,
      rgba(108, 99, 255, 0.02) 40%,
      transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.cursor-glow.active {
  opacity: 1;
}

/* ================================
   CONTAINER
   ================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
  z-index: 2;
}

/* ================================
   GLASSMORPHISM
   ================================ */
.glassmorphism {
  background: rgba(22, 22, 30, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ================================
   HEADER / NAVIGATION
   ================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  background: rgba(10, 10, 15, 0.95);
  border-bottom-color: var(--border-hover);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  display: flex;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: all var(--transition-fast);
}

.site-logo:hover {
  color: var(--accent);
}

.logo-bracket {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: var(--accent);
}

.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-github svg {
  width: 16px;
  height: 16px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text);
  margin: 5px 0;
  transition: all var(--transition-fast);
  border-radius: 2px;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ================================
   REVEAL ANIMATIONS
   ================================ */
.reveal-up,
.reveal-left {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-up.revealed,
.reveal-left.revealed {
  opacity: 1;
  transform: translate(0);
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse,
      rgba(108, 99, 255, 0.08) 0%,
      transparent 60%);
  pointer-events: none;
  animation: heroPulse 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse,
      rgba(224, 78, 207, 0.05) 0%,
      transparent 60%);
  pointer-events: none;
  animation: heroPulse 10s ease-in-out infinite reverse;
}

@keyframes heroPulse {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.hero>.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3xl);
  width: 100%;
}

.hero-content {
  max-width: 720px;
  flex-shrink: 0;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-light);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--border-accent);
  background: var(--accent-glow);
  margin-bottom: var(--space-xl);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

/* Hero title */
.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-xl);
}

.hero-line {
  display: block;
}

.hero-line:last-child {
  margin-top: 0.2em;
}

/* ---- Role Typed (Typed.js) ---- */
.hero-role-line {
  display: flex !important;
  align-items: baseline;
  gap: 0.15em;
  flex-wrap: nowrap;
}

.role-typed {
  display: inline;
  background: linear-gradient(135deg, #6c63ff, #e04ecf);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Typed.js cursor */
.role-typed + .typed-cursor,
.hero-role-line .typed-cursor {
  font-weight: 800;
  font-size: inherit;
  color: var(--accent);
  opacity: 1;
  animation: typedBlink 0.7s infinite;
  margin: 0;
  padding: 0;
  text-shadow: 0 0 12px rgba(108, 99, 255, 0.6);
}

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

/* Color classes applied via JS for each role */
.role-typed.role-software {
  background: linear-gradient(135deg, #6c63ff, #e04ecf);
  -webkit-background-clip: text;
  background-clip: text;
}

.role-typed.role-dotnet {
  background: linear-gradient(135deg, #512bd4, #7b68ee);
  -webkit-background-clip: text;
  background-clip: text;
}

.role-typed.role-flutter {
  background: linear-gradient(135deg, #02569b, #54c5f8);
  -webkit-background-clip: text;
  background-clip: text;
}

.role-typed.role-react {
  background: linear-gradient(135deg, #61dafb, #087ea4);
  -webkit-background-clip: text;
  background-clip: text;
}

.role-typed.role-reactnative {
  background: linear-gradient(135deg, #61dafb, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
}

.role-typed.role-fullstack {
  background: linear-gradient(135deg, #22c55e, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
}

.role-fixed {
  white-space: nowrap;
}

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% center;
  }

  50% {
    background-position: 100% center;
  }

  100% {
    background-position: 0% center;
  }
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: var(--space-3xl);
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-suffix {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  letter-spacing: 0.02em;
}

/* Hero decoration — floating code window */
.hero-decoration {
  flex-shrink: 0;
  max-width: 420px;
  width: 100%;
  animation: floatCode 6s ease-in-out infinite;
}

@keyframes floatCode {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  33% {
    transform: translateY(-12px) rotate(0.5deg);
  }

  66% {
    transform: translateY(-6px) rotate(-0.3deg);
  }
}

.code-window {
  background: rgba(22, 22, 30, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(108, 99, 255, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(108, 99, 255, 0.05);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-dot.red {
  background: #ff5f57;
}

.code-dot.yellow {
  background: #febc2e;
}

.code-dot.green {
  background: #28c840;
}

.code-filename {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.code-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  overflow-x: auto;
  color: var(--text-secondary);
}

.code-body code {
  font-family: inherit;
}

.code-keyword {
  color: #c678dd;
}

.code-type {
  color: #e5c07b;
}

.code-string {
  color: #98c379;
}

.code-func {
  color: #61afef;
}

.code-comment {
  color: #5c6370;
  font-style: italic;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: scrollBounce 2.5s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  50% {
    opacity: 0.3;
    transform: translateX(-50%) translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ================================
   BUTTONS
   ================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

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

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--gradient-2);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  color: var(--accent-light);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--accent-light);
  background: var(--accent-glow);
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
}

/* ================================
   SECTION BASE
   ================================ */
.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section-alt {
  background: var(--bg-alt);
}

.section-alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.section-alt::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.section-header {
  margin-bottom: var(--space-3xl);
}

.section-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
}

/* ================================
   ABOUT SECTION
   ================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-3xl);
  align-items: start;
}

.about-content {
  max-width: 640px;
}

.about-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.highlight-item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all var(--transition-base);
}

.highlight-item:hover {
  border-color: var(--border-accent);
  transform: translateX(8px);
  box-shadow: 0 0 30px var(--accent-glow);
}

.highlight-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-light);
}

.highlight-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.highlight-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Info card */
.info-card {
  padding: var(--space-xl);
  position: sticky;
  top: 100px;
}

.info-profile {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--accent-glow);
  transition: all var(--transition-base);
}

.profile-pic:hover {
  transform: scale(1.05);
  border-color: var(--border-accent);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--accent-glow-strong);
}

.info-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.info-value {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

.info-value a {
  color: var(--accent-light);
  transition: color var(--transition-fast);
}

.info-value a:hover {
  color: var(--accent);
}

/* ================================
   TIMELINE (Experience)
   ================================ */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-glow), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-2xl);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -40px;
  top: 24px;
  z-index: 2;
}

.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
  transition: all var(--transition-base);
}

.timeline-item:hover .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 0 8px var(--accent-glow), 0 0 20px var(--accent-glow-strong);
}

.timeline-content {
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.timeline-item:hover .timeline-content {
  border-color: var(--border-accent);
  box-shadow: 0 0 40px var(--accent-glow);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.timeline-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.timeline-company {
  font-size: 0.85rem;
  color: var(--accent-light);
  margin-top: 0.2rem;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  background: var(--accent-glow);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

.timeline-description {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.timeline-tech {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.tech-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  background: rgba(108, 99, 255, 0.1);
  color: var(--accent-light);
  border: 1px solid rgba(108, 99, 255, 0.2);
  text-transform: uppercase;
}

/* ================================
   TABS
   ================================ */
.tabs {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-2xl);
  padding: 4px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  width: fit-content;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-base);
  border-radius: 6px;
}

.tab svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.tab:hover {
  color: var(--text-secondary);
}

.tab.active {
  color: var(--text);
  background: var(--accent-glow);
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.1);
}

/* Tab Panels */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: tabReveal 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tabReveal {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ================================
   PROJECTS GRID
   ================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.project-card-glow {
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 0;
}

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

.project-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  height: 100%;
}

.project-card:hover .project-card-inner {
  background: var(--bg-card-hover);
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.project-card-top {
  margin-bottom: var(--space-md);
}

.project-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  filter: grayscale(0);
  transition: all var(--transition-base);
}

.app-icon {
  width: 48px;
  height: 48px;
  border-radius: 22.5%;
  /* typical app icon curve */
  object-fit: cover;
  display: block;
}

.project-card:hover .project-icon {
  transform: scale(1.15) rotate(-5deg);
}

.project-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border);
  text-transform: uppercase;
}

.badge-live {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.2);
  gap: 0.35rem;
}

.badge-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s ease-in-out infinite;
}

.project-description {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.project-stack {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.project-stack span {
  display: inline-flex;
  align-items: center;
}

.project-stack .dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  margin: 0 0.45rem;
  opacity: 0.4;
}

.project-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  transition: all var(--transition-fast);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
}

.project-link:hover {
  background: var(--accent-glow-strong);
  color: var(--accent);
  transform: translateX(2px);
}

.project-link svg {
  width: 14px;
  height: 14px;
}

/* ================================
   SKILLS SECTION
   ================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.skill-category {
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.skill-category:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 30px var(--accent-glow);
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.skill-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  flex-shrink: 0;
}

.skill-category-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.skill-tag {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}

.skill-tag:hover {
  background: var(--accent-glow);
  border-color: var(--border-accent);
  color: var(--accent-light);
  transform: translateY(-2px);
}

/* ================================
   EDUCATION SECTION
   ================================ */
.education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.education-card {
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.education-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 30px var(--accent-glow);
}

.edu-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.edu-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.edu-degree {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.edu-gpa {
  font-size: 0.85rem;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.edu-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Language bars */
.language-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.language-item {
  width: 100%;
}

.lang-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
}

.lang-info span:first-child {
  color: var(--text);
  font-weight: 500;
}

.lang-info span:last-child {
  color: var(--text-muted);
}

.lang-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  overflow: hidden;
}

.lang-fill {
  height: 100%;
  background: var(--gradient-2);
  border-radius: 100px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-fill.animated {
  width: var(--fill-width);
}

/* ================================
   CTA SECTION
   ================================ */
.section-cta {
  background: var(--bg-alt);
  overflow: hidden;
  position: relative;
}

.section-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(108, 99, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ================================
   FOOTER
   ================================ */
.site-footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-dot {
  opacity: 0.3;
}

.footer-tagline {
  color: var(--accent-light);
  opacity: 0.6;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition-base);
}

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

.footer-links a:hover::after {
  width: 100%;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1024px) {
  .hero>.container {
    flex-direction: column;
    text-align: left;
  }

  .hero-decoration {
    display: none;
  }

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

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .info-card {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1.25rem;
  }

  .hero {
    padding-top: 72px;
    min-height: auto;
    padding-bottom: var(--space-3xl);
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-stats {
    gap: var(--space-xl);
  }

  .stat-number,
  .stat-suffix {
    font-size: 1.6rem;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-slow);
    z-index: 999;
  }

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

  .site-nav .nav-link {
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: block;
  }

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

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

  .timeline {
    padding-left: 30px;
  }

  .timeline-marker {
    left: -30px;
  }

  .timeline-dot {
    width: 18px;
    height: 18px;
  }

  .timeline-header {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .tabs {
    width: 100%;
  }

  .tab {
    flex: 1;
    justify-content: center;
    font-size: 0.8rem;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }

  .cta-actions {
    flex-direction: column;
  }
}

/* 3-column for large screens */
@media (min-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}