/* ═══════════════════════════════════════════════════════════════
   Muhammad Owais Ahmed — Portfolio Stylesheet
   Design Language Inspired by binyam.io:
   High-Tech DevOps, Space Grotesk + JetBrains Mono,
   Glassmorphism, Neon Glows & Terminal Aesthetics
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg-base: #070b14;
  --bg-surface: rgba(15, 23, 42, 0.75);
  --bg-surface-hover: rgba(30, 41, 59, 0.85);
  --bg-terminal: #0b1120;
  
  --border-color: rgba(56, 189, 248, 0.14);
  --border-focus: #38bdf8;
  --border-glow: rgba(56, 189, 248, 0.35);

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

  --accent-cyan: #38bdf8;
  --accent-indigo: #818cf8;
  --accent-emerald: #34d399;
  --accent-pink: #f472b6;
  --accent-amber: #fbbf24;
  --accent-red: #ef4444;

  --gradient-brand: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #f472b6 100%);
  --gradient-card: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%);
  --gradient-cyan: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);

  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --nav-height: 72px;
  --max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-body);
}

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Canvas Layer */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}

/* Content Container wrapper above canvas */
.content-wrapper {
  position: relative;
  z-index: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

code, .font-mono {
  font-family: var(--font-mono);
}

::selection {
  background: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}

/* ═══════════════════ NAVIGATION ═══════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(7, 11, 20, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
  z-index: 100;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(7, 11, 20, 0.94);
  border-bottom-color: rgba(56, 189, 248, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.nav-brand-icon {
  width: 32px;
  height: 32px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

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

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
}

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

/* Hamburger toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.4rem;
}

/* ═══════════════════ BUTTONS & BADGES ═══════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gradient-cyan);
  color: #070b14;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(56, 189, 248, 0.5);
  color: #040811;
}

.btn-outline {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.775rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--accent-cyan);
}

.badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ═══════════════════ HERO SECTION ═══════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 3rem) 0 4rem;
  position: relative;
}

.hero-box {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-cmd-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-prompt-prefix {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 3.5vw, 2rem);
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-title .gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-role-wrapper {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--accent-cyan);
  min-height: 2.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cursor-blink {
  display: inline-block;
  width: 2px;
  height: 1.3em;
  background: var(--accent-cyan);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

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

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.pill-item {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.15);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}

.pill-item.pill-highlight {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.08);
  color: var(--accent-cyan);
}

.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-circle-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3);
}

/* ═══════════════════ STATS COUNTERS ═══════════════════ */
.stats-section {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(56, 189, 248, 0.08);
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(12px);
}

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

.stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.1);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.stat-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--text-main);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

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

/* ═══════════════════ SECTION HEADERS ═══════════════════ */
.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-badge {
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ═══════════════════ BENTO GRID ABOUT ═══════════════════ */
.about-bento {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.bento-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  backdrop-filter: blur(12px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.bento-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.bento-side-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bento-mini {
  padding: 1.75rem;
}

.bento-meta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.bento-meta-list li {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.bento-meta-list li i {
  color: var(--accent-cyan);
}

/* ═══════════════════ EXPERIENCE TIMELINE ═══════════════════ */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan), rgba(56, 189, 248, 0.1));
}

.timeline-entry {
  position: relative;
  padding-left: 60px;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  left: 11px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
}

.timeline-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.timeline-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  padding-bottom: 1rem;
}

.timeline-role {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.timeline-company {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.timeline-badge-date {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  padding: 0.3rem 0.75rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-pill);
  color: var(--accent-cyan);
}

.timeline-subproject {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: rgba(7, 11, 20, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.timeline-subproject h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-subproject h4 i {
  color: var(--accent-cyan);
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.timeline-bullets li {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
  position: relative;
  padding-left: 1.35rem;
}

.timeline-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: bold;
}

.sub-discipline-block {
  margin-top: 1.15rem;
  padding: 0.75rem 1rem;
  border-left: 2px solid rgba(56, 189, 248, 0.3);
  background: rgba(7, 11, 20, 0.45);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.sub-discipline-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* ═══════════════════ KEY ACHIEVEMENTS ═══════════════════ */
.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.achievement-row-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.achievement-row-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateX(4px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.achievement-badge-num {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.achievement-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.achievement-text strong {
  color: var(--text-main);
}

/* ═══════════════════ SKILLS GRID ═══════════════════ */
.skills-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.skill-tab-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.skill-tab-btn.active, .skill-tab-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

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

.skill-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.skill-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-4px);
}

.skill-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.skill-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.skill-card-head h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-main);
}

.skill-tags-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(7, 11, 20, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.15);
  color: var(--text-main);
  transition: var(--transition);
}

.skill-pill:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

/* ═══════════════════ PROJECTS ═══════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.project-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.project-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.project-card:hover::before {
  opacity: 1;
}

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

.project-badge-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan);
}

.project-icon-box {
  font-size: 1.75rem;
}

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

.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.project-chip {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
}

/* ═══════════════════ CONTACT TERMINAL ═══════════════════ */
.contact-container {
  max-width: 860px;
  margin: 0 auto;
}

.terminal-window {
  background: var(--bg-terminal);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.terminal-header {
  background: rgba(15, 23, 42, 0.95);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
}

.terminal-controls {
  display: flex;
  gap: 0.45rem;
}

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

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

.terminal-body {
  padding: 2.25rem;
}

.terminal-intro {
  margin-bottom: 2rem;
}

.terminal-intro h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.terminal-intro p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.direct-channels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: rgba(7, 11, 20, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.1);
  border-radius: var(--radius-md);
}

.channel-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: var(--transition);
}

.channel-link i {
  color: var(--accent-cyan);
  font-size: 1.1rem;
  width: 20px;
}

.channel-link:hover {
  color: var(--accent-cyan);
  transform: translateX(4px);
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

.form-field input,
.form-field textarea {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.85rem 1.1rem;
  background: rgba(7, 11, 20, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

/* ═══════════════════ FOOTER ═══════════════════ */
.footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(56, 189, 248, 0.08);
  background: rgba(7, 11, 20, 0.95);
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: var(--text-muted);
}

.footer-badges {
  display: flex;
  gap: 0.75rem;
}

/* ═══════════════════ REVEAL ANIMATIONS ═══════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════ RESPONSIVE BREAKPOINTS ═══════════════════ */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: rgba(7, 11, 20, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    gap: 1.25rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    width: 100%;
    text-align: center;
  }

  .about-bento {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .direct-channels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-card {
    padding: 1rem;
  }
  .timeline {
    padding-left: 0;
  }
  .timeline::before {
    left: 10px;
  }
  .timeline-entry {
    padding-left: 36px;
  }
  .timeline-dot {
    left: 1px;
  }
}

/* ═══════════════════ CLOUD MOUSE CURSOR ═══════════════════ */
@media (hover: hover) and (pointer: fine) {
  html, body, a, button, input, textarea, select, .btn, .nav-link, .skill-pill, .skill-tab-btn, [role="button"] {
    cursor: none !important;
  }

  .cloud-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    margin-left: -14px;
    pointer-events: none;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.08s ease-out;
    transform: translate3d(-100px, -100px, 0);
    will-change: transform;
  }

  .cloud-cursor.active {
    opacity: 1;
  }

  .cloud-cursor-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.7));
  }

  /* Hovering over clickable element */
  .cloud-cursor.hovering .cloud-cursor-icon {
    transform: scale(1.35) rotate(-6deg);
    filter: drop-shadow(0 0 14px rgba(56, 189, 248, 1)) drop-shadow(0 0 20px rgba(99, 102, 241, 0.8));
  }

  /* Clicking state */
  .cloud-cursor.clicking .cloud-cursor-icon {
    transform: scale(0.85);
  }

  /* Subtle trailing halo ring */
  .cloud-cursor-trail {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    margin-left: -18px;
    border-radius: 50%;
    border: 1px dashed rgba(56, 189, 248, 0.45);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: rotate-trail 8s linear infinite;
  }

  .cloud-cursor.hovering .cloud-cursor-trail {
    opacity: 1;
    transform: scale(1.2);
    border-color: rgba(56, 189, 248, 0.8);
  }

  @keyframes rotate-trail {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  /* Cloud Puff Particle on click */
  .cloud-puff {
    position: fixed;
    pointer-events: none;
    z-index: 999998;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.5) 0%, rgba(99, 102, 241, 0.2) 60%, transparent 80%);
    transform: translate(-50%, -50%) scale(0);
    animation: puff-expand 0.45s ease-out forwards;
  }

  @keyframes puff-expand {
    0% {
      width: 12px;
      height: 12px;
      opacity: 1;
      transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
      width: 55px;
      height: 55px;
      opacity: 0;
      transform: translate(-50%, -50%) scale(1.6);
    }
  }
}

/* Touch screens / Mobile: normal cursor and hide follower */
@media (hover: none) or (pointer: coarse) {
  #cloud-cursor, .cloud-cursor, .cloud-puff {
    display: none !important;
  }
}

/* ═══════════════════ LIVE ARCHITECTURE HUD ═══════════════════ */
.systems-status-hud {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  z-index: 90;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.6);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  max-width: 330px;
  transition: var(--transition);
}

.systems-status-hud:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 12px 40px rgba(56, 189, 248, 0.25);
  transform: translateY(-2px);
}

.hud-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  letter-spacing: 0.05em;
  font-size: 0.72rem;
}

.hud-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-dot 1.8s infinite;
}

.hud-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.35rem;
  font-size: 0.7rem;
}

.hud-label {
  color: var(--text-dim);
}

.hud-val {
  font-weight: 600;
}
.hud-val.hud-green { color: #34d399; }
.hud-val.hud-cyan { color: #38bdf8; }
.hud-val.hud-purple { color: #a78bfa; }
.hud-val.hud-red { color: #f87171; }

@media (max-width: 768px) {
  .systems-status-hud {
    display: none;
  }
}
