/* ═══════════════════════════════════════════════
   PORTFOLIO — Dark Monochrome Theme
   Palette: #0a0a0a / #111 / #1a1a1a / #333 / #fff
   ═══════════════════════════════════════════════ */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0a;
  color: #ffffff;
  line-height: 1.7;
  overflow-x: hidden;
}

::selection {
  background: #fff;
  color: #0a0a0a;
}

a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover {
  opacity: 0.7;
}

code {
  font-family: 'JetBrains Mono', monospace;
  background: #1a1a1a;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
}

strong {
  font-weight: 600;
}

/* ─── Container ────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Section ──────────────────────────────────── */
.section {
  padding: 60px 0;
  border-bottom: 1px solid #1a1a1a;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-title::before {
  content: '// ';
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  opacity: 0.4;
}

.section-subtitle {
  color: #999;
  margin-bottom: 40px;
  font-size: 1rem;
}

/* ═══════════════════════════════════════════════
   NAVBAR — Centered name only
   ═══════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #1a1a1a;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
}

.nav-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════
   HERO + ABOUT — Side by side
   ═══════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
}

.hero-about-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.hero-left {
  /* Intro side */
}

.hero-greeting {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  opacity: 0.5;
  margin-bottom: 12px;
}

.hero-name {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
}

.hero-role-prefix {
  opacity: 0.4;
}

.hero-cursor {
  animation: blink 1s step-end infinite;
  font-weight: 300;
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-tagline {
  font-size: 1.05rem;
  opacity: 0.6;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* API-style button */
.btn-api {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #333;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  transition: all 0.3s;
  background: transparent;
}
.btn-api:hover {
  background: #fff;
  color: #0a0a0a;
  opacity: 1;
  border-color: #fff;
}
.btn-method {
  background: #333;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.75rem;
}
.btn-api:hover .btn-method {
  background: #0a0a0a;
  color: #fff;
}
.btn-endpoint {
  font-weight: 500;
}
.btn-status {
  opacity: 0.5;
}

/* ─── About (right column) ─────────────────────── */
.hero-right {
  /* About side */
}

.about-heading {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.about-heading::before {
  content: '// ';
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  opacity: 0.4;
}

.hero-right p {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid #1a1a1a;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════
   TERMINAL
   ═══════════════════════════════════════════════ */
.terminal-window {
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  background: #1a1a1a;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #222;
}

.terminal-dots {
  display: flex;
  gap: 8px;
}
.terminal-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #333;
}
.terminal-dots span:nth-child(1) { background: #555; }
.terminal-dots span:nth-child(2) { background: #444; }
.terminal-dots span:nth-child(3) { background: #333; }

.terminal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  opacity: 0.5;
}

.terminal-body {
  padding: 20px;
  min-height: 350px;
  max-height: 500px;
  overflow-y: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
}

.terminal-body::-webkit-scrollbar {
  width: 6px;
}
.terminal-body::-webkit-scrollbar-track {
  background: #111;
}
.terminal-body::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

.terminal-line {
  margin-bottom: 4px;
}

.terminal-prompt {
  color: #888;
  margin-right: 10px;
}

.terminal-text {
  color: #fff;
}

.terminal-response {
  margin-bottom: 16px;
  color: #ccc;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.terminal-response pre {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.4;
}

.terminal-response a {
  color: #6cb6ff;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.terminal-response a:hover {
  opacity: 1;
  color: #8ccaff;
}

.terminal-input-line {
  display: flex;
  align-items: center;
}

.terminal-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  flex: 1;
  caret-color: #fff;
}

/* ═══════════════════════════════════════════════
   TIMELINE (Experience + Leadership)
   ═══════════════════════════════════════════════ */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #333;
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}
.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -30px; /* Centered on the line (40px padding - 10px offset) */
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #0a0a0a;
}

.timeline-content {
  background: #111;
  border: 1px solid #1a1a1a;
  border-radius: 10px;
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.timeline-content:hover {
  border-color: #333;
  transform: translateX(4px);
}

.timeline-row-top,
.timeline-row-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-row-top {
  margin-bottom: 4px;
}

.timeline-row-bottom {
  margin-bottom: 12px;
}

.timeline-row-top h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}

/* Removed .timeline-header h3 block */

.timeline-company {
  font-size: 0.9rem;
  opacity: 0.5;
  font-family: 'JetBrains Mono', monospace;
}

.timeline-company a {
  color: #fff;
  text-decoration: none;
  opacity: 1;
}
.timeline-company a:hover {
  text-decoration: underline;
  opacity: 1;
}

.timeline-date {
  display: block;
  font-size: 0.82rem;
  opacity: 0.4;
  font-family: 'JetBrains Mono', monospace;
}

.timeline-location {
  display: block;
  font-size: 0.82rem;
  opacity: 0.4;
  font-family: 'JetBrains Mono', monospace;
  font-style: italic;
}

.timeline-details {
  list-style: none;
  margin-bottom: 16px;
}
.timeline-details li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 0.92rem;
  opacity: 0.8;
  line-height: 1.6;
}
.timeline-details li::before {
  content: '–';
  position: absolute;
  left: 0;
  opacity: 0.4;
}

/* Tech tags */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tech-tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 4px 10px;
  border: 1px solid #333;
  border-radius: 4px;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.tech-tags span:hover {
  opacity: 1;
}

/* ═══════════════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.project-card {
  background: #111;
  border: 1px solid #1a1a1a;
  border-radius: 10px;
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.project-card:hover {
  border-color: #333;
  transform: translateY(-4px);
}

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

.project-icon {
  width: 28px;
  height: 28px;
  opacity: 0.4;
}

.project-link {
  opacity: 0.4;
  transition: opacity 0.2s;
}
.project-link:hover {
  opacity: 1;
}

.project-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.project-type {
  font-size: 0.85rem;
  opacity: 0.5;
  margin-bottom: 4px;
  font-style: italic;
}

.project-date {
  display: block;
  font-size: 0.78rem;
  opacity: 0.35;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 16px;
}

.project-details {
  list-style: none;
  margin-bottom: 16px;
}
.project-details li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  opacity: 0.75;
  line-height: 1.6;
}
.project-details li::before {
  content: '–';
  position: absolute;
  left: 0;
  opacity: 0.4;
}

/* ═══════════════════════════════════════════════
   SKILLS — Vertical list
   ═══════════════════════════════════════════════ */
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.skill-group {
  background: #111;
  border: 1px solid #1a1a1a;
  border-radius: 10px;
  padding: 28px;
}

.skill-group-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  padding: 6px 14px;
  border: 1px solid #333;
  border-radius: 6px;
  transition: all 0.2s;
}
.skill-tags span:hover {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

/* ═══════════════════════════════════════════════
   CERTIFICATIONS
   ═══════════════════════════════════════════════ */
.certs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.cert-card {
  background: #111;
  border: 1px solid #1a1a1a;
  border-radius: 10px;
  padding: 24px;
  transition: border-color 0.3s;
}
.cert-card:hover {
  border-color: #333;
}

.cert-issuer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.4;
  margin-bottom: 8px;
}

.cert-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.cert-date {
  display: block;
  font-size: 0.82rem;
  opacity: 0.4;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 12px;
}

.cert-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.cert-link:hover {
  opacity: 1;
}

/* ═══════════════════════════════════════════════
   LEADERSHIP
   ═══════════════════════════════════════════════ */
.leadership-org {
  margin-bottom: 40px;
}

.leadership-org-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.leadership-org-name a {
  color: #fff;
  text-decoration: none;
}
.leadership-org-name a:hover {
  text-decoration: underline;
  opacity: 1;
}

.leadership-org-detail {
  font-size: 0.85rem;
  opacity: 0.45;
  font-family: 'JetBrains Mono', monospace;
}

/* Awards */
.awards-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #1a1a1a;
}

/* .awards-title removed */

.award-item {
  background: #111;
  border: 1px solid #1a1a1a;
  border-radius: 10px;
  padding: 24px;
}

.award-issuer {
  display: block;
  font-size: 0.8rem;
  opacity: 0.4;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 4px;
  margin-bottom: 12px;
}

.award-item .timeline-details {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════
   CONTACT & SOCIALS
   ═══════════════════════════════════════════════ */
.contact-text {
  font-size: 1.1rem;
  opacity: 0.7;
  margin-bottom: 40px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.contact-item:hover {
  opacity: 1;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
footer {
  padding: 20px 0;
}

/* ═══════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero-about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  #hero {
    min-height: auto;
    padding: 100px 24px 60px;
  }

  .hero-name {
    font-size: 2.2rem;
    letter-spacing: -1px;
  }

  .section {
    padding: 40px 0;
  }

  .timeline {
    padding-left: 30px;
  }
  .timeline::before {
    left: 10px;
  }
  .timeline-marker {
    left: -27px;
  }

  .timeline-header {
    flex-direction: column;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .certs-grid {
    grid-template-columns: 1fr;
  }

  .btn-api {
    text-align: center;
    justify-content: center;
  }

  .terminal-body {
    min-height: 250px;
    font-size: 0.78rem;
  }

  .nav-name {
    font-size: 0.85rem;
    letter-spacing: 1px;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 1.8rem;
  }

  .about-stats {
    gap: 12px;
  }

  .stat-number {
    font-size: 1.4rem;
  }
}
