/* ==========================================================================
   JOEYL.AU - MASTER DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. COLOR SYSTEM & CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* HSL Base Colors - Dark Theme (Default) */
  --bg-primary: #090d16;
  --bg-secondary: #0d1322;
  --bg-card: rgba(18, 24, 39, 0.7);
  --bg-card-hover: rgba(28, 37, 59, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  
  --border-color: rgba(255, 255, 255, 0.09);
  --border-glow: rgba(0, 242, 254, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Accent Gradients & Colors */
  --accent-cyan: #00f2fe;
  --accent-purple: #7928ca;
  --accent-emerald: #00dfa2;
  --accent-amber: #ffb800;

  --grad-primary: linear-gradient(135deg, #00f2fe 0%, #7928ca 100%);
  --grad-secondary: linear-gradient(135deg, #7928ca 0%, #00dfa2 100%);
  --grad-surface: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
  --grad-glow: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, rgba(9, 13, 22, 0) 70%);

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-code: 'Fira Code', monospace;

  /* Shadows & Glassmorphism */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-cyan: 0 0 25px rgba(0, 242, 254, 0.25);
  --shadow-purple: 0 0 25px rgba(121, 40, 202, 0.3);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  --nav-height: 80px;
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f1f5f9;
  --bg-secondary: #e2e8f0;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(0, 0, 0, 0.02);

  --border-color: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(0, 180, 216, 0.4);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent-cyan: #0077b6;
  --accent-purple: #6b21a8;
  --accent-emerald: #059669;

  --grad-primary: linear-gradient(135deg, #0077b6 0%, #6b21a8 100%);
  --grad-surface: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
  --grad-glow: radial-gradient(circle, rgba(0, 119, 182, 0.12) 0%, rgba(241, 245, 249, 0) 70%);

  --shadow-cyan: 0 4px 20px rgba(0, 119, 182, 0.15);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  position: relative;
}

/* Canvas & Grid Overlay */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  pointer-events: none;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-cyan);
  transform: translateY(-4px);
}

/* Text Gradient & Glow Helpers */
.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.glow-effect {
  text-shadow: 0 0 30px rgba(0, 242, 254, 0.3);
}

/* Section Header Typography */
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   3. BUTTONS & UI COMPONENTS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  transform: translateY(-2px);
}

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

.btn-block {
  width: 100%;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   4. NAVIGATION BAR & MOBILE MENU
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  transition: all var(--transition-normal);
  background: rgba(9, 13, 22, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.brand-code {
  font-family: var(--font-code);
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-domain {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-family: var(--font-code);
}

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

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.nav-link-cta {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--accent-cyan);
}

.nav-link-cta:hover {
  background: var(--accent-cyan);
  color: #000;
}

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

.mobile-only {
  display: none;
}

/* Mobile Overlay Menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100vw;
  background: rgba(9, 13, 22, 0.95);
  backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  display: none;
  z-index: 99;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
}

.mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   5. HERO SECTION & TERMINAL WIDGET
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: calc(var(--nav-height) + 5rem);
  padding-bottom: 5rem;
  text-align: center;
  position: relative;
}

.hero-badge-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  background: rgba(0, 223, 162, 0.1);
  border: 1px solid rgba(0, 223, 162, 0.3);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

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

@keyframes pulse-emerald {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 223, 162, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 223, 162, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 223, 162, 0); }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

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

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

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

/* Hero Code Terminal */
.hero-terminal {
  max-width: 780px;
  margin: 0 auto;
  text-align: left;
  background: rgba(9, 13, 22, 0.9);
}

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

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

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

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

.terminal-copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}
.terminal-copy-btn:hover { color: var(--accent-cyan); }

.terminal-body {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-code);
  font-size: 0.9rem;
  line-height: 1.7;
  overflow-x: auto;
  color: #e2e8f0;
}

.terminal-body .kwd { color: #f472b6; }
.terminal-body .var { color: #38bdf8; }
.terminal-body .prop { color: #a78bfa; }
.terminal-body .str { color: #34d399; }
.terminal-body .fn { color: #fbbf24; }

/* --------------------------------------------------------------------------
   6. METRICS & BANNER
   -------------------------------------------------------------------------- */
.metrics-banner {
  padding: 2rem 0 4rem 0;
}

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

.metric-card {
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.metric-value {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: var(--font-code);
  color: var(--accent-cyan);
  margin-bottom: 0.4rem;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   7. ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.about-card {
  padding: 2.25rem 1.75rem;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.about-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   8. PROJECTS SHOWCASE & FILTER SYSTEM
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-cyan);
  color: #000000;
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-cyan);
}

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

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.project-banner {
  height: 160px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}

.project-category-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(9, 13, 22, 0.8);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.project-banner-icon {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.8);
}

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

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.project-tag {
  font-family: var(--font-code);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

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

.project-link-group {
  display: flex;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   9. SKILLS MATRIX SECTION
   -------------------------------------------------------------------------- */
.skills-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.skill-tab-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.skill-tab-btn:hover, .skill-tab-btn.active {
  background: rgba(121, 40, 202, 0.15);
  border-color: var(--accent-purple);
  color: var(--text-primary);
}

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

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 600;
}

.skill-level-badge {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

.skill-bar-track {
  height: 8px;
  width: 100%;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--grad-primary);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.1, 0.5, 0.1, 1);
}

/* --------------------------------------------------------------------------
   10. EXPERIENCE TIMELINE
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  top: 0;
  left: -2.35rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-cyan);
  border: 4px solid var(--bg-primary);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.timeline-card {
  padding: 2rem;
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.timeline-company {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.timeline-period {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.timeline-role {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.timeline-desc {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.timeline-achievements {
  list-style: none;
  margin-bottom: 1.5rem;
}

.timeline-achievements li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

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

/* --------------------------------------------------------------------------
   11. INTERACTIVE LABS / PLAYGROUND
   -------------------------------------------------------------------------- */
.lab-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.lab-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lab-tab-btn.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  box-shadow: var(--shadow-cyan);
}

.lab-panel {
  padding: 3rem;
}

.lab-header {
  margin-bottom: 2rem;
}

.lab-controls-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 2rem;
  align-items: flex-end;
}

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

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

.control-group input[type="range"] {
  accent-color: var(--accent-cyan);
  height: 6px;
  border-radius: var(--radius-full);
}

/* Agent Node Visualizer */
.agent-sim-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.agent-actions-bar {
  display: flex;
  gap: 1rem;
}

.agent-nodes-view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: rgba(9, 13, 22, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.node {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.node.active {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan);
  color: var(--accent-cyan);
}

.node-arrow {
  color: var(--text-muted);
  font-weight: 700;
}

.sim-terminal {
  background: #06090e;
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  font-family: var(--font-code);
  font-size: 0.85rem;
  height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.log-line.info { color: #38bdf8; }
.log-line.success { color: #34d399; }
.log-line.warn { color: #fbbf24; }

/* Benchmark Chart */
.bench-chart-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.bench-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bench-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.bench-bar-track {
  height: 32px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.bench-bar {
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 1rem;
  font-family: var(--font-code);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  border-radius: var(--radius-sm);
  transition: width 1s ease;
}

.bench-bar.rest { background: #ef4444; }
.bench-bar.graphql { background: #f59e0b; }
.bench-bar.grpc { background: #3b82f6; }
.bench-bar.custom { background: var(--grad-primary); box-shadow: var(--shadow-cyan); }

/* --------------------------------------------------------------------------
   12. CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
}

.contact-info-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;

}

.item-text {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.item-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.item-val {
  font-weight: 600;
  font-size: 0.95rem;
}

.item-val.link {
  color: var(--accent-cyan);
  text-decoration: none;
}

.btn-copy-sm {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
}
.btn-copy-sm:hover { color: var(--accent-cyan); }

.social-links {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form-card {
  padding: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(9, 13, 22, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

/* --------------------------------------------------------------------------
   13. FOOTER & MODAL & TOASTS
   -------------------------------------------------------------------------- */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  background: rgba(9, 13, 22, 0.9);
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: var(--font-code);
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

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

.system-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

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

.back-to-top {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.back-to-top:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Modal Popup */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-card {
  max-width: 750px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
}
.modal-close:hover { color: #fff; }

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  background: rgba(18, 24, 39, 0.95);
  border: 1px solid var(--accent-cyan);
  color: var(--text-primary);
  box-shadow: var(--shadow-cyan);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slide-in 0.3s ease;
}

@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* --------------------------------------------------------------------------
   13.5. DNS & LAMP LAB SPECIFIC STYLES
   -------------------------------------------------------------------------- */
.dns-inspector-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dns-input-bar {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 1rem;
  align-items: center;
  background: rgba(9, 13, 22, 0.6);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.input-group-domain {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 0.75rem;
}

.input-prefix {
  color: var(--text-muted);
  font-family: var(--font-code);
  font-size: 0.85rem;
}

.input-group-domain input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  padding: 0.75rem 0.5rem;
  font-family: var(--font-code);
  font-size: 0.95rem;
  width: 100%;
}

.dns-input-bar select {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(9, 13, 22, 0.9);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-code);
  font-size: 0.9rem;
}

.dns-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.dns-record-card {
  background: rgba(9, 13, 22, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.dns-card-header {
  padding: 0.9rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-cyan);
}

.dns-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.dns-res-row, .prop-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.cyan-text { color: var(--accent-cyan); font-family: var(--font-code); font-weight: 700; }
.green-text { color: var(--accent-emerald); font-weight: 700; }

.badge-synced {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--accent-emerald);
  background: rgba(0, 223, 162, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 223, 162, 0.25);
}

.lamp-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.lamp-stat-box {
  padding: 1.5rem;
  background: rgba(9, 13, 22, 0.7);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  text-align: center;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-code);
  color: var(--accent-cyan);
  margin-bottom: 0.3rem;
}

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

.mail-generator-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
}

.dns-record-block {
  background: rgba(9, 13, 22, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  position: relative;
}

.block-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.dns-code {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  word-break: break-all;
  white-space: pre-wrap;
}

.btn-copy-code {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  cursor: pointer;
}
.btn-copy-code:hover {
  background: var(--accent-cyan);
  color: #000;
}

/* --------------------------------------------------------------------------
   14. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .projects-grid, .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .lab-controls-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-only { display: flex; }
  .hero-title { font-size: 2.4rem; }
  .section-title { font-size: 1.85rem; }
  .projects-grid, .about-grid, .metrics-grid {
    grid-template-columns: 1fr;
  }
  .form-row { grid-template-columns: 1fr; }
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .agent-nodes-view {
    flex-direction: column;
    gap: 0.75rem;
  }
  .node-arrow { transform: rotate(90deg); }
}
