/* --- High-End Dark Tech Design Tokens --- */
:root {
  --bg-primary: #080B12;       /* Deep Obsidian */
  --bg-secondary: #0E1420;     /* Midnight Navy */
  --card-bg: #151C29;          /* Dark Slate */
  --card-bg-hover: #1C2638;
  --accent-primary: #4F8CFF;   /* Electric Blue */
  --accent-bright: #6EA8FF;    /* Soft Electric Blue */
  --accent-secondary: #22D3EE; /* Cyan Accent */
  --text-primary: #F8FAFC;     /* Ice White */
  --text-secondary: #94A3B8;   /* Cool Grey */
  --border-color: #263247;     /* Slate Border */
  --glow-color: rgba(79, 140, 255, 0.15);
  --success-color: #34D399;
  --font-main: 'General Sans', system-ui, -apple-system, sans-serif;
}

/* --- Global Reset & Foundation --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

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

/* --- Accessibility Utilities --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  z-index: 999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent-secondary);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Background Grid & Ambient Glows --- */
.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.glow-orb {
  position: fixed;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(150px);
}

.glow-orb.top-left {
  top: -180px;
  left: -180px;
  background: var(--accent-primary);
  opacity: 0.14;
}

.glow-orb.bottom-right {
  bottom: -180px;
  right: -180px;
  background: var(--accent-secondary);
  opacity: 0.09;
}

/* --- Header & Navigation --- */
header {
  padding: 16px 8%;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
}

.navbar {
  width: 100%;
  max-width: 1200px;
  background: rgba(14, 20, 32, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-color);
  padding: 12px 28px;
  border-radius: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.brand-badge, .brand-badge-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--bg-secondary));
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  box-shadow: 0 0 12px var(--glow-color);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.brand-badge:hover {
  transform: scale(1.08);
  border-color: var(--accent-primary);
}

.brand-badge-small {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-primary);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
}

/* --- Buttons & Action Elements --- */
.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: var(--text-primary);
  border: 1px solid var(--accent-bright);
  box-shadow: 0 4px 20px rgba(79, 140, 255, 0.25);
}

.btn-primary:hover {
  background-color: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(79, 140, 255, 0.4);
}

.btn-outline {
  background: rgba(21, 28, 41, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(79, 140, 255, 0.15);
}

.icon-btn {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.pill-btn:hover .icon-btn {
  transform: translateX(4px);
}

/* Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-secondary);
  margin-bottom: 16px;
}

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

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 70px 8%;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 82vh;
  gap: 40px;
}

.greeting {
  color: var(--accent-bright);
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
  color: var(--text-primary);
  line-height: 1.08;
}

.typewriter-text {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  min-height: 32px;
  margin-bottom: 12px;
}

.hero-subtext {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 480px;
  margin-bottom: 12px;
  line-height: 1.7;
}

.cursor {
  color: var(--accent-primary);
  animation: blink 0.8s infinite;
}

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

/* Profile Image Card */
.profile-card {
  width: clamp(280px, 25vw, 340px);
  height: clamp(360px, 32vw, 440px);
  background: var(--card-bg);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(8, 11, 18, 0.8);
  position: relative;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 140, 255, 0.4);
  box-shadow: 0 24px 48px rgba(8, 11, 18, 0.9), 0 0 24px rgba(79, 140, 255, 0.15);
}

.profile-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  position: relative;
  z-index: 1;
}

.profile-card:hover img {
  transform: scale(1.03);
}

/* Graceful fallback if no profile image is present */
.fallback-monogram {
  display: none;
  font-size: 96px;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: -2px;
}

.profile-card.img-fallback {
  background: linear-gradient(160deg, var(--card-bg), var(--bg-secondary));
}

.profile-card.img-fallback .fallback-monogram {
  display: block;
}

/* --- About Section --- */
.about-section {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
  padding: 100px 8%;
  max-width: 1280px;
  margin: 0 auto;
  gap: 60px;
}

.sub-heading {
  color: var(--accent-bright);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.about-content h2, .experience-section h2, .projects-section h2, .skills-section h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.about-content p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.info-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 28px;
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.info-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(79, 140, 255, 0.1);
  border: 1px solid rgba(79, 140, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon {
  font-size: 20px;
  color: var(--accent-primary);
}

.info-card h3 {
  font-size: 16px;
  font-weight: 600;
}

.institution {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.coursework {
  font-size: 13px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-badge {
  background: var(--bg-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.tech-badge:hover {
  border-color: var(--accent-primary);
  color: var(--accent-bright);
  transform: translateY(-2px);
}

.tech-badge i { color: var(--accent-primary); }

/* About stats panel (replaces generic stock photography) */
.about-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 120px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.stat-card:hover {
  border-color: rgba(79, 140, 255, 0.4);
  transform: translateY(-2px);
}

.stat-number {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: var(--accent-bright);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Experience Section --- */
.experience-section {
  position: relative;
  z-index: 1;
  padding: 80px 8%;
  max-width: 1280px;
  margin: 0 auto;
}

.timeline-wrapper {
  position: relative;
  margin-top: 32px;
  padding-left: 24px;
}

.timeline-line {
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-primary), var(--border-color));
}

.timeline-dot {
  position: absolute;
  left: -29px;
  top: 36px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 10px var(--accent-primary);
}

.timeline-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: 20px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.timeline-card:hover {
  border-color: rgba(79, 140, 255, 0.4);
  transform: translateY(-2px);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
}

.timeline-header h3 {
  font-size: 20px;
  font-weight: 600;
}

.organization {
  color: var(--accent-bright);
  font-size: 14px;
  font-weight: 500;
  display: block;
  margin-top: 4px;
}

.timeline-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-secondary);
  background: rgba(34, 211, 238, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  white-space: nowrap;
}

.experience-bullets {
  list-style-type: none;
  color: var(--text-secondary);
  font-size: 14px;
}

.experience-bullets li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  line-height: 1.6;
}

.experience-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

/* --- Projects Section --- */
.projects-section {
  position: relative;
  z-index: 1;
  padding: 100px 8%;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  gap: 20px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 400px;
}

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

.project-card {
  background: var(--card-bg);
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  outline: none;
}

.project-card:hover, .project-card:focus-visible {
  transform: translateY(-6px);
  background: var(--card-bg-hover);
  border-color: rgba(79, 140, 255, 0.4);
  box-shadow: 0 16px 36px rgba(8, 11, 18, 0.6);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.project-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(79, 140, 255, 0.1);
  border: 1px solid rgba(79, 140, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--accent-primary);
}

.project-number {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-secondary);
  letter-spacing: 1px;
}

.project-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-tech {
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.view-details {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
}

.project-card:hover .view-details {
  gap: 10px;
  color: var(--accent-bright);
}

/* --- AI Prompt Terminal --- */
.terminal-section {
  position: relative;
  z-index: 1;
  padding: 80px 8%;
  max-width: 1280px;
  margin: 0 auto;
}

.terminal-container {
  background: #0B0F19;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(79, 140, 255, 0.1);
  font-family: 'Courier New', Courier, monospace;
  margin-top: 20px;
}

.terminal-header {
  background: #111726;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
}

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

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

.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.terminal-title {
  font-size: 13px;
  color: var(--text-secondary);
}

.terminal-badge {
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.15);
  color: var(--accent-secondary);
  border: 1px solid rgba(34, 211, 238, 0.3);
  font-weight: 700;
  white-space: nowrap;
}

.terminal-body {
  padding: 24px;
  min-height: 220px;
  max-height: 320px;
  overflow-y: auto;
  font-size: 14px;
}

.term-line {
  margin-bottom: 12px;
  line-height: 1.5;
  word-break: break-word;
}

.term-user {
  color: var(--accent-secondary);
  font-weight: bold;
}

.term-response {
  color: var(--accent-bright);
}

.terminal-controls {
  padding: 16px 24px;
  background: #0E1420;
  border-top: 1px solid var(--border-color);
}

.prompt-chips {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.chip-btn {
  background: rgba(79, 140, 255, 0.1);
  border: 1px solid rgba(79, 140, 255, 0.3);
  color: var(--accent-bright);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.chip-btn:hover {
  background: var(--accent-primary);
  color: #fff;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.term-prompt {
  color: var(--accent-secondary);
  font-weight: bold;
}

#terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  min-width: 0;
}

.term-send {
  background: var(--accent-primary);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- Modal System --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 11, 18, 0.85);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body h3 {
  font-size: 24px;
  margin-bottom: 8px;
  padding-right: 24px;
}

.modal-body .modal-tech {
  color: var(--accent-secondary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.modal-body p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.modal-body h4 {
  font-size: 16px;
  color: var(--text-primary);
  margin: 20px 0 10px 0;
}

.modal-body ul {
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

.modal-body ul li {
  margin-bottom: 8px;
}

/* --- Command Palette (Ctrl + K) --- */
.cmd-palette-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 11, 18, 0.85);
  backdrop-filter: blur(16px);
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cmd-palette-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cmd-palette-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  max-width: 580px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
}

.cmd-input-wrapper {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
}

.cmd-icon {
  color: var(--accent-primary);
  font-size: 16px;
}

#cmd-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 15px;
  min-width: 0;
}

.cmd-esc {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  color: var(--text-secondary);
}

.cmd-list {
  list-style: none;
  max-height: 280px;
  overflow-y: auto;
  padding: 8px 0;
}

.cmd-list li {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cmd-list li:hover,
.cmd-list li:focus-visible {
  background: var(--card-bg-hover);
  color: var(--text-primary);
}

.cmd-list li[hidden] {
  display: none;
}

.cmd-list li i {
  color: var(--accent-primary);
  width: 18px;
}

/* --- Skills Section --- */
.skills-section {
  position: relative;
  z-index: 1;
  padding: 80px 8%;
  max-width: 1280px;
  margin: 0 auto;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 16px;
}

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

.skill-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
}

.skill-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(79, 140, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.skill-percentage {
  color: var(--accent-bright);
  font-weight: 700;
  font-size: 14px;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 10px;
  transition: width 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Certifications */
.certifications-container {
  margin-top: 52px;
}

.certifications-container h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cert-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.cert-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.cert-card strong {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.cert-card p {
  font-size: 12px;
  color: var(--text-secondary);
}

.cert-icon {
  color: var(--accent-primary);
  font-size: 18px;
  margin-top: 2px;
}

/* --- Contact Section --- */
.cta-section {
  position: relative;
  z-index: 1;
  padding: 90px 8%;
  max-width: 1280px;
  margin: 0 auto;
}

.cta-card {
  background: linear-gradient(135deg, var(--bg-secondary), var(--card-bg));
  border: 1px solid var(--border-color);
  padding: 56px;
  border-radius: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  box-shadow: 0 20px 40px rgba(8, 11, 18, 0.6);
}

.cta-content h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.cta-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 15px;
  max-width: 580px;
}

.contact-meta p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-meta i {
  color: var(--accent-primary);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--card-bg);
  border: 1px solid var(--success-color);
  color: var(--text-primary);
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Back To Top Button */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--accent-primary);
  border-color: var(--accent-bright);
  transform: translateY(-3px);
}

/* --- Footer --- */
footer {
  position: relative;
  z-index: 1;
  padding: 40px 8%;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright { color: var(--text-secondary); font-size: 13px; }

.footer-socials { display: flex; gap: 14px; }

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
  background: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 140, 255, 0.3);
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.delay-1 { transition-delay: 0.15s; }

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .hero, .about-section {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
  }

  .about-section {
    display: flex;
  }

  .about-stats {
    position: static;
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
  }

  .stat-card { min-width: 220px; }

  .cta-card, .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-card { padding: 40px; }

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

@media (max-width: 768px) {
  header { padding: 12px 4%; }
  .mobile-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    display: none;
    box-shadow: 0 20px 40px rgba(8, 11, 18, 0.9);
  }

  .nav-links.open { display: flex; }

  .projects-grid, .skills-container, .cert-grid { grid-template-columns: 1fr; }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-card {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions { flex-direction: row; }

  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .cta-actions { flex-direction: column; }
}