/* Redesigned Stylesheet for Farhan Maniya - Server & API Development Aesthetic */

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

:root {
  /* Dracula & VS Code Palette */
  --bg-dark: #1e1f29;
  --bg-darker: #15161e;
  --bg-darkest: #0f1015;
  --bg-card: rgba(40, 42, 54, 0.72);
  --bg-card-hover: rgba(56, 59, 78, 0.85);
  --selection: #44475a;
  --border-color: rgba(98, 114, 164, 0.28);
  --border-glow: rgba(139, 233, 253, 0.22);
  
  /* Text Colors */
  --text-main: #f8f8f2;
  --text-muted: #9aa5ce;
  --text-dim: #6272a4;
  --text-dark: #1e1f29;

  /* Sharp Syntax-Highlighting Neon Accents */
  --accent-green: #50fa7b;   /* Emerald Green: online/success states */
  --accent-cyan: #8be9fd;    /* Cyan: variables/links/endpoints */
  --accent-purple: #bd93f9;  /* Purple: keywords/types */
  --accent-pink: #ff79c6;    /* Pink: functions/methods */
  --accent-orange: #ffb86c;  /* Orange: numbers/parameters */
  --accent-yellow: #f1fa8c;  /* Yellow: strings/warnings */
  --accent-red: #ff5555;     /* Red: errors/close */
  
  /* Font Families */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', 'Cascadia Code', 'Courier New', monospace;

  /* Smooth Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Global Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* Decorative Background Glows */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.14;
  pointer-events: none;
}
.glow-1 {
  width: 550px;
  height: 550px;
  background: var(--accent-cyan);
  top: -100px;
  right: -100px;
}
.glow-2 {
  width: 600px;
  height: 600px;
  background: var(--accent-purple);
  top: 38%;
  left: -200px;
}
.glow-3 {
  width: 480px;
  height: 480px;
  background: var(--accent-green);
  bottom: 80px;
  right: -100px;
}

/* Custom Scrollbar - Dracula Theme */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
  background: #2b2d3c;
  border-radius: 6px;
  border: 2px solid var(--bg-darkest);
}
::-webkit-scrollbar-thumb:hover {
  background: #44475a;
}

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

p {
  color: var(--text-muted);
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-cyan { color: var(--accent-cyan) !important; }
.text-purple { color: var(--accent-purple) !important; }
.text-green, .text-success { color: var(--accent-green) !important; }
.text-orange { color: var(--accent-orange) !important; }
.text-yellow { color: var(--accent-yellow) !important; }
.text-dim { color: var(--text-dim) !important; }

.font-mono {
  font-family: var(--font-mono) !important;
}

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

.gradient-text {
  background: linear-gradient(135deg, var(--text-main) 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-accent {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 60%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Styles */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: rgba(139, 233, 253, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 
              0 0 35px rgba(139, 233, 253, 0.08);
  transform: translateY(-3px);
}

/* Glass Button Styles */
.btn-modern {
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: 12px;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary-modern {
  background: linear-gradient(135deg, var(--accent-cyan), #0284c7);
  color: var(--text-dark);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(139, 233, 253, 0.3);
}

.btn-primary-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(139, 233, 253, 0.48);
  color: var(--text-dark) !important;
}

.btn-secondary-modern {
  background: rgba(40, 42, 54, 0.65);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary-modern:hover {
  background: rgba(68, 71, 90, 0.6);
  border-color: rgba(139, 233, 253, 0.4);
  transform: translateY(-2px);
  color: var(--text-main) !important;
}

/* Pulse Dot */
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--accent-green);
  opacity: 0.5;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Navigation Bar */
.navbar-modern {
  background: rgba(21, 22, 30, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.9rem 0;
  transition: var(--transition-smooth);
}

.navbar-modern.scrolled {
  padding: 0.65rem 0;
  background: rgba(21, 22, 30, 0.96);
  border-bottom-color: rgba(139, 233, 253, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.navbar-brand-modern {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  background: linear-gradient(135deg, var(--text-main) 40%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link-modern {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-muted) !important;
  font-size: 0.92rem;
  position: relative;
  padding: 0.5rem 0.9rem !important;
  transition: var(--transition-fast);
}

.nav-link-modern::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: var(--transition-fast);
  transform: translateX(-50%);
}

.nav-link-modern:hover, 
.nav-link-modern.active {
  color: var(--accent-cyan) !important;
}

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

.navbar-toggler {
  border: 1px solid var(--border-color) !important;
  padding: 0.4rem 0.6rem !important;
  border-radius: 8px !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 2px rgba(139, 233, 253, 0.4) !important;
}

.navbar-toggler-icon {
  filter: invert(1);
}

.hover-cyan:hover {
  color: var(--accent-cyan) !important;
  transform: translateY(-2px);
  display: inline-block;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  padding: 8rem 0 4.5rem;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-profile-container {
  position: relative;
  display: inline-block;
}

.hero-profile-container::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 36px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  opacity: 0.4;
  filter: blur(20px);
  z-index: -1;
  animation: morph-glow 8s ease-in-out infinite alternate;
}

@keyframes morph-glow {
  0% { transform: scale(1) rotate(0deg); border-radius: 36px; }
  100% { transform: scale(1.06) rotate(4deg); border-radius: 44px; }
}

.hero-profile-img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 30px;
  border: 2px solid rgba(139, 233, 253, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Live Server Badge */
.live-server-badge {
  background: rgba(21, 22, 30, 0.85);
  border: 1px solid rgba(80, 250, 123, 0.35);
  border-radius: 30px;
  font-size: 0.8rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.live-server-badge .status-chip {
  color: var(--accent-green);
}

.bg-purple-subtle {
  background: rgba(189, 147, 249, 0.12);
}

.border-purple {
  border-color: rgba(189, 147, 249, 0.3) !important;
}

/* Mock Code IDE Window (Dracula Theme) */
.code-window {
  background: #14151e;
  border: 1px solid rgba(98, 114, 164, 0.3);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8),
              0 0 30px rgba(189, 147, 249, 0.05);
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.code-header {
  background: #191a24;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(98, 114, 164, 0.2);
}

.code-dots {
  display: flex;
  gap: 6px;
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-dot.red { background: var(--accent-red); }
.code-dot.yellow { background: var(--accent-orange); }
.code-dot.green { background: var(--accent-green); }

.code-title {
  color: var(--text-dim);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.code-content {
  padding: 1.25rem;
  overflow-x: auto;
  line-height: 1.6;
  color: var(--text-main);
  background: #14151e;
}

/* Syntax Highlighting Tokens (Dracula Specification) */
.keyword { color: var(--accent-purple) !important; font-weight: 600; }
.function { color: var(--accent-green) !important; }
.string { color: var(--accent-yellow) !important; }
.comment { color: var(--text-dim) !important; font-style: italic; }
.number { color: var(--accent-orange) !important; }
.property, .variable { color: var(--accent-cyan) !important; }
.punctuation { color: #f8f8f2; }
.line-num {
  color: var(--text-dim);
  user-select: none;
  display: inline-block;
  width: 24px;
  text-align: right;
  margin-right: 14px;
  opacity: 0.6;
}

/* Bento Grid About Me */
.section-title-container {
  margin-bottom: 3.5rem;
  position: relative;
}

.section-subtitle {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-card {
  padding: 2.2rem;
  height: 100%;
}

/* Card Sizes */
.bento-col-4 { grid-column: span 4; }
.bento-col-5 { grid-column: span 5; }
.bento-col-7 { grid-column: span 7; }
.bento-col-8 { grid-column: span 8; }
.bento-col-12 { grid-column: span 12; }

.stat-number {
  font-size: 3.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

/* Technical Pillar Cards */
.pillar-card {
  background: rgba(21, 22, 30, 0.75);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.4rem;
  height: 100%;
  transition: var(--transition-fast);
}

.pillar-card:hover {
  border-color: rgba(139, 233, 253, 0.35);
  transform: translateY(-2px);
  background: rgba(30, 32, 44, 0.9);
}

.pillar-icon {
  font-size: 1.8rem;
  color: var(--accent-cyan);
  margin-bottom: 0.85rem;
  display: inline-block;
}

.pillar-card.sec-pillar .pillar-icon { color: var(--accent-purple); }
.pillar-card.data-pillar .pillar-icon { color: var(--accent-green); }
.pillar-card.collab-pillar .pillar-icon { color: var(--accent-pink); }

.pillar-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.pillar-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(139, 233, 253, 0.08);
  color: var(--accent-cyan);
  border: 1px solid rgba(139, 233, 253, 0.2);
  display: inline-block;
  margin-top: 0.5rem;
}

/* Interactive Mock API Terminal Section */
.terminal-window {
  background: #14151e;
  border: 1px solid rgba(139, 233, 253, 0.25);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7),
              0 0 35px rgba(139, 233, 253, 0.05);
  font-family: var(--font-mono);
}

.terminal-header {
  background: #191a24;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(98, 114, 164, 0.25);
}

.terminal-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  background: #171822;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(98, 114, 164, 0.2);
}

.terminal-btn {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 0.45rem 0.9rem;
  background: rgba(40, 42, 54, 0.55);
  border: 1px solid rgba(98, 114, 164, 0.35);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.terminal-btn:hover,
.terminal-btn.active {
  background: rgba(139, 233, 253, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(139, 233, 253, 0.15);
}

.terminal-btn.btn-clear {
  color: var(--text-dim);
}
.terminal-btn.btn-clear:hover {
  color: var(--accent-red);
  border-color: rgba(255, 85, 85, 0.4);
  background: rgba(255, 85, 85, 0.08);
}

.terminal-body {
  padding: 1.5rem;
  height: 380px;
  overflow-y: auto;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #14151e;
}

.terminal-row {
  line-height: 1.55;
}

.terminal-prompt {
  color: var(--accent-purple);
  font-weight: 600;
}

.terminal-command {
  color: var(--text-main);
  font-weight: 500;
}

/* HTTP Headers Display */
.terminal-headers {
  color: var(--text-dim);
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--accent-purple);
  padding: 0.4rem 0.8rem;
  margin: 0.35rem 0 0.5rem 1rem;
  line-height: 1.45;
}
.terminal-headers .header-status {
  color: var(--accent-green);
  font-weight: 700;
}
.terminal-headers .header-key {
  color: var(--accent-cyan);
}
.terminal-headers .header-val {
  color: var(--text-muted);
}

.terminal-output {
  color: var(--accent-green);
  white-space: pre-wrap;
  margin-top: 0.25rem;
  margin-left: 1rem;
  font-size: 0.83rem;
  line-height: 1.5;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--accent-cyan);
  animation: cursor-blink 1s infinite;
  vertical-align: middle;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Aligned Skills Section (Categorized Without Percentages) */
.skill-card-modern {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.skill-card-modern:hover {
  border-color: rgba(139, 233, 253, 0.35);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(98, 114, 164, 0.2);
}

.skill-header-icon {
  font-size: 1.8rem;
}

.skill-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--text-main);
}

.skill-card-subtitle {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skill-badge-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.4rem;
}

.skill-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  background: rgba(21, 22, 30, 0.8);
  border: 1px solid rgba(98, 114, 164, 0.3);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.skill-chip:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(139, 233, 253, 0.08);
}

.skill-chip-primary {
  border-color: rgba(139, 233, 253, 0.4);
  color: var(--accent-cyan);
  background: rgba(139, 233, 253, 0.06);
}

.skill-points-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
}

.skill-points-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.5;
}

.skill-points-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: bold;
}

/* Visual Tech Stack Showcase Badges */
.tech-badges-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 3.5rem;
}

.tech-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(40, 42, 54, 0.55);
  border: 1px solid rgba(98, 114, 164, 0.3);
  padding: 0.55rem 1.15rem;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.tech-badge-item i {
  font-size: 1.15rem;
}

.tech-badge-item:hover {
  background: rgba(68, 71, 90, 0.7);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4),
              0 0 15px rgba(139, 233, 253, 0.15);
}

/* Projects Section */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(189, 147, 249, 0.4);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 
              0 0 35px rgba(189, 147, 249, 0.08);
}

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

.project-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-purple);
  margin-bottom: 0.5rem;
  display: block;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.project-desc {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.6;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.4rem;
}

.tech-tag {
  font-size: 0.76rem;
  padding: 0.28rem 0.65rem;
  background: rgba(21, 22, 30, 0.7);
  border: 1px solid rgba(98, 114, 164, 0.25);
  border-radius: 6px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.project-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: auto;
}

.project-links .btn-modern {
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  justify-content: center;
}

.project-links .btn-full {
  grid-column: span 2;
}

/* Integrated System Architecture & Flow Accordion */
.project-arch-toggle {
  background: rgba(21, 22, 30, 0.65);
  border: 1px dashed rgba(139, 233, 253, 0.3);
  border-radius: 10px;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.65rem 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  margin-top: 1rem;
  transition: var(--transition-fast);
}

.project-arch-toggle:hover {
  background: rgba(139, 233, 253, 0.1);
  border-style: solid;
  border-color: var(--accent-cyan);
}

.project-arch-toggle i {
  transition: transform 0.3s ease;
}

.project-arch-toggle.active i {
  transform: rotate(180deg);
}

.project-arch-accordion {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  background: #14151e;
  border-radius: 12px;
  margin-top: 0;
  padding: 0 1rem;
  border: 0 solid rgba(98, 114, 164, 0.25);
}

.project-arch-accordion.open {
  max-height: 600px;
  margin-top: 0.85rem;
  padding: 1.15rem;
  border-width: 1px;
}

.arch-flow-diagram {
  background: #191a24;
  border: 1px solid rgba(98, 114, 164, 0.2);
  border-radius: 8px;
  padding: 0.85rem;
  margin-bottom: 0.85rem;
}

.arch-flow-nodes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-align: center;
}

.arch-node {
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  background: #212330;
  border: 1px solid rgba(98, 114, 164, 0.3);
  color: var(--text-main);
  flex: 1 1 70px;
}

.arch-arrow {
  color: var(--accent-cyan);
  font-size: 0.75rem;
}

.arch-highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.arch-highlights-list li {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
  line-height: 1.45;
}

.arch-highlights-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

/* Certifications Section */
.cert-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.cert-icon {
  font-size: 2.25rem;
  color: var(--accent-cyan);
  margin-bottom: 1.1rem;
}

.cert-card:hover .cert-icon {
  animation: wobble 0.6s ease;
}

@keyframes wobble {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

.cert-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.cert-issuer {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.cert-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
}

.cert-link:hover {
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(139, 233, 253, 0.4);
}

/* Certificate Category Filter Buttons */
.cert-filter-btn {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.15rem;
  border-radius: 20px;
  background: rgba(40, 42, 54, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.cert-filter-btn:hover {
  background: rgba(139, 233, 253, 0.1);
  border-color: rgba(139, 233, 253, 0.35);
  color: var(--text-main);
}

.cert-filter-btn.active {
  background: linear-gradient(135deg, var(--accent-cyan), #0284c7);
  color: var(--text-dark);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(139, 233, 253, 0.3);
}

.cert-card.hidden,
.cert-card.cert-initial-hidden {
  display: none !important;
}

/* Interactive 'POST /api/contact' Form (HTTP Client Aesthetic) */
.contact-console {
  background: #14151e;
  border: 1px solid rgba(139, 233, 253, 0.25);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7),
              0 0 35px rgba(189, 147, 249, 0.05);
  font-family: var(--font-mono);
}

.contact-console-header {
  background: #191a24;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(98, 114, 164, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* HTTP Client Request URL Bar */
.http-client-bar {
  background: #101118;
  border-bottom: 1px solid rgba(98, 114, 164, 0.2);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.http-method-badge {
  background: var(--accent-green);
  color: #0f1015;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.http-url-display {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--accent-cyan);
  flex-grow: 1;
  white-space: nowrap;
  overflow-x: auto;
}

.contact-console-body {
  padding: 2rem;
}

.http-headers-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(98, 114, 164, 0.2);
}

.http-payload-container {
  background: #0f1016;
  border: 1px solid rgba(98, 114, 164, 0.25);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.json-bracket {
  color: #f8f8f2;
  font-size: 1.1rem;
  font-weight: bold;
}

.json-field-row {
  margin: 0.75rem 0 0.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.json-key {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.console-input {
  width: 100%;
  background: rgba(40, 42, 54, 0.4);
  border: 1px solid rgba(98, 114, 164, 0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--accent-yellow);
  outline: none;
  transition: var(--transition-fast);
}

.console-input:focus {
  background: rgba(40, 42, 54, 0.7);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(139, 233, 253, 0.2);
}

.console-input::placeholder {
  color: var(--text-dim);
  font-style: italic;
}

textarea.console-input {
  min-height: 110px;
  resize: vertical;
}

.contact-channels {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.contact-channels .btn-modern {
  min-width: 160px;
  justify-content: center;
}

/* Footer Section */
.footer {
  background: #111219;
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-nav a:hover {
  color: var(--accent-cyan);
}

/* Modal for Certificate Viewing */
.modal-modern {
  position: fixed;
  inset: 0;
  background: rgba(15, 16, 21, 0.88);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.modal-modern.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog-modern {
  background: #191a24;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-modern.open .modal-dialog-modern {
  transform: scale(1);
}

.modal-header-modern {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
}

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

.modal-body-modern {
  padding: 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body-modern img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 8px;
}

.modal-body-modern iframe {
  width: 100%;
  height: 65vh;
  border: none;
  border-radius: 8px;
}

/* Floating Back-to-Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(21, 22, 30, 0.95);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(139, 233, 253, 0.25);
}

.back-to-top-btn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--accent-cyan);
  color: var(--text-dark);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(139, 233, 253, 0.5);
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(21, 22, 30, 0.96);
  border: 1px solid var(--accent-cyan);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  color: var(--text-main);
  box-shadow: 0 10px 30px rgba(139, 233, 253, 0.2);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  pointer-events: none;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-notification i {
  color: var(--accent-cyan);
  font-size: 1.2rem;
}

/* Canvas & Server Indicator */
#network-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.35;
}

.nav-server-status {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.nav-server-status:hover {
  border-color: rgba(80, 250, 123, 0.4) !important;
  box-shadow: 0 0 15px rgba(80, 250, 123, 0.12);
}

.code-terminal-console {
  font-family: var(--font-mono);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
}

.terminal-log-line {
  line-height: 1.45;
  white-space: pre-wrap;
  font-size: 0.75rem;
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 991px) {
  .hero-section {
    padding-top: 7rem;
    text-align: center;
  }
  .hero-profile-container {
    margin-bottom: 2rem;
  }
  .bento-col-4, .bento-col-5, .bento-col-7, .bento-col-8 {
    grid-column: span 12;
  }
  .bento-card {
    height: auto;
  }
  .navbar-collapse {
    background: rgba(21, 22, 30, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    margin-top: 0.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  }
  .hero-headline {
    font-size: 2.2rem;
  }
}

@media (max-width: 767px) {
  .bento-grid {
    gap: 1rem;
  }
  .bento-card {
    padding: 1.5rem;
  }
  .terminal-window {
    border-radius: 14px;
  }
  .terminal-actions-bar {
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.85rem;
  }
  .terminal-btn {
    flex-shrink: 0;
  }
  .terminal-body {
    height: 320px;
    padding: 1rem;
    font-size: 0.8rem;
  }
  .project-links {
    grid-template-columns: 1fr;
  }
  .project-links .btn-modern {
    grid-column: span 1 !important;
  }
  .contact-channels {
    flex-direction: column;
    align-items: stretch;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .cert-card-grid {
    grid-template-columns: 1fr;
  }
  .modal-modern {
    padding: 0.75rem;
  }
  .modal-dialog-modern {
    max-height: 95vh;
  }
  .json-field-row {
    margin-left: 0.5rem;
  }
  .contact-console-body {
    padding: 1.25rem;
  }
  .arch-node {
    flex: 1 1 100%;
  }
  .arch-arrow {
    transform: rotate(90deg);
    margin: 2px 0;
  }
}

@media (max-width: 575px) {
  .hero-section {
    padding-top: 6rem;
  }
  .hero-profile-img {
    width: 180px;
    height: 180px;
  }
  .code-content {
    padding: 0.85rem;
    font-size: 0.75rem;
  }
  .btn-modern {
    width: 100%;
    justify-content: center;
  }
  .stat-number {
    font-size: 2.4rem;
  }
  .cert-filter-buttons {
    gap: 0.4rem;
  }
  .cert-filter-btn {
    font-size: 0.78rem;
    padding: 0.4rem 0.8rem;
  }
  .toast-notification {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
  .back-to-top-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
  }
}

/* ==========================================================================
   Idea 1: Server Handshake Micro-Boot Overlay
   ========================================================================== */
.handshake-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 16, 22, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.45s ease,
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.handshake-overlay.dismissed {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  pointer-events: none;
}

.handshake-box {
  max-width: 620px;
  width: 100%;
  background: #14151e;
  border: 1px solid rgba(139, 233, 253, 0.35);
  border-radius: 18px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.9), 
              0 0 45px rgba(80, 250, 123, 0.12);
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.handshake-header {
  background: #191a24;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(98, 114, 164, 0.25);
}

.handshake-title {
  color: var(--accent-cyan);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.handshake-badge {
  font-size: 0.7rem;
  background: rgba(189, 147, 249, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(189, 147, 249, 0.3);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.handshake-body {
  padding: 1.5rem;
  font-size: 0.83rem;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 160px;
  background: #111219;
  line-height: 1.6;
}

.handshake-line {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.handshake-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.handshake-footer {
  padding: 0.85rem 1.25rem 1.1rem;
  background: #14151e;
  border-top: 1px solid rgba(98, 114, 164, 0.18);
}

.handshake-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.handshake-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hs-kbd {
  background: #282a36;
  border: 1px solid rgba(98, 114, 164, 0.4);
  color: var(--accent-cyan);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.68rem;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Idea 2: Developer Command Palette (Ctrl + K)
   ========================================================================== */
.nav-cmd-btn {
  background: rgba(40, 42, 54, 0.7);
  border: 1px solid rgba(98, 114, 164, 0.35);
  padding: 0.4rem 0.85rem;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: var(--transition-fast);
}

.nav-cmd-btn:hover {
  background: rgba(139, 233, 253, 0.12);
  border-color: var(--accent-cyan);
  color: var(--text-main);
  box-shadow: 0 0 15px rgba(139, 233, 253, 0.18);
}

.cmd-kbd {
  background: #191a24;
  border: 1px solid rgba(98, 114, 164, 0.4);
  color: var(--accent-cyan);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.68rem;
  margin-left: 2px;
}

/* Modal Backdrop */
.cmd-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 16, 21, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 1.25rem 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cmd-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cmd-modal-window {
  max-width: 640px;
  width: 100%;
  background: #171822;
  border: 1px solid rgba(139, 233, 253, 0.35);
  border-radius: 16px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.88), 
              0 0 45px rgba(139, 233, 253, 0.12);
  overflow: hidden;
  transform: translateY(-10px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  max-height: 75vh;
}

.cmd-modal-backdrop.open .cmd-modal-window {
  transform: translateY(0) scale(1);
}

/* Search Bar */
.cmd-search-bar {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(98, 114, 164, 0.25);
  background: #14151e;
}

.cmd-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.95rem;
  width: 100%;
  font-family: var(--font-mono);
}

.cmd-search-input::placeholder {
  color: var(--text-dim);
  font-style: italic;
}

/* Results List */
.cmd-results-container {
  padding: 0.85rem;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cmd-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.75rem 0.2rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.cmd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-muted);
  font-size: 0.83rem;
  user-select: none;
}

.cmd-item:hover,
.cmd-item.selected {
  background: rgba(139, 233, 253, 0.1);
  color: var(--text-main);
  border-left: 3px solid var(--accent-cyan);
  padding-left: calc(0.85rem - 3px);
}

.cmd-item-title {
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cmd-badge {
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: rgba(40, 42, 54, 0.7);
  border: 1px solid rgba(98, 114, 164, 0.25);
  color: var(--text-dim);
  white-space: nowrap;
}

.cmd-item:hover .cmd-badge,
.cmd-item.selected .cmd-badge {
  color: var(--accent-cyan);
  border-color: rgba(139, 233, 253, 0.35);
  background: rgba(139, 233, 253, 0.08);
}

/* Footer Keyboard Help */
.cmd-footer {
  padding: 0.65rem 1.25rem;
  background: #12131b;
  border-top: 1px solid rgba(98, 114, 164, 0.2);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.cmd-footer span {
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 576px) {
  .handshake-overlay {
    padding: 1rem;
  }
  .handshake-body {
    padding: 1rem;
    font-size: 0.76rem;
    gap: 0.6rem;
    min-height: 140px;
  }
  .cmd-modal-backdrop {
    padding: 6vh 0.6rem 1rem;
  }
  .cmd-modal-window {
    max-height: 85vh;
    border-radius: 14px;
  }
  .cmd-search-bar {
    padding: 0.85rem 1rem;
    gap: 8px;
  }
  .cmd-search-input {
    font-size: 0.88rem;
  }
  .cmd-item {
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
  }
  .cmd-footer {
    display: none;
  }
}

