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

:root {
  --bg-dark: #000000;
  --bg-card: #0b0b0f;
  --bg-card-hover: #131319;
  --accent: #00d9ff;
  --accent-dark: #00a8cc;
  --text-primary: #e6e6e6;
  --text-secondary: #a0a0a0;
  --border: rgba(255, 255, 255, 0.1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #050508 0%, #0d0d12 50%, #050508 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.02) 2px,
      rgba(255, 255, 255, 0.02) 4px
    );
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
  opacity: 0.18;
  background: radial-gradient(
    300px 300px at var(--mx, 50%) var(--my, 50%),
    rgba(0, 217, 255, 0.1),
    rgba(138, 43, 226, 0.06) 40%,
    rgba(0, 0, 0, 0) 60%
  );
  transition: opacity 0.25s ease;
}

/* ===== DECORATIVE ELEMENTS ===== */
.section-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(0deg);
}

.section-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
  animation: waveFlow 12s ease-in-out infinite;
}

.section-wave path {
  fill: #0a0a0f;
  opacity: 1;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
  background: transparent;
}

.navbar.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 1rem 2rem;
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

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

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2rem;
  background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.95) 0%,
      rgba(0, 0, 0, 0.92) 100%
    ),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.02) 10px,
      rgba(255, 255, 255, 0.02) 20px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.02) 10px,
      rgba(255, 255, 255, 0.02) 20px
    ),
    radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 50%
    ),
    var(--bg-dark);
  background-attachment: fixed;
}

.particles {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 10;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: floatParticle linear infinite;
}

.particle.glow {
  box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
}

.hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(0, 217, 255, 0.2) 0%,
    transparent 70%
  );
  top: 10%;
  right: 10%;
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  will-change: transform;
  filter: blur(40px);
}

.hero::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(138, 43, 226, 0.15) 0%,
    transparent 70%
  );
  bottom: 20%;
  left: 15%;
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
  will-change: transform;
  filter: blur(40px);
}

.comets {
  position: absolute;
  width: 150vw;
  height: 150vh;
  transform-origin: center;
  transform: translate3D(-25vw, -25vh, 1px) rotate(125deg) scale(0.9);
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.comet {
  position: absolute;
  width: 3px;
  height: 75vh;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1) 0%,
    rgba(0, 217, 255, 0.8) 10%,
    rgba(0, 217, 255, 0.4) 30%,
    transparent 100%
  );
  filter: blur(1px);
  animation: comet 3s ease-in-out forwards;
}

.hero-content {
  text-align: left;
  z-index: 1;
  max-width: 1400px;
  animation: fadeInUp 1s ease-out;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-eyebrow {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.4;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  max-width: 90%;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-chip {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 1rem;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.terminal-card {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(26, 26, 26, 0.85) 100%);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 217, 255, 0.15), 0 0 0 1px rgba(0, 217, 255, 0.2);
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Code", "Consolas", "Courier New", monospace;
  border: 1px solid rgba(0, 217, 255, 0.2);
  animation: slideInRight 0.8s ease-out;
}

.terminal-card .terminal-header {
  background: linear-gradient(90deg, #2d2d2d 0%, #252525 100%);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-card .terminal-buttons {
  display: flex;
  gap: 0.6rem;
}

.terminal-card .terminal-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-card .terminal-btn.close {
  background: #ff5f56;
}

.terminal-card .terminal-btn.minimize {
  background: #ffbd2e;
}

.terminal-card .terminal-btn.maximize {
  background: #27c93f;
}

.terminal-card .terminal-title {
  color: #8b8b8b;
  font-size: 0.85rem;
  font-weight: 500;
  flex: 1;
  text-align: center;
  margin-right: 0;
}

.terminal-card .terminal-body {
  padding: 1.5rem;
  background: #1a1a1a;
  font-size: 0.95rem;
  line-height: 1.65;
  letter-spacing: 0.3px;
}

.terminal-card .terminal-line {
  margin: 0.1rem 0;
  color: #e6e6e6;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.terminal-card .terminal-line + .terminal-line {
  margin-top: 0.12rem;
}

.terminal-card .terminal-line.command-start {
  margin-top: 0.8rem;
}

.terminal-card .terminal-line.command-start:first-child {
  margin-top: 0;
}

.terminal-card .terminal-comment {
  color: #8b8b8b;
  font-weight: 400;
}

.terminal-card .terminal-prompt {
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: bold;
  margin-right: 0;
}

.terminal-card .terminal-text {
  color: #4ade80;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal-symbol {
  color: var(--accent);
  font-weight: 700;
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  animation: bounce 2s ease-in-out infinite;
  z-index: 1;
}

.scroll-indicator svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
  filter: drop-shadow(0 0 8px rgba(0, 217, 255, 0.5));
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
  box-shadow: 0 4px 20px rgba(0, 217, 255, 0.4);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(0, 217, 255, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--bg-dark);
  transform: translateY(-3px);
}

.btn-ghost {
  border: none;
  color: var(--accent);
  padding: 0.7rem 0;
}

.btn-ghost:hover {
  background: transparent;
  transform: translateX(4px);
  box-shadow: none;
}

/* ===== SECTIONS ===== */
section {
  padding: 6rem 2rem 8rem 2rem;
  width: 100%;
  position: relative;
  overflow: hidden;
}

section:nth-child(even) {
  background: linear-gradient(
      135deg,
      rgba(0, 217, 255, 0) 0%,
      transparent 100%
    ),
    radial-gradient(
      circle at 10% 20%,
      rgba(0, 217, 255, 0.05) 0%,
      transparent 90%
    );
}

section:nth-child(odd) {
  background: linear-gradient(
      -135deg,
      rgba(138, 43, 226, 0.02) 0%,
      transparent 100%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(138, 43, 226, 0.03) 0%,
      transparent 50%
    );
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 4rem;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ABOUT ===== */
#about {
  position: relative;
  background: linear-gradient(180deg, #000000 0%, rgba(0, 217, 255, 0.03) 50%, #000000 100%);
  padding: 5rem 2rem;
}

.about-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-text {
  margin-bottom: 0.5rem;
}

.about-text p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 400;
}

.about-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-bullets li {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.7;
}

.about-label {
  color: var(--text-primary);
  font-weight: 600;
  display: inline;
  margin-right: 0.4rem;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

.about-stats-card {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(26, 26, 26, 0.7) 100%);
  border: 1px solid rgba(0, 217, 255, 0.15);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 32px rgba(0, 217, 255, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

.about-stats-card:hover {
  border-color: rgba(0, 217, 255, 0.25);
  box-shadow: 0 12px 48px rgba(0, 217, 255, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.stat-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.25rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 217, 255, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-item:hover {
  background: rgba(0, 217, 255, 0.08);
  border-color: rgba(0, 217, 255, 0.25);
  transform: translateY(-3px);
}

.stat-number {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
  line-height: 1;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.about-stats-footer {
  border-top: 1px solid rgba(0, 217, 255, 0.1);
  padding-top: 1.5rem;
}

.about-stats-footer p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.about-stats-footer strong {
  color: var(--text-primary);
  font-weight: 600;
}

.profile-image {
  position: relative;
  text-align: center;
  width: 100%;
  max-width: 160px;
  margin: 0 auto;
}

.profile-image img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 8px 24px rgba(0, 217, 255, 0.25);
  object-fit: cover;
  transition: all 0.4s ease;
}

.profile-image img:hover {
  box-shadow: 0 12px 32px rgba(0, 217, 255, 0.35);
  transform: scale(1.05);
  border-color: rgba(0, 217, 255, 0.9);
}

/* ===== SKILLS ===== */
#skills {
  position: relative;
  background: linear-gradient(180deg, #0a0a0f 0%, rgba(138, 43, 226, 0.02) 50%, #0a0a0f 100%);
  padding: 5rem 2rem;
}

#skills .section-title {
  margin-bottom: 0.5rem;
}

#skills .section-subtitle {
  margin-bottom: 3rem;
}

.skills-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.skills-left {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.skills-summary {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 500;
}

.core-stack {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.core-stack-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 0;
}

.core-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.skill-pill {
  padding: 0.7rem 1.3rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}

.skill-pill.core {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.25) 0%, rgba(0, 217, 255, 0.1) 100%);
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
  font-size: 0.95rem;
}

.skill-pill.core:hover {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.35) 0%, rgba(0, 217, 255, 0.15) 100%);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.4);
  transform: scale(1.05);
}

.skill-pill.primary {
  background: rgba(0, 217, 255, 0.15);
  color: var(--accent);
  border: 1px solid rgba(0, 217, 255, 0.4);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
}

.skill-pill.primary:hover {
  background: rgba(0, 217, 255, 0.25);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.2);
  transform: scale(1.05);
}

.skill-pill.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.skill-pill.secondary:hover {
  background: rgba(0, 217, 255, 0.1);
  border-color: rgba(0, 217, 255, 0.3);
  color: var(--accent);
  transform: scale(1.05);
}

.impact-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
}

.impact-bullets li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 500;
}

.impact-bullets li::before {
  content: "▸ ";
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.5rem;
}

.skills-right {
  display: flex;
  flex-direction: column;
}

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

.skill-card {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.08) 0%, rgba(138, 43, 226, 0.08) 100%);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 12px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-card:hover {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.15) 0%, rgba(138, 43, 226, 0.15) 100%);
  border-color: rgba(0, 217, 255, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 217, 255, 0.15);
}

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

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.skill-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 217, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.skill-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.skill-card:hover .skill-card-icon {
  background: rgba(0, 217, 255, 0.2);
  transform: scale(1.1) rotate(-5deg);
}

.skill-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: 0.3px;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

/* ===== PROJECTS ===== */
#projects {
  position: relative;
  background: linear-gradient(180deg, #000000 0%, rgba(0, 217, 255, 0.02) 50%, #000000 100%);
  padding: 5rem 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.project-card {
  background: linear-gradient(145deg, rgba(0, 217, 255, 0.06), rgba(138, 43, 226, 0.08));
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 217, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.project-card--featured {
  border: 2px solid rgba(0, 217, 255, 0.4);
  background: linear-gradient(145deg, rgba(0, 217, 255, 0.1), rgba(138, 43, 226, 0.12));
}

.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
}

.project-badge--featured {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.9), rgba(0, 180, 216, 0.9));
  color: #000;
  box-shadow: 0 4px 12px rgba(0, 217, 255, 0.4);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(0, 217, 255, 0.15), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(138, 43, 226, 0.12), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 14px 44px rgba(0, 217, 255, 0.25);
}

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

.project-image {
  width: 100%;
  height: 200px;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 217, 255, 0.18), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(138, 43, 226, 0.2), transparent 42%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 10px, transparent 10px, transparent 20px),
    linear-gradient(135deg, rgba(0, 217, 255, 0.15) 0%, rgba(138, 43, 226, 0.25) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--accent);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.project-image::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(0, 217, 255, 0.1) 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.08) 0, transparent 18%),
    radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.05) 0, transparent 20%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.07) 0, transparent 18%);
  mix-blend-mode: screen;
  opacity: 0.6;
  pointer-events: none;
}

.project-card:hover .project-image::before {
  transform: translateX(0);
}

.project-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1;
  flex: 1;
}

.project-image svg {
  width: 56px;
  height: 56px;
  stroke-width: 1.8;
}

.project-title {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
}

.project-description {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.65;
}

.project-impact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-impact li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  padding-left: 0;
  position: relative;
}

.project-impact li strong {
  color: var(--accent);
  font-weight: 600;
  margin-right: 0.3rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.5rem 0 0.5rem 0;
}

.tech-badge {
  background: rgba(0, 217, 255, 0.1);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(0, 217, 255, 0.3);
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.project-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.project-link:hover {
  color: var(--text-primary);
  transform: translateX(5px);
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.project-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 217, 255, 0.12);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid rgba(0, 217, 255, 0.3);
}

.project-chip--secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ===== TIMELINE ===== */
#timeline {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, #0a0a0f 0%, rgba(255, 105, 180, 0.02) 50%, #0a0a0f 100%);
  position: relative;
  overflow: hidden;
}

.timeline-container {
  max-width: 900px;
  margin: 3rem auto 0 auto;
  position: relative;
  padding: 0 20px;
}

.timeline-item {
  position: relative;
  margin-bottom: 6px;
  width: 100%;
}

.timeline-item:nth-child(odd) {
  text-align: left;
}

.timeline-item:nth-child(even) {
  text-align: right;
}

.timeline-item::before {
  content: "";
  position: absolute;
  width: 50%;
  border: solid var(--accent);
  top: -4.5px;
  bottom: -4.5px;
  z-index: 1;
}

.timeline-item:nth-child(odd)::before {
  left: 0;
  border-width: 3px 0 3px 3px;
  border-radius: 30px 0 0 30px;
}

.timeline-item:nth-child(even)::before {
  right: 0;
  border-width: 3px 3px 3px 0;
  border-radius: 0 30px 30px 0;
}

.timeline-item:first-child::before {
  border-top: 0;
}

.timeline-item:first-child:nth-child(odd)::before {
  border-top-left-radius: 0;
}

.timeline-item:first-child:nth-child(even)::before {
  border-top-right-radius: 0;
}

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

.timeline-item:last-child:nth-child(odd)::before {
  border-bottom-left-radius: 0;
}

.timeline-item:last-child:nth-child(even)::before {
  border-bottom-right-radius: 0;
}

.timeline-content {
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  z-index: 3;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
  margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
  margin-right: 0;
}

.timeline-date {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.timeline-badge {
  background: rgba(0, 217, 255, 0.2);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 217, 255, 0.4);
  flex-shrink: 0;
}

.timeline {
  display: flex;
  flex-direction: column;
  margin: 3rem auto;
  position: relative;
  max-width: 1200px;
}

.timeline__event {
  margin-bottom: 2rem;
  position: relative;
  display: flex;
  margin: 1.5rem 0;
  border-radius: 12px;
  align-self: center;
  width: 98%;
  max-width: 1400px;
}

.timeline__event:nth-child(2n + 1) {
  flex-direction: row-reverse;
}

.timeline__event:nth-child(2n + 1) .timeline__event__date {
  border-radius: 0 12px 12px 0;
}

.timeline__event:nth-child(2n + 1) .timeline__event__content {
  border-radius: 12px 0 0 12px;
}

.timeline__event:nth-child(2n + 1) .timeline__event__icon::before {
  content: "";
  width: 4px;
  height: 100%;
  background: var(--accent);
  position: absolute;
  top: 0%;
  left: 50%;
  right: auto;
  z-index: -1;
  transform: translateX(-50%);
  animation: fillTop 2s forwards 0.5s ease-in-out;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.6);
}

.timeline__event:nth-child(2n + 1) .timeline__event__icon::after {
  content: "";
  width: 100%;
  height: 4px;
  background: var(--accent);
  position: absolute;
  right: 0;
  z-index: -1;
  top: 50%;
  left: auto;
  transform: translateY(-50%);
  animation: fillLeft 2s forwards 0.5s ease-in-out;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.6);
}

.timeline__event__title {
  font-size: 1.4rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.timeline__event__subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  font-style: italic;
}

.timeline__event__content {
  padding: 2rem;
  box-shadow: 0 30px 60px -12px rgba(0, 217, 255, 0.2),
    0 18px 36px -18px rgba(0, 0, 0, 0.5),
    0 -12px 36px -8px rgba(0, 0, 0, 0.025);
  background: var(--bg-card);
  border: 1px solid var(--border);
  width: calc(50% - 30px);
  border-radius: 0 12px 12px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline__event__content:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px -12px rgba(0, 217, 255, 0.35),
    0 18px 36px -18px rgba(0, 0, 0, 0.6);
  border-color: var(--accent);
}

.timeline__event__date {
  color: var(--bg-dark);
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0 1.5rem;
  border-radius: 12px 0 0 12px;
  text-align: center;
  min-width: 150px;
}

.timeline__event__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  padding: 1.5rem;
  align-self: center;
  margin: 0 1.5rem;
  background: var(--accent);
  border-radius: 50%;
  width: 80px;
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.5),
    0 0 40px rgba(0, 217, 255, 0.3);
  height: 80px;
  position: relative;
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.timeline__event__icon:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 15px 40px rgba(0, 217, 255, 0.6),
    0 0 60px rgba(0, 217, 255, 0.3);
}

.timeline__event__icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 2.5;
}

.timeline__event__icon::before {
  content: "";
  width: 4px;
  height: 100%;
  background: var(--accent);
  position: absolute;
  top: 0%;
  z-index: -1;
  left: 50%;
  transform: translateX(-50%);
  animation: fillTop 2s forwards 0.5s ease-in-out;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.6);
}

.timeline__event__icon::after {
  content: "";
  width: 100%;
  height: 4px;
  background: var(--accent);
  position: absolute;
  left: 0%;
  z-index: -1;
  top: 50%;
  transform: translateY(-50%);
  animation: fillLeftOdd 2s forwards 0.5s ease-in-out;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.6);
}

.timeline__event__description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.timeline__event__description ul {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0;
}

.timeline__event__description li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.timeline__event__description li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1.5;
}

.timeline__event__description p {
  margin: 0.5rem 0;
  color: var(--text-secondary);
}

.timeline__event--type2 .timeline__event__date {
  background: #8a2be2;
  color: #fff;
}

.timeline__event--type2 .timeline__event__icon {
  background: #8a2be2;
  color: #fff;
  box-shadow: 0 10px 30px rgba(138, 43, 226, 0.5),
    0 0 40px rgba(138, 43, 226, 0.3);
}

.timeline__event--type2 .timeline__event__icon:hover {
  box-shadow: 0 15px 40px rgba(138, 43, 226, 0.6),
    0 0 60px rgba(138, 43, 226, 0.3);
}

.timeline__event--type2 .timeline__event__icon::before,
.timeline__event--type2 .timeline__event__icon::after {
  background: #8a2be2;
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
}

.timeline__event--type2 .timeline__event__title {
  color: #8a2be2;
}

.timeline__event:nth-child(2n + 1).timeline__event--type2 .timeline__event__icon::before,
.timeline__event:nth-child(2n + 1).timeline__event--type2 .timeline__event__icon::after {
  background: #8a2be2;
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
}

.timeline__event:last-child .timeline__event__icon::before {
  content: none;
}

.edu-exp-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.edu-column,
.exp-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.column-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 1rem;
}

.column-header svg {
  color: var(--accent);
  stroke-width: 2;
}

.column-header h3 {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin: 0;
  font-weight: 600;
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.timeline-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(0, 217, 255, 0.25);
}

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

.card-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 16px 0 0 16px;
}

.timeline-content .timeline-title {
  font-size: 1.35rem;
  color: var(--text-primary);
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.timeline-meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0.5rem 0;
  align-items: center;
  gap: 0.5rem;
}

.timeline-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.timeline-details p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.timeline-details strong {
  color: var(--text-primary);
  font-weight: 600;
}

.timeline-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

/* ===== CONTACT ===== */
#contact {
  position: relative;
  background: linear-gradient(180deg, #000000 0%, rgba(0, 217, 255, 0.02) 50%, #000000 100%);
  padding: 5rem 2rem;
}

.contact-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text-primary);
}

.contact-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-5px);
}

.contact-note {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 217, 255, 0.5);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  background: rgba(0, 217, 255, 0.06);
  transition: all 0.3s ease;
  min-width: 160px;
}

.contact-action:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
  transform: translateY(-2px);
}

.contact-action--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #000;
  border-color: rgba(0, 217, 255, 0.8);
}

.contact-action--primary:hover {
  color: #000;
  box-shadow: 0 12px 36px rgba(0, 217, 255, 0.35);
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-card);
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.social-link {
  width: 50px;
  height: 50px;
  background: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  text-decoration: none;
  font-size: 1.5rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--accent);
  color: var(--bg-dark);
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 217, 255, 0.4);
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
@keyframes waveFlow {
  0%,
  100% {
    transform: translateX(0) scaleY(1);
  }
  25% {
    transform: translateX(-25px) scaleY(0.95);
  }
  50% {
    transform: translateX(-50px) scaleY(1.55);
  }
  75% {
    transform: translateX(-25px) scaleY(1);
  }
}

@keyframes floatParticle {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.8);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(1.2);
    opacity: 0.7;
  }
}

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

@keyframes comet {
  0% {
    opacity: 0;
    transform: translateY(200%) scaleY(0);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(0) scaleY(1);
  }
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-15px);
  }
}

@keyframes fillLeft {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

@keyframes fillTop {
  0% {
    height: 0;
  }
  100% {
    height: 100%;
  }
}

@keyframes fillLeftOdd {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

/* ===== RESPONSIVE ===== */
@media (prefers-reduced-motion: reduce) {
  body::before {
    display: none;
  }

  .timeline__event__icon::before,
  .timeline__event__icon::after {
    animation: none;
  }

  .timeline__event__content:hover,
  .timeline__event__icon:hover {
    transform: none;
  }
}

@media (max-width: 1024px) {
  .skills-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

@media (min-width: 769px) and (max-width: 1024px) {
  .hero {
    padding: 2rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-name {
    font-size: clamp(2.2rem, 5vw, 3rem);
  }

  .hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
  }

  .terminal-card {
    max-width: 360px;
  }

  .terminal-card .terminal-body {
    padding: 1.2rem;
    font-size: 0.8rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-right {
    flex-direction: row;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .about-stats-card {
    max-width: 100%;
    flex: 1;
  }

  .profile-image {
    max-width: 250px;
    flex: 0 0 250px;
  }
}

@media (max-width: 968px) {
  .timeline__event {
    flex-direction: column !important;
    align-self: center;
    width: 95%;
  }

  .timeline__event__content {
    width: 100% !important;
    border-radius: 0 0 12px 12px !important;
  }

  .timeline__event__icon {
    border-radius: 12px 12px 0 0;
    width: 100%;
    margin: 0;
    box-shadow: none;
    padding: 1.5rem;
    height: auto;
  }

  .timeline__event__icon::before,
  .timeline__event__icon::after {
    display: none !important;
  }

  .timeline__event__date {
    border-radius: 0 !important;
    padding: 1.5rem;
    width: 100%;
    min-width: unset;
  }

  .timeline__event:nth-child(2n + 1) {
    flex-direction: column !important;
  }

  .timeline__event:nth-child(2n + 1) .timeline__event__date {
    border-radius: 0 !important;
  }

  .timeline__event:nth-child(2n + 1) .timeline__event__icon {
    border-radius: 12px 12px 0 0;
  }

  .timeline__event:nth-child(2n + 1) .timeline__event__content {
    border-radius: 0 0 12px 12px !important;
  }
}

@media (max-width: 768px) {
  .timeline-container {
    padding: 0 15px;
  }

  .timeline-list {
    position: relative;
  }

  .timeline-item {
    padding-left: 22px;
    text-align: left;
  }

  .timeline-item::before {
    left: 0;
    right: auto;
    width: 3px;
    border-width: 0 0 0 3px;
    border-radius: 6px;
    top: 0;
    bottom: 0;
  }

  .timeline-item:nth-child(odd)::before,
  .timeline-item:nth-child(even)::before {
    left: 0;
    right: auto;
    border-width: 0 0 0 3px;
    border-radius: 6px;
  }

  .timeline-item:nth-child(even) {
    text-align: left;
  }

  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: auto;
  }

  .timeline-content {
    max-width: 100%;
    margin-left: 0;
  }

  .timeline-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .timeline-title + .timeline-badge,
  .timeline-item .timeline-badge {
    align-self: flex-start;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 5rem 2rem;
    gap: 2rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch;
  }

  .hero-left {
    gap: 1.2rem;
  }

  .hero-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 1px;
  }

  .hero-name {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
  }

  .hero-description {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .hero-meta {
    padding: 1rem 0;
  }

  .meta-chip {
    font-size: 0.8rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  .btn {
    width: 100%;
    padding: 0.8rem 1.5rem;
  }

  .btn-ghost {
    width: auto;
  }

  .hero-right {
    justify-content: center;
  }

  .terminal-card {
    max-width: 100%;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
  }

  .about-left {
    gap: 1.5rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .about-bullets li {
    font-size: 0.95rem;
    gap: 0.8rem;
  }

  .about-right {
    gap: 2rem;
    width: 100%;
  }

  .about-stats-card {
    max-width: 100%;
  }

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

  .profile-image {
    max-width: 250px;
  }

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

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

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

  section {
    padding: 4rem 1.5rem;
  }

  .edu-exp-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .timeline-card:hover {
    transform: translateY(-5px);
  }

  .social-links {
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .contact-action {
    width: 100%;
  }
}

@media (max-width: 480px) {
  #skills {
    padding: 3rem 1.5rem;
  }

  #skills .section-title {
    font-size: 1.8rem;
  }

  #skills .section-subtitle {
    margin-bottom: 2rem;
    font-size: 0.95rem;
  }

  .skills-summary {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .core-stack-label {
    font-size: 0.85rem;
  }

  .core-pills {
    gap: 0.5rem;
  }

  .skill-pill.core {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  .impact-bullets {
    padding-left: 1rem;
    gap: 0.8rem;
  }

  .impact-bullets li {
    font-size: 0.85rem;
  }

  .skills-grid {
    gap: 1rem;
  }

  .skill-card {
    padding: 1.2rem;
    gap: 1rem;
  }

  .skill-card-icon {
    width: 40px;
    height: 40px;
  }

  .skill-card-icon svg {
    width: 24px;
    height: 24px;
  }

  .skill-card-title {
    font-size: 1rem;
  }

  .skill-pill {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 479px) {
  .hero {
    min-height: 85vh;
    padding: 2rem 1.2rem;
  }

  .hero-content {
    gap: 2rem;
  }

  .hero-left {
    gap: 1rem;
  }

  .hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.8px;
  }

  .hero-name {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    line-height: 1.2;
  }

  .hero-tagline {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    line-height: 1.5;
  }

  .hero-description {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .hero-meta {
    padding: 0.8rem 0;
    gap: 0.5rem;
  }

  .meta-chip {
    font-size: 0.75rem;
    display: block;
    margin: 0.2rem 0;
  }

  .hero-buttons {
    gap: 0.6rem;
    padding-top: 0.8rem;
  }

  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }

  .terminal-card {
    max-width: 100%;
    border-radius: 10px;
  }

  .terminal-card .terminal-header {
    padding: 0.8rem 1rem;
  }

  .terminal-card .terminal-title {
    font-size: 0.65rem;
  }

  .terminal-card .terminal-body {
    padding: 1rem;
    font-size: 0.75rem;
    line-height: 1.5;
  }

  .terminal-card .terminal-line {
    margin: 0.3rem 0;
  }
}
