/* ==========================================================================
   CodeCraft Portfolio — Dark Glassmorphic Modern Theme
   Matching Template Design with Zero Skill Percentages
   ========================================================================== */

:root {
  /* Colors */
  --bg-main: #060813;
  --bg-secondary: #0a0e22;
  --bg-card: rgba(14, 19, 44, 0.75);
  --bg-card-hover: rgba(22, 29, 64, 0.85);
  --bg-card-solid: #0d122b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(99, 102, 241, 0.16);
  --border-card-hover: rgba(139, 92, 246, 0.45);

  /* Accents */
  --primary-purple: #6366f1;
  --primary-violet: #8b5cf6;
  --primary-accent: #7c3aed;
  --accent-cyan: #38bdf8;
  --accent-pink: #ec4899;
  --accent-green: #22c55e;
  --accent-orange: #f97316;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-glow: radial-gradient(circle, rgba(124, 58, 237, 0.35) 0%, rgba(99, 102, 241, 0.15) 50%, transparent 75%);
  --gradient-card: linear-gradient(180deg, rgba(20, 26, 58, 0.6) 0%, rgba(11, 15, 36, 0.7) 100%);
  --gradient-text: linear-gradient(135deg, #a78bfa 0%, #818cf8 50%, #c084fc 100%);

  /* Text Colors */
  --text-white: #ffffff;
  --text-light: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dark-muted: #64748b;
  --text-purple: #a5b4fc;

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

  /* Layout */
  --max-width: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-button: 0 8px 25px -4px rgba(99, 102, 241, 0.55);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 50px -5px rgba(124, 58, 237, 0.35);
}

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

/* ==========================================================================
   Page Loading Screen (Minimal Plain Text Typing Effect)
   ========================================================================== */

body.loader-locked {
  overflow: hidden !important;
}

.page-loader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  background-color: #060813;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-center-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  user-select: none;
}

.loader-code-text {
  color: #ffffff;
}

.loader-cursor {
  display: inline-block;
  width: clamp(2px, 0.08em, 4px);
  height: 1.15em;
  background-color: #ffffff;
  margin-left: clamp(4px, 0.15em, 8px);
  vertical-align: -0.08em;
  animation: blinkCursor 0.75s infinite step-start;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Ambient Glows */
.ambient-glow-1 {
  position: fixed;
  top: -150px;
  right: 10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-2 {
  position: fixed;
  bottom: 10%;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  width: min(var(--max-width), calc(100% - 3rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Base Typography */
a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* Badges / Pills */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-full);
  color: #c4b5fd;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.pill-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
}

/* Section Headings */
.section-header-center {
  text-align: center;
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  text-align: center;
}

.section-desc-note {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 0.5rem auto 0.8rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
  text-wrap: balance;
}

.section-accent-line {
  width: 50px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  margin: 0.8rem auto 0;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(99, 102, 241, 0.7);
  color: var(--text-white);
}

.btn-outline {
  background: rgba(16, 22, 50, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-light);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(30, 41, 80, 0.8);
  border-color: rgba(139, 92, 246, 0.5);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-hire {
  padding: 0.55rem 1.3rem;
  font-size: 0.88rem;
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
}

.btn-hire:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.6);
}

.icon-arrow-diagonal {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.btn:hover .icon-arrow-diagonal {
  transform: translate(2px, -2px);
}

/* ==========================================================================
   Navigation Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 8, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.1rem 0;
  padding-top: max(1.1rem, env(safe-area-inset-top));
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

.brand-logo .logo-brackets {
  color: #818cf8;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.05em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.3rem 0;
}

.nav-link:hover {
  color: var(--text-white);
}

.nav-link.active {
  color: var(--text-white);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  padding: 0.55rem;
  min-width: 44px;
  min-height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 120;
}

.mobile-menu-btn .menu-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.mobile-menu-btn.open .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.open .menu-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: visible;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-white);
  margin-bottom: 1.25rem;
}

.highlight-purple {
  background: linear-gradient(135deg, #a78bfa 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

/* Tech Badges Row */
.tech-row-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.tech-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-dark-muted);
  text-transform: uppercase;
}

.tech-icons-list {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tech-badge-item {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(16, 22, 50, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  position: relative;
  cursor: pointer;
}

.tech-badge-item:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.25);
  background: rgba(25, 34, 75, 0.9);
}

.tech-badge-item svg,
.tech-badge-item img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

/* Hero Visual / Avatar & Graphic */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 590px;
}

/* Vibrant Purple Aura behind avatar — Larger & More Prominent */
.avatar-aura-circle {
  width: 530px;
  height: 530px;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 45%, #8b5cf6 0%, #6d28d9 45%, #4c1d95 85%, #2e1065 100%);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  box-shadow: 0 0 130px rgba(124, 58, 237, 0.65), inset 0 0 60px rgba(255, 255, 255, 0.2);
}

.avatar-aura-circle::before {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px dashed rgba(167, 139, 250, 0.32);
  pointer-events: none;
}

.avatar-figure {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* User's Real Profile Photo in the Purple Glowing Circle — Much Larger */
.developer-photo-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

.developer-photo {
  width: 100%;
  max-width: 530px;
  height: 600px;
  object-fit: cover;
  object-position: top center;
  position: relative;
  z-index: 2;
  border-radius: 0 0 265px 265px;
  filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.75));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

.developer-photo:hover {
  transform: scale(1.025);
  filter: drop-shadow(0 30px 50px rgba(124, 58, 237, 0.55));
}

.developer-illustration {
  width: 96%;
  max-width: 430px;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.65));
}

/* Doodle arrow */
.doodle-arrow {
  position: absolute;
  bottom: 25px;
  left: -40px;
  z-index: 5;
  width: 55px;
  height: 55px;
  pointer-events: none;
}

/* Floating Code Card — Shifted Right to Never Block Developer Face */
.floating-code-card {
  position: absolute;
  top: 30px;
  right: -95px;
  z-index: 10;
  width: 250px;
  background: rgba(10, 14, 34, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.85rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  transition: transform 0.3s ease, border-color 0.3s ease, right 0.3s ease;
}

.floating-code-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.5);
}

.code-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.45rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
  font-size: 0.68rem;
}

.code-card-header .code-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #cbd5e1;
}

.code-card-header .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.code-snippet pre {
  margin: 0;
  color: #e2e8f0;
}

.token-keyword { color: #c084fc; font-weight: 600; }
.token-var { color: #67e8f9; }
.token-prop { color: #f87171; }
.token-string { color: #fde047; }
.token-bracket { color: #94a3b8; }

/* ==========================================================================
   About Me & Stats Section
   ========================================================================== */
.about-section {
  padding: 5rem 0;
  position: relative;
}

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

.about-heading {
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin-bottom: 1.25rem;
}

.about-paragraph {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* 2x2 Stats Grid */
.stats-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.stat-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-card-hover);
  box-shadow: 0 12px 30px -8px rgba(99, 102, 241, 0.25);
}

.stat-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a78bfa;
}

.stat-icon-wrapper svg {
  width: 22px;
  height: 22px;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

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

/* ==========================================================================
   Leadership, Community & Creative Journey (Hackathons, IEEE & Music)
   ========================================================================== */
.leadership-activities-wrapper {
  margin-top: 4rem;
  padding-top: 3.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.activities-header {
  margin-bottom: 2.2rem;
  text-align: left;
}

.activities-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.activities-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.activities-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.activity-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.activity-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: var(--border-card-hover);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(99, 102, 241, 0.22);
}

.activity-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.activity-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.activity-card:hover .activity-icon {
  transform: scale(1.08) rotate(3deg);
}

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

.icon-msclub {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.35) 100%);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #a78bfa;
}

.icon-ieee {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25) 0%, rgba(59, 130, 246, 0.35) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.icon-music {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.25) 0%, rgba(168, 85, 247, 0.35) 100%);
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: #f472b6;
}

.activity-card-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.tag-hackathon {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.tag-leadership {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.tag-music {
  background: rgba(236, 72, 153, 0.15);
  color: #f9a8d4;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.activity-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.activity-subtitle {
  font-size: 0.84rem;
  font-weight: 600;
  color: #818cf8;
  margin-bottom: 0.85rem;
}

.activity-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Soundwave visual animation for music card */
.soundwave-box {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.soundwave-bar {
  width: 3px;
  background: #f472b6;
  border-radius: 2px;
  animation: soundwaveBounce 1.2s ease-in-out infinite alternate;
}

.soundwave-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.soundwave-bar:nth-child(2) { height: 16px; animation-delay: 0.3s; }
.soundwave-bar:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.soundwave-bar:nth-child(4) { height: 18px; animation-delay: 0.4s; }
.soundwave-bar:nth-child(5) { height: 8px; animation-delay: 0.15s; }

@keyframes soundwaveBounce {
  0% { transform: scaleY(0.4); opacity: 0.6; }
  100% { transform: scaleY(1); opacity: 1; }
}

.music-placeholder-slot {
  margin-top: auto;
  padding: 0.85rem 1rem;
  background: rgba(236, 72, 153, 0.08);
  border: 1px dashed rgba(236, 72, 153, 0.35);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.music-slot-text {
  font-size: 0.78rem;
  color: #fbcfe8;
  font-weight: 600;
  line-height: 1.4;
}

.music-slot-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  background: rgba(236, 72, 153, 0.2);
  border-radius: var(--radius-full);
  color: #f472b6;
  white-space: nowrap;
}

/* ==========================================================================
   Skills Section (Technologies I Master - NO PERCENTAGES)
   ========================================================================== */
.skills-section {
  padding: 5rem 0 6rem;
  position: relative;
}

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

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skill-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skill-icon-box {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skill-icon-box svg,
.skill-icon-box img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.skill-icon-box img.logo-on-dark {
  filter: invert(1);
}

.skill-name {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-white);
}

/* Modern gradient skill level bar — NO PERCENTAGE NUMBERS */
.skill-bar-track {
  width: 100%;
  height: 7px;
  background: rgba(22, 28, 64, 0.8);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.skill-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 60%, #c084fc 100%);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
  position: relative;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Full Tech Stack Showcase (Matching Uploaded Stack Image)
   ========================================================================== */
.tech-stack-section-wrapper {
  margin-top: 3.5rem;
  background: rgba(12, 16, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2.4rem;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.tech-stack-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.tech-stack-main-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.01em;
}

.tech-stack-main-title .laptop-icon {
  font-size: 1.55rem;
}

/* Category filter buttons for tech stack */
.stack-category-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stack-cat-btn {
  background: rgba(22, 29, 64, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.stack-cat-btn:hover {
  color: var(--text-white);
  border-color: rgba(139, 92, 246, 0.35);
}

.stack-cat-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

/* All 38 Badges Grid / Cloud matching the user's banner layout */
.tech-stack-badge-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.65rem;
}

/* Base style for every colorful tech badge */
.tech-badge-card {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.85rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  user-select: none;
}

.tech-badge-card:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  filter: brightness(1.15);
}

.tech-badge-card svg,
.tech-badge-card img {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.tech-badge-card img.logo-on-dark {
  filter: invert(1);
}

/* Exact Brand Badge Colors from image */
.badge-cpp { background: #00599c; color: #ffffff; }
.badge-csharp { background: #239120; color: #ffffff; }
.badge-html5 { background: #e34f26; color: #ffffff; }
.badge-java { background: #ed8b00; color: #ffffff; }
.badge-javascript { background: #f7df1e; color: #000000; }
.badge-php { background: #777bb4; color: #ffffff; }
.badge-powershell { background: #5391fe; color: #ffffff; }
.badge-python { background: #3776ab; color: #ffffff; }
.badge-typescript { background: #3178c6; color: #ffffff; }

.badge-swift { background: #fa7343; color: #ffffff; }
.badge-aws { background: #ff9900; color: #111111; }
.badge-azure { background: #0078d4; color: #ffffff; }
.badge-cloudflare { background: #f38020; color: #ffffff; }
.badge-googlecloud { background: #4285f4; color: #ffffff; }
.badge-render { background: #46e3b7; color: #111111; }
.badge-vercel { background: #000000; color: #ffffff; border-color: rgba(255, 255, 255, 0.25); }
.badge-netlify { background: #00c7b7; color: #111111; }

.badge-digitalocean { background: #0080ff; color: #ffffff; }
.badge-docker { background: #2496ed; color: #ffffff; }
.badge-dotnet { background: #512bd4; color: #ffffff; }
.badge-anaconda { background: #44a833; color: #ffffff; }
.badge-angular { background: #dd0031; color: #ffffff; }
.badge-expo { background: #000020; color: #ffffff; border-color: rgba(255, 255, 255, 0.2); }
.badge-express { background: #404d59; color: #ffffff; }
.badge-flutter { background: #02569b; color: #ffffff; }

.badge-next { background: #000000; color: #ffffff; border-color: rgba(255, 255, 255, 0.25); }
.badge-node { background: #339933; color: #ffffff; }
.badge-reactnative { background: #61dafb; color: #000000; }
.badge-spring { background: #6db33f; color: #ffffff; }
.badge-vite { background: #646cff; color: #ffffff; }
.badge-apache { background: #d22128; color: #ffffff; }
.badge-nginx { background: #009639; color: #ffffff; }
.badge-firebase { background: #ffca28; color: #000000; }

.badge-mongodb { background: #47a248; color: #ffffff; }
.badge-mysql { background: #4479a1; color: #ffffff; }
.badge-prisma { background: #2d3748; color: #ffffff; }
.badge-postgres { background: #4169e1; color: #ffffff; }
.badge-numpy { background: #013243; color: #ffffff; }
.badge-github { background: #181717; color: #ffffff; border-color: rgba(255, 255, 255, 0.2); }
.badge-cypress { background: #ffffff; color: #000000; }
.badge-jasmine { background: #8a4182; color: #ffffff; }

/* ==========================================================================
   Featured Projects Section
   ========================================================================== */
.projects-section {
  padding: 5rem 0 6rem;
  position: relative;
}

/* Filter tabs */
.project-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.8rem;
  flex-wrap: wrap;
}

.filter-tab {
  background: rgba(14, 19, 44, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-tab:hover {
  color: var(--text-white);
  border-color: rgba(139, 92, 246, 0.3);
}

.filter-tab.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.projects-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-bottom: 2.5rem;
}

/* Horizontal Scrollable Carousel for Featured Projects */
.projects-carousel-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 1.5rem;
}

.projects-carousel-track {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 1.8rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.75rem 0.25rem 1.75rem;
  margin-bottom: 0 !important;
}

.projects-carousel-track::-webkit-scrollbar {
  display: none;
}

.projects-carousel-track .project-card {
  flex: 0 0 calc((100% - 3.6rem) / 3);
  min-width: 310px;
  max-width: 420px;
  scroll-snap-align: start;
}

@media (max-width: 1100px) {
  .projects-carousel-track .project-card {
    flex: 0 0 calc((100% - 1.8rem) / 2);
    min-width: 290px;
  }
}

@media (max-width: 680px) {
  .projects-carousel-track .project-card {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
  }
}

/* Side Navigation Floating Arrows */
.carousel-side-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(12, 16, 40, 0.92);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 18px rgba(139, 92, 246, 0.3);
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.carousel-side-arrow:hover {
  background: rgba(139, 92, 246, 0.35);
  border-color: #8b5cf6;
  color: #ffffff;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(139, 92, 246, 0.5);
}

.carousel-side-arrow.prev {
  left: -22px;
}

.carousel-side-arrow.next {
  right: -22px;
}

@media (max-width: 1024px) {
  .carousel-side-arrow.prev {
    left: 2px;
  }
  .carousel-side-arrow.next {
    right: 2px;
  }
}

@media (max-width: 680px) {
  .carousel-side-arrow {
    display: none;
  }
}

/* Bottom Controls with Arrows & Dots */
.carousel-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.carousel-arrow-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(18, 24, 56, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #c4b5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.carousel-arrow-btn:hover {
  background: rgba(139, 92, 246, 0.3);
  border-color: #8b5cf6;
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.35);
}

.carousel-arrow-btn:disabled,
.carousel-side-arrow:disabled {
  opacity: 0.28;
  cursor: not-allowed;
  pointer-events: none;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  backdrop-filter: blur(12px);
}

.project-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-card-hover);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(99, 102, 241, 0.25);
}

.project-preview-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  background: #080b1e;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.project-number-badge {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 5;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-white);
  background: rgba(10, 14, 34, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.project-mockup-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover .project-mockup-svg {
  transform: scale(1.03);
}

.project-info {
  padding: 1.4rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #818cf8;
  margin-top: auto;
  transition: all 0.2s ease;
}

.project-link:hover {
  color: #c4b5fd;
  gap: 0.65rem;
}

/* Production & Live Deployment Status Badges */
.production-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.28);
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.65rem;
  width: fit-content;
  letter-spacing: 0.02em;
}

.production-status-tag.international {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(52, 211, 153, 0.3);
}

.production-status-tag.local {
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
}

.live-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.8);
  }
}

/* Pagination Dots */
.pagination-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.pagination-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.25s ease;
}

.pagination-dot.active {
  width: 22px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}

/* Expanded projects grid */
.all-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* ==========================================================================
   Bottom Section: CTA, Testimonial, Follow / Contact (3 Columns)
   ========================================================================== */
.bottom-section {
  padding: 4rem 0 5rem;
  position: relative;
}

.bottom-grid-3col {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1fr;
  gap: 1.8rem;
  align-items: stretch;
}

.contact-container-centered {
  max-width: 620px;
  margin: 0 auto;
}

.contact-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.contact-card-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.bottom-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.bottom-card:hover {
  border-color: var(--border-card-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 14px 35px -8px rgba(99, 102, 241, 0.2);
}

/* Col 1: Let's Work Together */
.cta-content .cta-heading {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.cta-content .cta-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

/* Col 2: Testimonial */
.testimonial-card {
  position: relative;
}

.quote-icon {
  font-size: 3rem;
  line-height: 1;
  color: #818cf8;
  font-family: Georgia, serif;
  margin-bottom: 0.4rem;
  opacity: 0.9;
}

.quote-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #cbd5e1;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #8b5cf6;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

.author-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-white);
}

.author-role {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Col 3: Follow Me & Contact */
.bottom-card.follow-contact-card {
  align-items: center;
  text-align: center;
  padding: 3rem 2.5rem;
}

.bottom-card.follow-contact-card .social-links-row {
  justify-content: center;
  margin-bottom: 1.5rem;
}

.bottom-card.follow-contact-card .contact-info-list {
  align-items: center;
  margin-top: 0;
}

.follow-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-dark-muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.social-links-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.8rem;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(20, 27, 60, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: all 0.25s ease;
}

.social-icon-btn:hover {
  background: var(--gradient-primary);
  color: var(--text-white);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.social-icon-btn svg {
  width: 17px;
  height: 17px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.contact-info-item:hover {
  color: #a78bfa;
}

.contact-icon {
  color: #818cf8;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Footer
   ========================================================================= */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.6rem 0;
  font-size: 0.82rem;
  color: var(--text-dark-muted);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-love .heart {
  color: #ef4444;
  display: inline-block;
  margin: 0 0.15rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1240px) {
  .avatar-aura-circle {
    width: 460px;
    height: 460px;
  }
  .developer-photo {
    max-width: 460px;
    height: 520px;
    border-radius: 0 0 230px 230px;
  }
  .floating-code-card {
    right: -15px;
    top: 20px;
  }
}

@media (max-width: 1024px) {
  .container {
    width: min(var(--max-width), calc(100% - 2.4rem));
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.4rem;
  }

  .hero-content {
    align-items: center;
  }

  .hero-description {
    max-width: 600px;
  }

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

  .tech-row-wrapper {
    align-items: center;
  }

  .hero-visual {
    min-height: 0;
    overflow: hidden;
  }

  .floating-code-card {
    right: 8px;
    left: auto;
    max-width: min(250px, 70vw);
  }

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

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

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

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

  .bottom-grid-3col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tech-stack-header,
  .stack-toolbar {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(var(--max-width), calc(100% - 1.5rem));
  }

  .site-header {
    padding: 0.7rem 0;
    padding-top: max(0.7rem, env(safe-area-inset-top));
  }

  .btn-hire {
    display: none;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6, 8, 19, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
    gap: 0.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-height: calc(100dvh - 100%);
    overflow-y: auto;
  }

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

  .nav-link {
    padding: 0.85rem 0.4rem;
    font-size: 1.05rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-link.active::after {
    display: none;
  }

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

  body.nav-open {
    overflow: hidden;
  }

  .hero-section,
  .about-section,
  .skills-section,
  .projects-section,
  .bottom-section {
    padding: 2.4rem 0;
  }

  .hero-title {
    font-size: clamp(1.85rem, 8.4vw, 2.6rem);
  }

  .hero-description {
    font-size: 0.98rem;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 2rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
    white-space: normal;
  }

  .avatar-aura-circle {
    width: min(340px, 86vw);
    height: min(340px, 86vw);
  }

  .developer-photo {
    max-width: min(340px, 86vw);
    height: min(390px, 92vw);
    border-radius: 0 0 170px 170px;
  }

  .doodle-arrow,
  .photo-change-btn {
    display: none;
  }

  .floating-code-card {
    position: static;
    margin: 1.25rem auto 0;
    width: 100%;
    max-width: 100%;
    text-align: left;
  }

  .code-snippet pre {
    overflow-x: auto;
    white-space: pre;
    font-size: 0.68rem;
  }

  .section-header-center {
    margin-bottom: 2rem;
  }

  .section-title,
  .about-heading,
  .activities-title {
    font-size: clamp(1.45rem, 6vw, 2rem);
  }

  .stats-grid-2x2 {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1.1rem 0.9rem;
  }

  .stat-number {
    font-size: 1.35rem;
  }

  .stat-label {
    font-size: 0.78rem;
  }

  .skills-grid-3col,
  .projects-grid-3col,
  .activities-grid-3col,
  .all-projects-grid {
    grid-template-columns: 1fr;
  }

  .project-filters,
  .stack-category-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.35rem;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .project-filters::-webkit-scrollbar,
  .stack-category-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-tab,
  .stack-cat-btn {
    flex: 0 0 auto;
    min-height: 40px;
  }

  .tech-stack-badge-cloud,
  .skills-pill-cloud {
    justify-content: flex-start;
  }

  .tech-badge-card {
    font-size: 0.68rem;
    padding: 0.38rem 0.7rem;
  }

  .bottom-card,
  .bottom-card.follow-contact-card {
    padding: 1.4rem 1.15rem;
  }

  .contact-info-item {
    flex-wrap: wrap;
    justify-content: center;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .loader-center-text {
    white-space: normal;
    text-align: center;
    font-size: clamp(1.1rem, 6vw, 2rem);
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 1.1rem);
  }

  .hero-actions {
    gap: 0.7rem;
  }

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

  .music-placeholder-slot {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-info {
    padding: 1.15rem 1.05rem 1.2rem;
  }
}

@media (hover: none) {
  .btn-primary:hover,
  .btn-outline:hover,
  .stat-card:hover,
  .activity-card:hover,
  .project-card:hover,
  .bottom-card:hover,
  .tech-badge-item:hover,
  .tech-badge-card:hover,
  .developer-photo:hover {
    transform: none;
  }

  .project-card:hover .project-mockup-svg {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
