/* ============================================================
   PARAG KHUMAN — DevOps Portfolio
   Theme: Terminal / Infrastructure Dark
   ============================================================ */

:root {
  --bg:          #060a12;
  --bg-2:        #0b1120;
  --bg-3:        #0f1a2e;
  --surface:     #111d33;
  --surface-2:   #162240;
  --border:      rgba(0, 255, 180, 0.12);
  --border-glow: rgba(0, 255, 180, 0.35);

  --text:        #d4e4ff;
  --muted:       #6b8aad;
  --subtle:      #3a5068;

  --cyan:        #00ffb4;
  --cyan-dim:    rgba(0, 255, 180, 0.6);
  --blue:        #3b82f6;
  --blue-glow:   rgba(59, 130, 246, 0.25);
  --purple:      #8b5cf6;
  --gold:        #f59e0b;

  --mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;

  font-family: var(--sans);
  color-scheme: dark;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; }

/* ── Container ──────────────────────────────────────────── */
.container {
  width: min(1140px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ── Reveal animations ──────────────────────────────────── */
.reveal, .reveal-delay {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-delay { transition-delay: 0.18s; }
.reveal.visible, .reveal-delay.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 10, 18, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.02em;
}

.prompt-char { opacity: 0.5; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--cyan);
  background: rgba(0, 255, 180, 0.07);
}

.nav-resume {
  border: 1px solid var(--border-glow) !important;
  color: var(--cyan) !important;
}

.nav-resume:hover {
  background: rgba(0, 255, 180, 0.12) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.45rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) 0 5rem;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 180, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 180, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 80%);
}

/* Terminal window */
.terminal-window {
  max-width: 780px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(11, 17, 32, 0.9);
  box-shadow:
    0 0 0 1px rgba(0, 255, 180, 0.06),
    0 24px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(0, 255, 180, 0.04);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.terminal-title {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 0.5rem;
}

.terminal-body {
  padding: 1.5rem 1.75rem 1.75rem;
  min-height: 260px;
}

.t-line {
  margin: 0.4rem 0;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--muted);
}

.t-prompt {
  color: var(--cyan);
  margin-right: 0.6rem;
  font-weight: 700;
}

.t-cmd { color: var(--text); }

.t-cursor {
  display: inline-block;
  color: var(--cyan);
  animation: blink 1s step-end infinite;
}

.t-cursor-blink {
  display: inline-block;
  color: var(--cyan);
  animation: blink 1s step-end infinite;
  font-family: var(--mono);
}

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

.t-output {
  margin: 1rem 0 1.25rem 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.t-output.visible { opacity: 1; }

.hero-eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--cyan);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-name {
  margin: 0 0 0.75rem;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(120deg, #fff 0%, var(--cyan) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  font-family: var(--mono);
  font-size: 0.76rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 255, 180, 0.08);
  border: 1px solid rgba(0, 255, 180, 0.25);
  color: var(--cyan);
}

.idle-line { margin-top: 0.75rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
}
.button:hover { transform: translateY(-2px); }

.button-primary {
  background: var(--cyan);
  color: #06101e;
  box-shadow: 0 0 20px rgba(0, 255, 180, 0.3);
}
.button-primary:hover {
  box-shadow: 0 0 32px rgba(0, 255, 180, 0.5);
}

.button-ghost {
  background: rgba(0, 255, 180, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(0, 255, 180, 0.3);
}
.button-ghost:hover {
  background: rgba(0, 255, 180, 0.18);
}

.button-outline {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.button-outline:hover {
  border-color: var(--border-glow);
  color: var(--text);
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-num {
  font-family: var(--mono);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section  { padding: clamp(3.5rem, 6vw, 6rem) 0; }
.section-alt { background: var(--bg-2); }

.section-header {
  margin-bottom: 3rem;
}

.section-tag {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--cyan);
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 1.02rem;
  line-height: 1.75;
}

.about-text strong { color: var(--text); }

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-card {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  transition: border-color 0.2s;
}
.info-card:hover { border-color: var(--border-glow); }

.info-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  min-width: 70px;
  flex-shrink: 0;
}

.info-value {
  font-size: 0.88rem;
  color: var(--text);
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  background: var(--bg);
  flex-shrink: 0;
  transition: border-color 0.3s;
}

.timeline-dot.current {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 255, 180, 0.5);
}

.timeline-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin-top: 6px;
}

.timeline-content {
  padding-bottom: 0.5rem;
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.timeline-period {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.tl-badge {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-glow);
  color: var(--cyan);
  background: rgba(0, 255, 180, 0.08);
}

.timeline-content h3 {
  margin: 0 0 0.2rem;
  font-size: 1.2rem;
  color: #fff;
}

.tl-company {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--blue);
}

.tl-points {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.tl-points li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.tl-points li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

.tl-points strong { color: var(--text); }

.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tl-tags span {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 5px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #93c5fd;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.skill-category:hover {
  border-color: rgba(0, 255, 180, 0.2);
  box-shadow: 0 0 30px rgba(0, 255, 180, 0.05);
}

.skill-cat-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 600;
}

.cat-icon {
  width: 16px;
  height: 16px;
  color: var(--cyan);
  flex-shrink: 0;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(0, 255, 180, 0.06);
  border: 1px solid rgba(0, 255, 180, 0.15);
  color: var(--cyan-dim);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  cursor: default;
}

.chip:hover {
  background: rgba(0, 255, 180, 0.14);
  border-color: rgba(0, 255, 180, 0.4);
  color: var(--cyan);
}

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.cert-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.cert-card:hover {
  border-color: rgba(0, 255, 180, 0.3);
  transform: translateY(-4px);
}

.cert-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.cert-card:hover .cert-glow { opacity: 1; }

.cert-icon-wrap {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--cyan);
}
.cert-icon-wrap svg { width: 100%; height: 100%; }

.cert-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: #fff;
}

.cert-card p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--mono);
}

/* ============================================================
   EDUCATION
   ============================================================ */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: border-color 0.25s;
}
.edu-card:hover { border-color: rgba(0, 255, 180, 0.2); }

.edu-period {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.edu-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: #fff;
}

.edu-uni {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.edu-grade {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 0.2rem 0.65rem;
  border-radius: 5px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
}

/* ============================================================
   ACHIEVEMENTS
   ============================================================ */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.achievement-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.25s, transform 0.25s;
}
.achievement-card:hover {
  border-color: rgba(0, 255, 180, 0.25);
  transform: translateY(-2px);
}

.ach-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 255, 180, 0.08);
  border: 1px solid rgba(0, 255, 180, 0.2);
  color: var(--cyan);
}
.ach-icon.gold {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--gold);
}
.ach-icon svg { width: 26px; height: 26px; }

.achievement-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: #fff;
}

.achievement-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-wrapper { max-width: 800px; }

.contact-intro {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0 0 2.5rem;
  line-height: 1.75;
}
.contact-intro strong { color: var(--text); }

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

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.contact-link:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 255, 180, 0.08);
}

.contact-link-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 255, 180, 0.08);
  border: 1px solid rgba(0, 255, 180, 0.2);
  color: var(--cyan);
}
.contact-link-icon svg { width: 20px; height: 20px; }

.contact-link > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow: hidden;
}

.cl-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cl-value {
  font-size: 0.88rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--cyan);
  font-weight: 700;
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--subtle);
  font-family: var(--mono);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .skills-container { grid-template-columns: repeat(2, 1fr); }
  .cert-grid        { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .about-grid  { grid-template-columns: 1fr; }
  .stats-grid  { grid-template-columns: repeat(3, 1fr); }
  .stats-grid .stat-item:nth-child(4),
  .stats-grid .stat-item:nth-child(5) { grid-column: span 1; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(6, 10, 18, 0.97);
    backdrop-filter: blur(20px);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a { width: 100%; padding: 0.6rem 0.75rem; }

  .edu-grid           { grid-template-columns: 1fr; }
  .achievement-grid   { grid-template-columns: 1fr; }
  .contact-links      { grid-template-columns: 1fr; }
  .skills-container   { grid-template-columns: 1fr; }
  .cert-grid          { grid-template-columns: 1fr; }
  .stats-grid         { grid-template-columns: repeat(2, 1fr); }

  .timeline-item { grid-template-columns: 24px 1fr; gap: 1rem; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2.2rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; justify-content: center; }
}
