/* ==========================================================================
   NIKHIL — PREMIUM PERSONAL PORTFOLIO DESIGN SYSTEM
   Theme: Deep Dark (Apple x Linear x Vercel x Awwwards Aesthetic)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Unified Crimson Red Theme Palette Across All Pages */
  --bg-hero: #b80f1e;
  --bg-primary: #a80c1b;
  --bg-secondary: #960917;
  --bg-tertiary: #840613;
  --bg-card: rgba(18, 2, 5, 0.72);
  --bg-card-hover: rgba(32, 4, 9, 0.88);
  --bg-glass: rgba(16, 2, 5, 0.78);

  --border-subtle: rgba(255, 255, 255, 0.15);
  --border-bright: rgba(255, 255, 255, 0.28);
  --border-accent: rgba(255, 255, 255, 0.45);

  --text-primary: #ffffff;
  --text-secondary: #f8fafc;
  --text-muted: #e2e8f0;
  --text-dim: #cbd5e1;

  --accent-red: #c8102e;
  --accent-red-bright: #e61937;
  --accent-blue: #ffffff;
  --accent-violet: #ffffff;
  --accent-amber: #ffffff;
  --accent-emerald: #ffffff;
  --accent-crimson: #ffffff;

  /* Typography */
  --font-bebas: 'Bebas Neue', 'Outfit', sans-serif;
  --font-syne: 'Syne', 'Outfit', sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max-width: 1350px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions & Shadows */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow-blue: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow-violet: 0 10px 30px rgba(0, 0, 0, 0.4);

  /* Custom Rounded Triangular Cursors */
  --custom-cursor-black: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none'%3E%3Cpath d='M 6.8 3.2 C 5.0 2.2 3.0 3.8 3.0 6.0 L 3.2 21.6 C 3.2 24.2 6.0 25.8 8.2 24.4 C 11.0 22.6 14.2 19.2 22.4 16.6 C 24.8 15.8 25.2 12.8 23.2 11.2 L 8.4 3.4 C 7.9 3.1 7.3 3.0 6.8 3.2 Z' fill='%23000000' stroke='%23ffffff' stroke-width='1.2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") 4 4, auto;

  --custom-cursor-red: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none'%3E%3Cpath d='M 6.8 3.2 C 5.0 2.2 3.0 3.8 3.0 6.0 L 3.2 21.6 C 3.2 24.2 6.0 25.8 8.2 24.4 C 11.0 22.6 14.2 19.2 22.4 16.6 C 24.8 15.8 25.2 12.8 23.2 11.2 L 8.4 3.4 C 7.9 3.1 7.3 3.0 6.8 3.2 Z' fill='%23ff1f38' stroke='%23ffffff' stroke-width='1.2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") 4 4, auto;
}

/* Base Reset & Universal Custom Cursor */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: var(--custom-cursor-black);
}

html,
body,
a,
button,
input,
select,
textarea,
.btn,
.nav-link,
.social-icon-link,
[role="button"] {
  cursor: var(--custom-cursor-black);
}

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

body {
  background: linear-gradient(180deg, #b80f1e 0%, #a40b19 25%, #940816 60%, #840613 100%);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #262636;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3b3b54;
}

/* Selection */
::selection {
  background: rgba(56, 189, 248, 0.3);
  color: #ffffff;
}

/* Canvas Background */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Ambient Cursor Glow (Subtle Minimal White) */
.cursor-glow {
  position: fixed;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out;
  z-index: 1;
  opacity: 0.6;
}

/* Container Utility */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.section {
  padding: 4rem 0;
  position: relative;
  z-index: 2;
}

section[id] {
  scroll-margin-top: 60px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-weight: 700;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 40%, #ffd4d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-alt {
  background: linear-gradient(135deg, #ffffff 0%, #fecdd3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 650px;
  margin-bottom: 3.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: inherit;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  outline: none;
}

.btn-primary {
  background: #000000;
  color: #ffffff;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
  background: #ffffff;
  color: #000000;
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  border-color: #ffffff;
}

.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 0;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.badge-blue {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
  color: var(--accent-blue);
}

.badge-violet {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.25);
  color: var(--accent-violet);
}

/* Status Indicator Dot */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  color: var(--accent-emerald);
  font-size: 0.8rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* ==========================================================================
   VERTICAL SOCIAL SIDEBAR (LOCKED TO 1ST PAGE HERO ONLY)
   ========================================================================== */
.hero-social-sidebar {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 100;
}

.social-icon-link {
  color: #ffffff;
  opacity: 0.9;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

.social-icon-link svg, .social-icon-link i {
  width: 20px;
  height: 20px;
}

.social-icon-link:hover {
  opacity: 1;
  transform: scale(1.15);
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   FLOATING TOP NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: transparent;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 3.5rem;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(18, 3, 5, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
  height: 70px;
}

.nav-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-bebas);
  font-size: 2.2rem;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.05em;
  font-weight: 700;
  line-height: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: inherit;
  padding: 0.4rem;
  border-radius: 8px;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 5rem;
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(22, 4, 7, 0.96);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  z-index: 999;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: var(--transition-smooth);
}

.mobile-drawer.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-drawer .nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   HERO SECTION (VIBRANT CRIMSON RED REFERENCE THEME)
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #b80f1e 0%, #a80c1b 55%, #940816 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6.5rem 3.5rem 5rem 6.5rem;
  overflow: hidden;
}

/* Subtle background accent glow */
.hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 15%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.hero-wrapper {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-main-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 780px;
}

/* ==========================================================================
   HERO CHOREOGRAPHED ENTRANCE ANIMATIONS
   1st: "I am" slides in from left (0.05s)
   2nd: "Nikhil" slides in from left (0.22s)
   3rd: Character portrait slides in from right (0.38s)
   Followed by subtitle & action buttons (0.50s)
   ========================================================================== */
@keyframes heroSlideInLeft {
  0% {
    opacity: 0;
    transform: translate3d(-70px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroSlideInRight {
  0% {
    opacity: 0;
    transform: translate3d(80px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroFadeInUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* 1st: "I am" slides in from left */
.hero-iam-wrapper {
  animation: heroSlideInLeft 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
  will-change: transform, opacity;
}

/* "I am" Text Styling */
.hero-iam-text {
  font-family: var(--font-syne), var(--font-heading);
  font-size: clamp(3.8rem, 7.5vw, 6.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin: 0;
  letter-spacing: -0.01em;
}

/* 2nd: "Nikhil" slides in from left */
.hero-name-wrapper {
  animation: heroSlideInLeft 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
  will-change: transform, opacity;
}

/* "Nikhil" Massive Heavy Solid Black Display Typography */
.hero-name-giant {
  font-family: var(--font-bebas), var(--font-heading);
  font-size: clamp(6.2rem, 15vw, 11.5rem);
  font-weight: 900;
  color: #000000; /* Pure solid black in home crimson screen */
  line-height: 0.85;
  margin: 0.05em 0 0.15em -0.03em;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: none;
  cursor: inherit;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.5s ease, text-shadow 0.5s ease;
}

.hero-name-giant:hover {
  transform: scale(1.02);
  color: #000000;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Subtitle Wrapper Aligned Left-to-Right */
.hero-subtitle-wrapper {
  width: 100%;
  max-width: 620px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: -0.5rem;
  margin-bottom: 2.2rem;
  height: clamp(2.4rem, 4.5vw, 3.2rem);
  animation: heroFadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.48s both;
  will-change: transform, opacity;
}

.hero-subtitle-text {
  font-family: var(--font-syne), var(--font-heading);
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  text-transform: lowercase;
  letter-spacing: -0.01em;
  text-align: left;
  line-height: 1;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

#typing-text {
  display: inline-block;
  min-height: 1em;
  line-height: 1;
  white-space: nowrap;
}

/* Hero Action Buttons */
.hero-actions-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  animation: heroFadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
  will-change: transform, opacity;
}

.btn-primary-hero {
  background: #000000;
  color: #ffffff;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-primary-hero:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.btn-secondary-hero {
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-secondary-hero:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* 3rd: Character Portrait Image — slides in from right */
.hero-portrait-img {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 100%;
  width: auto;
  object-fit: cover;
  object-position: top center;
  z-index: 3;
  pointer-events: none;
  /* Soft fade on left edge only so it blends into hero text area */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 8%, #000 20%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 8%, #000 20%);
  animation: heroSlideInRight 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.38s both;
  will-change: transform, opacity;
  transition: transform 0.3s ease;
}

.hero-portrait-img:hover {
  transform: scale(1.02) translateY(-4px);
}

/* ==========================================================================
   BOTTOM FEATURE / STATS BAR WITH VERTICAL DIVIDERS
   ========================================================================== */
.hero-bottom-bar {
  position: absolute;
  bottom: 2.2rem;
  left: 6.5rem;
  right: 3.5rem;
  z-index: 5;
}

.bottom-bar-inner {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  flex-wrap: wrap;
}

.bottom-bar-divider {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
  font-size: 1.2rem;
  user-select: none;
}

.bottom-bar-item {
  letter-spacing: 0.01em;
}

/* ==========================================================================
   HIGH-IMPACT RESTRUCTURED SECTIONS (TYPOGRAPHY & CARDS)
   ========================================================================== */
.section-impact {
  padding: 5.5rem 0;
  position: relative;
  z-index: 2;
}

.section-impact-header {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  margin-bottom: 3.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.8rem;
  flex-wrap: wrap;
}

.section-index-num {
  font-family: var(--font-bebas);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #ffffff;
  opacity: 0.6;
  letter-spacing: 0.05em;
  line-height: 1;
}

.section-title-giant {
  font-family: var(--font-bebas);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 0.9;
  letter-spacing: 0.03em;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ABOUT SECTION IMPACT */
.about-impact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.about-quote-banner {
  font-family: var(--font-syne);
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  font-weight: 800;
  color: #ffffff;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2.2rem;
  margin-bottom: 1.8rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.about-paragraph-lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-paragraph-secondary {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.75;
}

.impact-dark-card {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  transition: var(--transition-smooth);
}

.impact-dark-card:hover {
  border-color: #ffffff;
  transform: translateY(-3px);
}

.impact-card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-syne);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.2rem;
  letter-spacing: 0.03em;
}

.impact-card-head i, .impact-card-head svg {
  color: #ffffff;
  width: 20px;
  height: 20px;
}

.impact-lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.impact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  font-size: 0.9rem;
  color: #ffffff;
  transition: var(--transition-fast);
}

.impact-chip:hover {
  background: #ffffff;
  color: #000000;
}

.impact-chip:hover .chip-badge {
  background: #000000;
  color: #ffffff;
}

.chip-badge {
  font-weight: 700;
  background: #ffffff;
  color: #000000;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.impact-focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.focus-pill {
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  transition: var(--transition-fast);
}

.focus-pill:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-2px);
}

/* EXPERIENCE SECTION IMPACT — MINIMIZED & COMPACT */
#profile.section-impact {
  padding: 3.5rem 0;
}

.experience-impact-card {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2.2rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.experience-impact-card:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.exp-compact-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.exp-badges-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.exp-role-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.exp-status-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.exp-impact-role {
  font-family: var(--font-syne);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.exp-impact-company {
  font-size: 0.98rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.85rem;
}

.exp-impact-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  margin-bottom: 0;
}

.exp-impact-subtitle {
  font-family: var(--font-syne);
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.exp-impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.exp-impact-tile {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  transition: var(--transition-fast);
}

.exp-impact-tile i, .exp-impact-tile svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #ffffff;
}

.exp-impact-tile:hover {
  background: #ffffff;
  color: #000000;
}

.exp-impact-tile:hover i, .exp-impact-tile:hover svg {
  color: #000000;
}

/* EDUCATION SECTION IMPACT */
.education-impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.edu-impact-card {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
}

.edu-impact-card:hover {
  border-color: #ffffff;
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.edu-card-num {
  font-family: var(--font-bebas);
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.2);
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  line-height: 1;
}

.edu-status-pill {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.25rem 0.8rem;
  border-radius: 9999px;
  width: fit-content;
  margin-bottom: 1.5rem;
}

.edu-impact-degree {
  font-family: var(--font-syne);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 0.8rem;
}

.edu-impact-institution {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.edu-impact-university {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.25rem;
}

/* SKILLS SECTION IMPACT */
.skills-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.skills-impact-card {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  transition: var(--transition-smooth);
}

.skills-impact-card:hover {
  border-color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.5);
}

.skills-card-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.skills-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.skills-card-title {
  font-family: var(--font-syne);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.skills-card-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
}

.skills-tag-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.skills-tag-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--transition-fast);
}

.skills-tag-pill:hover {
  background: #ffffff;
  color: #000000;
}

.skills-tag-pill:hover i, .skills-tag-pill:hover svg {
  color: #000000;
}

/* PROJECTS IMPACT GRID */
.projects-impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

.project-impact-card {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.project-impact-card:hover {
  border-color: #ffffff;
  transform: translateY(-5px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6);
}

.project-impact-img-box {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.project-impact-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-impact-card:hover .project-impact-img {
  transform: scale(1.06);
}

.project-impact-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-impact-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.65rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  color: #ffffff;
}

.project-impact-title {
  font-family: var(--font-syne);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.project-impact-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.88rem;
  width: fit-content;
}

/* CERTIFICATIONS IMPACT */
.cert-impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cert-impact-card {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.cert-impact-card:hover {
  border-color: #ffffff;
  transform: translateY(-4px);
}

.cert-impact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.cert-impact-title {
  font-family: var(--font-syne);
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.cert-impact-issuer {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.cert-status-pill {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.25rem 0.8rem;
  border-radius: 9999px;
  width: fit-content;
}

/* INTERESTS IMPACT */
.hobbies-impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.hobby-impact-card {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition-smooth);
}

.hobby-impact-card:hover {
  border-color: #ffffff;
  transform: translateY(-3px);
}

.hobby-icon-emoji {
  font-size: 1.6rem;
  line-height: 1;
}

.hobby-title {
  font-family: var(--font-syne);
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.hobby-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

/* CONNECT IMPACT */
.social-impact-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.social-impact-box {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.9rem 2rem 0.9rem 1rem;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  text-decoration: none;
  color: #ffffff;
  font-family: var(--font-syne);
  font-weight: 800;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.social-impact-box:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-4px);
  border-color: #ffffff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
}

.social-impact-box:hover svg {
  fill: #000000;
  stroke: #000000;
}

.social-impact-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1024px) {
  .about-impact-grid, .education-impact-grid, .skills-impact-grid {
    grid-template-columns: 1fr;
  }
}

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

.stat-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.stat-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-3px);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

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

/* ==========================================================================
   EXPERIENCE SECTION
   ========================================================================== */
.experience-card {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.experience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-blue), var(--accent-violet));
}

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

.exp-role {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.exp-company {
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 1.05rem;
}

.exp-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.exp-skill-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.exp-skill-icon {
  color: var(--accent-blue);
}

/* ==========================================================================
   EDUCATION SIDE-BY-SIDE GRID WITH FLOW CONNECTORS
   ========================================================================== */
.education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  position: relative;
}

@media (min-width: 901px) {
  .education-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.75rem;
    height: 2px;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.6), rgba(168, 85, 247, 0.3));
    z-index: 5;
  }

  .education-card:not(:last-child)::before {
    content: '';
    position: absolute;
    right: -1.75rem;
    top: 50%;
    transform: translate(50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 2px solid var(--bg-card);
    box-shadow: 0 0 10px var(--accent-blue);
    z-index: 6;
  }
}

@media (max-width: 900px) {
  .education-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
    gap: 1.25rem;
  }
}

.education-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.education-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
}

.education-card-current {
  border-color: var(--border-bright);
  background: var(--bg-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.education-card-current:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.edu-current-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 0.25rem 0.8rem;
  border-radius: 9999px;
  width: fit-content;
  margin-bottom: 0.5rem;
}

.edu-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.edu-degree {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.edu-institution {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
}

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

.score-violet {
  color: var(--accent-violet);
}

.score-emerald {
  color: var(--accent-emerald);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* ==========================================================================
   SKILLS SECTION & RADAR
   ========================================================================== */
.skills-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

/* 4-Column Row-Wise Skills Category Grid */
.skills-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1100px) {
  .skills-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .skills-categories-grid {
    grid-template-columns: 1fr;
  }
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.skill-category-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.skill-category-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.icon-blue {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.icon-amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.icon-violet {
  background: rgba(168, 85, 247, 0.12);
  color: var(--accent-violet);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.icon-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.skill-category-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.skill-category-subtitle {
  font-size: 0.775rem;
  color: var(--text-muted);
  font-weight: 500;
}

.skill-pill-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.skill-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.1);
}

.skill-pill svg, .skill-pill i {
  width: 15px;
  height: 15px;
  opacity: 0.85;
}



/* ==========================================================================
   CERTIFICATIONS & ACHIEVEMENTS
   ========================================================================== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition-smooth);
}

.cert-card-featured {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-color: var(--border-bright);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}

.cert-card-featured:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.cert-badge-img-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: #08080c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-badge-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.cert-card-featured:hover .cert-badge-thumb {
  transform: scale(1.05);
}

.cert-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-4px);
}

.cert-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}



/* ==========================================================================
   PROJECTS SHOWCASE (COMPACT MINIMAL)
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.project-card-compact {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: var(--transition-smooth);
}

.project-card-compact:hover {
  border-color: var(--accent-blue);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.project-header-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.project-icon-box {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #08080c;
}

.project-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-body-compact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.project-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.project-actions-compact {
  display: flex;
  align-items: center;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-blue);
  padding: 0.35rem 0.85rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 9999px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.project-btn:hover {
  background: var(--accent-blue);
  color: #090a0f;
}

/* Modal Close Button */

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-bright);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: inherit;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   HOBBIES & NOW EXPLORING
   ========================================================================== */
.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.hobby-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  transition: var(--transition-smooth);
}

.hobby-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.hobby-emoji {
  font-size: 1.35rem;
  margin-bottom: 0;
  flex-shrink: 0;
  line-height: 1.2;
}

.hobby-card-content h3 {
  font-size: 0.95rem !important;
  font-weight: 700;
  margin-bottom: 0.2rem !important;
  color: var(--text-primary);
}

.hobby-card-content p {
  color: var(--text-secondary);
  font-size: 0.825rem !important;
  line-height: 1.4;
  margin: 0;
}

.now-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.now-tag {
  padding: 0.38rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.now-tag:hover {
  border-color: var(--accent-blue);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   RESUME MODAL
   ========================================================================== */
.resume-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 6, 0.9);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

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

.resume-paper {
  background: var(--bg-secondary);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  max-width: 840px;
  width: 100%;
  padding: 2.25rem 2.5rem;
  position: relative;
  box-shadow: 0 25px 70px rgba(0,0,0,0.85);
  overflow: hidden;
}

.resume-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
}

.resume-name {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
  letter-spacing: -0.02em;
}

.resume-role {
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 0.92rem;
}

.resume-contact {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.resume-contact a {
  color: var(--accent-blue);
  text-decoration: none;
}

.resume-download-btn {
  font-size: 0.85rem;
  padding: 0.55rem 1.2rem;
  flex-shrink: 0;
}

.resume-body-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: start;
}

.resume-section {
  margin-bottom: 1.25rem;
}

.resume-section:last-child {
  margin-bottom: 0;
}

.resume-section-title {
  color: var(--accent-blue);
  font-size: 0.92rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.35rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.03em;
}

.resume-section-title svg {
  width: 15px;
  height: 15px;
}

.resume-text {
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0;
}

.resume-item {
  margin-bottom: 0.75rem;
}

.resume-item:last-child {
  margin-bottom: 0;
}

.resume-item-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
}

.resume-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.resume-item-org {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.resume-item-sub {
  color: var(--accent-blue);
  font-size: 0.82rem;
  margin-top: 0.1rem;
}

.resume-bullet-list {
  color: var(--text-secondary);
  font-size: 0.825rem;
  padding-left: 1.1rem;
  margin-top: 0.35rem;
  line-height: 1.5;
}

/* ==========================================================================
   SOCIAL CONNECT & FOOTER
   ========================================================================== */
.social-links-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-link-box {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.85rem 1.85rem 0.85rem 0.95rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.social-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.linkedin-icon-bg {
  background: #0A66C2;
}

.instagram-icon-bg {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.email-icon-bg {
  background: linear-gradient(135deg, #0284c7, #2563eb);
}

.github-icon-bg {
  background: #24292e;
}

.social-link-box:hover {
  transform: translateY(-3px);
  border-color: var(--border-bright);
}

.social-box-github:hover {
  border-color: #6e7681;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.social-box-linkedin:hover {
  border-color: #0A66C2;
  background: rgba(10, 102, 194, 0.1);
  color: #38bdf8;
}

.social-box-instagram:hover {
  border-color: #e1306c;
  background: rgba(225, 48, 108, 0.1);
  color: #f472b6;
}

.social-box-email:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
}

.social-link-box:hover .social-icon-wrapper {
  transform: scale(1.06);
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2.5rem 0;
  text-align: center;
  background: transparent;
  position: relative;
  z-index: 2;
}

.footer-quote {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

/* Back to Top Floating Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-bright);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: inherit;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--accent-blue);
  color: #ffffff;
  transform: translateY(-3px);
}

/* Scroll Reveal Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   RESPONSIVE LAYOUT BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-section {
    padding: 6rem 2rem 5rem 5rem;
  }
  .hero-portrait-img {
    height: 80%;
    max-width: 40vw;
    opacity: 0.85;
  }
  .about-grid, .ncc-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 1.25rem;
  }
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-social-sidebar {
    left: 0.8rem;
    gap: 1rem;
  }
  .social-icon-link {
    width: 34px;
    height: 34px;
  }
  .social-icon-link svg, .social-icon-link i {
    width: 16px;
    height: 16px;
  }
  .hero-section {
    padding: 5.5rem 1.25rem 2.2rem 3.4rem;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .hero-portrait-img {
    display: block;
    position: absolute;
    bottom: 0;
    right: -8%;
    height: clamp(400px, 72vh, 650px);
    width: auto;
    max-width: 90vw;
    object-fit: cover;
    object-position: top center;
    z-index: 2;
    pointer-events: none;
    opacity: 0.92;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.25) 16%, #000 42%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.25) 16%, #000 42%);
    animation: heroSlideInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.35s both;
  }
  .hero-wrapper {
    position: relative;
    z-index: 4;
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0.8rem 0 0 0;
  }
  .hero-main-content {
    max-width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .hero-name-giant {
    font-size: clamp(4.2rem, 17vw, 6.5rem);
    margin: 0.05em 0 0.15em -0.03em;
  }
  .hero-iam-text {
    font-size: clamp(2.6rem, 9.5vw, 3.8rem);
  }
  .hero-subtitle-wrapper {
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1rem;
    height: clamp(1.8rem, 5vw, 2.4rem);
  }
  .hero-subtitle-text {
    font-size: clamp(1.25rem, 4.5vw, 1.7rem);
    line-height: 1;
    white-space: nowrap;
  }
  .hero-actions-container {
    margin-top: auto;
    margin-bottom: 1.25rem;
    gap: 0.65rem;
  }
  .btn-primary-hero, .btn-secondary-hero {
    padding: 0.72rem 1.3rem;
    font-size: 0.9rem;
  }
  .hero-bottom-bar {
    position: relative;
    bottom: auto;
    left: 0;
    right: 0;
    margin-top: 0;
    z-index: 5;
    padding-top: 0.8rem;
    border-top: none;
  }
  .bottom-bar-inner {
    gap: 0.7rem;
    font-size: 0.85rem;
  }
  .section {
    padding: 2.75rem 0;
  }
  .exp-compact-layout {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .stat-grid, .ncc-features {
    grid-template-columns: 1fr;
  }
  .timeline::before {
    left: 16px;
  }
  .timeline-item {
    padding-left: 45px;
  }
  .timeline-dot {
    left: 6px;
  }
}

@media (max-width: 480px) {
  .exp-impact-grid {
    grid-template-columns: 1fr;
  }
  .experience-impact-card {
    padding: 1.25rem 1.25rem;
  }
}

/* ==========================================================================
   EASTER EGG 1: FOOTER DOT & BLACK & WHITE GRID THEME
   ========================================================================== */
.footer-copyright-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.easter-egg-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff1f35;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 8px #ff1f35, 0 0 16px rgba(255, 31, 53, 0.6);
  cursor: inherit;
  display: inline-block;
  padding: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.3s ease;
  vertical-align: middle;
  outline: none;
  flex-shrink: 0;
}

.easter-egg-dot:hover {
  transform: scale(1.5);
  box-shadow: 0 0 12px #ff4d5e, 0 0 24px #ff1a2e;
}

.easter-egg-dot:active {
  transform: scale(0.9);
}

/* Full Black & White Grid Background Mode */
body.grid-theme {
  background-color: #050508 !important;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) !important;
  background-size: 36px 36px !important;
  background-attachment: fixed !important;
  transition: background 0.5s ease;
}

body.grid-theme .hero-section {
  background-color: #050508 !important;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) !important;
  background-size: 36px 36px !important;
  background-attachment: fixed !important;
  transition: background 0.5s ease;
}

body.grid-theme .hero-section::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 65%) !important;
}

body.grid-theme .navbar {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.grid-theme .navbar.scrolled {
  background: rgba(5, 5, 8, 0.9) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.grid-theme .hero-bottom-bar {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.grid-theme .footer {
  background: #050508 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body.grid-theme .easter-egg-dot {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 10px #ffffff, 0 0 20px rgba(255, 255, 255, 0.7);
}

/* In Grid Theme: Turn "Nikhil" name into radiant glowing crimson red */
body.grid-theme .hero-name-giant {
  color: #ff1f38 !important;
  text-shadow: 
    0 0 25px rgba(255, 31, 56, 0.8),
    0 0 55px rgba(255, 31, 56, 0.45),
    0 0 95px rgba(255, 31, 56, 0.25) !important;
}

body.grid-theme .hero-name-giant:hover {
  color: #ff3850 !important;
  text-shadow: 
    0 0 35px rgba(255, 56, 80, 0.95),
    0 0 70px rgba(255, 56, 80, 0.6),
    0 0 120px rgba(255, 56, 80, 0.4) !important;
}

/* In Grid Theme: Turn cursor into bright visible red across all elements */
body.grid-theme,
body.grid-theme *,
body.grid-theme *::before,
body.grid-theme *::after,
body.grid-theme a,
body.grid-theme button,
body.grid-theme input,
body.grid-theme select,
body.grid-theme textarea,
body.grid-theme .btn,
body.grid-theme .nav-link,
body.grid-theme .social-icon-link,
body.grid-theme [role="button"] {
  cursor: var(--custom-cursor-red) !important;
}

body.grid-theme .cursor-glow {
  background: radial-gradient(circle, rgba(255, 31, 56, 0.15) 0%, transparent 70%) !important;
}

/* Subtle Notification Toast */
.easter-egg-toast {
  position: fixed;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(10, 10, 14, 0.92);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(10px);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.easter-egg-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Mobile Responsiveness for Footer & Toast */
@media (max-width: 768px) {
  .easter-egg-dot {
    width: 10px;
    height: 10px;
    position: relative;
  }
  .easter-egg-dot::after {
    content: '';
    position: absolute;
    top: -12px;
    bottom: -12px;
    left: -12px;
    right: -12px;
  }
  .footer-copyright-row {
    gap: 0.5rem;
    font-size: 0.78rem;
    padding: 0 0.5rem;
    text-align: center;
  }
  .easter-egg-toast {
    width: calc(100% - 2.5rem);
    max-width: 320px;
    bottom: 1.5rem;
    font-size: 0.78rem;
    padding: 0.55rem 1rem;
    justify-content: center;
    text-align: center;
  }
}
