@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Share+Tech+Mono&display=swap');

/* --- Reset & Variables --- */
:root {
  --bg-primary: #030712;
  --bg-secondary: #080f1e;
  --bg-card: rgba(10, 20, 38, 0.55);
  --border-cyber: rgba(0, 242, 254, 0.25);
  --border-cyber-active: rgba(0, 242, 254, 0.85);
  
  --accent-cyan: #00f2fe;
  --accent-green: #00ff66;
  --accent-purple: #9d4edf;
  --accent-orange: #ff9f1c;
  --text-primary: #f3f4f6;
  --text-muted: #9ca3af;
  --text-cyan: #a5f3fc;
  
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  
  --glow-cyan: 0 0 10px rgba(0, 242, 254, 0.4), 0 0 20px rgba(0, 242, 254, 0.2);
  --glow-green: 0 0 10px rgba(0, 255, 102, 0.4), 0 0 20px rgba(0, 255, 102, 0.2);
  --glow-purple: 0 0 10px rgba(157, 78, 223, 0.4);
}

body {
  transition: background-color 0.5s ease, color 0.3s ease;
}

body.theme-cyan {
  --accent-cyan: #00f2fe;
  --border-cyber: rgba(0, 242, 254, 0.25);
  --border-cyber-active: rgba(0, 242, 254, 0.85);
  --glow-cyan: 0 0 10px rgba(0, 242, 254, 0.4), 0 0 20px rgba(0, 242, 254, 0.2);
  --text-cyan: #a5f3fc;
}
body.theme-green {
  --accent-cyan: #00ff66;
  --border-cyber: rgba(0, 255, 102, 0.25);
  --border-cyber-active: rgba(0, 255, 102, 0.85);
  --glow-cyan: 0 0 10px rgba(0, 255, 102, 0.4), 0 0 20px rgba(0, 255, 102, 0.2);
  --text-cyan: #a7f3d0;
}
body.theme-purple {
  --accent-cyan: #c084fc;
  --border-cyber: rgba(192, 132, 252, 0.25);
  --border-cyber-active: rgba(192, 132, 252, 0.85);
  --glow-cyan: 0 0 10px rgba(192, 132, 252, 0.4), 0 0 20px rgba(192, 132, 252, 0.2);
  --text-cyan: #f3e8ff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  position: relative;
  background-image: 
    linear-gradient(rgba(0, 242, 254, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 254, 0.015) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* Clean modern overlay without CRT arcade flicker */
body::after {
  display: none;
}

/* Background Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-cyber);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

/* --- Sticky Header & Modern Navigation --- */
.hud-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 242, 254, 0.18);
  z-index: 100;
  padding: 12px 24px;
  transition: all 0.3s ease;
}

.hud-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  gap: 20px;
}

.hud-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-cyan);
  text-shadow: var(--glow-cyan);
  letter-spacing: 0.8px;
  flex-shrink: 0;
}

.hud-logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: var(--glow-green);
  animation: pulse 1.5s infinite alternate;
}

.hud-logo-name {
  color: #ffffff;
}

.hud-logo-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.hud-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hud-nav .nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 0;
  position: relative;
  transition: color 0.25s ease;
}

.hud-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  transition: width 0.25s ease;
}

.hud-nav .nav-link:hover,
.hud-nav .nav-link.active {
  color: var(--accent-cyan);
  text-shadow: var(--glow-cyan);
}

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

.hud-action {
  display: flex;
  align-items: center;
}

.hud-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 6px;
  background: rgba(0, 242, 254, 0.08);
  border: 1.5px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-decoration: none;
  box-shadow: var(--glow-cyan);
  transition: all 0.25s ease;
}

.hud-cta-btn:hover {
  background: var(--accent-cyan);
  color: #030712;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.6);
  transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 105;
}

.mobile-nav-toggle .nav-bar {
  width: 100%;
  height: 2px;
  background-color: var(--accent-cyan);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-nav-toggle.open .nav-bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-nav-toggle.open .nav-bar:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.open .nav-bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.hud-status-panel {
  display: flex;
  gap: 15px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.hud-status-item span {
  color: var(--accent-green);
  font-weight: bold;
}

/* Smooth section scroll margin for sticky header */
section[id] {
  scroll-margin-top: 85px;
}

/* --- Container Layout --- */
.main-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* --- Hero Grid --- */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  align-items: stretch;
  min-height: 520px;
}

/* Custom Card Container (Glassmorphic) */
.cyber-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-cyber);
  border-radius: 12px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyber-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple));
  transition: height 0.4s ease;
}

.cyber-card:hover {
  border-color: var(--border-cyber-active);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.05);
}

.cyber-card:hover::before {
  height: 100%;
}

/* Profile Card Styling */
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.profile-avatar-container {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 20px;
}

.profile-avatar-glow {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  z-index: 1;
  animation: rotateGlow 8s linear infinite;
  opacity: 0.65;
}

.profile-avatar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-secondary);
  z-index: 2;
  background: var(--bg-secondary);
}

.role-badge {
  position: absolute;
  bottom: 0px;
  background: linear-gradient(135deg, var(--accent-cyan), #0284c7);
  color: #030712;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 12px;
  z-index: 3;
  letter-spacing: 0.8px;
  box-shadow: var(--glow-cyan);
  border: 1.5px solid var(--bg-primary);
}

.profile-name {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 5px;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.15), 0 0 20px var(--accent-cyan);
}

.profile-title {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-size: 1rem;
  margin-bottom: 12px;
  text-shadow: var(--glow-cyan);
  display: flex;
  align-items: center;
  gap: 5px;
}

.partner-callout {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
  padding: 8px 12px;
  background: rgba(0, 242, 254, 0.04);
  border-left: 2px solid var(--accent-cyan);
  border-radius: 0 6px 6px 0;
}

.partner-link {
  color: var(--accent-cyan);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.partner-link:hover {
  text-decoration: underline;
  color: #ffffff;
}

.profile-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.profile-location svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-cyan);
  border: 1px solid rgba(0, 242, 254, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  width: 100%;
}

.hero-actions .cyber-btn {
  flex: 1;
  font-size: 0.82rem;
  padding: 10px 10px;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
}

.cyber-btn-outline {
  border-color: rgba(0, 242, 254, 0.35) !important;
  color: var(--text-primary) !important;
  box-shadow: none !important;
}

.cyber-btn-outline:hover {
  border-color: var(--accent-cyan) !important;
  color: var(--accent-cyan) !important;
  background: rgba(0, 242, 254, 0.08) !important;
}

.profile-socials {
  display: flex;
  gap: 15px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-cyber);
  background: rgba(10, 20, 38, 0.4);
  color: var(--text-primary);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.social-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-3px);
}

.social-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* --- Terminal Console Card --- */
.terminal-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: rgba(5, 10, 20, 0.85);
  border: 1.5px solid var(--border-cyber);
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(13, 25, 47, 0.9);
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-cyber);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.terminal-controls {
  display: flex;
  gap: 8px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.terminal-body {
  flex-grow: 1;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-y: auto;
  max-height: 420px;
  color: var(--accent-green);
}

.terminal-welcome {
  color: var(--text-muted);
  margin-bottom: 15px;
}

.terminal-welcome p {
  margin-bottom: 4px;
}

.terminal-line {
  margin-bottom: 8px;
  word-break: break-all;
}

.terminal-output {
  color: var(--text-primary);
  margin-bottom: 12px;
  white-space: pre-wrap;
}

.terminal-input-container {
  display: flex;
  align-items: center;
  color: var(--accent-cyan);
}

.terminal-prompt {
  margin-right: 8px;
  font-weight: bold;
}

.terminal-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  flex-grow: 1;
  caret-color: var(--accent-cyan);
}

/* --- Classified Dossier (About) --- */
.section-title-container {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--text-primary);
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title-tag {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  border: 1px solid var(--border-cyber);
  padding: 2px 8px;
  border-radius: 4px;
}

.section-line {
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border-cyber), transparent);
}

.dossier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.dossier-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dossier-meta-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 12px;
}

.dossier-meta-label {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  text-transform: uppercase;
  font-size: 0.85rem;
}

.dossier-meta-val {
  color: var(--text-primary);
}

.dossier-status-active {
  color: var(--accent-green);
  font-weight: 600;
  text-shadow: var(--glow-green);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dossier-status-active::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: var(--glow-green);
  animation: pulse 1.5s infinite alternate;
}

.dossier-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dossier-text p {
  margin-bottom: 15px;
}

.dossier-highlight {
  color: var(--text-primary);
  border-left: 2.5px solid var(--accent-cyan);
  padding-left: 15px;
  font-style: italic;
}

/* --- Skills System --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.skills-category-title {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-size: 1.1rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.skill-items-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.skill-progress-card {
  position: relative;
  background: rgba(13, 25, 47, 0.4);
  border: 1px solid var(--border-cyber);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.skill-progress-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
  transform: translateY(-2px);
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.skill-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.skill-percentage {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
}

.skill-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  width: 0%; /* Swept dynamically by script */
  border-radius: 3px;
  transition: width 1.5s cubic-bezier(0.1, 1, 0.1, 1);
}

.skill-scan-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-green);
}

.skill-progress-card.scanning .skill-scan-overlay {
  opacity: 1;
  pointer-events: auto;
}

.skill-scan-line {
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Featured Projects --- */
.project-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 24px;
}

.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.project-gallery a {
  display: block;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border-cyber);
  border-radius: 8px;
  background: var(--bg-dark);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.project-gallery a:hover,
.project-gallery a:focus-visible {
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
}

.project-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.88;
  transition: opacity 0.3s ease, transform 0.45s ease;
}

.project-gallery a:hover img {
  opacity: 1;
  transform: scale(1.015);
}

.project-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.project-status {
  color: var(--accent-green);
}

.project-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: var(--glow-green);
}

.project-content h3 {
  margin-bottom: 14px;
  color: var(--text-primary);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.project-content > p {
  color: var(--text-muted);
  line-height: 1.7;
}

.project-features {
  margin: 18px 0;
  padding-left: 20px;
  color: var(--text-muted);
  line-height: 1.65;
}

.project-features li::marker {
  color: var(--accent-cyan);
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.project-stack span {
  padding: 5px 9px;
  border: 1px solid var(--border-cyber);
  border-radius: 4px;
  color: var(--accent-cyan);
  background: rgba(13, 25, 47, 0.55);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.project-link {
  display: inline-block;
  width: auto;
  text-decoration: none;
}

/* --- Timeline Vault (Education & Certifications) --- */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-line-main {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  clear: both;
}

.timeline-item.left {
  float: left;
  text-align: right;
}

.timeline-item.right {
  float: right;
  text-align: left;
}

.timeline-node {
  position: absolute;
  top: 30px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-cyan);
  z-index: 5;
  box-shadow: var(--glow-cyan);
  transition: all 0.3s ease;
}

.timeline-item.left .timeline-node {
  right: -10px;
}

.timeline-item.right .timeline-node {
  left: -10px;
}

.timeline-item:hover .timeline-node {
  background-color: var(--accent-cyan);
  transform: scale(1.2);
}

.timeline-card {
  padding: 24px;
}

.timeline-date {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  margin-bottom: 8px;
  display: block;
}

.timeline-org {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-sub {
  font-family: var(--font-mono);
  color: var(--accent-purple);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

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

.cert-badge-row {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 900px;
  margin: 0 auto;
}

.cert-badge-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px dashed var(--border-cyber);
}

.cert-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  border: 2px solid var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.cert-icon-box svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.cert-info h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.cert-info p {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-green);
}

/* --- Secure Transmission Uplink (Contact) --- */
.contact-container {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  background: rgba(13, 25, 47, 0.4);
  border: 1px solid var(--border-cyber);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
  background: rgba(13, 25, 47, 0.75);
}

textarea.form-input {
  resize: vertical;
  min-height: 150px;
}

.cyber-btn {
  width: 100%;
  background: transparent;
  border: 1.5px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: bold;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glow-cyan);
}

.cyber-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.25), transparent);
  transition: left 0.5s ease;
}

.cyber-btn:hover {
  background: rgba(0, 242, 254, 0.1);
  color: #fff;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.6);
}

.cyber-btn:hover::before {
  left: 100%;
}

.uplink-status-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  border-radius: 12px;
  z-index: 20;
}

.contact-card.uplinking .uplink-status-overlay {
  opacity: 1;
  pointer-events: auto;
}

.uplink-progress-container {
  width: 250px;
  background: rgba(255,255,255,0.05);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin: 15px 0;
  border: 1px solid var(--border-cyber);
}

.uplink-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  transition: width 0.1s ease;
}

.uplink-log {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-green);
  text-shadow: var(--glow-green);
}

/* --- Footer --- */
.cyber-footer {
  margin-top: 40px;
  padding: 30px 24px;
  border-top: 1px solid var(--border-cyber);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-decor {
  color: var(--accent-cyan);
  text-shadow: var(--glow-cyan);
  margin-bottom: 8px;
}

/* --- Section Intros & Competencies --- */
.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 25px;
  max-width: 900px;
}

.competencies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.competency-card {
  background: rgba(13, 25, 47, 0.4);
  border: 1px solid var(--border-cyber);
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s ease;
}

.competency-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  background: rgba(13, 25, 47, 0.7);
}

.competency-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.competency-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.competency-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Entry Offer & Service Pillars --- */
.entry-offer-card {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.08) 0%, rgba(10, 20, 38, 0.8) 100%);
  border: 1.5px solid var(--accent-cyan);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.15);
  border-radius: 12px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  margin-bottom: 25px;
}

.entry-offer-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #030712;
  background: var(--accent-cyan);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.entry-offer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.entry-offer-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

.entry-offer-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.entry-offer-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 24px;
  max-width: 950px;
}

.offer-deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.deliverable-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(3, 7, 18, 0.5);
  border: 1px solid rgba(0, 242, 254, 0.15);
  border-radius: 8px;
  padding: 14px;
}

.deliverable-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 255, 102, 0.15);
  color: var(--accent-green);
  font-size: 0.85rem;
  font-weight: bold;
  flex-shrink: 0;
}

.deliverable-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.deliverable-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.entry-offer-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.entry-offer-cta .cyber-btn {
  width: auto;
  min-width: 220px;
  text-align: center;
  text-decoration: none;
}

.entry-offer-note {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Service Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.pillar-card {
  background: rgba(13, 25, 47, 0.4);
  border: 1px solid var(--border-cyber);
  border-radius: 10px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.pillar-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.1);
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-cyan);
  opacity: 0.8;
  margin-bottom: 12px;
}

.pillar-card h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.pillar-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.pillar-owner {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-cyan);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  padding: 4px 8px;
  border-radius: 4px;
  align-self: flex-start;
}

/* --- Responsible Security Charter --- */
.charter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.charter-card {
  background: rgba(13, 25, 47, 0.35);
  border: 1px solid var(--border-cyber);
  border-radius: 10px;
  padding: 22px;
}

.charter-status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.charter-status.allowed {
  background: rgba(0, 255, 102, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(0, 255, 102, 0.3);
}

.charter-status.forbidden {
  background: rgba(255, 60, 60, 0.15);
  color: #ff5555;
  border: 1px solid rgba(255, 60, 60, 0.3);
}

.charter-card h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.charter-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.charter-footer-banner {
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 8px;
  padding: 14px 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-cyan);
}

/* --- Cross-Training Syllabus --- */
.syllabus-card {
  border: 1px solid var(--border-cyber);
  padding: 24px;
}

.syllabus-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 14px;
}

.syllabus-header h4 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.syllabus-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-green);
  background: rgba(0, 255, 102, 0.1);
  border: 1px solid rgba(0, 255, 102, 0.3);
  padding: 4px 10px;
  border-radius: 4px;
}

.syllabus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.syllabus-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.syllabus-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 18px;
}

.syllabus-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

/* --- Form Fields Update --- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-select {
  cursor: pointer;
  background-color: #0b1528 !important;
  color: var(--text-primary);
}

.form-select option {
  background-color: #0b1528;
  color: #ffffff;
}

.form-consent {
  margin: 16px 0;
}

.consent-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  cursor: pointer;
}

.consent-checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  cursor: pointer;
  accent-color: var(--accent-cyan);
}

/* --- Footer Enhancements --- */
.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

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

.footer-policy {
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

.footer-clock {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* --- Keyframes & Animations --- */
@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { opacity: 0.4; box-shadow: 0 0 5px currentColor; }
  100% { opacity: 1; box-shadow: 0 0 15px currentColor; }
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .dossier-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .hud-action {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  .hud-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(5, 12, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 242, 254, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    padding: 0 24px;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .hud-nav.open {
    padding: 20px 24px;
    max-height: 440px;
    opacity: 1;
    pointer-events: auto;
  }
  .hud-nav .nav-link {
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: 6px;
  }
  .hud-nav .nav-link:hover,
  .hud-nav .nav-link.active {
    background: rgba(0, 242, 254, 0.08);
  }
}

@media (max-width: 768px) {
  .main-wrapper {
    padding: 20px 16px;
    gap: 45px;
  }
  .profile-name {
    font-size: 1.85rem;
  }
  .terminal-body {
    font-size: 0.8rem;
    padding: 12px;
    max-height: 350px;
  }
  .dossier-meta-item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-bottom: 10px;
  }
  .timeline-line-main {
    left: 20px;
  }
  .timeline-item {
    width: 100% !important;
    float: none !important;
    padding-left: 50px;
    padding-right: 0;
  }
  .timeline-item.left {
    text-align: left;
  }
  .timeline-node {
    left: 10px !important;
  }
  .cert-badge-card {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding: 20px 15px;
  }
  .cert-icon-box {
    margin: 0 auto;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .syllabus-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .entry-offer-card {
    padding: 20px 16px;
  }
  .entry-offer-header h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  .project-card {
    gap: 22px;
    padding: 14px;
  }
  .project-gallery {
    grid-template-columns: 1fr;
  }
}
