/* ==========================================================================
   Professional Aerospace Engineering Portfolio - joker0210G
   HR-Ready Design for NASA, ISRO, SpaceX, DRDO, Startups
   ==========================================================================
   Design Philosophy:
   - Clean, readable, and credibility-first (not gimmick-first)
   - Neutral professional palette with tasteful accents
   - Every section answers "Why should we hire this person?"
   - Works without JavaScript (progressive enhancement)
   - Loads fast — HR isn't going to wait 5 seconds
   ========================================================================== */

:root {
  /* Professional Color System */
  --midnight: #0a0f1e;
  --navy: #111827;
  --navy-light: #1f2b40;
  --card-bg: #162032;
  --card-border: rgba(100, 160, 220, 0.18);
  
  /* NASA-ISRO-SpaceX Inspired Accent Palette */
  --sky-blue: #4fc3f7;       /* NASA/Space feel */
  --electric: #00d4ff;       /* SpaceX cold precision */
  --orange: #f97316;         /* ISRO/rocketry */
  --gold: #f59e0b;           /* Achievement / Medal */
  --success: #10b981;        /* Active / Running */
  --muted-blue: #60a5fa;
  --danger: #ef4444;

  /* Text */
  --text-primary: #f0f4f8;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: var(--sky-blue);

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Spacing */
  --max-w: 1180px;
  --section-gap: 96px;
  --card-radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 100px;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.2s var(--ease);
  --t-med: 0.4s var(--ease);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

section[id] {
  scroll-margin-top: 80px;
  position: relative;
  z-index: 1;
}

body {
  background: var(--midnight);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

a { color: var(--sky-blue); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: #fff; }

img { max-width: 100%; display: block; }
code, pre { font-family: var(--font-mono); }
ul { list-style: none; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 48px 0; }
.section + .section,
.section-divider + .section {
  padding-top: 36px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky-blue);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--sky-blue);
  display: inline-block;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 620px;
  font-size: 1.05rem;
}

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

/* ============================================================
   CARD / GLASS PANEL
   ============================================================ */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 28px;
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.card:hover {
  border-color: rgba(79, 195, 247, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--midnight); }
::-webkit-scrollbar-thumb { background: rgba(79, 195, 247, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--sky-blue); }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-accent { color: var(--sky-blue); }
.text-muted { color: var(--text-secondary); }
.text-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.badge-blue   { background: rgba(79, 195, 247, 0.12); color: var(--sky-blue); border: 1px solid rgba(79, 195, 247, 0.25); }
.badge-green  { background: rgba(16, 185, 129, 0.1);  color: var(--success);  border: 1px solid rgba(16, 185, 129, 0.25); }
.badge-orange { background: rgba(249, 115, 22, 0.1);  color: var(--orange);   border: 1px solid rgba(249, 115, 22, 0.25); }
.badge-gold   { background: rgba(245, 158, 11, 0.1);  color: var(--gold);     border: 1px solid rgba(245, 158, 11, 0.25); }
.badge-muted  { background: rgba(100, 116, 139, 0.12); color: var(--text-secondary); border: 1px solid rgba(100,116,139,0.2); }

/* Status dot */
.dot-live {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--success); }
  50%       { opacity: 0.6; box-shadow: 0 0 14px var(--success); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--t-fast);
  text-decoration: none;
  font-family: var(--font-body);
  white-space: nowrap;
}

.btn-primary {
  background: var(--sky-blue);
  color: #060f1e;
}
.btn-primary:hover {
  background: #81d4fa;
  color: #060f1e;
  box-shadow: 0 0 20px rgba(79, 195, 247, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--card-border);
}
.btn-outline:hover {
  border-color: var(--sky-blue);
  color: var(--sky-blue);
}

.btn-ghost {
  background: rgba(79, 195, 247, 0.08);
  color: var(--sky-blue);
  border: 1px solid rgba(79, 195, 247, 0.2);
}
.btn-ghost:hover {
  background: rgba(79, 195, 247, 0.18);
}

.btn-sm { padding: 7px 14px; font-size: 0.82rem; }

/* ============================================================
   REVEAL ANIMATION (scroll triggered)
   ============================================================ */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

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

/* Stagger children */
.reveal-stagger > * {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.reveal-stagger.visible > * { opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.48s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.56s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  :root { --section-gap: 72px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  :root { --section-gap: 56px; }
}
