/* ==========================================================================
   Sai Asok - Portfolio Design System & Styles
   Theme: Dark Tech / Glassmorphism / Quantum Cyan & Violet Glow
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Root Variables & Core Reset
   -------------------------------------------------------------------------- */
:root {
  --bg-dark: #0b0f19;
  --bg-alt: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(6, 182, 212, 0.2);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --primary-cyan: #06b6d4;
  --primary-cyan-hover: #0891b2;
  --primary-violet: #8b5cf6;
  --primary-violet-hover: #7c3aed;

  --accent-teal: #14b8a6;
  --accent-green: #10b981;
  --accent-yellow: #f59e0b;
  --accent-orange: #f97316;
  --accent-blue: #3b82f6;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;

  --gradient-main: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
  --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 10px 30px -10px rgba(6, 182, 212, 0.25);
  --shadow-violet-glow: 0 10px 30px -10px rgba(139, 92, 246, 0.25);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

/* --------------------------------------------------------------------------
   2. Background Elements & Ambient Canvas Glow
   -------------------------------------------------------------------------- */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -2;
  pointer-events: none;
  opacity: 0.35;
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: var(--primary-cyan);
  top: -100px;
  left: -100px;
  animation: pulseGlow 12s infinite alternate ease-in-out;
}

.bg-glow-2 {
  width: 600px;
  height: 600px;
  background: var(--primary-violet);
  bottom: 10%;
  right: -150px;
  animation: pulseGlow 15s infinite alternate-reverse ease-in-out;
}

@keyframes pulseGlow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.25; }
  50% { transform: scale(1.15) translate(40px, 30px); opacity: 0.45; }
  100% { transform: scale(0.9) translate(-20px, -20px); opacity: 0.3; }
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   3. Typography & Utility Helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-cyan { color: var(--primary-cyan); }
.text-violet { color: var(--primary-violet); }
.text-teal { color: var(--accent-teal); }
.text-green { color: var(--accent-green); }
.text-emerald { color: #34d399; }
.text-yellow { color: var(--accent-yellow); }
.text-orange { color: var(--accent-orange); }
.text-blue { color: var(--accent-blue); }
.text-purple { color: var(--accent-purple); }
.text-pink { color: var(--accent-pink); }
.text-muted { color: var(--text-muted); }
.highlight-teal { color: var(--primary-cyan); font-weight: 600; }

.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.glass-panel:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

.section {
  padding: 6rem 0;
  position: relative;
}

.bg-alt {
  background-color: var(--bg-alt);
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-subtitle {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-cyan);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.title-bar {
  width: 60px;
  height: 4px;
  background: var(--gradient-main);
  border-radius: var(--radius-full);
  margin-top: 0.75rem;
}

.title-bar.center {
  margin-left: auto;
  margin-right: auto;
}

.section-spacer {
  height: 3rem;
}

/* --------------------------------------------------------------------------
   4. Buttons & Badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--gradient-main);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45);
}

.btn-secondary {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.btn-secondary:hover {
  background: rgba(139, 92, 246, 0.25);
  color: #ffffff;
  border-color: var(--primary-violet);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.btn-outline:hover {
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
  background: rgba(6, 182, 212, 0.08);
  transform: translateY(-2px);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--primary-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
}

.status-dot.pulse {
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
  animation: pulseGreen 2s infinite;
}

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

/* --------------------------------------------------------------------------
   5. Header & Navigation
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  padding: 0.75rem 0;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.logo-accent {
  color: var(--primary-cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-item {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.nav-item:hover, .nav-item.active {
  color: var(--text-main);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
}

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

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

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 9rem;
  padding-bottom: 5rem;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #cbd5e1;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  color: var(--primary-cyan);
  border-color: var(--primary-cyan);
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-3px);
}

/* Terminal Component */
.terminal-card {
  background: #090d16;
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-header {
  background: #111726;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-buttons {
  display: flex;
  gap: 6px;
}

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

.terminal-title {
  font-size: 0.8rem;
  color: var(--text-dim);
}

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

.terminal-body {
  padding: 1.5rem;
  font-size: 0.88rem;
  line-height: 1.8;
  color: #e2e8f0;
}

.term-line {
  margin-bottom: 0.5rem;
  word-break: break-word;
}

.term-user { color: var(--accent-green); font-weight: 600; }
.term-path { color: var(--primary-cyan); }
.term-success { color: var(--primary-cyan); font-weight: 500; }
.term-label { color: #94a3b8; margin-right: 0.5rem; }
.cursor {
  display: inline-block;
  color: var(--primary-cyan);
  animation: blink 1s infinite;
}

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

/* --------------------------------------------------------------------------
   7. Stats Counter Bar
   -------------------------------------------------------------------------- */
.stats-section {
  padding: 2.5rem 0;
  background: rgba(17, 24, 39, 0.4);
  border-y: 1px solid var(--border-glass);
}

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

.stat-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.1);
  color: var(--primary-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  display: block;
}

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

/* --------------------------------------------------------------------------
   8. About & Education
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.about-card {
  padding: 2.5rem;
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.about-card p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.language-badges {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.lang-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  width: 100%;
  margin-bottom: 0.25rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  font-size: 0.85rem;
  color: var(--text-main);
}

/* Education Timeline */
.education-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  margin-top: 1rem;
}

.edu-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.edu-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.edu-year {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary-violet);
  font-weight: 600;
  padding-top: 0.2rem;
}

.edu-details h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

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

.edu-score {
  font-size: 0.85rem;
  color: var(--primary-cyan);
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   9. Technical Skills Matrix
   -------------------------------------------------------------------------- */
.skill-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--gradient-main);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.skill-card.hidden {
  display: none !important;
}

.skill-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.skill-info {
  width: 100%;
}

.skill-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.skill-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.skill-progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-main);
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   10. Experience Timeline
   -------------------------------------------------------------------------- */
.experience-timeline {
  max-width: 900px;
  margin: 0 auto;
}

.exp-card {
  padding: 2.5rem;
  position: relative;
}

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

.exp-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.15);
  color: var(--primary-violet);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.exp-role h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.company-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-cyan);
}

.exp-period {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

.exp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.exp-list li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.exp-list li i {
  margin-top: 0.25rem;
}

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

.tag {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: #a5f3fc;
  font-size: 0.8rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   11. Projects & PQC Simulator
   -------------------------------------------------------------------------- */
.featured-project-card {
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.project-header-badge {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.badge-featured {
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.15);
  color: var(--primary-cyan);
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-conf {
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-yellow);
  font-size: 0.8rem;
  font-weight: 700;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.project-tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.project-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.highlight-item i {
  margin-top: 0.2rem;
  font-size: 1.1rem;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.tech-chip {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-main);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Crypto Schematic Card */
.crypto-card {
  background: #090d16;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  font-family: var(--font-mono);
}

.crypto-header {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.spin-slow {
  animation: spin 10s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.crypto-flow {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.flow-step.highlight {
  border-color: var(--primary-cyan);
  background: rgba(6, 182, 212, 0.1);
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient-main);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.step-txt {
  color: #cbd5e1;
}

.flow-arrow {
  text-align: center;
  color: var(--primary-violet);
  font-size: 0.8rem;
}

/* PQC Simulator Box */
.pqc-simulator-card {
  padding: 2.5rem;
  border-color: rgba(6, 182, 212, 0.3);
}

.sim-header h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sim-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.sim-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sim-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: flex-end;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: #090d16;
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.sim-buttons {
  display: flex;
  gap: 0.75rem;
}

.sim-logs {
  background: #060911;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.log-line {
  word-break: break-all;
  line-height: 1.6;
}

.log-success { color: var(--accent-green); }
.log-cyan { color: var(--primary-cyan); }
.log-violet { color: var(--primary-violet); }
.log-yellow { color: var(--accent-yellow); }

/* --------------------------------------------------------------------------
   12. Certifications & Achievements
   -------------------------------------------------------------------------- */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cert-card {
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.cert-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.cert-details h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

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

.cert-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  color: var(--primary-cyan);
}

.achievements-box {
  padding: 2.5rem;
}

.box-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.achieve-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.achieve-item i {
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

/* --------------------------------------------------------------------------
   13. Contact & Social Hub
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info-card, .contact-form-card {
  padding: 2.5rem;
}

.contact-info-card h3, .contact-form-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-info-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

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

.method-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  position: relative;
}

.method-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.1);
  color: var(--primary-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.method-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.method-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.method-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.method-val:hover {
  color: var(--primary-cyan);
}

.copy-btn {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  color: var(--primary-cyan);
  border-color: var(--primary-cyan);
  background: rgba(6, 182, 212, 0.1);
}

.social-connect h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.social-buttons-lg {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.mb-4 {
  margin-bottom: 1rem;
}

.linkedin-badge-wrapper {
  display: flex;
  justify-content: flex-start;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.linkedin-badge-wrapper .LI-profile-badge {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
  border-radius: var(--radius-md) !important;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

textarea.form-input {
  resize: vertical;
}

/* --------------------------------------------------------------------------
   14. Footer & Modals
   -------------------------------------------------------------------------- */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-glass);
  background: #070a12;
}

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

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
}

.footer-left p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.back-to-top {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.back-to-top:hover {
  color: var(--primary-cyan);
  border-color: var(--primary-cyan);
  transform: translateY(-3px);
}

/* DNS Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

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

.modal-content {
  width: 100%;
  max-width: 650px;
  background: #0d1322;
  padding: 2rem;
  border-color: rgba(6, 182, 212, 0.4);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
}

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

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

.modal-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.dns-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.dns-table th, .dns-table td {
  padding: 0.6rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border-glass);
}

.dns-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--primary-cyan);
}

.badge-table {
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
}

.alert-box {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: #cbd5e1;
}

.modal-footer {
  margin-top: 1.75rem;
  display: flex;
  justify-content: flex-end;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0f172a;
  border: 1px solid var(--primary-cyan);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-fast);
}

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

/* --------------------------------------------------------------------------
   15. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
  }
  .about-grid, .contact-grid, .project-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #0b0f19;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    display: none;
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .sim-controls {
    grid-template-columns: 1fr;
  }
  .certs-grid, .stats-grid {
    grid-template-columns: 1fr;
  }
  .exp-header {
    flex-direction: column;
    gap: 0.5rem;
  }
}
