:root {
  --bg: #0a0e1a;
  --bg-elev: rgba(18, 24, 38, 0.4);
  --text: #e6ecff;
  --muted: #9aa4b2;
  --primary: #7c5cff;
  --primary-600: #6a47ff;
  --primary-700: #5c3ae6;
  --accent: #22d3ee;
  --card: rgba(17, 24, 39, 0.3);
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  --glass: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.18);
  --gradient: radial-gradient(800px 400px at 20% 10%, rgba(124, 92, 255, 0.25), transparent 70%),
    radial-gradient(600px 300px at 80% 10%, rgba(34, 211, 238, 0.2), transparent 70%),
    radial-gradient(400px 200px at 50% 50%, rgba(168, 85, 247, 0.15), transparent 80%);

  /* Glass morphism variables */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  --glass-backdrop: blur(20px) saturate(180%);
}

html[data-theme="light"] {
  --bg: #f0f2ff;
  --bg-elev: rgba(255, 255, 255, 0.4);
  --text: #0e1116;
  --muted: #475569;
  --primary: #6a47ff;
  --primary-600: #5c3ae6;
  --primary-700: #4d2fd1;
  --accent: #0891b2;
  --card: rgba(255, 255, 255, 0.25);
  --border: rgba(0, 0, 0, 0.1);
  --shadow: 0 8px 32px rgba(106, 71, 255, 0.15);
  --glass: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.3);
  --gradient: radial-gradient(800px 400px at 20% 10%, rgba(106, 71, 255, 0.2), transparent 70%),
    radial-gradient(600px 300px at 80% 10%, rgba(8, 145, 178, 0.18), transparent 70%),
    radial-gradient(400px 200px at 50% 50%, rgba(168, 85, 247, 0.12), transparent 80%);

  /* Glass morphism variables for light mode */
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px 0 rgba(106, 71, 255, 0.15);
  --glass-backdrop: blur(20px) saturate(180%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
  /* Small offset for sticky header */
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji';
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

main {
  margin: 0;
  padding: 0;
}

.bg-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.bg-effects .radial {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bg-effects .r1 {
  background: var(--gradient);
  mix-blend-mode: screen;
  z-index: 0;
}

.bg-effects .r2,
.bg-effects .r3 {
  display: none;
}

/* Particle Canvas */
.particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

/* Header - Liquid Glass Effect */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  margin: 0;
  transition: all 0.3s ease;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  opacity: 0.5;
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: .6rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.brand__logo {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  box-shadow: var(--shadow);
  letter-spacing: 1px;
}

.brand__text {
  display: block;
  font-weight: 800;
  letter-spacing: .3px;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
  justify-self: center;
}

.nav__links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  padding: .5rem .75rem;
  border-radius: 10px;
  transition: all .25s ease;
}

.nav__links a:hover {
  color: var(--text);
  background: var(--glass);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.actions {
  display: flex;
  gap: .6rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  padding: .7rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  color: var(--text);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 15px 40px rgba(124, 92, 255, .18);
}

.magic-btn {
  position: relative;
  overflow: hidden;
}

.magic-btn::before {
  content: '\2728';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.3s ease;
}

.magic-btn:hover::before {
  opacity: 1;
  animation: sparkle 0.6s ease;
}

.magic-btn:hover i {
  opacity: 0;
}

@keyframes sparkle {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
}

.btn.primary:hover {
  box-shadow: 0 15px 40px rgba(34, 211, 238, .18);
}

.btn.outline {
  background: transparent;
}

.btn-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  box-shadow: var(--shadow);
}

.nav__toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0 6rem;
  /* Increased padding for better separation */
  z-index: 1;
  margin-top: 0;
  scroll-margin-top: 10px;
  /* Minimal offset for hero */
  min-height: 80vh;
  /* Ensure hero takes most of viewport height */
}

.hero__content .hero__badge {
  display: inline-block;
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .8rem;
  background: rgba(124, 92, 255, .15);
  color: var(--text);
  border: 1px solid var(--border);
}

.animated-badge {
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(124, 92, 255, 0.4);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(124, 92, 255, 0.4);
  }
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  margin: .6rem 0;
  line-height: 1.15;
}

.typing-text {
  position: relative;
}

.typing-text::after {
  content: '|';
  animation: blink 1s infinite;
  color: var(--primary);
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

.typing-subtitle {
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 1s ease 2s forwards;
}

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

.subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.hero__stats {
  display: flex;
  gap: 1.2rem;
}

.stat {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: .9rem 1.1rem;
  min-width: 120px;
  text-align: center;
  box-shadow: var(--glass-shadow);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.stat:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 40px rgba(124, 92, 255, 0.2);
}

.stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.stat:hover::before {
  left: 100%;
}

.animated-counter span {
  display: block;
  font-weight: 800;
  font-size: 1.4rem;
}

.stat small {
  color: var(--muted);
  font-weight: 600;
}

.hero__cta {
  display: flex;
  gap: .7rem;
  margin-top: 1rem;
}

.social {
  display: flex;
  gap: .6rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .7rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  color: var(--text);
  text-decoration: none;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease;
}

.social a:hover {
  transform: translateY(-2px);
}

.hero__image {
  justify-self: center;
}

/* Enhanced Profile Picture */
.profile-container {
  position: relative;
  display: inline-block;
}

.profile-img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 4px rgba(124, 92, 255, 0.2),
    0 0 0 8px rgba(34, 211, 238, 0.1),
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 40px 80px rgba(124, 92, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  z-index: 2;
}

.profile-container:hover .profile-img {
  transform: scale(1.08) translateY(-5px);
  box-shadow:
    0 0 0 4px rgba(124, 92, 255, 0.4),
    0 0 0 8px rgba(34, 211, 238, 0.2),
    0 30px 60px rgba(0, 0, 0, 0.4),
    0 60px 120px rgba(124, 92, 255, 0.25);
}

/* Animated Rings */
.profile-ring {
  position: absolute;
  inset: -20px;
  border: 3px solid transparent;
  border-top: 3px solid var(--primary);
  border-right: 3px solid rgba(34, 211, 238, 0.5);
  border-radius: 50%;
  animation: profileSpin 10s linear infinite;
  z-index: 1;
}

.profile-pulse {
  position: absolute;
  inset: -35px;
  border: 2px solid rgba(124, 92, 255, 0.2);
  border-radius: 50%;
  animation: profilePulse 4s ease-in-out infinite;
  z-index: 0;
}

/* Additional decorative rings */
.profile-container::before {
  content: '';
  position: absolute;
  inset: -50px;
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 50%;
  animation: profilePulse 6s ease-in-out infinite reverse;
  z-index: 0;
}

.profile-container::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  margin: -200px 0 0 -200px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.03) 0%, transparent 70%);
  border-radius: 50%;
  animation: profileGlow 8s ease-in-out infinite;
  z-index: -1;
}

/* Enhanced Animations */
@keyframes profileSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes profilePulse {

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

  50% {
    transform: scale(1.15);
    opacity: 0.1;
  }
}

@keyframes profileGlow {

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

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

/* Profile picture status indicator */
.profile-status {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #10b981, #34d399);
  border: 3px solid var(--bg-elev);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  z-index: 3;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {

  0%,
  100% {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  }

  50% {
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.8);
  }
}

/* Sections */
.section {
  padding: 2.4rem 0;
  position: relative;
  z-index: 1;
  scroll-margin-top: 20px;
  /* Small offset so title appears just below header */
}

.section__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 14px;
  box-shadow: var(--shadow);
  color: white;
}

.section__header h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3.3vw, 2rem);
}

.muted {
  color: var(--muted);
  margin: .2rem 0 0;
}

.floating {
  animation: float 5s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-6px)
  }
}

.section__icon:hover {
  animation: floatFast 1s ease-in-out infinite, colorShift 2s ease-in-out infinite;
}

@keyframes floatFast {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-10px)
  }
}

@keyframes colorShift {

  0%,
  100% {
    filter: hue-rotate(0deg)
  }

  50% {
    filter: hue-rotate(180deg)
  }
}

/* About - Glass Effect */
.about__content {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.about__content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.7;
}

.about__meta {
  margin-top: .8rem;
  display: flex;
  gap: .8rem 1.2rem;
  flex-wrap: wrap;
}

.meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
}

.meta a {
  color: var(--text);
  text-decoration: none;
}

/* Simple Technical Skills */
.tech-simple {
  display: grid;
  gap: 1.5rem;
}

.tech-group {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--glass-shadow);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.tech-group:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(124, 92, 255, 0.1);
}

.tech-group__title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.tech-group__title i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 1rem;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.simple-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.simple-chip:hover {
  transform: translateY(-3px) scale(1.02);
  background: var(--glass);
  border-color: var(--primary);
  box-shadow: 0 12px 25px rgba(124, 92, 255, 0.25), var(--glass-shadow);
}

.simple-chip::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.simple-chip:hover::before {
  left: 100%;
}

.simple-chip__icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 4px;
  color: white;
  font-size: 0.75rem;
}


.skill-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.skill-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(124, 92, 255, 0.2);
  border-color: var(--primary);
}

.skill-item__icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 0.6rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.skill-item:hover .skill-item__icon {
  transform: scale(1.1) rotate(5deg);
}

.skill-item__name {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.skill-proficiency {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 0.4rem;
  overflow: hidden;
}

.skill-proficiency-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  width: 0%;
  transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-item__level {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
}



/* Skill Interaction Effects */
.skill-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.3), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
  opacity: 0;
}

.skill-item:hover::before {
  width: 200px;
  height: 200px;
  opacity: 1;
}

.skill-glow-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(124, 92, 255, 0.1), transparent);
  opacity: 0;
  transition: all 0.6s ease;
}

.skill-item:hover .skill-glow-effect {
  opacity: 1;
  animation: skillGlow 2s ease-in-out infinite;
}

@keyframes skillGlow {

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

  50% {
    transform: translateX(100%);
  }
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 18px 44px rgba(124, 92, 255, .18);
}

.card {
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: left 0.5s ease;
}

.card:hover::before {
  left: 100%;
}

.card__header {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: .6rem;
}

.card__header i {
  font-size: 1.4rem;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}


.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.chip {
  padding: .45rem .7rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow);
}

.tools-cloud {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: .6rem;
}

.tool {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .65rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .2s ease, color .2s ease;
}

.tool:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(34, 211, 238, .15);
  color: var(--accent);
}

/* Timeline */
.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  position: relative;
  padding-left: 1.4rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: .45rem;
  top: .4rem;
  bottom: -.4rem;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), transparent);
  border-radius: 2px;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: .3rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 3px rgba(124, 92, 255, .18);
}

.timeline-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease;
}

.timeline-card h4 {
  margin: .1rem 0 .3rem;
}

.timeline-card .meta {
  color: var(--muted);
}

.timeline-card ul {
  margin: .5rem 0 0 1rem;
}

/* Education Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.edu-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.project {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project__cover {
  aspect-ratio: 16/9;
  background: #0f172a;
  overflow: hidden;
  height: 160px;
}

.project__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}

.project:hover .project__cover img {
  transform: scale(1.06);
}

.project {
  position: relative;
}

.project::after {
  content: 'Click to explore \2728';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(124, 92, 255, 0.9);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

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

.project__body {
  padding: .8rem;
  display: grid;
  gap: .35rem;
}

.project__title {
  margin: .1rem 0;
  font-size: 1rem;
}

.project__meta {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.4;
  display: -webkit-box;
  -line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .2rem;
}

.badge {
  padding: .25rem .5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
}

.links {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: .4rem;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  text-decoration: none;
  color: var(--text);
  padding: .3rem .45rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  font-size: .85rem;
}

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

/* Contact */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  grid-auto-rows: 1fr;
}

.contact-info,
.contact-card {
  display: flex;
  flex-direction: column;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-item:hover {
  transform: translateY(-4px);
}

.contact-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  color: white;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
}

.contact-item h4 {
  margin: 0 0 .3rem;
}

.contact-item p,
.contact-item a {
  margin: 0;
  color: var(--muted);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.8;
}

/* Enhanced Contact Section Styles */
.contact-hero {
  margin-bottom: 0.5rem;
  text-align: center;
}

.contact-icon-group {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  position: relative;
}

.contact-floating-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--primary);
  font-size: 1.2rem;
  box-shadow: var(--glass-shadow);
  animation: floatingIcons 4s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.contact-floating-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-floating-icon:hover::before {
  opacity: 0.2;
}

.contact-floating-icon.delay-1 {
  animation-delay: -1.3s;
}

.contact-floating-icon.delay-2 {
  animation-delay: -2.6s;
}

@keyframes floatingIcons {

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

  33% {
    transform: translateY(-10px) rotate(5deg);
  }

  66% {
    transform: translateY(5px) rotate(-3deg);
  }
}

.contact-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, var(--text), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-tagline {
  margin-bottom: 1rem;
}

.highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 1.1rem;
}

.contact-description {
  color: var(--muted);
  line-height: 1.4;
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}


/* Enhanced CTA Buttons */
.cta-enhanced {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.btn-enhanced {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  box-shadow: var(--glass-shadow);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.btn-enhanced::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-enhanced:hover::before {
  transform: translateX(100%);
}

.btn-enhanced.primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  color: white;
}

.btn-enhanced.primary .btn-content .btn-main,
.btn-enhanced.primary .btn-content .btn-sub {
  color: white;
}

.btn-enhanced.primary .btn-icon-wrapper {
  background: rgba(255, 255, 255, 0.2);
}

.btn-enhanced:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--glass-shadow), 0 15px 35px rgba(124, 92, 255, 0.25);
}

.btn-icon-wrapper {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border-radius: 12px;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.btn-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  text-align: left;
}

.btn-main {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.btn-sub {
  font-size: 0.85rem;
  color: var(--muted);
  opacity: 0.8;
}

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

.btn-enhanced:hover .btn-arrow {
  transform: translateX(4px);
}

.contact-card .cta {
  display: flex;
  justify-content: center;
  gap: .6rem;
  margin-top: .6rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 1.6rem;
  background: var(--bg-elev);
}

.footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: 1rem 0;
}

/* Utilities */
.hidden {
  display: none !important;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: all 0.5s ease;
}

.loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
  max-width: 400px;
  padding: 2rem;
}

.loading-logo {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.logo-circle {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  animation: logoFloat 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.logo-circle::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--primary), var(--accent), var(--primary));
  border-radius: 50%;
  z-index: -1;
  animation: logoRotate 4s linear infinite;
}

.logo-text {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes logoFloat {

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

  50% {
    transform: translateY(-10px) scale(1.05);
  }
}

@keyframes logoRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-spinner {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
}

.spinner-ring {
  width: 60px;
  height: 60px;
  border: 4px solid var(--glass-border);
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 500;
  margin: 1.5rem 0;
  animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {

  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

.loading-progress {
  width: 100%;
  height: 4px;
  background: var(--glass-bg);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 1rem;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  animation: progressShimmer 2s infinite;
}

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

  100% {
    transform: translateX(100%);
  }
}


/* Image Overlay */
.image-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all .25s ease;
}

.image-overlay.active {
  opacity: 1;
  visibility: visible;
}

.image-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .8);
  backdrop-filter: blur(8px);
}

.image-overlay__content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  z-index: 1;
}

.image-overlay__content img {
  max-width: 100%;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.image-overlay__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .2s ease;
}

.image-overlay__close:hover {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 960px) {
  .nav {
    grid-template-columns: auto 1fr auto;
  }

  .brand__text {
    display: none;
  }

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

  .hero__image {
    order: -1;
  }

  .tech-simple {
    gap: 1rem;
  }

  .tech-group {
    padding: 1rem;
  }

  .chip-grid {
    gap: 0.4rem;
  }

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

}

/* Terminal Easter Egg */
.terminal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.terminal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.terminal {
  width: min(700px, 90%);
  height: 500px;
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  background: #333;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.terminal-controls {
  display: flex;
  gap: 0.5rem;
}

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

.control.close {
  background: #ff5f57;
  cursor: pointer;
}

.control.minimize {
  background: #ffbd2e;
}

.control.maximize {
  background: #28ca42;
}

.terminal-title {
  color: #ccc;
  font-size: 0.9rem;
}

.terminal-body {
  padding: 1rem;
  height: calc(100% - 60px);
  overflow-y: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #0f0;
  background: #000;
}

.terminal-line,
.terminal-output,
.terminal-input-line {
  margin: 0.5rem 0;
}

.prompt {
  color: #0f0;
}

.command {
  color: #fff;
  margin-left: 1rem;
}

.terminal-output {
  color: #ccc;
  margin-left: 1rem;
}

.cmd-highlight {
  color: #0f0;
  font-weight: bold;
}

.terminal-input {
  background: transparent;
  border: none;
  color: #fff;
  outline: none;
  font-family: inherit;
  font-size: inherit;
  margin-left: 1rem;
  width: calc(100% - 200px);
}

.terminal-input-line {
  display: flex;
  align-items: center;
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 400;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

/* Secret Trigger */
.secret-trigger {
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.secret-trigger:hover {
  transform: scale(1.2) rotate(15deg);
}

@media (max-width: 720px) {

  /* Fix mobile header layout and alignment */
  .nav {
    grid-template-columns: auto auto 1fr auto;
    gap: 0.8rem;
    padding: 0.8rem 0;
    align-items: center;
    width: 100%;
  }

  .brand {
    order: 1;
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  .nav__toggle {
    display: block !important;
    order: 2;
    justify-self: start;
    padding: 0.6rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.4rem;
    margin-left: 0.5rem;
  }

  .nav__toggle:hover {
    background: var(--glass);
    transform: scale(1.05);
  }

  .nav__toggle:active {
    transform: scale(0.95);
  }

  .brand__text {
    display: none;
  }

  .actions {
    order: 4;
    justify-self: end;
    gap: 0.4rem;
    display: flex;
    align-items: center;
  }
}

/* Mobile navigation menu */
.nav__links {
  position: absolute;
  top: 70px;
  right: 4%;
  left: 4%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.6rem;
  display: none;
  flex-direction: column;
  z-index: 15;
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  box-shadow: var(--glass-shadow);
}

/* Desktop navigation menu always visible */
@media (min-width: 721px) {
  .nav__links {
    position: static;
    display: flex !important;
    flex-direction: row;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    width: auto;
    top: auto;
    right: auto;
    left: auto;
    z-index: auto;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.nav__links.show {
  display: flex;
}

.nav__links li {
  margin: 0;
}

.nav__links a {
  padding: 0.8rem 1rem;
  margin: 0.2rem 0;
  border-radius: 8px;
  width: 100%;
  text-align: left;
}

/* Adjust button sizes for mobile */
.btn-icon {
  width: 38px;
  height: 38px;
}

.btn {
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
}

/* Container adjustment for mobile */
.container {
  width: min(1120px, 96%);
}

/* Other mobile styles */
.footer__content {
  flex-direction: column;
}

.terminal {
  width: 95%;
  height: 400px;
}

.simple-chip {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
}

.profile-img {
  width: 220px;
  height: 220px;
}

.profile-container::after {
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
}

.profile-status {
  bottom: 15px;
  right: 15px;
  width: 20px;
  height: 20px;
}

/* Enhanced Contact Section Mobile */
.contact-icon-group {
  gap: 0.8rem;
}

.contact-floating-icon {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}


.cta-enhanced {
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.btn-enhanced {
  padding: 0.8rem 1.2rem;
  gap: 0.8rem;
}

.btn-icon-wrapper {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

.btn-main {
  font-size: 0.9rem;
}

.btn-sub {
  font-size: 0.8rem;
}