/* ==========================================================================
   Gaurav Prabhu K — Portfolio v3.0 (Bootstrap 4 Responsive)
   Theme: Precision Dark Theme for Recruiters & Engineering Leaders
   ========================================================================== */

:root {
  /* Theme Colors */
  --bg-primary: #080c14;
  --bg-secondary: #0e1524;
  --bg-card: rgba(16, 24, 40, 0.85);
  --bg-card-hover: rgba(23, 33, 54, 0.95);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(99, 102, 241, 0.35);
  --border-cyan: rgba(6, 182, 212, 0.35);

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

  --accent-cyan: #06b6d4;
  --accent-indigo: #6366f1;
  --accent-blue: #3b82f6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-purple: #a855f7;

  --gradient-brand: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px -5px rgba(99, 102, 241, 0.25);
  --shadow-cyan-glow: 0 0 35px -5px rgba(6, 182, 212, 0.25);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Subtle background grid pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient glow blobs */
.ambient-glow-1 {
  position: fixed;
  top: -150px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-2 {
  position: fixed;
  bottom: 10%;
  left: -200px;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

section, footer, .metrics-section, main {
  position: relative;
  z-index: 1;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #38bdf8;
  text-decoration: none;
}

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

/* Section Spacing */
.section-py {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (max-width: 767.98px) {
  .section-py {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

.section-header {
  margin-bottom: 3rem;
  text-align: left;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-tag svg {
  width: 14px;
  height: 14px;
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-white);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin-top: 0.5rem;
  line-height: 1.65;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: all var(--transition-normal);
  white-space: nowrap;
  cursor: pointer;
}

.btn-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  color: #ffffff !important;
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
  transition: all var(--transition-normal);
  white-space: nowrap;
  cursor: pointer;
}

.btn-outline-custom:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-white) !important;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-ghost-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
  white-space: nowrap;
  cursor: pointer;
}

.btn-ghost-custom:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-white) !important;
}

.btn-brand svg, .btn-outline-custom svg, .btn-ghost-custom svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn-sm-custom {
  padding: 0.45rem 0.95rem !important;
  font-size: 0.8125rem !important;
}

/* ==========================================================================
   Navbar & Header (Bootstrap 4 Integration)
   ========================================================================== */

.site-navbar {
  background: rgba(8, 12, 20, 0.88) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.65rem 0;
  transition: all var(--transition-normal);
  z-index: 1030;
}

.site-navbar.scrolled {
  background: rgba(8, 12, 20, 0.98) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
  display: flex !important;
  align-items: center;
  padding: 0;
  margin-right: 1rem;
  min-width: 0;
}

.brand-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--accent-indigo);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
  margin-right: 0.65rem;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-name {
  font-weight: 700;
  font-size: clamp(0.92rem, 3.2vw, 1.1rem);
  color: #ffffff !important;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-sub {
  font-size: clamp(0.68rem, 2.2vw, 0.78rem);
  color: var(--text-muted) !important;
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* Custom Hamburger Icon */
.navbar-toggler {
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(248, 250, 252, 0.85)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.925rem;
  padding: 0.5rem 0.85rem !important;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #ffffff !important;
}

@media (min-width: 992px) {
  .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.85rem;
    right: 0.85rem;
    height: 2px;
    background: var(--gradient-brand);
    border-radius: 2px;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #0d1322;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-top: 0.75rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  padding-top: calc(85px + 2.5rem);
  padding-bottom: 3.5rem;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #34d399;
  margin-bottom: 1.25rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: pulse-ring 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-name {
  font-size: clamp(2.3rem, 4.8vw, 3.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-white);
  line-height: 1.1;
  margin-bottom: 0.65rem;
}

.hero-name .highlight {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 1.15rem;
  letter-spacing: -0.01em;
}

.hero-title .accent {
  color: var(--accent-cyan);
}

.hero-pitch {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.85rem;
}

.hero-socials {
  border-top: 1px solid var(--border-subtle);
}

.hero-socials-label {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-normal);
  margin-right: 0.65rem;
  margin-bottom: 0.5rem;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-white);
  border-color: var(--accent-indigo);
  transform: translateY(-2px);
}

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

/* Hero Right Profile & Dossier Card */
.hero-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.85rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
}

.profile-image-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.profile-badge-online {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: var(--bg-primary);
  padding: 3px;
  border-radius: 50%;
}

.profile-meta h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.2rem;
}

.profile-meta p {
  font-size: 0.8125rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  margin-bottom: 0.2rem;
}

.location-tag {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.location-tag svg {
  width: 14px;
  height: 14px;
}

/* Recruiter Fast-Scan Dossier */
.recruiter-dossier {
  background: rgba(8, 12, 20, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-bottom: 1.15rem;
}

.dossier-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dossier-badge {
  color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.dossier-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 0.835rem;
  margin-bottom: 0.55rem;
}

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

.dossier-label {
  color: var(--text-muted);
}

.dossier-val {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  max-width: 58%;
}

.dossier-val.highlight-green {
  color: #34d399;
}

.quick-contact-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.quick-contact-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-indigo);
  color: var(--text-white);
}

/* ==========================================================================
   Metrics Counter Banner
   ========================================================================== */

.metrics-section {
  padding-bottom: 3.5rem;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  position: relative;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
  height: 100%;
}

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

.metric-number {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.metric-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.metric-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Work Experience Section
   ========================================================================== */

.experience-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: 2.25rem;
  position: relative;
  transition: all var(--transition-normal);
  margin-bottom: 1.75rem;
}

@media (max-width: 767.98px) {
  .experience-card {
    padding: 1.5rem;
  }
}

.experience-card:hover {
  border-color: var(--border-highlight);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), var(--shadow-glow);
  transform: translateY(-2px);
}

.exp-role {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

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

.exp-company-loc {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 400;
}

.exp-period {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-block;
  white-space: nowrap;
}

.exp-tenure {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.exp-bullets {
  list-style: none;
  padding: 0;
  margin: 1.35rem 0;
}

.exp-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

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

.bullet-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent-indigo);
  margin-top: 0.25rem;
}

.exp-bullet-item strong {
  color: var(--text-white);
  font-weight: 600;
}

.exp-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: inline-block;
}

.tech-tag:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #bfdbfe;
}

/* ==========================================================================
   Skills Grid Section
   ========================================================================== */

.skill-category-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.skill-category-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.skill-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-indigo);
  flex-shrink: 0;
  margin-right: 0.85rem;
}

.skill-icon-wrap.cyan {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.25);
  color: var(--accent-cyan);
}

.skill-icon-wrap.emerald {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--accent-emerald);
}

.skill-icon-wrap.amber {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: var(--accent-amber);
}

.skill-icon-wrap.purple {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.25);
  color: var(--accent-purple);
}

.skill-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.skill-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.15rem;
}

.skill-card-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.skill-pill {
  font-size: 0.8125rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: #e2e8f0;
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: default;
}

.skill-pill.featured {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
  color: #c7d2fe;
}

.skill-pill.featured-cyan {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.3);
  color: #a5f3fc;
}

.skill-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  transform: translateY(-1px);
}

/* ==========================================================================
   Featured Projects Section
   ========================================================================== */

.project-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.filter-btn:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.08);
}

.filter-btn.active {
  background: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  height: 100%;
}

.project-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.project-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.project-link-icon {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.project-link-icon svg {
  width: 20px;
  height: 20px;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin-top: 0.85rem;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.project-description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 1.35rem;
}

.project-highlights {
  background: rgba(8, 12, 20, 0.5);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.project-highlights-title {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

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

.project-highlights li {
  font-size: 0.8125rem;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.project-highlights li:last-child {
  margin-bottom: 0;
}

.project-highlights li svg {
  width: 14px;
  height: 14px;
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
}

/* ==========================================================================
   Mentorship, Community & Speaking Section
   ========================================================================== */

.activity-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-normal);
  margin-bottom: 1.5rem;
}

.activity-card:last-child {
  margin-bottom: 0;
}

.activity-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.activity-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0;
}

.activity-badge {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.activity-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  height: 100%;
}

.gallery-img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item.featured .gallery-img {
  min-height: 220px;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: linear-gradient(to top, rgba(8, 12, 20, 0.95), transparent);
  font-size: 0.75rem;
  color: #e2e8f0;
  font-weight: 500;
}

/* ==========================================================================
   Education & Honors
   ========================================================================== */

.edu-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-normal);
  height: 100%;
}

.edu-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.edu-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-indigo);
  flex-shrink: 0;
  margin-right: 0.85rem;
}

.edu-icon-wrap.amber {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: var(--accent-amber);
}

.edu-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.edu-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.15rem;
}

.edu-institution {
  color: var(--accent-cyan);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.edu-period {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.edu-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.edu-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.edu-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent-amber);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-card {
  background: linear-gradient(135deg, rgba(16, 24, 40, 0.9) 0%, rgba(30, 27, 75, 0.55) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .contact-card {
    padding: 2rem 1.25rem;
  }
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.contact-card h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.contact-card .contact-intro {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(8, 12, 20, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  transition: all var(--transition-normal);
}

.contact-method-item:hover {
  border-color: var(--border-highlight);
  background: rgba(8, 12, 20, 0.8);
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-indigo);
  flex-shrink: 0;
}

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

.contact-info {
  flex: 1;
  min-width: 0;
}

.contact-type {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-value {
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.95rem;
  word-break: break-all;
}

.copy-btn {
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-white);
}

.contact-cta-panel {
  background: rgba(8, 12, 20, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-cta-panel h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.4rem;
}

.contact-cta-panel p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(8, 12, 20, 0.92);
  padding: 2.25rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */

.toast-notify {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #1e293b;
  border: 1px solid var(--accent-emerald);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 1050;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition-normal);
}

.toast-notify.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast-notify svg {
  color: var(--accent-emerald);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   Bootstrap 4 Modal Custom Dark Theme
   ========================================================================== */

.modal-content-dark {
  background: #0d1322;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.modal-header-dark {
  background: #0d1322;
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.1rem 1.5rem;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-header-dark .modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
}

.modal-body-dark {
  padding: 1.75rem;
}

/* Printable Clean Resume View */
.resume-preview {
  background: #ffffff;
  color: #1e293b;
  padding: 2.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
}

.resume-preview h1 {
  font-size: 1.75rem;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.resume-preview .res-title {
  font-size: 1rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.65rem;
}

.resume-preview .res-contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.85rem;
  margin-bottom: 1.25rem;
}

.resume-preview h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0f172a;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 0.25rem;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.resume-preview .res-item {
  margin-bottom: 1.1rem;
}

.resume-preview .res-item-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.resume-preview .res-item-sub {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #475569;
  margin-bottom: 0.35rem;
}

.resume-preview ul {
  list-style: disc;
  margin-left: 1.25rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #334155;
}

/* ==========================================================================
   Print Stylesheet (For Recruiters printing to PDF)
   ========================================================================== */

@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .site-navbar, .site-footer, .ambient-glow-1, .ambient-glow-2,
  .hero-actions, .project-filter-bar,
  .quick-contact-btn, .toast-notify, .copy-btn,
  body::before {
    display: none !important;
  }

  .experience-card, .metric-card, .skill-category-card, .project-card, .edu-card, .hero-card {
    background: none !important;
    border: 1px solid #cccccc !important;
    box-shadow: none !important;
    color: #000000 !important;
    page-break-inside: avoid;
  }

  .section-title, .hero-name, h1, h2, h3, h4 {
    color: #000000 !important;
  }

  .hero-name .highlight, .metric-number {
    -webkit-text-fill-color: #000000 !important;
    background: none !important;
  }

  .text-secondary, .text-muted, .exp-bullet-item, p, li {
    color: #333333 !important;
  }
}
