/*
  =====================================================
  Pruthvi Raj D S — DevOps & Cloud Engineer Portfolio
  =====================================================
  High-performance, modern, recruiter-focused styling.
  Dark neon & infrastructure aesthetic.
  Vanilla CSS, zero bloat, highly responsive.
  =====================================================
*/

/* ─────────────────────────────────────────────────────
   1. RESET, DESIGN TOKENS & SYSTEM VARIABLES
───────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Color Palette */
  --bg: #07090f;
  --bg-card: rgba(14, 20, 36, 0.72);
  --bg-card-hover: rgba(22, 32, 56, 0.88);
  --glass: rgba(255, 255, 255, 0.04);
  --gb: rgba(255, 255, 255, 0.08);
  --gb-hover: rgba(139, 92, 246, 0.4);
  
  /* Glassmorphism & Morphisome System */
  --glass-surface: rgba(14, 20, 36, 0.72);
  --glass-surface-hover: rgba(22, 32, 56, 0.88);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-hover: rgba(139, 92, 246, 0.45);
  --glass-blur: blur(20px) saturate(180%);
  --glass-inset-highlight: inset 0 1px 1px 0 rgba(255, 255, 255, 0.12);
  --glass-glow-cyan: 0 0 25px -4px rgba(6, 182, 212, 0.35);
  --glass-glow-purple: 0 0 30px -4px rgba(139, 92, 246, 0.3);
  
  /* Accent Colors */
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --purple-glow: rgba(139, 92, 246, 0.25);
  
  --cyan: #06b6d4;
  --cyan-light: #22d3ee;
  --cyan-glow: rgba(6, 182, 212, 0.25);
  
  --green: #10b981;
  --green-glow: rgba(16, 185, 129, 0.25);
  
  --amber: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.25);
  
  /* Text & Surface */
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --muted: #94a3b8;
  --subtle: #64748b;
  
  /* Paper CV Theme (for print & preview) */
  --paper: #ffffff;
  --paper-text: #0f172a;
  --paper-muted: #475569;
  --paper-accent: #4338ca;
  --paper-accent2: #0891b2;
  --paper-border: #e2e8f0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  line-height: 1.6;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, canvas {
  max-width: 100%;
}

/* Accessibility Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--cyan), var(--green));
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--purple);
}

@media (hover: hover) and (pointer: fine) {
  body, a, button {
    cursor: none;
  }
}
@media (hover: none) or (pointer: coarse) {
  #cur-dot, #cur-ring {
    display: none !important;
  }
  body, a, button {
    cursor: auto !important;
  }
}

a {
  text-decoration: none;
  color: inherit;
}
button {
  font-family: inherit;
}

/* ─────────────────────────────────────────────────────
   2. CUSTOM CURSOR
───────────────────────────────────────────────────── */
#cur-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s;
}

#cur-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(139, 92, 246, 0.6);
  pointer-events: none;
  transition: width 0.2s, height 0.2s, border-color 0.2s, opacity 0.2s;
  transform: translate(-50%, -50%);
}

#cur-ring.hov {
  width: 52px;
  height: 52px;
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.08);
}

/* ─────────────────────────────────────────────────────
   3. BACKGROUND PARTICLES & GRID NOISE
───────────────────────────────────────────────────── */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.8;
}

.hero-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.b1 {
  width: min(600px, 90vw);
  height: min(600px, 90vw);
  top: -150px;
  left: -150px;
  background: rgba(139, 92, 246, 0.12);
}
.b2 {
  width: min(520px, 85vw);
  height: min(520px, 85vw);
  top: 80px;
  right: -100px;
  background: rgba(6, 182, 212, 0.09);
}
.b3 {
  width: min(420px, 75vw);
  height: min(420px, 75vw);
  bottom: 40px;
  left: 20%;
  background: rgba(16, 185, 129, 0.07);
}

/* ─────────────────────────────────────────────────────
   4. NAVIGATION
───────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 100%;
}

nav.scrolled {
  background: rgba(7, 9, 15, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gb);
  padding: 0.75rem 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--purple);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.nav-accent {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: all 0.25s ease;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  position: relative;
}

.nav-links a:hover {
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a.active {
  color: #fff;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.22);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-nav-resume {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.38rem 0.85rem;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: var(--purple-light);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-nav-resume:hover {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
  box-shadow: 0 0 20px var(--purple-glow);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.25s ease;
  border-radius: 2px;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mob-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  z-index: 99;
  background: rgba(7, 9, 15, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 5rem 1.5rem 2.5rem;
  gap: 1.1rem;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s 0.25s;
  pointer-events: none;
}
.mob-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s 0s;
}
.mob-menu a.mob-link {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.1rem, 4.5vw, 1.35rem);
  font-weight: 700;
  color: var(--text);
  transition: all 0.2s ease;
  padding: 0.4rem 1.25rem;
  border-radius: 8px;
}
.mob-menu a.mob-link:hover,
.mob-menu a.mob-link:focus-visible {
  color: var(--cyan);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.04);
}
.mob-menu a.mob-link.active {
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.2);
}
.mob-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--gb);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mob-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ─────────────────────────────────────────────────────
   5. BUTTONS & UI INTERACTIVES
───────────────────────────────────────────────────── */
.btn-p {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #fff;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-p:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.btn-g {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--gb);
  backdrop-filter: blur(10px);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-g:hover {
  transform: translateY(-2px);
  border-color: var(--purple-light);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.2);
  color: #fff;
}

.btn-resume-highlight {
  background: linear-gradient(135deg, #0891b2, #10b981);
}
.btn-resume-highlight:hover {
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

/* ─────────────────────────────────────────────────────
   6. HERO SECTION
───────────────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7.5rem 1.5rem 5rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
  max-width: 100%;
}

.avatar-wrap {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto 1.8rem;
  animation: fadeUp 0.35s ease both;
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--purple), var(--cyan), var(--green), var(--purple));
  animation: spin 6s linear infinite;
  z-index: 0;
}

.avatar-inner {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--bg);
  z-index: 1;
  overflow: hidden;
}

.avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.avatar-status {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  background: var(--green);
  border-radius: 50%;
  border: 3px solid var(--bg);
  z-index: 2;
  animation: pulse-dot 2.5s ease infinite;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  font-family: 'DM Mono', monospace;
  font-size: clamp(0.68rem, 2.5vw, 0.75rem);
  color: var(--purple-light);
  margin-bottom: 1.2rem;
  animation: fadeDown 0.35s ease both;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--green);
}

.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.1rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #ddd6fe 45%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeUp 0.35s 0.05s ease both;
  overflow-wrap: break-word;
  max-width: 100%;
}

.hero-role {
  font-size: clamp(1rem, 2.5vw, 1.45rem);
  color: var(--text-secondary);
  margin-top: 0.9rem;
  font-family: 'DM Mono', monospace;
  font-weight: 400;
  animation: fadeUp 0.35s 0.1s ease both;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.prompt-symbol {
  color: var(--purple-light);
  font-weight: 600;
}
.typed {
  color: var(--cyan);
  font-weight: 500;
}
.cursor-blink {
  animation: blink 1s step-end infinite;
  color: var(--cyan);
  font-weight: 300;
}

.hero-tagline {
  margin-top: 0.8rem;
  font-size: clamp(0.92rem, 2vw, 1.15rem);
  color: var(--muted);
  font-style: italic;
  max-width: 600px;
  animation: fadeUp 0.35s 0.15s ease both;
}
.hero-tagline em {
  color: var(--cyan);
  font-style: normal;
  font-weight: 600;
}

.hero-desc {
  max-width: 680px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.8;
  margin: 1.4rem auto 0;
  animation: fadeUp 0.35s 0.2s ease both;
}
.hero-desc strong {
  color: var(--text);
  font-weight: 600;
}

/* Hero Technology Pills */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  max-width: 740px;
  width: 100%;
  margin: 1.5rem auto 0;
  animation: fadeUp 0.35s 0.25s ease both;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'DM Mono', monospace;
  font-size: clamp(0.65rem, 2.2vw, 0.72rem);
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--gb);
  color: var(--text-secondary);
  white-space: normal;
}
.hero-pill svg {
  color: var(--cyan);
}

.hero-ctas {
  display: flex;
  gap: 0.85rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  animation: fadeUp 0.35s 0.3s ease both;
}

.hero-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1.8rem;
  width: 100%;
  max-width: 100%;
  animation: fadeUp 0.35s 0.35s ease both;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}
.social-chip:hover {
  color: var(--text);
  border-color: var(--purple-light);
  background: rgba(139, 92, 246, 0.08);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--subtle);
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  animation: bob 2.5s ease infinite;
}
.scroll-arrow {
  width: 14px;
  height: 14px;
  border-right: 1.5px solid var(--subtle);
  border-bottom: 1.5px solid var(--subtle);
  transform: rotate(45deg);
}

/* ─────────────────────────────────────────────────────
   7. GENERAL SECTION PATTERNS
───────────────────────────────────────────────────── */
section {
  position: relative;
  z-index: 1;
  padding: 6.5rem 2rem;
  overflow-x: clip;
  max-width: 100%;
}
@supports not (overflow-x: clip) {
  section {
    overflow-x: hidden;
  }
}

.container {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

.sec-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.sec-label::before {
  content: '';
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--purple-light);
}

.sec-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4.2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.8rem;
  color: #fff;
  overflow-wrap: break-word;
}

.sec-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 650px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.text-center {
  text-align: center;
}
.text-center .sec-label {
  justify-content: center;
}
.text-center .sec-label::before {
  display: none;
}
.text-center .sec-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Morphisome Ambient Section Divider */
.section-divider {
  width: min(85%, 680px);
  height: 1px;
  margin: 3.5rem auto 1.5rem;
  background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.35) 25%, rgba(6, 182, 212, 0.65) 50%, rgba(16, 185, 129, 0.35) 75%, transparent 100%);
  position: relative;
  overflow: visible;
  opacity: 0.8;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 0%;
  width: 90px;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.95), transparent 75%);
  filter: blur(2px);
  animation: dividerShimmer 7s ease-in-out infinite alternate;
}

@keyframes dividerShimmer {
  0% { left: 5%; opacity: 0.35; transform: scaleX(0.8); }
  50% { left: 45%; opacity: 1; transform: scaleX(1.4); }
  100% { left: 85%; opacity: 0.35; transform: scaleX(0.8); }
}

/* Cinematic Fade-Up & Blur-Wipe Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(5px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Staggered Child Reveal for Grids */
.skills-categories-grid .tech-category-card:nth-child(1),
.toolchain-grid .tc-card:nth-child(1),
.projects-grid .proj-card:nth-child(1),
.arch-services-showcase .arch-service-card:nth-child(1) {
  transition-delay: 0.05s;
}

.skills-categories-grid .tech-category-card:nth-child(2),
.toolchain-grid .tc-card:nth-child(2),
.projects-grid .proj-card:nth-child(2),
.arch-services-showcase .arch-service-card:nth-child(2) {
  transition-delay: 0.12s;
}

.skills-categories-grid .tech-category-card:nth-child(3),
.toolchain-grid .tc-card:nth-child(3),
.arch-services-showcase .arch-service-card:nth-child(3) {
  transition-delay: 0.19s;
}

.skills-categories-grid .tech-category-card:nth-child(4),
.toolchain-grid .tc-card:nth-child(4),
.arch-services-showcase .arch-service-card:nth-child(4) {
  transition-delay: 0.26s;
}

.toolchain-grid .tc-card:nth-child(5) {
  transition-delay: 0.33s;
}
.toolchain-grid .tc-card:nth-child(6) {
  transition-delay: 0.40s;
}

/* Morphisome Glass Card Foundations & Interactive Spotlight */
.glass-spotlight,
.tech-category-card,
.terminal-card,
.project-featured-card,
.proj-card,
.tc-card,
.info-metric-card,
.edu-card-modern,
.gh-card,
.contact-card,
.contact-form-wrap,
.arch-service-card,
.resume-quote-card,
.experience-showcase,
.pipeline-visual-wrapper,
.architecture-visual-grid {
  position: relative;
  background: var(--glass-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), var(--glass-inset-highlight);
}

.glass-spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(350px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(139, 92, 246, 0.16), transparent 75%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.glass-spotlight:hover::before {
  opacity: 1;
}

.glass-spotlight > * {
  position: relative;
  z-index: 2;
}

/* Section Arrival Glow Pulse */
@keyframes sectionArrivePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
    border-color: rgba(6, 182, 212, 0.9);
  }
  40% {
    box-shadow: 0 0 35px 8px rgba(139, 92, 246, 0.45);
    border-color: rgba(139, 92, 246, 0.85);
  }
  100% {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), var(--glass-inset-highlight);
    border-color: var(--glass-border);
  }
}

.section-pulse-active {
  animation: sectionArrivePulse 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

/* ─────────────────────────────────────────────────────
   8. ABOUT DETAILS SECTION
───────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.terminal-card {
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.terminal-bar {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--gb);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.t-dot.red { background: #ef4444; }
.t-dot.yellow { background: #f59e0b; }
.t-dot.green { background: #10b981; }

.t-title {
  margin-left: 0.6rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--subtle);
}

.terminal-body {
  padding: 1.6rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.83rem;
  line-height: 1.8;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.t-prompt {
  color: var(--cyan);
  font-weight: 600;
}
.t-output {
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  line-height: 1.75;
}
.t-output strong {
  color: var(--text);
}
.highlight-green {
  color: var(--green);
  border-left: 2px solid var(--green);
  padding-left: 0.75rem;
  font-style: italic;
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
}

.about-highlights-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.info-metric-card {
  background: var(--bg-card);
  border: 1px solid var(--gb);
  border-radius: 14px;
  padding: 1.3rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
}
.info-metric-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateX(4px);
  background: var(--bg-card-hover);
}
.imc-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 0.1rem;
}
.imc-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}
.imc-content p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ─────────────────────────────────────────────────────
   9. TECHNICAL SKILLS CATEGORIES (Strictly Resume Aligned)
───────────────────────────────────────────────────── */
.skills-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.tech-category-card {
  background: var(--bg-card);
  border: 1px solid var(--gb);
  border-radius: 16px;
  padding: 1.8rem;
  backdrop-filter: blur(14px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.tech-category-card:hover {
  transform: translateY(-5px);
  border-color: var(--cat-color);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(139, 92, 246, 0.15);
}

.tcc-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tcc-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cat-color);
  flex-shrink: 0;
}

.tcc-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.tcc-subtitle {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
  display: block;
}

.tcc-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.3rem;
}

.tcc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
}

.tech-badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--gb);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.tech-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.tech-badge.highlight {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
  color: #ddd6fe;
  font-weight: 500;
}

/* ─────────────────────────────────────────────────────
   10. TOOLCHAIN MATRIX SECTION
───────────────────────────────────────────────────── */
.toolchain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.tc-card {
  background: var(--bg-card);
  border: 1px solid var(--gb);
  border-radius: 12px;
  padding: 1.2rem;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.tc-card:hover {
  border-color: var(--purple-light);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}
.tc-stage {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--purple-light);
  margin-bottom: 0.45rem;
}
.tc-tools {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.4rem;
}
.tc-detail {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: auto;
}

/* ─────────────────────────────────────────────────────
   11. PROFESSIONAL INTERNSHIP SECTION
───────────────────────────────────────────────────── */
.featured-internship {
  background: var(--bg-card);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(139, 92, 246, 0.1);
}

.featured-internship::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--cyan), var(--green));
}

.exp-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.exp-tag-pill {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--green);
}

.exp-date-badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
}

.exp-role {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}

.exp-company {
  font-size: 0.95rem;
  color: var(--cyan);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.exp-intro {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.3rem;
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.exp-bullets li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}
.exp-bullets li strong {
  color: var(--text);
}

.exp-bullet-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-light);
  flex-shrink: 0;
  margin-top: 0.55rem;
}

.exp-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  border-top: 1px solid var(--gb);
  padding-top: 1.4rem;
}

/* ─────────────────────────────────────────────────────
   12. HOW I BUILD & DEPLOY: PIPELINE LIFECYCLE
───────────────────────────────────────────────────── */
.pipeline-visual-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--gb);
  border-radius: 20px;
  padding: 2.2rem;
  backdrop-filter: blur(14px);
  max-width: 100%;
  overflow: hidden;
}

.pipeline-flow-track {
  display: flex;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 1rem 0.5rem 1.8rem;
  gap: 0.4rem;
  scrollbar-width: thin;
  max-width: 100%;
}

.pipe-node {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--gb);
  border-radius: 12px;
  padding: 0.9rem 0.75rem;
  min-width: 95px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.pipe-node:hover {
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.08);
  transform: translateY(-3px);
}
.pipe-node.active {
  border-color: var(--purple);
  background: rgba(139, 92, 246, 0.15);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
  transform: translateY(-4px);
}

.pipe-node-icon {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}
.pipe-node-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.pipe-node-sub {
  font-size: 0.58rem;
  color: var(--muted);
  white-space: nowrap;
  margin-top: 0.15rem;
}

.pipe-arrow {
  color: var(--subtle);
  font-size: 1rem;
  padding: 0 0.15rem;
  flex-shrink: 0;
  user-select: none;
}

.pipeline-step-detail-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--gb);
  border-radius: 14px;
  padding: 1.5rem;
  margin-top: 0.5rem;
  animation: fadeIn 0.4s ease both;
}

.psd-badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}
.psd-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.psd-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.psd-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.psd-pill {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--purple-light);
}

/* ─────────────────────────────────────────────────────
   13. PRACTICAL CLOUD ARCHITECTURE
───────────────────────────────────────────────────── */
.architecture-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  margin-bottom: 2rem;
}

.arch-box {
  background: var(--bg-card);
  border: 1px solid var(--gb);
  border-radius: 18px;
  padding: 1.8rem;
  backdrop-filter: blur(14px);
}

.arch-box-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--gb);
  padding-bottom: 1rem;
  color: var(--cyan);
}
.arch-box-header h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.arch-diagram-flow {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.arch-flow-node {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--gb);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.2s ease;
}
.arch-flow-node:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

.af-icon {
  font-size: 1.3rem;
  line-height: 1;
}
.af-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  display: block;
}
.af-role {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
  display: block;
}

.arch-flow-node.highlight-cyan {
  border-color: rgba(6, 182, 212, 0.35);
  background: rgba(6, 182, 212, 0.06);
}
.arch-flow-node.highlight-purple {
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.06);
}
.arch-flow-node.highlight-green {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.06);
}

.af-connector {
  text-align: center;
  color: var(--subtle);
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  line-height: 1;
  padding: 0.1rem 0;
}
.af-connector small {
  display: inline-block;
  color: var(--muted);
  margin-left: 0.35rem;
}

.arch-services-showcase {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--gb);
  border-radius: 16px;
  padding: 1.8rem;
}
.ass-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 1.2rem;
}
.ass-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem 1.6rem;
}
.ass-item {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.5;
}
.ass-item strong {
  color: var(--cyan);
  font-family: 'DM Mono', monospace;
}

/* ─────────────────────────────────────────────────────
   14. FEATURED PROJECTS SECTION
───────────────────────────────────────────────────── */
.project-featured-card {
  background: var(--bg-card);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 22px;
  padding: 2.6rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 2.2rem;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(139, 92, 246, 0.12);
  backdrop-filter: blur(16px);
}

.pfc-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent 70%);
  pointer-events: none;
}

.pfc-badge-group {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.badge-featured {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #fff;
}

.badge-type {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--gb);
  color: var(--text-secondary);
}

.pfc-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.pfc-desc {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 900px;
  margin-bottom: 1.6rem;
}
.pfc-desc strong {
  color: var(--text);
}

.pfc-arch-pipeline {
  background: rgba(10, 14, 25, 0.85);
  border: 1px solid var(--gb);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.8rem;
}

.pap-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.65rem;
}

.pap-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pap-step {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}
.pap-sep {
  color: var(--subtle);
  font-size: 0.85rem;
}

.pfc-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.pfc-detail-item {
  display: flex;
  gap: 0.7rem;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--muted);
}
.pfc-detail-item strong {
  color: var(--text);
}
.pdi-bullet {
  color: var(--green);
  font-weight: bold;
}

.pfc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  border-top: 1px solid var(--gb);
  padding-top: 1.4rem;
}

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

/* Secondary Projects Grid */
.projects-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}

.proj-card {
  background: var(--bg-card);
  border: 1px solid var(--gb);
  border-radius: 20px;
  padding: 2.2rem;
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.proj-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.proj-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.proj-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.proj-status-badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--gb);
  color: var(--muted);
}

.proj-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.65rem;
}

.proj-desc {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.proj-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}
.proj-highlights-list strong {
  color: var(--text-secondary);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  margin-top: auto;
}

.tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
}

.proj-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--gb);
  padding-top: 1.2rem;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.proj-gh-repo {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--cyan);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.proj-gh-repo:hover {
  opacity: 1;
  color: var(--cyan-light);
  text-decoration: underline;
}

/* Projects Filter Bar */
.projects-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.4rem;
}

.proj-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--gb);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
}

.proj-filter-btn:hover {
  color: #fff;
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.09);
  transform: translateY(-2px);
}

.proj-filter-btn.active {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}

.filter-count {
  font-size: 0.68rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font-weight: 600;
}

.proj-filter-btn.active .filter-count {
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
}

.proj-hidden {
  display: none !important;
}

@media (min-width: 993px) {
  .projects-grid-two .proj-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}


/* ─────────────────────────────────────────────────────
   15. GITHUB ACTIVITY SECTION
───────────────────────────────────────────────────── */
.gh-card {
  background: var(--bg-card);
  border: 1px solid var(--gb);
  border-radius: 20px;
  padding: 2.2rem;
  backdrop-filter: blur(14px);
}
.gh-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}
.gh-user {
  font-family: 'DM Mono', monospace;
  font-size: 0.88rem;
  color: var(--purple-light);
  font-weight: 500;
}
.gh-user:hover {
  text-decoration: underline;
}

.contrib-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  padding-bottom: 0.5rem;
  width: 100%;
  max-width: 100%;
}
.contrib-wrap img {
  min-width: 580px;
  width: 100%;
  height: auto;
}
.contrib-legend {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.contrib-legend span {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  color: var(--subtle);
}
.leg-cell {
  width: 11px;
  height: 11px;
  border-radius: 2px;
}

.gh-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
  width: 100%;
}
.gh-stat-img {
  height: auto;
  max-height: 165px;
  border-radius: 12px;
  flex: 1 1 240px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  object-fit: contain;
}

/* ─────────────────────────────────────────────────────
   16. EDUCATION SECTION
───────────────────────────────────────────────────── */
.edu-timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}

.edu-card-modern {
  background: var(--bg-card);
  border: 1px solid var(--gb);
  border-radius: 18px;
  padding: 2rem;
  backdrop-filter: blur(14px);
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.edu-card-modern:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.4);
}

.ecm-year {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.ecm-degree {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}
.ecm-school {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.ecm-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.ecm-badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--green);
}
.ecm-loc {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  color: var(--subtle);
  display: flex;
  align-items: center;
}
.ecm-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────
   17. RESUME CV SECTION
───────────────────────────────────────────────────── */
.resume-quote-card {
  background: var(--bg-card);
  border: 1px solid var(--gb);
  border-radius: 18px;
  padding: 2.2rem;
  max-width: 780px;
  margin: 0 auto 2.2rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
}
.rqc-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 150px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
  pointer-events: none;
}
.rqc-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  margin-bottom: 1.4rem;
}
.rqc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.rqc-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.rqc-badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  border: 1px solid;
}
.rqc-badge.purple {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--purple-light);
}
.rqc-badge.cyan {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
  color: var(--cyan);
}
.rqc-badge.green {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--green);
}
.rqc-sig {
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  color: var(--muted);
}

.resume-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.resume-paper-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.25rem;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.resume-paper {
  max-width: 920px;
  margin: 0 auto;
  background: var(--paper);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 32px 80px rgba(0, 0, 0, 0.7);
  color: var(--paper-text);
}

.r-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f2c42 100%);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  color: #fff;
}

.r-photo-ring {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 0deg, #8b5cf6, #06b6d4, #10b981, #8b5cf6);
  flex-shrink: 0;
}
.r-photo-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}
.r-photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.r-name {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  line-height: 1.1;
}
.r-role {
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  color: #a78bfa;
  margin-top: 0.4rem;
  letter-spacing: 0.06em;
}

.r-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 1rem;
}
.r-contact-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #cbd5e1;
  font-family: 'DM Mono', monospace;
}
.r-contact-item svg {
  width: 13px;
  height: 13px;
  opacity: 0.8;
  color: var(--cyan);
}

.r-body {
  display: grid;
  grid-template-columns: 1fr 1.9fr;
  background: var(--paper);
}

.r-left {
  background: #f8fafc;
  border-right: 1px solid var(--paper-border);
  padding: 2rem 1.6rem;
}
.r-right {
  padding: 2rem 2.2rem;
}

.r-sec-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid #e0e7ff;
}
.r-sec-title svg {
  width: 13px;
  height: 13px;
}

.r-section {
  margin-bottom: 1.8rem;
}

.r-objective {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--paper-muted);
  background: #f0fdf4;
  border-left: 3px solid #10b981;
  padding: 0.9rem 1.1rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.8rem;
}
.r-objective strong {
  color: var(--paper-text);
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.chip {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  background: #ede9fe;
  color: #4338ca;
  border: 1px solid #c4b5fd;
  font-weight: 600;
}
.chip.purple {
  background: #f3e8ff;
  color: #6b21a8;
  border-color: #d8b4fe;
}
.chip.cyan {
  background: #cffafe;
  color: #0e7490;
  border-color: #a5f3fc;
}
.chip.green {
  background: #d1fae5;
  color: #065f46;
  border-color: #6ee7b7;
}
.chip.amber {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

.edu-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.edu-card {
  background: #fff;
  border: 1px solid var(--paper-border);
  border-radius: 8px;
  padding: 0.85rem;
  position: relative;
  border-left: 3px solid var(--paper-accent);
}
.edu-year {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  color: var(--paper-accent);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.edu-degree {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--paper-text);
  line-height: 1.3;
}
.edu-school {
  font-size: 0.74rem;
  color: var(--paper-muted);
  margin-top: 0.2rem;
}
.edu-uni {
  font-size: 0.68rem;
  color: #64748b;
  font-family: 'DM Mono', monospace;
  margin-top: 0.15rem;
}

.tl-list-r {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.tl-r-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.tl-r-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 3px;
}
.tl-r-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}
.tl-r-line {
  width: 1.5px;
  flex: 1;
  min-height: 25px;
  background: #cbd5e1;
  margin-top: 3px;
}
.tl-r-body {
  flex: 1;
}

.tl-r-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}
.tl-r-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--paper-text);
  line-height: 1.3;
}
.tl-r-date {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--paper-accent);
  background: #ede9fe;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  font-weight: 600;
}
.tl-r-org {
  font-size: 0.78rem;
  color: var(--paper-accent2);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.tl-r-desc {
  font-size: 0.8rem;
  color: var(--paper-muted);
  line-height: 1.65;
}
.tl-r-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.5rem;
}
.r-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid var(--paper-border);
}

.r-gh-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--paper-accent);
  margin-top: 0.5rem;
}
.r-gh-link:hover {
  text-decoration: underline;
}

.declaration {
  background: #f8fafc;
  border: 1px solid var(--paper-border);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}
.decl-text {
  font-size: 0.75rem;
  color: var(--paper-muted);
  font-style: italic;
  flex: 1;
}
.decl-sig {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--paper-accent);
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────
   18. CONTACT SECTION
───────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 16px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.8rem;
}
.profile-card img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--purple);
  flex-shrink: 0;
}
.pc-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}
.pc-role {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--cyan);
  margin-top: 0.15rem;
}
.pc-status {
  font-size: 0.72rem;
  color: var(--green);
  margin-top: 0.2rem;
}

.contact-info h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.8rem;
}
.contact-info p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.94rem;
}
.contact-info p strong {
  color: var(--text);
}

.contact-links {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-interactive-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 100%;
}

.c-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: 'DM Mono', monospace;
  transition: color 0.2s;
  word-break: break-all;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.c-link:hover {
  color: var(--cyan);
}

.btn-copy-email {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--gb);
  color: var(--muted);
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.btn-copy-email:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.btn-copy-email.copied {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--green);
  color: var(--green);
}

.glass-form {
  background: var(--bg-card);
  border: 1px solid var(--gb);
  border-radius: 20px;
  padding: 2.2rem;
  backdrop-filter: blur(16px);
}
.gf-header {
  margin-bottom: 1.5rem;
}
.gf-header h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
}
.gf-header p {
  font-size: 0.82rem;
  color: var(--muted);
}

.f-group {
  margin-bottom: 1.2rem;
}
.f-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
  font-family: 'DM Mono', monospace;
}
.f-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--gb);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.f-input:focus {
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}
.f-error {
  color: #f87171;
  font-size: 0.72rem;
  margin-top: 0.35rem;
  font-family: 'DM Mono', monospace;
  min-height: 1rem;
}
.form-disclaimer {
  font-size: 0.72rem;
  color: var(--subtle);
  margin-top: 0.8rem;
  text-align: center;
}
.f-success {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--green);
}
.f-success h4 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.4rem;
}
.f-success p {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ─────────────────────────────────────────────────────
   19. FOOTER
───────────────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--gb);
  padding: 2.5rem 2rem;
  background: rgba(7, 9, 15, 0.9);
}

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

.footer-left {
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.footer-left .hl {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: #fff;
}
.footer-sub {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--subtle);
}
.footer-links {
  display: flex;
  gap: 1.2rem;
}
.footer-links a {
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--cyan);
}

/* ─────────────────────────────────────────────────────
   20. KEYFRAMES & ANIMATIONS
───────────────────────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  50% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bob {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(5px); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ─────────────────────────────────────────────────────
   21. PRINT STYLES (Strict Single-Page A4 / Letter PDF)
───────────────────────────────────────────────────── */
@media print {
  @page {
    size: A4 portrait;
    margin: 5mm 7mm;
  }

  html, body {
    background: #fff !important;
    cursor: auto !important;
    color: #0f172a !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    overflow: hidden !important;
  }

  #scroll-progress,
  #cur-dot,
  #cur-ring,
  #particles,
  body::after,
  nav,
  .mob-menu,
  #about,
  #about-details,
  #skills,
  #toolchain,
  #experience,
  #lifecycle,
  #architecture,
  #projects,
  #github,
  #education,
  .resume-quote-card,
  .resume-cta-buttons,
  .resume-paper-toolbar,
  #contact,
  footer {
    display: none !important;
  }

  #resume {
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
  }

  #resumeContent {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .resume-paper {
    box-shadow: none !important;
    border-radius: 0 !important;
    border: none !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    page-break-inside: avoid !important;
    page-break-after: avoid !important;
    break-inside: avoid !important;
    break-after: avoid !important;
    background: #fff !important;
  }

  .r-header {
    padding: 0.75rem 1.1rem !important;
    gap: 1rem !important;
    background: #0f172a !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    border-radius: 4px 4px 0 0 !important;
  }

  .r-photo-ring {
    width: 56px !important;
    height: 56px !important;
    padding: 2px !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .r-name {
    font-size: 1.35rem !important;
    line-height: 1.1 !important;
    margin-bottom: 0.15rem !important;
    color: #fff !important;
  }

  .r-role {
    font-size: 0.72rem !important;
    margin-top: 0.1rem !important;
    color: #a78bfa !important;
  }

  .r-contacts {
    margin-top: 0.35rem !important;
    gap: 0.25rem 0.8rem !important;
  }

  .r-contact-item {
    font-size: 0.65rem !important;
    color: #cbd5e1 !important;
  }
  .r-contact-item svg {
    width: 10px !important;
    height: 10px !important;
  }

  .r-body {
    grid-template-columns: 1fr 2.15fr !important;
    background: #fff !important;
  }

  .r-left {
    padding: 0.75rem 0.85rem !important;
    background: #f8fafc !important;
    border-right: 1px solid #e2e8f0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .r-right {
    padding: 0.75rem 1rem !important;
    background: #fff !important;
  }

  .r-sec-title {
    font-size: 0.58rem !important;
    margin-bottom: 0.4rem !important;
    padding-bottom: 0.2rem !important;
    letter-spacing: 0.12em !important;
    color: #4338ca !important;
    border-bottom: 1.5px solid #e0e7ff !important;
  }
  .r-sec-title svg {
    width: 10px !important;
    height: 10px !important;
  }

  .r-section {
    margin-bottom: 0.6rem !important;
  }

  .r-objective {
    font-size: 0.68rem !important;
    line-height: 1.38 !important;
    padding: 0.45rem 0.65rem !important;
    margin-bottom: 0.65rem !important;
    border-left: 2.5px solid #10b981 !important;
    background: #f0fdf4 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .skill-chips {
    gap: 0.2rem !important;
  }
  .chip {
    font-size: 0.55rem !important;
    padding: 0.08rem 0.35rem !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .edu-list {
    gap: 0.45rem !important;
  }
  .edu-card {
    padding: 0.4rem 0.55rem !important;
    margin-bottom: 0 !important;
    border-left: 2.5px solid #4338ca !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .edu-year {
    font-size: 0.52rem !important;
    margin-bottom: 0.1rem !important;
  }
  .edu-degree {
    font-size: 0.68rem !important;
    line-height: 1.2 !important;
  }
  .edu-school {
    font-size: 0.62rem !important;
    margin-top: 0.1rem !important;
  }
  .edu-uni {
    font-size: 0.56rem !important;
    margin-top: 0.05rem !important;
  }

  .tl-list-r {
    gap: 0.65rem !important;
  }
  .tl-r-item {
    gap: 0.6rem !important;
  }
  .tl-r-dot {
    width: 7px !important;
    height: 7px !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .tl-r-line {
    min-height: 15px !important;
  }
  .tl-r-header {
    margin-bottom: 0.1rem !important;
  }
  .tl-r-title {
    font-size: 0.76rem !important;
    line-height: 1.25 !important;
  }
  .tl-r-date {
    font-size: 0.55rem !important;
    padding: 0.06rem 0.3rem !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .tl-r-org {
    font-size: 0.65rem !important;
    margin-bottom: 0.2rem !important;
  }
  .tl-r-desc {
    font-size: 0.65rem !important;
    line-height: 1.35 !important;
  }
  .tl-r-tags {
    margin-top: 0.25rem !important;
    gap: 0.2rem !important;
  }
  .r-tag {
    font-size: 0.52rem !important;
    padding: 0.06rem 0.3rem !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .r-gh-link {
    font-size: 0.58rem !important;
    margin-top: 0.2rem !important;
  }
  .r-gh-link svg {
    width: 9px !important;
    height: 9px !important;
  }

  .declaration {
    margin-top: 0.6rem !important;
    padding: 0.45rem 0.65rem !important;
    gap: 0.5rem !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .decl-text {
    font-size: 0.6rem !important;
    line-height: 1.3 !important;
  }
  .decl-sig {
    font-size: 0.8rem !important;
  }
}

/* ─────────────────────────────────────────────────────
   22. RESPONSIVE DESIGN (Tablets, Laptops & Mobile)
───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  nav {
    padding: 0.9rem 1.6rem;
  }
  nav.scrolled {
    padding: 0.7rem 1.6rem;
  }
  .nav-links {
    gap: 0.9rem;
  }
  .nav-links a {
    font-size: 0.67rem;
    letter-spacing: 0.04em;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .skills-categories-grid {
    grid-template-columns: 1fr 1fr;
  }
  .architecture-visual-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid-two {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    gap: 2rem;
  }
  .r-body {
    grid-template-columns: 1fr 1.6fr;
  }
  section {
    padding: 5rem 1.5rem;
  }
}

/* Tablet & Mobile Navigation Breakpoint */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .skills-categories-grid {
    grid-template-columns: 1fr;
  }
  .architecture-visual-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid-two {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    cursor: auto !important;
  }
  #cur-dot, #cur-ring {
    display: none !important;
  }
  a, button {
    cursor: pointer !important;
  }
  
  nav {
    padding: 0.85rem 1.2rem;
  }
  nav.scrolled {
    padding: 0.65rem 1.2rem;
  }
  .btn-nav-resume span {
    display: inline;
  }
  
  section {
    padding: 4.5rem 1.25rem;
  }
  .hero-section {
    padding: 6rem 1.25rem 3.5rem;
    min-height: auto;
  }
  .avatar-wrap {
    width: 130px;
    height: 130px;
    margin-bottom: 1.5rem;
  }
  .hero-name {
    font-size: clamp(2rem, 8vw, 3.4rem);
  }
  .hero-role {
    font-size: clamp(0.95rem, 3.5vw, 1.15rem);
  }
  .hero-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 1.1rem;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    gap: 0.75rem;
  }
  .hero-ctas a, .hero-ctas button {
    justify-content: center;
    width: 100%;
  }
  .hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    max-width: 100%;
    margin-top: 1.3rem;
  }
  .hero-pill {
    font-size: 0.68rem;
    padding: 0.22rem 0.55rem;
  }
  
  /* Skills & Toolchain */
  .skills-categories-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .tech-category-card {
    padding: 1.5rem 1.2rem;
  }
  .toolchain-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
  .tc-card {
    padding: 1rem 0.9rem;
  }
  
  /* Internship */
  .featured-internship {
    padding: 1.6rem 1.25rem;
  }
  .exp-role {
    font-size: 1.35rem;
  }
  .exp-bullets li {
    font-size: 0.86rem;
    line-height: 1.65;
  }
  
  /* DevOps Lifecycle Pipeline */
  .pipeline-visual-wrapper {
    padding: 1.4rem 1rem;
    border-radius: 16px;
  }
  .pipeline-flow-track {
    padding: 0.5rem 0.2rem 1.2rem;
    gap: 0.35rem;
  }
  .pipe-node {
    min-width: 84px;
    padding: 0.75rem 0.55rem;
  }
  .pipe-node-title {
    font-size: 0.65rem;
  }
  .pipe-node-sub {
    font-size: 0.55rem;
  }
  .pipeline-step-detail-card {
    padding: 1.2rem 1rem;
  }
  .psd-title {
    font-size: 1.05rem;
  }
  .psd-desc {
    font-size: 0.84rem;
  }
  
  /* Architecture */
  .arch-box {
    padding: 1.4rem 1.1rem;
  }
  .arch-flow-node {
    padding: 0.75rem 0.85rem;
    gap: 0.65rem;
  }
  .af-name {
    font-size: 0.85rem;
    word-break: break-word;
  }
  .af-role {
    font-size: 0.66rem;
    word-break: break-word;
  }
  .ass-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  
  /* Projects */
  .project-featured-card {
    padding: 1.6rem 1.2rem;
  }
  .pfc-title {
    font-size: clamp(1.25rem, 4.5vw, 1.7rem);
  }
  .pfc-desc {
    font-size: 0.88rem;
    line-height: 1.7;
  }
  .pfc-details-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .pfc-detail-item {
    font-size: 0.84rem;
  }
  .pfc-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .pfc-actions a {
    width: 100%;
    justify-content: center;
  }
  .proj-card {
    padding: 1.6rem 1.2rem;
  }
  
  /* Education Timeline */
  .edu-timeline {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .edu-card-modern {
    padding: 1.5rem 1.2rem;
  }
  
  /* Resume Section */
  .resume-quote-card {
    padding: 1.5rem 1.2rem;
  }
  .rqc-text {
    font-size: 1rem;
    line-height: 1.65;
  }
  .resume-paper-toolbar {
    justify-content: center;
    gap: 0.6rem;
  }
  .r-header {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.6rem 1.1rem;
    gap: 1.2rem;
  }
  .r-photo-ring {
    margin: 0 auto;
    width: 85px;
    height: 85px;
  }
  .r-name {
    font-size: clamp(1.4rem, 6vw, 1.85rem);
  }
  .r-role {
    font-size: 0.78rem;
  }
  .r-contacts {
    justify-content: center;
    gap: 0.4rem 0.8rem;
  }
  .r-contact-item {
    font-size: 0.7rem;
    word-break: break-all;
  }
  .r-body {
    grid-template-columns: 1fr;
  }
  .r-left {
    border-right: none;
    border-bottom: 1px solid var(--paper-border);
    padding: 1.25rem 1rem;
  }
  .r-right {
    padding: 1.25rem 1rem;
  }
  .r-objective {
    font-size: 0.82rem;
    padding: 0.75rem 0.85rem;
  }
  .declaration {
    padding: 0.75rem 0.85rem;
    gap: 0.75rem;
  }
  .decl-text {
    font-size: 0.7rem;
  }
  
  /* Contact Form */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .glass-form {
    padding: 1.6rem 1.2rem;
  }
  
  /* Footer */
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
  .footer-right {
    align-items: flex-start;
    width: 100%;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 0.75rem 1.2rem;
  }
}

/* Specific Vertical Flow for Architecture on Mobile */
@media (max-width: 640px) {
  .pap-steps {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }
  .pap-step {
    width: 100%;
    text-align: center;
    padding: 0.45rem 0.75rem;
    font-size: 0.74rem;
  }
  .pap-sep {
    display: block;
    text-align: center;
    line-height: 1;
    transform: rotate(90deg);
    color: var(--cyan);
    font-size: 0.85rem;
    margin: -0.1rem 0;
  }
  .toolchain-grid {
    grid-template-columns: 1fr;
  }
  .gh-card {
    padding: 1.4rem 1rem;
  }
  .gh-stats-row {
    flex-direction: column;
  }
  .gh-stat-img {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  .contact-interactive-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .c-link {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: clamp(1.85rem, 8.5vw, 2.5rem);
  }
  .avatar-wrap {
    width: 115px;
    height: 115px;
    margin-bottom: 1.3rem;
  }
  .hero-badge {
    font-size: 0.68rem;
    padding: 0.3rem 0.8rem;
  }
  .hero-role {
    font-size: 0.95rem;
  }
  .hero-pills {
    display: flex;
    gap: 0.35rem;
  }
  .hero-pill {
    font-size: 0.65rem;
    padding: 0.18rem 0.45rem;
  }
  .sec-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .sec-subtitle {
    font-size: 0.86rem;
    margin-bottom: 2rem;
  }
  .project-featured-card {
    padding: 1.35rem 0.95rem;
    border-radius: 16px;
  }
  .featured-internship {
    padding: 1.35rem 0.95rem;
    border-radius: 16px;
  }
  .tech-category-card {
    padding: 1.35rem 0.95rem;
    border-radius: 14px;
  }
  .arch-box {
    padding: 1.2rem 0.9rem;
    border-radius: 14px;
  }
  .glass-form {
    padding: 1.35rem 0.95rem;
    border-radius: 16px;
  }
  .resume-quote-card {
    padding: 1.35rem 0.95rem;
    border-radius: 14px;
  }
}

/* Compact Mobile (320px - 360px viewport support) */
@media (max-width: 360px) {
  section {
    padding: 3.5rem 0.85rem;
  }
  .hero-section {
    padding: 5rem 0.85rem 3rem;
  }
  .hero-name {
    font-size: clamp(1.65rem, 8.5vw, 2rem);
  }
  .avatar-wrap {
    width: 100px;
    height: 100px;
  }
  .hero-ctas {
    max-width: 100%;
  }
  .btn-p, .btn-g {
    padding: 0.7rem 1.1rem;
    font-size: 0.82rem;
  }
  .pipe-node {
    min-width: 76px;
    padding: 0.65rem 0.45rem;
  }
  .pipe-node-title {
    font-size: 0.6rem;
  }
  .pipe-node-sub {
    font-size: 0.5rem;
  }
  .r-header {
    padding: 1.25rem 0.75rem;
  }
  .r-left, .r-right {
    padding: 1rem 0.75rem;
  }
  .r-name {
    font-size: 1.35rem;
  }
  .terminal-body {
    padding: 1.2rem 0.9rem;
  }
}

/* Reduced Motion Preference */
@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;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .section-divider::after {
    animation: none !important;
    left: 45% !important;
  }
  .section-pulse-active {
    animation: none !important;
  }
  .avatar-ring, .avatar-status, .badge-pulse, .cursor-blink, .scroll-hint {
    animation: none !important;
  }
}