/* ==========================================================================
   KAUSHAL FALDU PORTFOLIO - BRAND NEW AURORA EMERALD THEME 2026
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & COLOR PALETTE
   -------------------------------------------------------------------------- */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* Theme Tokens: Aurora Midnight Emerald */
  --bg-primary: #060911;
  --bg-secondary: #0d121f;
  --bg-surface: rgba(16, 23, 38, 0.75);
  --bg-surface-hover: rgba(26, 37, 60, 0.9);

  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(16, 185, 129, 0.4);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Vibrant Colors */
  --emerald-main: #10b981;
  --teal-main: #14b8a6;
  --purple-main: #8b5cf6;
  --gold-main: #f59e0b;
  --cyan-main: #06b6d4;

  /* Gradients */
  --gradient-aurora: linear-gradient(135deg, #10b981 0%, #14b8a6 40%, #8b5cf6 100%);
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);

  /* Glass & Shadows */
  --glass-backdrop: blur(24px);
  --shadow-normal: 0 12px 35px -10px rgba(0, 0, 0, 0.65);
  --glow-emerald: 0 0 25px rgba(16, 185, 129, 0.3);
  --glow-purple: 0 0 25px rgba(139, 92, 246, 0.3);

  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Theme Tokens */
html.light {
  --bg-primary: #f8fafc;
  --bg-secondary: #e2e8f0;
  --bg-surface: rgba(255, 255, 255, 0.88);
  --bg-surface-hover: rgba(241, 245, 249, 0.95);

  --border-color: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(16, 185, 129, 0.4);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  --shadow-normal: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

button, input, textarea {
  font-family: inherit;
  border: none;
  outline: none;
}

/* Custom Aurora Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--emerald-main), var(--purple-main));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--emerald-main);
}

/* --------------------------------------------------------------------------
   3. AURORA AMBIENT GLOW & CANVAS EFFECTS (GPU ACCELERATED)
   -------------------------------------------------------------------------- */
.bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
  opacity: 0.75;
}

.cursor-soft-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(20, 184, 166, 0.08) 50%, transparent 75%);
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: screen;
  will-change: transform;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.42;
  will-change: transform;
}






.glow-1 {
  width: 580px;
  height: 580px;
  top: -140px;
  left: -140px;
  background: radial-gradient(circle, var(--emerald-main), transparent 70%);
}

.glow-2 {
  width: 620px;
  height: 620px;
  top: 40%;
  right: -200px;
  background: radial-gradient(circle, var(--purple-main), transparent 70%);
  animation-delay: -6s;
}

.glow-3 {
  width: 520px;
  height: 520px;
  bottom: 5%;
  left: 10%;
  background: radial-gradient(circle, var(--teal-main), transparent 70%);
  animation-delay: -12s;
}

@keyframes floatAurora {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(50px, 40px) rotate(15deg); }
  100% { transform: translate(-30px, 60px) rotate(-10deg); }
}

/* --------------------------------------------------------------------------
   4. GLASSMORPHISM CARDS & CREATIVE HOVER
   -------------------------------------------------------------------------- */
.glass-card {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-normal);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-bounce), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transition: 0.6s ease;
  pointer-events: none;
}

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

.glass-card:hover {
  transform: translateY(-7px);
  border-color: var(--border-glow);
  box-shadow: var(--glow-emerald);
}

.gradient-text {
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

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

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

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--emerald-main);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 12px;
  padding: 5px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 20px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.85rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.section-line {
  width: 75px;
  height: 4px;
  background: var(--gradient-aurora);
  border-radius: 2px;
  margin: 18px auto 0;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

/* --------------------------------------------------------------------------
   5. NAVIGATION BAR
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--transition-normal), padding var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(6, 9, 17, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

html.light .navbar.scrolled {
  background: rgba(248, 250, 252, 0.92);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.5px;
}

.logo-code { color: var(--emerald-main); }
.logo-name { color: var(--text-primary); }
.logo-slash { color: var(--purple-main); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-aurora);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--emerald-main);
}

.nav-btn-cta {
  background: var(--gradient-aurora);
  color: #fff !important;
  padding: 8px 22px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.55);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle, .mobile-toggle {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.theme-toggle:hover, .mobile-toggle:hover {
  transform: scale(1.08);
  border-color: var(--emerald-main);
  color: var(--emerald-main);
}

.mobile-toggle {
  display: none;
}

/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  min-height: 90vh;
  padding-top: 135px;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.85rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.hero-description {
  color: var(--text-secondary);
  font-size: 1.08rem;
  margin-bottom: 30px;
  max-width: 580px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 38px;
}

.highlight-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform var(--transition-bounce), box-shadow var(--transition-normal);
}

.highlight-chip:hover {
  transform: translateY(-3px);
}

.chip-gold {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

.chip-gold .chip-arrow {
  font-size: 0.75rem;
  margin-left: 4px;
}

.chip-blue {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--emerald-main);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

.chip-purple {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c084fc;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.15);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary {
  background: var(--gradient-aurora);
  color: #fff;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.6);
}

.btn-secondary {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--emerald-main);
  color: var(--emerald-main);
}

.btn-icon-link {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.15rem;
}

.btn-icon-link:hover {
  border-color: var(--emerald-main);
  transform: translateY(-2px) scale(1.05);
}

/* Hero Code Window Card */
.hero-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.card-header-bar {
  background: rgba(0, 0, 0, 0.4);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.card-title-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-left: 10px;
}

.code-block {
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.65;
  overflow-x: auto;
}

.token-keyword { color: #f472b6; }
.token-variable { color: #38bdf8; }
.token-property { color: #a78bfa; }
.token-string { color: #34d399; }
.token-number { color: #fbbf24; }

.code-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 18px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.stat-mini .stat-num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--emerald-main);
}

.stat-mini .stat-lbl {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   7. ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.about-card {
  padding: 32px;
}

.about-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 22px;
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   8. WORK EXPERIENCE TIMELINE
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  max-width: 950px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 3px;
  background: linear-gradient(180deg, var(--emerald-main), var(--purple-main));
  box-shadow: 0 0 12px var(--emerald-main);
}

.timeline-item {
  position: relative;
  padding-left: 65px;
  margin-bottom: 45px;
}

.timeline-dot {
  position: absolute;
  left: 11px;
  top: 24px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--emerald-main);
  border: 4px solid var(--bg-primary);
  box-shadow: 0 0 14px var(--emerald-main);
}

.timeline-content {
  padding: 32px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.role-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
}

.company-name {
  font-size: 1.05rem;
  color: var(--emerald-main);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.role-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.experience-list {
  padding-left: 20px;
  margin-bottom: 22px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.experience-list li {
  margin-bottom: 10px;
}

.tech-stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 5px 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--text-primary);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   9. TECHNICAL SKILLS SECTION
   -------------------------------------------------------------------------- */
.skills-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.skills-category {
  padding: 30px;
}

.skills-category h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.skill-pill:hover {
  border-color: var(--emerald-main);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.edu-card .edu-details h4 {
  font-size: 1.25rem;
  font-family: var(--font-heading);
}

.edu-degree {
  color: var(--emerald-main);
  font-weight: 600;
  margin-bottom: 6px;
}

.edu-period {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   10. PROJECTS SECTION
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.project-card {
  overflow: hidden;
}

.project-banner {
  height: 170px;
  padding: 22px;
  display: flex;
  align-items: flex-end;
  position: relative;
}

.decentra-bg {
  background: linear-gradient(135deg, #059669, #3b82f6);
}

.spendmate-bg {
  background: linear-gradient(135deg, #7c3aed, #0d9488);
}

.project-tag {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.project-body {
  padding: 32px;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.project-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 22px 0;
}

.project-highlights li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  font-size: 0.93rem;
  display: block;
}

.project-highlights li i {
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--emerald-main);
}

/* --------------------------------------------------------------------------
   11. AWARDS & HONORS SECTION
   -------------------------------------------------------------------------- */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.award-card {
  padding: 32px;
  position: relative;
}

.spotlight-card {
  border-color: rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(16, 23, 38, 0.85));
}

.award-ribbon {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--gradient-gold);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.award-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.award-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.gold-glow {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.purple-glow {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.cyan-glow {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-main);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.award-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
}

.award-org {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.award-body {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.btn-gold {
  background: var(--gradient-gold);
  color: #fff;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-gold:hover {
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.chip-static {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--emerald-main);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   12. CODING PROFILES & BADGES
   -------------------------------------------------------------------------- */
.profiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 992px) {
  .profiles-grid {
    grid-template-columns: 1fr;
  }
}

.profile-card {
  padding: 32px;
}

.profile-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.profile-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
}

.username {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

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

.btn-outline:hover {
  border-color: var(--emerald-main);
  color: var(--emerald-main);
}

.profile-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}

.profile-stat-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffa116;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.badge-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.badge-section-header h4 {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.btn-text {
  background: none;
  color: var(--emerald-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-text:hover {
  text-decoration: underline;
}

.badge-group {
  margin-bottom: 22px;
}

.badge-group-title {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.badge-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
}

/* LeetCode Badge Hexagon Styling */
.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 92px;
  cursor: pointer;
  transition: transform var(--transition-bounce);
}

.badge-item:hover {
  transform: translateY(-6px) scale(1.05);
}

.badge-hexagon {
  width: 66px;
  height: 66px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.badge-hexagon.gold { background: linear-gradient(135deg, #f59e0b, #d97706); }
.badge-hexagon.green { background: linear-gradient(135deg, #10b981, #059669); }
.badge-hexagon.cyan { background: linear-gradient(135deg, #14b8a6, #0891b2); }

.badge-hexagon.teal-m { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.badge-hexagon.dark-m { background: linear-gradient(135deg, #334155, #1e293b); }
.badge-hexagon.coral-m { background: linear-gradient(135deg, #f43f5e, #be123c); }
.badge-hexagon.orange-m { background: linear-gradient(135deg, #f97316, #c2410c); }

.hexagon-inner {
  width: 60px;
  height: 60px;
  background: var(--bg-primary);
  clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.badge-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1;
}

.badge-sub {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.badge-name {
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}

.badge-date {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* CodeChef Details Card */
.codechef-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.codechef-stat-main {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.25);
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.icon-large {
  font-size: 2rem;
}

.codechef-stat-main h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.codechef-stat-main p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.codechef-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feature-tag {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-tag i {
  color: var(--emerald-main);
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   13. CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact {
  padding-bottom: 20px;
}

.contact .section-container {
  padding-bottom: 30px;
}

.contact-card-single {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px;
  text-align: center;
}


.info-list-horizontal {
  display: flex;
  justify-content: center;
  gap: 45px;
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.info-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.25);
}

.info-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.info-value {
  font-weight: 600;
  color: var(--text-primary);
}

.social-links-title {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.social-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.social-btn:hover {
  transform: translateY(-3px);
}

.social-btn.linkedin { background: #0077b5; color: #fff; box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3); }
.social-btn.leetcode { background: #ffa116; color: #fff; box-shadow: 0 4px 15px rgba(255, 161, 22, 0.3); }
.social-btn.codechef { background: #5b4638; color: #fff; box-shadow: 0 4px 15px rgba(91, 70, 56, 0.3); }

/* --------------------------------------------------------------------------
   14. BRAND ICON COLORS
   -------------------------------------------------------------------------- */
.brand-icon-java { color: #f89820; }
.brand-icon-spring { color: #6db33f; }
.brand-icon-angular { color: #dd0031; }
.brand-icon-react { color: #61dafb; }
.brand-icon-node { color: #339933; }
.brand-icon-python { color: #3776ab; }
.brand-icon-ts { color: #3178c6; }
.brand-icon-js { color: #f7df1e; }
.brand-icon-cpp { color: #00599c; }
.brand-icon-sql { color: #00758f; }
.brand-icon-postgres { color: #4169e1; }
.brand-icon-azure { color: #0089d6; }
.brand-icon-aws { color: #ff9900; }
.brand-icon-git { color: #f05032; }
.brand-icon-html { color: #e34f26; }
.brand-icon-css { color: #1572b6; }
.brand-icon-pytorch { color: #ee4c2c; }
.brand-icon-google { color: #ea4335; }
.brand-icon-linkedin { color: #0077b5; }
.brand-icon-leetcode { color: #ffa116; }
.brand-icon-codechef { color: #5b4638; fill: #5b4638; }

.icon-cc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #5b4638;
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.72em;
  width: 1.4em;
  height: 1.4em;
  border-radius: 4px;
  line-height: 1;
  letter-spacing: -0.5px;
  vertical-align: middle;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.icon-java { background: rgba(248, 152, 32, 0.15); color: #f89820; border: 1px solid rgba(248, 152, 32, 0.3); }
.icon-angular { background: rgba(221, 0, 49, 0.15); color: #dd0031; border: 1px solid rgba(221, 0, 49, 0.3); }
.icon-ai { background: rgba(16, 185, 129, 0.15); color: var(--emerald-main); border: 1px solid rgba(16, 185, 129, 0.3); }
.icon-gold { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.icon-code { color: var(--emerald-main); }
.icon-server { color: #6db33f; }
.icon-laptop { color: #dd0031; }
.icon-cloud { color: #0089d6; }
.icon-edu { color: #a78bfa; }

/* --------------------------------------------------------------------------
   15. FOOTER & MODAL
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 25px 0;
  margin-top: 15px;
}


.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.footer-links a:hover {
  color: var(--emerald-main);
  border-color: var(--emerald-main);
  transform: translateY(-2px);
}

/* MODAL POPUP */
.modal-overlay {
  position.fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 35px;
  position: relative;
  transform: translateY(30px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
}

.modal-close {
  background: none;
  font-size: 1.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.modal-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 20px;
}

/* --------------------------------------------------------------------------
   16. RESPONSIVE BREAKPOINTS (TABLETS & MOBILE PHONES)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    clip-path: circle(0% at 100% 0);
    transition: clip-path 0.4s ease-in-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .nav-menu.active {
    clip-path: circle(140% at 100% 0);
  }

  .mobile-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .section-container {
    padding: 50px 16px;
    max-width: 100%;
  }

  .section-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 35px;
  }

  .section-tag {
    margin: 0 auto 10px auto;
  }

  .section-title {
    font-size: 2.1rem;
    text-align: center;
    width: 100%;
  }

  .section-subtitle {
    font-size: 0.98rem;
    text-align: center;
    max-width: 90%;
    margin: 0 auto;
  }

  .section-line {
    margin: 14px auto 0 auto;
  }

  /* Hero Section Centering */
  .hero {
    padding-top: 100px;
    min-height: auto;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .hero-title {
    font-size: 2.2rem;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    text-align: center;
  }

  .hero-description {
    font-size: 0.95rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-highlights {
    gap: 8px;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .highlight-chip {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .hero-cta-group {
    gap: 10px;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

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

  .code-block {
    padding: 14px;
    font-size: 0.78rem;
    text-align: left;
  }

  .code-card-stats {
    padding: 12px 10px;
    gap: 6px;
  }

  .stat-mini .stat-num {
    font-size: 1.1rem;
  }

  .stat-mini .stat-lbl {
    font-size: 0.7rem;
  }

  /* Timeline adjustment for mobile */
  .timeline::before {
    left: 14px;
  }

  .timeline-dot {
    left: 5px;
    top: 20px;
    width: 18px;
    height: 18px;
  }

  .timeline-item {
    padding-left: 36px;
    margin-bottom: 30px;
  }

  .timeline-content {
    padding: 20px 16px;
  }

  .role-title {
    font-size: 1.15rem;
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .role-meta {
    align-items: flex-start;
  }

  /* Grids adjustments */
  .about-grid,
  .skills-wrapper,
  .awards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .project-body,
  .award-card,
  .about-card,
  .profile-card,
  .skills-category {
    padding: 20px 16px;
  }

  .profile-card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .profile-brand {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .profile-stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .profile-stat-box {
    padding: 10px 6px;
  }

  .stat-value {
    font-size: 1.15rem;
  }

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

  .codechef-features {
    grid-template-columns: 1fr;
  }

  .info-list-horizontal {
    gap: 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .contact-card-single {
    padding: 24px 16px;
    margin: 0 auto;
    text-align: center;
  }

  .social-links-grid {
    justify-content: center;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .btn-icon-link {
    width: 44px;
    height: 44px;
  }

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

  .highlight-chip {
    width: 100%;
    justify-content: center;
  }

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