/* ==========================================================================
   Aditya Bakodiya - Portfolio Stylesheet
   Ultra-Modern Cyber Glassmorphism & Compact Mobile Reactive CSS System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Root Design System Tokens
   -------------------------------------------------------------------------- */
:root {
  --bg-dark: #07090e;
  --bg-dark-rgb: 7, 9, 14;
  --bg-card: rgba(18, 24, 38, 0.65);
  --bg-card-hover: rgba(26, 35, 56, 0.85);
  --bg-alt: rgba(12, 16, 26, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(0, 240, 255, 0.4);
  --glass-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
  --glass-shadow-hover: 0 20px 50px 0 rgba(0, 240, 255, 0.2);

  /* Primary Accent Theme Colors (Default Cyber Cyan) */
  --primary-color: #00f0ff;
  --primary-glow: rgba(0, 240, 255, 0.4);
  --accent-color: #7000ff;
  --accent-glow: rgba(112, 0, 255, 0.4);
  --secondary-color: #00ff9d;
  --secondary-glow: rgba(0, 255, 157, 0.35);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #07090e;

  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-code: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  --mouse-x: 50%;
  --mouse-y: 50%;
}

/* /* Theme Accents (Default Cyber Cyan) */


/* User Theme Accents Override */
[data-theme="purple"] {
  --primary-color: #a855f7 !important;
  --primary-glow: rgba(168, 85, 247, 0.45) !important;
  --accent-color: #ec4899 !important;
  --accent-glow: rgba(236, 72, 153, 0.45) !important;
}

[data-theme="emerald"] {
  --primary-color: #10b981 !important;
  --primary-glow: rgba(168, 85, 247, 0.45) !important;
  --accent-color: #06b6d4 !important;
  --accent-glow: rgba(6, 182, 212, 0.45) !important;
}

[data-theme="amber"] {
  --primary-color: #f59e0b !important;
  --primary-glow: rgba(245, 158, 11, 0.45) !important;
  --accent-color: #ef4444 !important;
  --accent-glow: rgba(239, 68, 68, 0.45) !important;
}

[data-theme="sapphire"] {
  --primary-color: #3b82f6 !important;
  --primary-glow: rgba(59, 130, 246, 0.45) !important;
  --accent-color: #8b5cf6 !important;
  --accent-glow: rgba(139, 92, 246, 0.45) !important;
}

/* --------------------------------------------------------------------------
   2. Reset & General Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color var(--transition-smooth);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Typography Helpers */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px var(--primary-glow);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   3. Highlight Elements & Visual Badges
   -------------------------------------------------------------------------- */
.highlight-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.15);
  color: var(--primary-color);
  border: 1px solid rgba(0, 240, 255, 0.4);
  font-weight: 700;
  font-size: 0.88em;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.highlight-badge.gold {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.highlight-badge.green {
  background: rgba(0, 255, 157, 0.15);
  color: var(--secondary-color);
  border-color: rgba(0, 255, 157, 0.45);
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.25);
}

.highlight-text {
  color: var(--primary-color);
  font-weight: 700;
  text-shadow: 0 0 8px var(--primary-glow);
}

.highlight-glow {
  box-shadow: 0 0 15px var(--primary-glow) !important;
  border-color: var(--primary-color) !important;
}

.tag-highlight {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
  background: rgba(0, 240, 255, 0.12) !important;
  font-weight: 700;
}

.tag-highlight-green {
  border-color: var(--secondary-color) !important;
  color: var(--secondary-color) !important;
  background: rgba(0, 255, 157, 0.12) !important;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   4. Top Scroll Progress Bar
   -------------------------------------------------------------------------- */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color));
  box-shadow: 0 0 12px var(--primary-glow), 0 0 20px var(--accent-glow);
  z-index: 9999;
  transition: width 0.08s ease-out;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   5. Canvas & Interactive Scroll Background
   -------------------------------------------------------------------------- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
}

/* Floating Tech Glyphs Container */
.tech-glyphs-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -2;
  pointer-events: none;
}

.floating-glyph {
  position: absolute;
  font-family: var(--font-code);
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  background: rgba(18, 24, 38, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
  white-space: nowrap;
  user-select: none;
  transition: transform 0.15s ease-out, opacity 0.5s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  will-change: transform;
}

.floating-glyph.active-scroll {
  border-color: var(--primary-glow);
  color: var(--primary-color);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Ambient Aurora Mesh Lighting */
.ambient-light {
  position: fixed;
  top: -15vw;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 45vw;
  background: radial-gradient(circle, var(--primary-glow) 0%, var(--accent-glow) 40%, transparent 75%);
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.65;
  transition: background var(--transition-smooth), opacity var(--transition-smooth);
}

.ambient-mesh {
  position: fixed;
  bottom: -15vw;
  right: -10vw;
  width: 60vw;
  height: 40vw;
  background: radial-gradient(circle, var(--accent-glow) 0%, var(--secondary-glow) 40%, transparent 70%);
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  transition: background var(--transition-smooth);
}

/* --------------------------------------------------------------------------
   6. Floating Section Radar HUD (Quick Navigation Capsule)
   -------------------------------------------------------------------------- */
.section-radar {
  position: fixed;
  right: 1.8rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
  pointer-events: auto;
}

.radar-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(12, 16, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 0.4rem 0.9rem;
  border-radius: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  font-family: var(--font-code);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.radar-pill:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 15px var(--primary-glow);
}

.radar-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 8px var(--primary-color);
  animation: radar-pulse 1.8s infinite;
}

@keyframes radar-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.6);
    opacity: 0.5;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.radar-section-name {
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.radar-divider {
  width: 1px;
  height: 10px;
  background: var(--glass-border);
}

.radar-percent {
  color: var(--text-muted);
}

.radar-dots {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: rgba(12, 16, 26, 0.7);
  backdrop-filter: blur(12px);
  padding: 0.7rem 0.5rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.radar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.radar-dot:hover {
  background: #ffffff;
  transform: scale(1.4);
}

.radar-dot.active {
  background: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-glow);
  transform: scale(1.4);
}

/* --------------------------------------------------------------------------
   7. Utility Components & Layout Containers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

/* Defer rendering of offscreen sections on mobile for instant load */
.section:not(.hero-section) {
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}

.section.bg-alt {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.section-subtitle {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2.5px;
  color: var(--primary-color);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  padding: 0.3rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

.section-title {
  font-size: 2.8rem;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.header-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  margin: 1.2rem auto 0;
  border-radius: 4px;
  box-shadow: 0 0 10px var(--primary-glow);
}

.section-intro {
  color: var(--text-muted);
  max-width: 680px;
  margin: 1.2rem auto 0;
  font-size: 1.05rem;
}

/* Text Gradients */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   8. Glassmorphism Card Style & Mouse Spotlight Border
   -------------------------------------------------------------------------- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--glass-shadow);
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);
  will-change: transform;
}

/* Radial Spotlight Gradient following cursor */
.glass-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      var(--primary-glow),
      rgba(255, 255, 255, 0.05) 40%,
      transparent 80%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 45px 0 rgba(0, 0, 0, 0.6), 0 0 25px var(--primary-glow);
}

.glass-card:hover::before {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   9. Key Highlights Grid (Main Points Showcase)
   -------------------------------------------------------------------------- */
.key-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-bottom: 1.8rem;
}

.highlight-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(18, 24, 38, 0.85), rgba(25, 32, 50, 0.65));
  border: 1px solid var(--glass-border);
  transition: all var(--transition-normal);
}

.highlight-card-rank {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 6px 25px rgba(0, 240, 255, 0.12);
}

.highlight-card-score {
  border-color: rgba(0, 255, 157, 0.35);
  box-shadow: 0 6px 25px rgba(0, 255, 157, 0.12);
}

.highlight-card-tech {
  border-color: rgba(112, 0, 255, 0.35);
  box-shadow: 0 6px 25px rgba(112, 0, 255, 0.12);
}

.highlight-card-cyber {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.12);
}

.highlight-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-glow);
}

.hl-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.hl-rank {
  background: rgba(0, 240, 255, 0.15);
  color: var(--primary-color);
  border: 1px solid var(--primary-glow);
  box-shadow: 0 0 15px var(--primary-glow);
}

.hl-score {
  background: rgba(0, 255, 157, 0.15);
  color: var(--secondary-color);
  border: 1px solid var(--secondary-glow);
  box-shadow: 0 0 15px var(--secondary-glow);
}

.hl-tech {
  background: rgba(112, 0, 255, 0.15);
  color: #c084fc;
  border: 1px solid var(--accent-glow);
  box-shadow: 0 0 15px var(--accent-glow);
}

.hl-cyber {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.hl-content {
  display: flex;
  flex-direction: column;
}

.hl-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-color);
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.hl-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.hl-content p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* --------------------------------------------------------------------------
   10. Scroll Reveal Animation Classes
   -------------------------------------------------------------------------- */
.reveal-init {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-init.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* --------------------------------------------------------------------------
   11. Buttons & Interactive Controls
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.7rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  min-height: 48px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #ffffff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--primary-glow);
  color: #ffffff;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--primary-glow);
}

.btn-neon {
  background: rgba(0, 240, 255, 0.08);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.btn-neon:hover {
  background: var(--primary-color);
  color: var(--text-dark);
  box-shadow: 0 0 30px var(--primary-glow);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  border-radius: 8px;
  min-height: 40px;
}

.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  touch-action: manipulation;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-accent {
  background: rgba(0, 240, 255, 0.15);
  color: var(--primary-color);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.badge-success {
  background: rgba(0, 255, 157, 0.15);
  color: var(--secondary-color);
  border: 1px solid rgba(0, 255, 157, 0.3);
}

.badge-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
}

/* --------------------------------------------------------------------------
   12. Navbar
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  padding: 0.75rem 0;
  background: rgba(7, 9, 14, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: #ffffff;
}

.brand-code {
  font-family: var(--font-code);
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-glow);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  background: rgba(255, 255, 255, 0.04);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mobile-only {
  display: none;
}

/* --------------------------------------------------------------------------
   13. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  padding-top: 8rem;
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.6rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary-color);
  box-shadow: 0 0 10px var(--secondary-color);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.7);
  }

  70% {
    transform: scale(1.2);
    box-shadow: 0 0 0 10px rgba(0, 255, 157, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 255, 157, 0);
  }
}

.hero-title {
  font-size: 3.8rem;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.typewriter-container {
  font-size: 1.35rem;
  font-family: var(--font-code);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  min-height: 2.2rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 0.25rem;
  line-height: 1.4;
}

.typewriter-prefix {
  color: var(--text-muted);
  white-space: nowrap;
  margin-right: 0.45rem;
  flex-shrink: 0;
}

.typewriter-text-wrapper {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.typewriter-text {
  color: var(--primary-color);
  font-weight: 600;
  text-shadow: 0 0 12px var(--primary-glow);
  word-break: break-word;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background-color: var(--primary-color);
  margin-left: 4px;
  vertical-align: middle;
  border-radius: 1px;
  box-shadow: 0 0 8px var(--primary-glow);
  animation: blink 0.85s infinite;
  flex-shrink: 0;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.8rem;
}

.hero-quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.8rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
}

.stat-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.stat-highlight-rank {
  border-color: rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.06);
}

.stat-highlight-score {
  border-color: rgba(0, 255, 157, 0.35);
  background: rgba(0, 255, 157, 0.06);
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.1;
  font-family: var(--font-code);
  text-shadow: 0 0 10px var(--primary-glow);
  display: block;
}

.stat-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: block;
}

/* Avatar Frame Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.avatar-frame-wrapper {
  position: relative;
  width: 320px;
  height: 380px;
}

.avatar-glow {
  position: absolute;
  inset: -12px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 26px;
  filter: blur(28px);
  opacity: 0.55;
  z-index: 0;
  animation: float-glow 4s ease-in-out infinite alternate;
}

@keyframes float-glow {
  0% {
    transform: scale(0.98);
    opacity: 0.45;
  }

  100% {
    transform: scale(1.05);
    opacity: 0.7;
  }
}

.avatar-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  border: 2px solid var(--glass-border);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.avatar-badge {
  position: absolute;
  z-index: 2;
  background: rgba(12, 16, 26, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  padding: 0.55rem 1.1rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.badge-top {
  top: -15px;
  right: -20px;
  border-left: 3px solid var(--accent-color);
}

.badge-bottom {
  bottom: -15px;
  left: -20px;
  border-left: 3px solid var(--primary-color);
}

.scroll-down-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translate(-50%, 0);
  }

  40% {
    transform: translate(-50%, -10px);
  }

  60% {
    transform: translate(-50%, -5px);
  }
}

/* --------------------------------------------------------------------------
   14. About Me Section
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.2rem;
}

.about-card h3 {
  font-size: 1.45rem;
  margin-bottom: 1rem;
}

.about-card p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--primary-glow);
  box-shadow: 0 0 20px var(--primary-glow);
}

/* --------------------------------------------------------------------------
   15. Education Timeline Section
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  max-width: 950px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-color), var(--accent-color), var(--secondary-color));
  transform: translateX(-50%);
  box-shadow: 0 0 10px var(--primary-glow);
}

.timeline-item {
  margin-bottom: 3.5rem;
  position: relative;
  width: 50%;
}

.timeline-item.left {
  left: 0;
  padding-right: 2.8rem;
}

.timeline-item.right {
  left: 50%;
  padding-left: 2.8rem;
}

.timeline-dot {
  position: absolute;
  top: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 20px var(--primary-glow);
}

.timeline-item.left .timeline-dot {
  right: -23px;
}

.timeline-item.right .timeline-dot {
  left: -23px;
}

.institution-img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--glass-border);
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.institution-name {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
}

.timeline-description {
  color: var(--text-muted);
  margin-bottom: 1.4rem;
  font-size: 0.98rem;
  line-height: 1.65;
}

.timeline-actions {
  margin-bottom: 1.2rem;
}

.timeline-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* --------------------------------------------------------------------------
   16. Experience Section
   -------------------------------------------------------------------------- */
.experience-banner {
  display: flex;
  align-items: center;
  gap: 2.8rem;
  background: linear-gradient(135deg, rgba(18, 24, 38, 0.85), rgba(30, 20, 60, 0.65));
  border: 1px solid rgba(112, 0, 255, 0.35);
}

.exp-icon {
  width: 95px;
  height: 95px;
  border-radius: 22px;
  background: rgba(112, 0, 255, 0.15);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  flex-shrink: 0;
  border: 1px solid var(--accent-glow);
  box-shadow: 0 0 30px var(--accent-glow);
}

.exp-content h2 {
  font-size: 1.9rem;
  margin: 0.5rem 0 0.8rem;
}

.exp-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   17. Skills Section
   -------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.8rem;
}

.skill-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.2rem;
}

.skill-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
}

.html-css-color {
  background: rgba(227, 76, 38, 0.15);
  color: #e34c26;
  border: 1px solid rgba(227, 76, 38, 0.3);
}

.python-color {
  background: rgba(55, 118, 171, 0.15);
  color: #3776ab;
  border: 1px solid rgba(55, 118, 171, 0.3);
}

.js-color {
  background: rgba(247, 223, 30, 0.15);
  color: #f7df1e;
  border: 1px solid rgba(247, 223, 30, 0.3);
}

.cyber-color {
  background: rgba(0, 240, 255, 0.15);
  color: var(--primary-color);
  border: 1px solid var(--primary-glow);
}

.c-lang-color {
  background: rgba(0, 180, 255, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.skill-title-wrap h3 {
  font-size: 1.2rem;
}

.level-badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
}

.level-intermediate {
  background: rgba(0, 240, 255, 0.2);
  color: var(--primary-color);
}

.level-beginner {
  background: rgba(247, 223, 30, 0.2);
  color: #f7df1e;
}

.level-exploring {
  background: rgba(112, 0, 255, 0.2);
  color: #c084fc;
}

.skill-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.6rem;
  min-height: 4rem;
  line-height: 1.6;
}

.progress-bar-container {
  margin-bottom: 1.4rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-family: var(--font-code);
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 6px;
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px var(--primary-glow);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tags span {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* --------------------------------------------------------------------------
   18. Projects & Interactive Code Playground
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.2rem;
  margin-bottom: 3rem;
}

.featured-project {
  grid-column: 1 / -1;
  border-color: rgba(0, 240, 255, 0.4);
  background: linear-gradient(135deg, rgba(18, 24, 38, 0.9), rgba(20, 30, 50, 0.75));
}

.featured-project-c {
  border-color: rgba(0, 240, 255, 0.55);
  background: linear-gradient(135deg, rgba(12, 22, 38, 0.95), rgba(16, 32, 56, 0.85));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.18);
  position: relative;
}

.project-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  color: #ffffff;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 0 15px var(--primary-glow);
}

.project-badge-cyan {
  background: linear-gradient(90deg, #00f0ff, #0077ff);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.5);
}

.project-badge-secondary {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--glass-border);
}

.project-content h3 {
  font-size: 1.55rem;
  margin-bottom: 0.9rem;
}

.project-content h3 .project-accent-tag {
  font-size: 0.8rem;
  margin-left: 0.6rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.12);
  color: var(--primary-color);
  border: 1px solid rgba(0, 240, 255, 0.3);
  font-family: var(--font-code);
  font-weight: 600;
  vertical-align: middle;
}

.project-text {
  color: var(--text-muted);
  margin-bottom: 1.4rem;
  font-size: 1.02rem;
  line-height: 1.7;
}

.project-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.4rem;
}

.pf-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.pf-pill:hover {
  border-color: rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.05);
}

.pf-pill i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

.pf-pill kbd {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: var(--font-code);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.tech-tag {
  background: rgba(0, 240, 255, 0.08);
  color: var(--primary-color);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-family: var(--font-code);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.status-live {
  color: var(--secondary-color);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-live i {
  font-size: 0.6rem;
  animation: pulse-glow 1.5s infinite;
}

.project-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-sandbox-toggle-wrap {
  display: none;
}

/* Interactive Playground Widget */
.playground-wrapper {
  padding: 0;
  border-color: rgba(112, 0, 255, 0.35);
  overflow: hidden;
}

.playground-header {
  background: rgba(12, 16, 26, 0.95);
  padding: 1.1rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  flex-wrap: wrap;
  gap: 1rem;
}

.playground-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: var(--font-code);
  font-size: 1.05rem;
}

.playground-tabs {
  display: flex;
  gap: 0.6rem;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
  min-height: 40px;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--primary-color);
  color: var(--text-dark);
  font-weight: 700;
  border-color: var(--primary-color);
  box-shadow: 0 0 15px var(--primary-glow);
}

.playground-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 300px;
}

.code-editor-area,
.code-output-area {
  display: flex;
  flex-direction: column;
}

.editor-header,
.output-header {
  background: rgba(0, 0, 0, 0.5);
  padding: 0.6rem 1.2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-code);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
}

.editor-filename-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.traffic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.traffic-dot.red {
  background: #ff5f56;
}

.traffic-dot.yellow {
  background: #ffbd2e;
}

.traffic-dot.green {
  background: #27c93f;
}

.editor-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-tool {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-tool:hover {
  background: var(--primary-color);
  color: var(--text-dark);
}

.btn-accent {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #ffffff;
  box-shadow: 0 0 12px var(--primary-glow);
}

.code-textarea {
  width: 100%;
  height: 100%;
  min-height: 240px;
  background: rgba(5, 8, 14, 0.95);
  color: #cbd5e1;
  font-family: var(--font-code);
  font-size: 0.92rem;
  padding: 1.2rem;
  border: none;
  resize: vertical;
  outline: none;
  line-height: 1.6;
}

.output-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary-color);
  box-shadow: 0 0 8px var(--secondary-color);
}

.output-content {
  padding: 1.2rem;
  background: #020408;
  height: 100%;
  min-height: 240px;
  color: #00ff9d;
  font-family: var(--font-code);
  font-size: 0.9rem;
  overflow-y: auto;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   19. Certificates & Badges Section
   -------------------------------------------------------------------------- */
.mobile-swipe-hint {
  display: none;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.2rem;
}

.cert-card {
  padding: 0;
  cursor: pointer;
}

.cert-img-wrapper {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}

.cert-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.cert-card:hover .cert-img {
  transform: scale(1.06);
}

.cert-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 14, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--primary-color);
  font-weight: 700;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.cert-card:hover .cert-overlay {
  opacity: 1;
}

.cert-info {
  padding: 1.6rem;
}

.cert-info h3 {
  font-size: 1.2rem;
  margin: 0.7rem 0 0.4rem;
}

.cert-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.platform-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.cisco-tag {
  background: rgba(0, 240, 255, 0.15);
  color: var(--primary-color);
  border: 1px solid var(--primary-glow);
}

.coddy-tag {
  background: rgba(112, 0, 255, 0.15);
  color: #c084fc;
  border: 1px solid var(--accent-glow);
}

.wordpress-tag,
.coursera-tag {
  background: rgba(0, 86, 210, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.badge-feature-box {
  margin-top: 1.2rem;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--primary-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.cisco-badge-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--primary-glow));
}

.badge-feature-box strong {
  font-size: 0.88rem;
  color: var(--primary-color);
  display: block;
}

.badge-feature-box p {
  font-size: 0.78rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   20. Interests Section
   -------------------------------------------------------------------------- */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
}

.interest-box {
  text-align: center;
  padding: 2.5rem 1.6rem;
}

.interest-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  margin: 0 auto 1.2rem;
  border: 1px solid var(--primary-glow);
  box-shadow: 0 0 25px var(--primary-glow);
}

.interest-box h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.interest-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   21. Contact Section
   -------------------------------------------------------------------------- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.8rem;
}

.contact-info-card h3,
.contact-form-card h3 {
  font-size: 1.55rem;
  margin-bottom: 0.9rem;
}

.contact-info-card p {
  color: var(--text-muted);
  margin-bottom: 2.2rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.9rem 1.3rem;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  transition: all var(--transition-fast);
}

.contact-item:hover {
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.06);
}

.c-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.c-detail {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.c-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.c-value {
  font-weight: 600;
  font-size: 0.98rem;
  word-break: break-all;
}

.btn-copy,
.btn-external {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.15rem;
  padding: 0.4rem;
  transition: color var(--transition-fast);
}

.btn-copy:hover,
.btn-external:hover {
  color: var(--primary-color);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  background: rgba(5, 8, 14, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.98rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 15px var(--primary-glow);
}

.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: 0.6rem;
}

/* --------------------------------------------------------------------------
   22. Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 2.5rem 0;
  background: var(--bg-dark);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.15rem;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer-socials a:hover {
  background: var(--primary-color);
  color: var(--text-dark);
  border-color: var(--primary-color);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* --------------------------------------------------------------------------
   23. Modals & Lightbox
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 14, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  max-width: 800px;
  width: 100%;
  position: relative;
  padding: 2.2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.9);
  transition: transform var(--transition-bounce);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--accent-color);
  transform: rotate(90deg);
}

.modal-img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
}

.modal-title {
  text-align: center;
  margin-top: 1.4rem;
  font-size: 1.3rem;
  color: var(--primary-color);
}

/* 10th Result Scorecard Modal */
.score-modal-container {
  max-width: 620px;
}

.result-header {
  text-align: center;
  margin-bottom: 2.2rem;
}

.result-icon {
  font-size: 3.2rem;
  color: var(--primary-color);
  margin-bottom: 0.9rem;
  filter: drop-shadow(0 0 15px var(--primary-glow));
}

.result-header h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.result-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.result-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-bottom: 2.2rem;
}

.result-stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  padding: 1.1rem;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
}

.res-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.res-val {
  font-size: 1.15rem;
  font-weight: 700;
}

.highlight-val {
  color: var(--primary-color);
  font-family: var(--font-code);
  font-size: 1.5rem;
  text-shadow: 0 0 10px var(--primary-glow);
}

.pass-val {
  color: var(--secondary-color);
  font-size: 0.92rem;
}

.score-breakdown-box h4 {
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}

.score-bar-item {
  margin-bottom: 1.1rem;
  font-size: 0.88rem;
}

.score-bar-item span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--text-muted);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 90vw;
}

.toast {
  background: rgba(18, 24, 38, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--primary-color);
  color: var(--text-main);
  padding: 0.9rem 1.4rem;
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 15px var(--primary-glow);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  animation: slide-in 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   24. Ultra-Compact Mobile Layout & Horizontal Swipe Ergonomics
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .section-radar {
    display: none;
  }
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.2rem;
  }

  .typewriter-container {
    justify-content: center;
    font-size: 1.2rem;
    min-height: 2.4rem;
  }

  .hero-description {
    margin: 0 auto 1.8rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-quick-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .playground-body {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 23px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 3.8rem !important;
    padding-right: 0 !important;
  }

  .timeline-item.right {
    left: 0;
  }

  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 0;
  }
}

@media (max-width: 768px) {

  /* Disable heavy background glyphs on mobile to maximize battery & frame rate */
  .tech-glyphs-container {
    display: none !important;
  }

  /* Compact section vertical rhythm */
  .section {
    padding: 2.8rem 0;
  }

  .section-header {
    margin-bottom: 1.8rem;
  }

  .hero-section {
    padding-top: 5.5rem;
    padding-bottom: 2.2rem;
    min-height: auto;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .typewriter-container {
    font-size: 1.05rem;
    min-height: 2.2rem;
    margin-bottom: 1.3rem;
    justify-content: center;
  }

  .typewriter-prefix {
    margin-right: 0.38rem;
  }

  .section-title {
    font-size: 1.95rem;
  }

  .glass-card {
    padding: 1.3rem;
    border-radius: 14px;
  }

  /* Compact Highlights Grid */
  .key-highlights-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
  }

  .highlight-card {
    padding: 1rem 1.1rem;
    gap: 0.9rem;
  }

  .hl-icon {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }

  .hl-content h4 {
    font-size: 1rem;
  }

  /* Compact Hero Stats */
  .hero-quick-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    padding-top: 1.2rem;
  }

  .stat-card {
    padding: 0.6rem 0.8rem;
    gap: 0.6rem;
  }

  .stat-icon-wrap {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .stat-number {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  /* Mobile Navigation Menu */
  .mobile-only {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(7, 9, 14, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 1.6rem 1.2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-link {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-size: 1rem;
  }

  .avatar-frame-wrapper {
    width: 240px;
    height: 290px;
  }

  .avatar-badge {
    padding: 0.35rem 0.75rem;
    font-size: 0.72rem;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.2rem;
  }

  /* Compact 2-Column Skills Matrix on Mobile */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .skill-head {
    gap: 0.8rem;
    margin-bottom: 0.8rem;
  }

  .skill-icon {
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
  }

  .skill-desc {
    min-height: auto;
    font-size: 0.88rem;
    margin-bottom: 1rem;
  }

  /* Mobile Horizontal Swipe Carousel for Certificates (Cuts 1200px of scrolling!) */
  .mobile-swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: var(--font-code);
  }

  .certificates-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.8rem;
    gap: 1rem;
    -webkit-overflow-scrolling: touch;
  }

  .certificates-grid .cert-card {
    min-width: 84vw;
    scroll-snap-align: center;
    flex-shrink: 0;
  }

  .cert-img-wrapper {
    height: 180px;
  }

  .cert-info {
    padding: 1.2rem;
  }

  /* Compact 2x2 Interests Grid on Mobile */
  .interests-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }

  .interest-box {
    padding: 1.4rem 0.8rem;
  }

  .interest-icon {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
  }

  .interest-box h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }

  .interest-box p {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  /* Mobile Collapsible Code Playground */
  .mobile-sandbox-toggle-wrap {
    display: block;
    margin-bottom: 1rem;
  }

  .mobile-sandbox-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.2rem;
    background: rgba(18, 24, 38, 0.9);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
  }

  .toggle-status-badge {
    transition: transform var(--transition-normal);
  }

  .playground-wrapper {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    margin-bottom: 1.5rem;
  }

  .playground-wrapper.expanded {
    max-height: 1200px;
    opacity: 1;
  }

  .mobile-sandbox-toggle.active .toggle-status-badge {
    transform: rotate(180deg);
  }

  /* Compact Modals on Mobile */
  .modal-container {
    padding: 1.2rem;
    width: 95%;
    border-radius: 16px;
  }

  .result-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    margin-bottom: 1.2rem;
  }

  .result-icon {
    font-size: 2.4rem;
  }

  .highlight-val {
    font-size: 1.3rem;
  }

  .timeline-item {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.95rem;
  }

  .typewriter-container {
    font-size: 0.92rem;
    letter-spacing: -0.01em;
    margin-bottom: 1.1rem;
    min-height: 2.1rem;
  }

  .typewriter-prefix {
    margin-right: 0.32rem;
  }

  .cursor {
    height: 1.15em;
    margin-left: 3px;
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .typewriter-container {
    font-size: 0.8rem;
  }
}

/* --------------------------------------------------------------------------
   25. GitHub Widget & Print Styles
   -------------------------------------------------------------------------- */
.github-widget-card {
  border-color: rgba(0, 240, 255, 0.3);
}

.github-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.gh-user-info {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.gh-logo {
  font-size: 2.6rem;
  color: var(--primary-color);
}

.gh-username {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-family: var(--font-code);
}

.github-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.9rem;
}

.gh-stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  padding: 1.1rem;
  border-radius: 14px;
  text-align: center;
}

.gh-stat-num {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

.gh-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.github-embed-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.gh-embed-img {
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
}

@media print {
  body * {
    visibility: hidden;
  }

  #resume-modal,
  #resume-modal * {
    visibility: visible;
  }

  #resume-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #ffffff !important;
    color: #000000 !important;
  }

  .no-print,
  .modal-close,
  .section-radar,
  .scroll-progress-bar,
  .tech-glyphs-container {
    display: none !important;
  }
}
