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

:root {
  --white: #ffffff;
  --off-white: #f8f9fb;
  --light: #f1f3f7;
  --light-2: #e8ecf3;
  --border: #e2e6ef;
  --muted: #9aa3b5;
  --text-sub: #6b7694;
  --text: #1a1f36;
  --text-dark: #0d1117;
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --accent: #06b6d4;
  --accent-light: #67e8f9;
  --success: #10b981;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.15);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.2s, height 0.2s, background 0.2s;
}

.cursor-follower {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(99, 102, 241, 0.4);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor.hover {
  width: 16px;
  height: 16px;
  background: var(--accent);
}

.cursor-follower.hover {
  width: 52px;
  height: 52px;
  border-color: rgba(6, 182, 212, 0.5);
}

/* ===== LOADER ===== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  text-align: center;
}

.loader-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {

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

  50% {
    opacity: 0.7;
    transform: scale(0.97)
  }
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--light-2);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0 auto;
}

.loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  animation: fillUp 2s ease forwards;
}

@keyframes fillUp {
  0% {
    width: 0%
  }

  100% {
    width: 100%
  }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
  padding: 10px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.nav-logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0 auto;
}

.nav-link {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: var(--text-sub);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  transition: left var(--transition), right var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
  left: 16px;
  right: 16px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: none;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-100%);
  transition: transform 0.4s;
}

.btn:hover::before {
  transform: translateX(0);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

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

.btn-ghost:hover {
  background: var(--light-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 10px 22px;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  flex-shrink: 0;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.1));
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-sub);
  max-width: 520px;
  margin: 0 auto;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  gap: 64px;
}

.hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.hero-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.hero-visual {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  color: var(--success);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.3
  }
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-sub);
  margin-bottom: 20px;
  font-weight: 500;
  min-height: 2em;
}

.typed-text {
  color: var(--primary);
  font-weight: 700;
}

.typed-cursor {
  color: var(--primary);
  animation: blink 1s step-end infinite;
  font-weight: 300;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-sub);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.stat-number {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}

.stat-plus {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.5rem;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
  display: block;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero Avatar */
.hero-avatar-wrap {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: spin linear infinite;
}

.ring-1 {
  width: 310px;
  height: 310px;
  border-color: rgba(99, 102, 241, 0.15);
  animation-duration: 30s;
}

.ring-2 {
  width: 340px;
  height: 340px;
  border-color: rgba(6, 182, 212, 0.1);
  animation-duration: 20s;
  animation-direction: reverse;
  border-style: dashed;
}

.ring-3 {
  width: 370px;
  height: 370px;
  border-color: rgba(99, 102, 241, 0.06);
  animation-duration: 40s;
}

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

  to {
    transform: rotate(360deg)
  }
}

.hero-avatar {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3), 0 0 0 8px rgba(99, 102, 241, 0.08);
  position: relative;
  z-index: 1;
}

.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow);
  animation: float 3s ease-in-out infinite;
  white-space: nowrap;
}

.floating-badge svg {
  width: 18px;
  height: 18px;
}

.badge-react {
  top: 10px;
  right: -20px;
  animation-delay: 0s;
}

.badge-node {
  bottom: 30px;
  right: -30px;
  animation-delay: 1s;
}

.badge-figma {
  bottom: 10px;
  left: -20px;
  animation-delay: 0.5s;
}

@keyframes float {

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

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

.scroll-indicator {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  animation: floatUp 2s ease-in-out infinite;
}

.scroll-dot {
  width: 6px;
  height: 32px;
  border: 2px solid var(--border);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.scroll-dot::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 8px;
  background: var(--primary);
  border-radius: 1px;
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% {
    top: 4px;
    opacity: 1
  }

  100% {
    top: 20px;
    opacity: 0
  }
}

@keyframes floatUp {

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

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

/* ===== ABOUT SECTION ===== */
.about-section {
  background: var(--off-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-image-card {
  width: 320px;
  height: 380px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 2;
}

.about-image-deco {
  position: absolute;
  border-radius: var(--radius);
}

.deco-1 {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  top: -20px;
  right: -20px;
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

.deco-2 {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  bottom: 30px;
  left: -15px;
  border-radius: 50%;
}

.about-exp-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.exp-number {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.exp-label {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.about-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.about-text {
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 1rem;
}

.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.info-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.info-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.info-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-value {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 600;
}

.about-actions {
  display: flex;
  gap: 12px;
}

/* ===== SKILLS ===== */
.skills-section {
  background: var(--white);
}

.skills-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  background: var(--light);
  padding: 6px;
  border-radius: var(--radius-full);
  width: fit-content;
  margin: 0 auto 48px;
}

.skill-tab {
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-sub);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: none;
  transition: all var(--transition);
}

.skill-tab.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.skill-tab:hover:not(.active) {
  color: var(--text);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 24px;
  display: none;
}

.skills-grid.active {
  display: grid;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px)
  }

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

.skill-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 3px 3px 0 0;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-ring-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;
}

.skill-ring {
  width: 90px;
  height: 90px;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: var(--light-2);
  stroke-width: 8;
}

.ring-fill {
  fill: none;
  stroke: url(#skillGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2;
  transition: stroke-dashoffset 1.5s ease;
}

.skill-ring-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
}

.skill-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.skill-percent {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
}

/* ===== PROJECTS ===== */
.projects-section {
  background: var(--off-white);
}

.project-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 22px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: white;
  color: var(--text-sub);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: none;
  transition: all var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.project-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(99, 102, 241, 0.2);
}

.project-card.featured {
  display: flex;
  flex-direction: column;
}

.project-card.small {
  display: flex;
  gap: 20px;
  padding: 24px;
  align-items: flex-start;
}

/* Browser Mockup */
.project-preview {
  padding: 20px 20px 0;
}

.project-browser {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--light-2);
  border-bottom: 1px solid var(--border);
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-url {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  color: var(--muted);
  background: white;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.project-screenshot {
  height: 200px;
  overflow: hidden;
  position: relative;
}

/* AURA mockup */
.aura-mockup {
  height: 100%;
  background: linear-gradient(180deg, #f0f2f8 0%, #e8ecf5 100%);
  padding: 12px;
  position: relative;
  overflow: hidden;
}

.aura-mockup::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  right: -20%;
  bottom: -40%;
  background: radial-gradient(ellipse, rgba(96, 165, 250, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

.aura-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.aura-logo {
  font-weight: 900;
  font-size: 0.85rem;
  color: #0d1117;
}

.aura-nav-links {
  display: flex;
  gap: 10px;
  font-size: 0.55rem;
  color: #555;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.aura-hero {
  text-align: center;
}

.aura-label {
  font-size: 0.55rem;
  color: #888;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.aura-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: #0d1117;
  line-height: 1.1;
}

.aura-sub {
  font-size: 0.6rem;
  color: #777;
  margin-top: 6px;
  max-width: 160px;
  margin: 6px auto 0;
}

.aura-glow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 60px;
  background: radial-gradient(ellipse, rgba(96, 165, 250, 0.4) 0%, transparent 70%);
}

/* Cart mockup */
.cart-mockup {
  height: 100%;
  background: #f9f9f9;
  padding: 12px;
}

.cart-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cart-logo {
  font-size: 0.75rem;
  font-weight: 700;
  color: #333;
}

.cart-nav-links {
  display: flex;
  gap: 8px;
  font-size: 0.55rem;
  color: #666;
}

.cart-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  height: 140px;
}

.cart-content {
  background: white;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cart-tag {
  font-size: 0.5rem;
  color: #333;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-tag::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: #333;
}

.cart-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.cart-cta {
  font-size: 0.6rem;
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-image-placeholder {
  background: linear-gradient(135deg, #ffd6e0, #ffb3c6);
  border-radius: 8px;
}

/* Small project cards */
.small-preview {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.small-preview-icon {
  font-size: 1.75rem;
}

.project-info {
  padding: 20px;
  flex: 1;
}

.project-card.featured .project-info {
  padding: 24px;
}

.project-type {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.project-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}

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

.project-desc {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.65;
  margin-bottom: 16px;
}

.project-card.small .project-desc {
  font-size: 0.82rem;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tech-badge {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--light);
  color: var(--text-sub);
  border: 1px solid var(--border);
}

.tech-badge.react {
  background: rgba(97, 218, 251, 0.1);
  color: #0284c7;
  border-color: rgba(97, 218, 251, 0.3);
}

.tech-badge.vercel {
  background: rgba(0, 0, 0, 0.05);
  color: #333;
  border-color: rgba(0, 0, 0, 0.1);
}

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-features span {
  font-size: 0.78rem;
  color: var(--text-sub);
  font-weight: 500;
}

.project-actions {
  display: flex;
  gap: 10px;
}

.projects-more {
  text-align: center;
  margin-top: 48px;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 24px;
  align-items: start;
}

.testimonial-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

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

.testimonial-card.featured-testimonial {
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 50%, var(--accent) 100%);
  border-color: transparent;
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.35);
}

.testimonial-card.featured-testimonial .testimonial-stars {
  color: #fbbf24;
}

.testimonial-card.featured-testimonial .testimonial-text,
.testimonial-card.featured-testimonial .testimonial-author strong,
.testimonial-card.featured-testimonial .testimonial-author span {
  color: white;
}

.testimonial-card.featured-testimonial .author-avatar {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

.testimonial-card.featured-testimonial .testimonial-quote {
  color: rgba(255, 255, 255, 0.1);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-sub);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.author-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.author-info span {
  font-size: 0.78rem;
  color: var(--muted);
}

.testimonial-quote {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 6rem;
  line-height: 1;
  color: rgba(0, 0, 0, 0.04);
  font-family: Georgia, serif;
  font-weight: 900;
}

/* ===== CONTACT ===== */
.contact-section {
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.contact-card-icon {
  font-size: 1.4rem;
}

.contact-card-content {
  flex: 1;
}

.contact-card-content h4 {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.contact-card-content a,
.contact-card-content span {
  font-size: 0.92rem;
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
}

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

.copy-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: all var(--transition);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.copy-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.copy-btn:hover svg {
  color: white;
}

.available-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--success) !important;
  font-weight: 700 !important;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

.contact-socials {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.social-link {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  text-decoration: none;
  transition: all var(--transition);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Contact Form */
.contact-form-wrap {
  position: relative;
}

.contact-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--off-white);
  transition: all var(--transition);
  outline: none;
  font-family: 'Inter', sans-serif;
  cursor: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  cursor: none;
}

.form-success {
  display: none;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
  box-shadow: var(--shadow);
}

.form-success.show {
  display: block;
  animation: fadeIn 0.4s ease;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from {
    transform: scale(0)
  }

  to {
    transform: scale(1)
  }
}

.form-success h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-sub);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 80px 0 32px;
  position: relative;
}

.footer-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 48px;
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.footer-logo span {
  color: var(--primary);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer .social-link {
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

.footer .social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: white;
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-credit {
  font-size: 0.78rem !important;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ===== RESPONSIVE ===== */

/* --- Touch devices: disable custom cursor --- */
@media (pointer: coarse) {
  body {
    cursor: auto;
  }

  .cursor,
  .cursor-follower {
    display: none !important;
  }

  .btn,
  .hamburger,
  .skill-tab,
  .filter-btn,
  .star,
  .theme-toggle,
  .back-to-top {
    cursor: pointer;
  }
}

@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 120px 24px 60px;
    gap: 48px;
  }

  .hero-content {
    order: 2;
  }

  .hero-visual {
    order: 1;
  }

  .hero-desc {
    margin: 0 auto 36px;
  }

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

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .about-image-wrap {
    justify-content: center;
    margin-bottom: 60px;
  }

  .about-info-grid {
    text-align: left;
  }

  .about-actions {
    justify-content: center;
  }

  /* Keep exp badge visible but adjust so it doesn't clip */
  .about-exp-badge {
    right: 0;
    bottom: -36px;
  }

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

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

  .testimonial-card.featured-testimonial {
    transform: none;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  /* Navbar mobile menu */
  .navbar {
    position: fixed;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
    gap: 4px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 1rem;
  }

  .hamburger {
    display: flex;
    cursor: pointer;
  }

  .nav-cta {
    display: none;
  }

  /* Hero avatar */
  .hero-avatar-wrap {
    width: 240px;
    height: 240px;
  }

  .hero-avatar {
    width: 200px;
    height: 200px;
  }

  .ring-1 {
    width: 230px;
    height: 230px;
  }

  .ring-2 {
    width: 255px;
    height: 255px;
  }

  .ring-3 {
    width: 280px;
    height: 280px;
  }

  .avatar-initials {
    font-size: 3.5rem;
  }

  .badge-react,
  .badge-node,
  .badge-figma {
    display: none;
  }

  /* About section: hide overflowing exp badge on mobile */
  .about-exp-badge {
    position: static;
    margin: 16px auto 0;
    display: inline-block;
    right: auto;
    bottom: auto;
  }

  /* Skills tabs: allow horizontal scroll instead of wrapping */
  .skills-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: calc(100% + 32px);
    max-width: none;
    margin-left: -16px;
    margin-right: -16px;
    padding: 6px 16px;
    justify-content: flex-start;
    border-radius: 0;
    scrollbar-width: none;
  }

  .skills-tabs::-webkit-scrollbar {
    display: none;
  }

  .skill-tab {
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* iOS: prevent input zoom (font-size must be >= 16px) */
  input,
  textarea,
  select {
    font-size: 16px !important;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Project small cards: stack vertically */
  .project-card.small {
    flex-direction: column;
    gap: 12px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  /* Reduce back-to-top position */
  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 100px 16px 48px;
  }

  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .stat-divider {
    display: none;
  }

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

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

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

  .project-filters {
    gap: 6px;
  }

  .filter-btn {
    padding: 7px 14px;
    font-size: 0.8rem;
  }

  .review-form {
    padding: 24px 16px;
  }

  .footer {
    padding: 48px 0 24px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .section-header {
    margin-bottom: 40px;
  }
}

/* --- Ultra-small screens (360px and below) --- */
@media (max-width: 360px) {
  .hero-avatar-wrap {
    width: 190px;
    height: 190px;
  }

  .hero-avatar {
    width: 160px;
    height: 160px;
  }

  .ring-1 {
    width: 183px;
    height: 183px;
  }

  .ring-2 {
    width: 202px;
    height: 202px;
  }

  .ring-3 {
    width: 220px;
    height: 220px;
  }

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

  .skill-card {
    padding: 20px 12px;
  }

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

  .btn-lg {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .nav-logo {
    font-size: 1.4rem;
  }
}

/* ===== REVIEW FORM & CARDS ===== */
.review-form-wrap {
  max-width: 680px;
  margin: 0 auto 56px;
}

.review-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.review-form-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.review-form-icon {
  font-size: 1.5rem;
}

.review-form-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* Star Rating */
.star-rating {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.star {
  font-size: 1.8rem;
  color: var(--border);
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  line-height: 1;
}

.star.active,
.star.hover-active {
  color: #f59e0b;
  transform: scale(1.15);
}

/* Reviews List */
.reviews-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fadeIn 0.4s ease;
  position: relative;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.review-card-stars {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.review-card-text {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.review-card-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
  flex-shrink: 0;
}

.review-card-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 600;
}

.review-card-info span {
  font-size: 0.78rem;
  color: var(--muted);
}

.review-card-quote {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 3rem;
  color: rgba(99, 102, 241, 0.08);
  font-family: Georgia, serif;
  line-height: 1;
}

.review-card-date {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Empty State */
.reviews-empty {
  text-align: center;
  padding: 48px;
  color: var(--muted);
  display: none;
}

.reviews-empty.show {
  display: block;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.reviews-empty p {
  font-size: 1rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

/* ===== DARK MODE ===== */
[data-theme="dark"] {
  --white: #0f172a;
  --off-white: #1e293b;
  --light: #1e293b;
  --light-2: #2d3748;
  --border: #334155;
  --muted: #475569;
  --text-sub: #94a3b8;
  --text: #cbd5e1;
  --text-dark: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] body {
  background: #0f172a;
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
}

[data-theme="dark"] .floating-badge {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

[data-theme="dark"] .project-browser {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .browser-bar {
  background: #0f172a;
}

[data-theme="dark"] .aura-mockup {
  background: #0f172a;
}

[data-theme="dark"] .cart-mockup {
  background: #0f172a;
}

[data-theme="dark"] .skill-card {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .project-card {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .project-card.small {
  background: #1e293b;
}

[data-theme="dark"] .small-preview {
  background: #0f172a;
}

[data-theme="dark"] .review-card {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .review-form {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .info-item {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .contact-card {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .contact-form-wrap {
  background: #1e293b;
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: #0f172a !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
  color-scheme: dark;
}

[data-theme="dark"] select option {
  background: #0f172a;
  color: #e2e8f0;
}

[data-theme="dark"] .footer {
  background: #020617;
}

[data-theme="dark"] .loader {
  background: #0f172a;
}

[data-theme="dark"] .hero-canvas {
  opacity: 0.6;
}

[data-theme="dark"] .tech-badge {
  background: #0f172a;
  border-color: #334155;
  color: #94a3b8;
}

[data-theme="dark"] .project-feature-tag {
  background: #0f172a;
  color: #94a3b8;
}

[data-theme="dark"] .filter-btn {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

[data-theme="dark"] .filter-btn.active {
  background: var(--primary);
  color: white;
}

[data-theme="dark"] .skills-tabs {
  background: #1e293b;
}

[data-theme="dark"] .skill-tab {
  color: #94a3b8;
}

[data-theme="dark"] .skill-tab.active {
  background: var(--primary);
  color: white;
}

[data-theme="dark"] .about-section {
  background: #1e293b;
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 999999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
  color: var(--text);
  padding: 0;
}

.theme-toggle:hover {
  background: var(--light-2);
  transform: scale(1.1) rotate(15deg);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.sun-icon {
  display: none;
}

.moon-icon {
  display: block;
}

[data-theme="dark"] .sun-icon {
  display: block;
}

[data-theme="dark"] .moon-icon {
  display: none;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.45);
  z-index: 998;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.back-to-top:hover {
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.6);
  transform: translateY(-4px);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* ===== CURRENTLY LEARNING ===== */
.currently-learning {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.learning-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 12px;
}

.learning-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.learning-badge {
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(6, 182, 212, 0.12));
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.25);
  animation: float 4s ease-in-out infinite;
}

.learning-badge:nth-child(2) {
  animation-delay: 0.4s;
}

.learning-badge:nth-child(3) {
  animation-delay: 0.8s;
}

.learning-badge:nth-child(4) {
  animation-delay: 1.2s;
}

.learning-badge:nth-child(5) {
  animation-delay: 1.6s;
}