/* ==========================================================================
   SHAKEEL UR REHMAN | AI/ML & COMPUTER VISION PORTFOLIO
   Design System, Motion Primitives & Luxury Cyber Dark Aesthetics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* --- Root Variables & Design Tokens --- */
:root {
  --bg-dark: #030712;
  --bg-card: rgba(10, 18, 36, 0.7);
  --bg-card-hover: rgba(15, 27, 54, 0.85);
  --bg-surface: #070d1e;
  --bg-elevated: #0f172a;
  
  --primary: #00F2FE;
  --primary-glow: rgba(0, 242, 254, 0.35);
  --secondary: #7928CA;
  --secondary-glow: rgba(121, 40, 202, 0.35);
  --accent-cyan: #00e5ff;
  --accent-blue: #3b82f6;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.25);
  --border-active: rgba(0, 242, 254, 0.6);
  
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Space Grotesk', sans-serif;
  
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --glow-box: 0 0 35px rgba(0, 242, 254, 0.15);
  --glow-box-strong: 0 0 50px rgba(0, 242, 254, 0.3), 0 0 100px rgba(121, 40, 202, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
}

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

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
  border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* --- Background Grids & Ambient Lights --- */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 242, 254, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 254, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
}

.ambient-glow-1 {
  position: absolute;
  top: -10%;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.12) 0%, transparent 70%);
  filter: blur(80px);
  border-radius: 50%;
  animation: floatGlow 14s ease-in-out infinite alternate;
}

.ambient-glow-2 {
  position: absolute;
  top: 40%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(121, 40, 202, 0.12) 0%, transparent 70%);
  filter: blur(90px);
  border-radius: 50%;
  animation: floatGlow 18s ease-in-out infinite alternate-reverse;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.1); }
  100% { transform: translate(-30px, 60px) scale(0.95); }
}

/* --- Custom Cursor with Magnetic Tracking --- */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  box-shadow: 0 0 12px var(--primary), 0 0 24px var(--primary);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s, transform 0.05s ease;
}

.custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(0, 242, 254, 0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-smooth), height 0.3s var(--ease-smooth), border-color 0.3s, background-color 0.3s;
}

body.cursor-hover .custom-cursor-follower {
  width: 60px;
  height: 60px;
  border-color: var(--primary);
  background-color: rgba(0, 242, 254, 0.06);
  backdrop-filter: blur(2px);
}

@media (pointer: coarse) {
  .custom-cursor, .custom-cursor-follower {
    display: none !important;
  }
}

/* --- Typography Helpers --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-main);
}

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

.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 20%, var(--primary) 70%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #FFFFFF 10%, var(--primary) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* --- Container & Layout --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 2;
}

section {
  position: relative;
  padding: 7rem 0;
  z-index: 2;
}

/* --- Navigation Bar --- */
.navbar-wrapper {
  position: fixed;
  top: 1.25rem;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.75rem 1.5rem;
  background: rgba(8, 15, 30, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
  max-width: 1100px;
}

.navbar:hover {
  border-color: var(--border-glow);
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 242, 254, 0.15);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-symbol {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  color: var(--bg-dark);
  box-shadow: 0 0 18px var(--primary-glow);
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-text span {
  color: var(--primary);
}

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

.nav-link {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s var(--ease-smooth);
  border-radius: 2px;
}

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

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

.social-pill {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.25s ease;
}

.social-pill:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(0, 242, 254, 0.1);
  transform: translateY(-2px);
}

.social-pill svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.nav-cta {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #030712;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.5);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
}

/* --- Section Headers --- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
}

.section-tag .tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 3.5rem;
  font-weight: 400;
}

.section-header-center {
  text-align: center;
}
.section-header-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #030712;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(0, 242, 254, 0.5), 0 10px 25px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-subtle);
  color: var(--text-main);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(0, 242, 254, 0.08);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}

.btn-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.25) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.btn:hover .btn-glow {
  opacity: 1;
}

/* --- HERO SECTION --- */
#hero {
  min-height: 100vh;
  padding-top: 9rem;
  padding-bottom: 5rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
  opacity: 0.85;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-emerald);
  margin-bottom: 1.75rem;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 8px var(--accent-emerald);
}

.pulse-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-emerald);
  animation: pulseBeacon 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulseBeacon {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-title {
  font-size: clamp(2.8rem, 6.2vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero-subtitle-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-role-prefix {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-dim);
}

.hero-typing-role {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  border-right: 2px solid var(--primary);
  padding-right: 4px;
  white-space: nowrap;
  animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
  0%, 100% { border-color: transparent; }
  50% { border-color: var(--primary); }
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 2.25rem;
}

.hero-lead strong {
  color: var(--text-main);
  font-weight: 600;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Quick Metrics Row in Hero */
.hero-metrics-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(10, 18, 36, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}

.metric-item {
  border-left: 2px solid rgba(0, 242, 254, 0.3);
  padding-left: 1rem;
}

.metric-number {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.metric-number span {
  color: var(--primary);
  font-size: 1.4rem;
}

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

/* Hero Visual / Hologram Frame */
.hero-visual-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hologram-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1.15;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.8), rgba(8, 14, 28, 0.9));
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 242, 254, 0.15);
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s;
}

.hologram-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 242, 254, 0.5);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 60px rgba(0, 242, 254, 0.3);
}

/* Radar Scan Line Motion Primitive */
.hologram-scan {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  box-shadow: 0 0 15px var(--primary);
  animation: radarScan 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  z-index: 5;
  opacity: 0.75;
}

@keyframes radarScan {
  0% { top: 0%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.hologram-image-box {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hologram-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.6s var(--ease-smooth), filter 0.6s;
  filter: contrast(1.05) brightness(0.98);
}

.hologram-card:hover .hologram-image-box img {
  transform: scale(1.04);
}

.hologram-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.1) 0%, rgba(3, 7, 18, 0.4) 60%, rgba(3, 7, 18, 0.95) 100%);
  z-index: 2;
}

.hologram-hud {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 6;
}

.hud-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
}

.hud-role {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

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

.hud-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: #E2E8F0;
  backdrop-filter: blur(8px);
}

/* Cyber Decors */
.cyber-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  z-index: 7;
  pointer-events: none;
}
.cyber-corner.top-left { top: 8px; left: 8px; border-top: 2px solid var(--primary); border-left: 2px solid var(--primary); }
.cyber-corner.top-right { top: 8px; right: 8px; border-top: 2px solid var(--primary); border-right: 2px solid var(--primary); }
.cyber-corner.bottom-left { bottom: 8px; left: 8px; border-bottom: 2px solid var(--primary); border-left: 2px solid var(--primary); }
.cyber-corner.bottom-right { bottom: 8px; right: 8px; border-bottom: 2px solid var(--primary); border-right: 2px solid var(--primary); }

/* Floating Tech Pills Orbiting Profile */
.floating-tech-badge {
  position: absolute;
  padding: 0.5rem 1rem;
  background: rgba(10, 18, 36, 0.85);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-main);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(0, 242, 254, 0.2);
  z-index: 10;
  animation: floatOrb 6s ease-in-out infinite alternate;
}

.floating-tech-badge.badge-1 {
  top: -15px;
  right: -25px;
  animation-delay: 0s;
}

.floating-tech-badge.badge-2 {
  bottom: 25px;
  left: -35px;
  animation-delay: -3s;
}

@keyframes floatOrb {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-14px) rotate(1.5deg); }
}

/* --- INTERACTIVE CV TELEMETRY SIMULATOR --- */
#simulator-section {
  padding: 5rem 0 7rem;
}

.terminal-window {
  background: rgba(8, 14, 28, 0.88);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7), 0 0 50px rgba(0, 242, 254, 0.1);
  backdrop-filter: blur(20px);
}

.terminal-header {
  background: rgba(15, 23, 42, 0.95);
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 0.5rem;
}

.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.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-modes {
  display: flex;
  gap: 0.5rem;
}

.mode-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s;
}

.mode-tab-btn:hover {
  color: var(--primary);
  border-color: rgba(0, 242, 254, 0.3);
}

.mode-tab-btn.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.terminal-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: 400px;
}

.sim-viewport {
  position: relative;
  background: #020617;
  overflow: hidden;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sim-canvas {
  width: 100%;
  height: 100%;
  min-height: 380px;
}

.sim-hud-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.sim-stat-pill {
  background: rgba(8, 14, 28, 0.75);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--primary);
}

.terminal-telemetry {
  padding: 1.5rem;
  background: rgba(6, 11, 24, 0.9);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.telemetry-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.telemetry-feed {
  background: #030712;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.6;
  color: #94a3b8;
  height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.log-entry {
  display: flex;
  gap: 0.5rem;
}

.log-time {
  color: var(--primary);
}

.log-tag-warn {
  color: #f59e0b;
}

.log-tag-success {
  color: #10b981;
}

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

.sim-btn {
  flex: 1;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.sim-btn:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--primary);
  color: var(--primary);
}

/* --- ABOUT SECTION --- */
#about {
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.about-content h3 {
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.about-text strong {
  color: var(--text-main);
  font-weight: 600;
}

.about-highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.highlight-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all 0.3s var(--ease-smooth);
}

.highlight-box:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), var(--glow-box);
}

.highlight-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.highlight-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.highlight-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* About Visual Interactive Canvas / Orbit */
.about-interactive-card {
  position: relative;
  background: linear-gradient(135deg, rgba(10, 18, 36, 0.7), rgba(5, 10, 22, 0.9));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(16px);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.about-interactive-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
}

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

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-smooth);
}

.pillar-item:hover {
  background: rgba(0, 242, 254, 0.04);
  border-color: var(--border-glow);
  transform: translateX(6px);
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(0, 242, 254, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.pillar-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- TECHNICAL ARSENAL / SKILLS SECTION --- */
#skills {
  position: relative;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 13, 30, 0.6) 50%, transparent 100%);
}

.skills-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

/* Motion Primitive: Spotlight Card with Cursor-Follow Glow */
.spotlight-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  overflow: hidden;
  transition: transform 0.35s var(--ease-smooth), border-color 0.35s, box-shadow 0.35s;
}

.spotlight-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), var(--glow-box);
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 242, 254, 0.08),
    transparent 40%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.skill-category-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(121, 40, 202, 0.15));
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.skill-category-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.skill-category-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.skills-pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all 0.25s;
}

.skill-pill:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* --- PROJECTS SECTION --- */
#projects {
  position: relative;
}

/* Filter Controls */
.project-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}

.filter-btn:hover {
  color: var(--text-main);
  border-color: rgba(0, 242, 254, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.filter-btn.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.18), rgba(121, 40, 202, 0.18));
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

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

/* Project Cards */
.project-card {
  grid-column: span 6;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s var(--ease-smooth), border-color 0.35s, box-shadow 0.35s;
}

.project-card.featured {
  grid-column: span 12;
  background: linear-gradient(135deg, rgba(14, 25, 48, 0.85), rgba(7, 13, 26, 0.95));
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0, 242, 254, 0.1);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), var(--glow-box);
}

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

.project-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.project-badge.badge-aiml,
.project-badge.badge-cv,
.project-badge.badge-ml {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.4);
  color: #00F2FE;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.18);
}

.project-badge.badge-website {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.4);
  color: #C084FC;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.18);
}

.project-stars {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-amber);
}

.project-stars svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.project-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.project-card.featured .project-title {
  font-size: 1.85rem;
}

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

.project-highlights-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
}

.proj-feat {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #CBD5E1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.proj-feat-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

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

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(121, 40, 202, 0.1);
  border: 1px solid rgba(121, 40, 202, 0.3);
  color: #C084FC;
  letter-spacing: 0.02em;
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.project-links-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.25s;
}

.proj-link:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.proj-link svg {
  width: 15px;
  height: 15px;
}

.proj-repo-link {
  color: var(--primary);
}

/* --- CONTACT & WORK TOGETHER SECTION --- */
#contact {
  position: relative;
  overflow: hidden;
  padding-bottom: 8rem;
}

.contact-card-main {
  background: linear-gradient(145deg, rgba(14, 25, 48, 0.85), rgba(7, 13, 26, 0.95));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 4.5rem 3.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8), 0 0 60px rgba(0, 242, 254, 0.15);
  text-align: center;
}

.contact-card-main::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 242, 254, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.contact-heading {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.contact-subtext {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.contact-channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
  text-align: left;
}

.channel-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-decoration: none;
  transition: all 0.3s var(--ease-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.channel-card:hover {
  border-color: var(--primary);
  background: rgba(0, 242, 254, 0.06);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), var(--glow-box);
}

.channel-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 242, 254, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1rem;
}

.channel-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.channel-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.channel-value {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-all;
}

.contact-action-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Copy Email Motion Action */
.copy-email-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.25s;
}

.copy-email-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 242, 254, 0.08);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(8, 15, 30, 0.95);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.5rem;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), var(--glow-box);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10000;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.35s var(--ease-spring);
  pointer-events: none;
}

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

/* --- FOOTER --- */
footer {
  border-top: 1px solid var(--border-subtle);
  background: #02050E;
  padding: 3rem 0;
  position: relative;
  z-index: 2;
}

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

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-copy strong {
  color: var(--text-muted);
}

.footer-links-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.footer-links-row a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s;
}

.footer-links-row a:hover {
  color: var(--primary);
}

.back-to-top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
}

.back-to-top:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
  }
  
  .hero-subtitle-box {
    justify-content: center;
  }
  
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cta-group {
    justify-content: center;
  }
  
  .hero-metrics-bar {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .terminal-body {
    grid-template-columns: 1fr;
  }
  
  .sim-viewport {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .social-pill {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .project-card {
    grid-column: span 12;
  }
  
  .contact-card-main {
    padding: 3rem 1.5rem;
  }
  
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
