/* ═══════════════════════════════════════════════════════════════
   WAQASS AHMED — PORTFOLIO STYLESHEET
   Aesthetic: Terminal Noir — dark, precise, phosphor-green accents
   ═══════════════════════════════════════════════════════════════ */

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


:root {
  --bg:          #f8fafc;
  --bg-alt:      #ffffff;
  --bg-card:     #ffffff;
  --bg-card2:    #f1f5f9;
  --border:      rgba(0, 0, 0, 0.08);
  --border-hover:rgba(37, 99, 235, 0.25);
  --green:       #2563eb; /* This is now a Royal Corporate Blue */
  --green-dim:   #1d4ed8;
  --green-glow:  rgba(37, 99, 235, 0.08);
  --cyan:        #0ea5e9; /* This is now a bright Ocean Blue for gradients */
  --cyan-dim:    #0284c7;
  --red:         #e11d48;
  --yellow:      #d97706;
  --text:        #334155; /* Dark slate for readability */
  --text-dim:    #475569;
  --text-muted:  #64748b;
  --heading:     #0f172a; /* Near black for crisp headers */
  --mono:        'Fira Code', monospace;
  --sans:        'Inter', sans-serif;
  --display:     'Inter', sans-serif; /* Using Inter for headers looks incredibly sleek */
  --nav-h:       72px;
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── REFINED DARK MODE OVERRIDES ────────────────────────── */
[data-theme="dark"] {
  /* Softer, more premium dark slate backgrounds instead of pure black */
  --bg:          #0f172a; 
  --bg-alt:      #1e293b;
  --bg-card:     #1e293b;
  --bg-card2:    #0f172a;
  
  /* Subtle, elegant borders */
  --border:      rgba(255, 255, 255, 0.1);
  --border-hover:rgba(56, 189, 248, 0.35);
  
  /* Replacing the neon green with an Electric Azure / Sky Blue */
  --green:       #38bdf8; 
  --green-dim:   #0284c7;
  --green-glow:  rgba(56, 189, 248, 0.15);
  
  /* Complementary deep indigo for gradients */
  --cyan:        #818cf8; 
  --cyan-dim:    #4f46e5;
  
  /* Muted utility colors so they don't scream */
  --red:         #fb7185;
  --yellow:      #fbbf24;
  
  /* High-contrast, clean typography */
  --text:        #e2e8f0;
  --text-dim:    #94a3b8;
  --text-muted:  #64748b;
  --heading:     #f8fafc;

  /* Keep the clean, modern fonts in dark mode too */
  --mono:        'Fira Code', monospace;
  --sans:        'Inter', sans-serif;
  --display:     'Inter', sans-serif;
}

/* Hardcoded element overrides for Dark Mode */
[data-theme="dark"] #navbar { background: rgba(8, 12, 13, 0.85); }
[data-theme="dark"] .terminal-window { background: #1e293b; box-shadow: 0 20px 80px rgba(56, 189, 248, 0.05), 0 0 0 1px rgba(255,255,255,0.05); }
[data-theme="dark"] .terminal-header { background: #111d27; }
[data-theme="dark"] .node { background: rgba(255, 255, 255, 0.05); color: var(--text); border-color: var(--border); }
[data-theme="dark"] .project-arch { background: rgba(0,0,0,0.3); }
[data-theme="dark"] .arch-out { background: rgba(255,255,255,0.03); }
[data-theme="dark"] .form-group input, [data-theme="dark"] .form-group textarea { background: rgba(0,0,0,0.3); }

/* Fix for Tool Pills in Dark Mode */
[data-theme="dark"] .pill {
  color: var(--cyan); /* Uses your indigo color */
  background: rgba(129, 140, 248, 0.1); /* Matches the indigo hue */
  border: 1px solid rgba(129, 140, 248, 0.25);
}

[data-theme="dark"] .pill:hover {
  background: rgba(129, 140, 248, 0.2);
  border-color: var(--cyan);
}


/* Theme Toggle Button Styles */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), transform var(--transition);
  position: relative; 
  z-index: 1; /* Ensures the icon stays on top of the aura */
}

.theme-toggle:hover {
  color: var(--green);
  transform: translateY(-2px);
}
.theme-toggle svg { width: 22px; height: 22px; }

/* ─── GLOWING ATTENTION AURA ───────────────────────────────── */
.theme-toggle::before {
  content: '';
  position: absolute;
  inset: -4px; 
  border-radius: 50%;
  
  /* DEFAULT LIGHT MODE: Royal Blue Aura */
  background: rgba(37, 99, 235, 0.15); 
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.5); 
  
  z-index: -1; 
  animation: auraPulse 2s ease-in-out infinite;
  pointer-events: none; 
}

/* DARK MODE OVERRIDE: Golden Yellow Aura */
[data-theme="dark"] .theme-toggle::before {
  background: rgba(255, 215, 0, 0.15);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

/* Clears out the old mascot */
.theme-toggle::after {
  content: none;
}

@keyframes auraPulse {
  0% {
    transform: scale(0.85);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.4); 
    opacity: 1;
  }
  100% {
    transform: scale(0.85);
    opacity: 0.4;
  }
}

/* Responsive layout fix for mobile */
@media (max-width: 768px) {
  .nav-actions { margin-left: auto; }
}


html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 18px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  /* font-size: 16px; */
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--green); color: var(--bg); }

/* ─── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* ─── STAR CANVAS (DARK MODE ONLY) ───────────────────────── */
#star-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.6; 
  pointer-events: none;
  display: none; /* Strictly hidden in default Light Mode */
}

[data-theme="dark"] #star-canvas {
  display: block; /* Activates the technical aesthetic in Dark Mode */
}

/* ─── UTILITY ────────────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-alt); }

a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cyan); }

strong { color: var(--heading); font-weight: 600; }
em { color: var(--green); font-style: normal; }

.t-green { color: var(--green); }

/* ─── SECTION HEADERS ───────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 3.5rem;
}
.section-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--green);
  letter-spacing: 0.1em;
  opacity: 0.8;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border-hover), transparent);
}

/* ─── NAVIGATION ─────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  /* background: rgba(8, 12, 13, 0.85); */
  background: rgba(248, 250, 252, 0.85);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  border-color: var(--border-hover);
  box-shadow: 0 4px 40px rgba(0, 255, 136, 0.06);
}
.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--heading) !important;
  letter-spacing: 0.15em;
}
.nav-logo .bracket { color: var(--green); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--green);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-dim); transition: all var(--transition); border-radius: 1px; }

/* ─── HERO ───────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 2rem) 2rem 4rem;
  max-width: 1180px;
  margin: 0 auto;
  gap: 4rem;
  position: relative;
  z-index: 1;
}
.hero-content { flex: 1; min-width: 0; }
.hero-visual { flex: 0 0 450px; }

/* ─── PROFILE IMAGE ──────────────────────────────────────── */
.hero-profile {
  width: 250px;
  height: 250px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  padding: 5px; /* Creates a gap between the image and the outer ring */
  border: 1px solid var(--border-hover);
  background: rgba(0, 255, 136, 0.03); /* Extremely subtle green tint behind */
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.08); /* Soft ambient glow */
  transition: all var(--transition);
}

.hero-profile:hover {
  border-color: var(--green);
  box-shadow: 0 0 35px rgba(0, 255, 136, 0.2);
  transform: translateY(-2px);
}

.hero-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image fills the circle without squishing */
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05); /* Adds a crisp inner line */
  object-position: center 20%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--green);
  letter-spacing: 0.15em;
  border: 1px solid var(--border-hover);
  padding: 0.4rem 1rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,255,136,0.4); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 8px rgba(0,255,136,0); }
}

.hero-name {
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
}
.name-last { color: var(--green); }

.hero-role {
  font-family: var(--mono);
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  min-height: 2rem;
}
.prompt { color: var(--green); }
.cursor {
  color: var(--green);
  animation: blink 1s infinite;
  margin-left: 1px;
}
@keyframes blink { 0%,50%,100%{opacity:1} 25%,75%{opacity:0} }
.blink { animation: blink 1s infinite; color: var(--green); }

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 550px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--border);
}
.stat-value {
  display: block;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green);
}
.stat-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ─── TERMINAL WINDOW ───────────────────────────────────── */
.terminal-window {
  /* background: #0a1018; */
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 255, 136, 0.08), 0 0 0 1px rgba(0,255,136,0.05);
  animation: termFloat 6s ease-in-out infinite;
  text-align: left;
}
@keyframes termFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.terminal-header {
  /* background: #111d27; */
  background: #f1f5f9;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.t-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.t-dot.red    { background: #ff5f57; }
.t-dot.yellow { background: #febc2e; }
.t-dot.green  { background: var(--green); box-shadow: 0 0 6px var(--green); }
.t-title {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
  margin-right: auto;
}
.terminal-body {
  padding: 1.4rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 2;
}
.t-line { opacity: 0; animation: lineReveal 0.3s forwards; }
.t-line:nth-child(1) { animation-delay: 0.2s; }
.t-line:nth-child(2) { animation-delay: 0.6s; }
.t-line:nth-child(3) { animation-delay: 1.0s; }
.t-line:nth-child(4) { animation-delay: 1.4s; }
.t-line:nth-child(5) { animation-delay: 1.8s; }
.t-line:nth-child(6) { animation-delay: 2.2s; }
.t-line:nth-child(7) { animation-delay: 2.6s; }
.t-line:nth-child(8) { animation-delay: 3.0s; }
@keyframes lineReveal { to { opacity:1; } }
.t-prompt { color: var(--green); margin-right: 0.6rem; }
.t-out { color: var(--text-dim); padding-left: 1.4rem; }
.t-out.t-green { color: var(--green); }


/* Add this anywhere in your style.css, preferably near the Hero/Terminal styles */
.exec-tag {
  background: var(--green-glow);
  color: var(--green);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-hover);
}

.exec-tag.alt {
  background: var(--bg-card2);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--green);
  color: var(--bg);
  font-weight: 700;
}
.btn-primary:hover {
  background: #00cc6a;
  color: var(--bg);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.4);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--border-hover);
}
.btn-ghost:hover {
  background: var(--green-glow);
  color: var(--green);
  border-color: var(--green);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ─── REVEAL ANIMATIONS ─────────────────────────────────── */
.reveal, .reveal-delay-1, .reveal-delay-2, .reveal-delay-3, .reveal-delay-4 {
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 0.7s ease forwards;
}
.reveal-delay-1 { animation-delay: 0.15s; }
.reveal-delay-2 { animation-delay: 0.3s; }
.reveal-delay-3 { animation-delay: 0.45s; }
.reveal-delay-4 { animation-delay: 0.6s; }
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── ABOUT ──────────────────────────────────────────────── */
/* ─── ABOUT: LEFT SIDE (NARRATIVE & PILLARS) ─── */
.about-narrative-title {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--heading);
  margin-bottom: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

.about-narrative-desc {
  color: var(--text-dim);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.pillar-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.pillar-icon {
  color: var(--green);
  margin-top: 2px;
}

.pillar-title {
  color: var(--heading);
  display: block;
  font-size: 0.95rem;
}

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

/* ─── ABOUT: RIGHT SIDE (PROFILE WIDGET) ─── */
.profile-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.profile-widget:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.08);
}

.widget-header {
  background: var(--bg-card2);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.status-indicator {
  position: relative;
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
}

.status-pulse {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 2s infinite;
}

.widget-title {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.widget-badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--green);
  background: var(--green-glow);
  padding: 2px 8px;
  border-radius: 4px;
}

.widget-body {
  padding: 1.5rem;
}

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

.w-divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

.w-contact {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.w-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.w-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.w-label svg {
  color: var(--green);
}

.w-val {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading);
}

.w-val a {
  color: var(--green);
  transition: color var(--transition);
}

.w-val a:hover {
  color: var(--cyan);
  text-decoration: underline;
}

/* Responsive fix for widget */
@media (max-width: 480px) {
  .w-grid { grid-template-columns: 1fr; gap: 1.2rem; }
}
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-text p {
  color: var(--text-dim);
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
  line-height: 1.85;
}
.about-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: all var(--transition);
}
.social-link svg { width: 14px; height: 14px; fill: currentColor; }
.social-link:hover {
  color: var(--green);
  border-color: var(--border-hover);
  background: var(--green-glow);
}

/* ─── NEW EXECUTIVE PROFILE WIDGET ─── */
.profile-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.profile-widget:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.08);
}
.widget-header {
  background: var(--bg-card2);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.status-indicator {
  position: relative;
  width: 8px;
  height: 8px;
  background: #10b981; /* Success Green */
  border-radius: 50%;
}
.status-pulse {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 2s infinite;
}
.widget-title {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.widget-body {
  padding: 1.5rem;
}
.w-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1rem;
}
.w-divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}
.w-contact {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.w-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.w-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.w-label svg {
  color: var(--green);
}
.w-val {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading);
}
.w-val a {
  color: var(--green);
  transition: color var(--transition);
}
.w-val a:hover {
  color: var(--cyan);
  text-decoration: underline;
}

/* Responsive fix for widget */
@media (max-width: 480px) {
  .w-grid { grid-template-columns: 1fr; gap: 1.2rem; }
}

/* ─── TIMELINE ───────────────────────────────────────────── */
.timeline { position: relative; }
.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 20px;
  margin-top: 6px;
}
.marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--green-dim);
  background: var(--bg);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.marker-dot.active {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 12px var(--green);
}
.marker-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, var(--border-hover), transparent);
  margin-top: 4px;
  min-height: 40px;
}
.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  flex: 1;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.timeline-content:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px rgba(0,255,136,0.06);
}
.tl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.tl-role {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.tl-company {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--green);
  letter-spacing: 0.08em;
}
.tl-meta { text-align: right; flex-shrink: 0; }
.tl-date {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.tl-type {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 2px;
}
.tl-type.tl-active {
  color: var(--green);
  border-color: var(--green-dim);
  background: var(--green-glow);
}
.tl-bullets {
  list-style: none;
  margin-bottom: 1rem;
}
.tl-bullets li {
  color: var(--text-dim);
  font-size: 0.92rem;
  padding: 0.2rem 0 0.2rem 1.2rem;
  position: relative;
}
.tl-bullets li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--green);
}
.tl-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: 0.06em;
  transition: all var(--transition);
}
.tag:hover {
  color: var(--green);
  border-color: var(--green-dim);
  background: var(--green-glow);
}
.tag-sm {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--green-dim);
  border: 1px solid rgba(0,255,136,0.2);
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.06em;
}

/* ─── SKILLS ─────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  transition: border-color var(--transition);
}
.skill-category:hover { border-color: var(--border-hover); }
.skill-cat-title {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--heading);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.cat-icon { font-size: 1rem; }

/* ─── SKILL NODES (Replaces Progress Bars) ───────────────── */
.skill-nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.node {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text); /* Switched to main dark text */
  background: #ffffff; /* Switched from dark transparent to solid white */
  border: 1px solid var(--border);
  padding: 0.4rem 0.8rem;
  border-radius: 3px;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  cursor: default;
}

.node::before {
  content: '>';
  color: var(--green-dim);
  margin-right: 0.5rem;
  font-weight: 700;
  transition: color var(--transition);
}

.node:hover {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-glow);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.15);
  transform: translateY(-2px);
}

.node:hover::before {
  color: var(--cyan);
}


.tools-row {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
}
.tools-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}
.tool-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--cyan-dim);
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.15);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  transition: all var(--transition);
}
.pill:hover {
  color: var(--cyan);
  border-color: rgba(0,212,255,0.4);
  background: rgba(0,212,255,0.1);
}

/* ─── PROJECT CARD ───────────────────────────────────────── */
.project-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0,255,136,0.08);
}
.project-badge {
  background: linear-gradient(to right, var(--green), var(--cyan));
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 0.4rem 1.5rem;
  text-align: center;
}
.project-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2rem;
  padding: 2.5rem;
}
.project-title-block { margin-bottom: 1.5rem; }
.project-name {
  font-family: var(--display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--green);
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: 0 0 40px rgba(0,255,136,0.3);
}
.project-full-name {
  font-family: var(--display);
  font-size: 0.9rem;
  color: var(--heading);
  letter-spacing: 0.04em;
  margin-top: 0.3rem;
  margin-bottom: 0.5rem;
}
.project-affil {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.project-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.project-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}
.p-stat-val {
  display: block;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green);
}
.p-stat-lbl {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.project-arch {
  background: #f8fafc; /* Changed from rgba(0,0,0,0.3) to a very soft slate/gray */
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}
.arch-title {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-align: center;
}
.arch-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.arch-layer { width: 100%; }
.arch-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 3px;
}
.arch-box {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-align: center;
  padding: 0.4rem 0.6rem;
  border-radius: 3px;
  line-height: 1.4;
}
.arch-box small { font-size: 0.58rem; color: var(--text-muted); }
.arch-wifi { background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.2); color: var(--cyan); }
.arch-nodes { display: flex; gap: 0.5rem; }
.arch-nodes .arch-box { flex: 1; }
.arch-node { background: rgba(0,255,136,0.06); border: 1px solid var(--border-hover); color: var(--green); }
.arch-py   { background: rgba(255,215,0,0.06); border: 1px solid rgba(255,215,0,0.2); color: var(--yellow); width: 100%; }
.arch-out  { 
  background: #ffffff; /* Changed to solid white */
  border: 1px solid var(--border); 
  color: var(--text-dim); 
  flex: 1; 
}
.arch-arrow { font-size: 0.9rem; color: var(--border-hover); }
.project-tags-block { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.project-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.highlight-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.highlight-item:nth-child(even) { border-right: none; }
.highlight-item:nth-child(3),
.highlight-item:nth-child(4) { border-bottom: none; }
.highlight-item:hover { background: rgba(0,255,136,0.02); }
.hi-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.highlight-item strong {
  display: block;
  color: var(--heading);
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}
.highlight-item p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ─── CERTIFICATIONS ─────────────────────────────────────── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative; /* Required for top-right Verify button */
}

.cert-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,255,136,0.08);
}
.cert-badge {
  width: 80px;
  height: 52px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  background: var(--green-glow);
  border: 1px solid var(--border-hover);
  color: var(--green);
}
.cert-badge.crta { background: rgba(0,212,255,0.08); border-color: rgba(0,212,255,0.3); color: var(--cyan); }
.cert-badge.cc   { background: rgba(255,215,0,0.07); border-color: rgba(255,215,0,0.25); color: var(--yellow); }
.cert-badge.google { background: rgba(255,77,77,0.07); border-color: rgba(255,77,77,0.25); color: #ff7777; font-size: 1.1rem; }
/* --- Additional Cert Badge Colors --- */
.cert-badge.cwl { background: rgba(0, 212, 255, 0.05); border-color: rgba(0, 212, 255, 0.2); color: var(--cyan); }
.cert-badge.secops { background: rgba(37, 99, 235, 0.08); border-color: rgba(37, 99, 235, 0.3); color: var(--green); }
.cert-badge.ibm { background: rgba(15, 108, 255, 0.08); border-color: rgba(15, 108, 255, 0.3); color: #4589ff; }
.cert-badge.meta { background: rgba(6, 104, 225, 0.08); border-color: rgba(6, 104, 225, 0.3); color: #0668E1; }

/* Dark mode adjustments for the blue corporate logos so they don't fade into the background */
[data-theme="dark"] .cert-badge.ibm { color: #78a9ff; border-color: rgba(120, 169, 255, 0.3); }
[data-theme="dark"] .cert-badge.meta { color: #4A90E2; border-color: rgba(74, 144, 226, 0.3); }


.cert-name {
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--heading);
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}
.cert-issuer {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--green);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.6rem;
}

.cert-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Allows the info section to take full height of card */
}

.cert-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
  flex-grow: 1; /* This acts like a spring, pushing the tags to the absolute bottom! */
  margin-bottom: 1.2rem; /* Creates space between text and tags */
}
.cert-skills { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ─── CONTACT ────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.contact-heading {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--heading);
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.contact-text {
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}
.contact-methods { display: flex; flex-direction: column; gap: 0.8rem; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  transition: all var(--transition);
}
.contact-method:hover {
  border-color: var(--border-hover);
  background: var(--green-glow);
  color: var(--text);
  transform: translateX(4px);
}
.cm-icon {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  background: var(--green-glow);
  border: 1px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
}
.cm-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.cm-val {
  display: block;
  font-size: 0.88rem;
  color: var(--text);
}
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea {
background: #ffffff; /* Changed from rgba(0,0,0,0.3) to pure white */
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.92rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green-dim);
  box-shadow: 0 0 0 3px rgba(0,255,136,0.07);
}
.btn-arrow { transition: transform var(--transition); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--heading);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-brand .bracket { color: var(--green); }
.footer-name { color: var(--text-dim); font-size: 0.9rem; font-weight: 400; }
.footer-copy {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--green); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 960px) {
  #hero {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }
  .hero-visual { flex: none; width: 100%; max-width: 450px; margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-desc { margin: 0 auto 2rem; }

  .about-grid { grid-template-columns: 1fr; }
  .project-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .project-highlights { grid-template-columns: 1fr; }
  .highlight-item { border-right: none !important; }
  .highlight-item:nth-child(3) { border-bottom: 1px solid var(--border) !important; }
}

@media (max-width: 768px) {
.nav-links {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0;
    /* Changed from hardcoded dark rgba to use the theme background */
    background: var(--bg); 
    /* Keep the blur for the glass effect */
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 70px 0; }
  .tl-header { flex-direction: column; gap: 0.5rem; }
  .tl-meta { text-align: left; }
  .certs-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .project-stats-row { gap: 1rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.2rem; }
  .hero-name { font-size: clamp(2.5rem, 14vw, 4rem); }
  .hero-stats { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .hero-stats .stat-divider { display: none; }
}

/* ─── REPLACEMENTS FOR INLINE CSS ─── */

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

/* Terminal Window / Executive Brief Updates */
.terminal-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  animation: termFloat 6s ease-in-out infinite;
  text-align: left;
  padding: 2.5rem 2rem;
}

.exec-brief-header { margin-bottom: 1.8rem; }
.exec-brief-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.exec-brief-title {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--heading);
  margin-top: 0.4rem;
  font-weight: 800;
}
.exec-brief-list { display: flex; flex-direction: column; gap: 1.8rem; }
.exec-brief-item { display: flex; gap: 1rem; align-items: flex-start; }
.exec-brief-icon { color: var(--green); font-size: 1.1rem; margin-top: 2px; }
.exec-item-title {
  color: var(--heading);
  display: block;
  font-size: 0.95rem;
  font-family: var(--display);
}
.exec-item-desc {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.6;
  display: block;
  margin-top: 0.3rem;
}
.exec-item-tags {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
}

/* Contact Form Updates */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  padding-top: 3.5rem;
  overflow: hidden;
}

.contact-priority-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: var(--bg-card2);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact-priority-left { display: flex; align-items: center; gap: 0.8rem; }
.contact-priority-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-priority-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.status-dot-green {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #23a559;
  border-radius: 50%;
  box-shadow: 0 0 8px #23a559;
  animation: pulse 2s infinite;
}

#submit-btn { margin-top: 0.5rem; }
#form-status { transition: all var(--transition); }


/* ─── NEW CERTIFICATIONS & COURSES LAYOUT ─── */

.subsection-title {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--heading);
  margin-bottom: 1.5rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
}

.subsection-title::before {
  content: '>';
  color: var(--green);
  font-family: var(--mono);
}

.cert-footer {
  margin-top: auto; /* Guarantees the tags sit flush at the bottom */
  padding-top: 0;
}

/* Professional Verify Button */
.cert-verify {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all var(--transition);
  background: var(--bg-card2);
  text-decoration: none;
}

.cert-verify:hover {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-glow);
  transform: translateY(-2px);
}

/* Courses Divider */
.courses-divider {
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
  margin: 3.5rem 0;
}

/* Compact Courses Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.course-card {
  flex: 0 0 320px; /* Same width as cert cards */
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: all 0.4s ease;
  position: relative;
}

.course-card:hover {
  border-color: var(--green);
  box-shadow: 0 10px 20px var(--green-glow);
  transform: translateY(-5px);
}

.course-badge {
  width: 45px;
  height: 45px;
  border-radius: 6px;
  flex-shrink: 0;
  font-size: 0.65rem;
}

.course-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.course-info .cert-name {
  font-size: 0.82rem;
  margin-bottom: 0;
}

.course-verify {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.course-verify:hover { color: var(--green); }

/* ─── CAROUSEL & AURA STYLES ─── */
.cert-carousel-wrapper { position: relative; margin-top: 2rem; overflow: hidden; }

.cert-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2rem 1rem;
  scrollbar-width: none;
}
.cert-carousel::-webkit-scrollbar { display: none; }

.cert-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.4s ease;
}

/* The "Cool" Aura Effect */
.cert-card:hover {
  transform: translateY(-8px);
  border-color: var(--green);
  box-shadow: 0 10px 30px var(--green-glow);
}

.cert-verify {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  background: var(--bg-card2);
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cert-verify:hover { background: var(--green); color: white; }

.carousel-nav { display: flex; justify-content: center; gap: 1rem; margin-top: 1rem; }
.nav-btn { background: var(--bg-card2); border: 1px solid var(--border); color: var(--text); padding: 0.5rem 1.2rem; cursor: pointer; border-radius: 4px; }
.nav-btn:hover { background: var(--green); color: white; }


/* ─── PROFESSIONAL TERMINAL FOOTER ─── */
.footer {
  /* Using your preferred darker background */
  background: var(--bg-card2); 
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-logo { font-size: 1.5rem; font-weight: 900; letter-spacing: 0.15em; color: var(--heading) !important; text-decoration: none; }
.footer-desc { color: var(--text-muted); font-size: 0.85rem; margin-top: 1rem; line-height: 1.7; max-width: 300px; }

.footer-col h4 { font-family: var(--mono); font-size: 0.75rem; color: var(--green); text-transform: uppercase; margin-bottom: 1.2rem; letter-spacing: 0.1em; }
.footer-nav, .footer-socials { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-nav a, .footer-socials a { color: var(--text-dim); font-size: 0.85rem; transition: color 0.3s ease; text-decoration: none; }
.footer-nav a:hover, .footer-socials a:hover { color: var(--green); padding-left: 5px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Ensure responsiveness for mobile */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .footer-desc { margin: 1rem auto 0; }
}