/* ============================================
   ATUL KUMAR — PORTFOLIO SHARED STYLES
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Epilogue:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg:       #0e1117;
  --bg2:      #141820;
  --surface:  #1a2032;
  --surface2: #222c42;
  --accent:   #38bdf8;
  --accent2:  #a78bfa;
  --accent3:  #34d399;
  --warn:     #fbbf24;
  --text:     #f1f5f9;
  --muted:    #94a3b8;
  --border:   rgba(56,189,248,0.15);
  --glow:     rgba(56,189,248,0.22);
  --radius:   14px;
  --nav-h:    70px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Epilogue', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ---- CANVAS BG ---- */
#bg-canvas {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  height: var(--nav-h);
  background: rgba(14,17,23,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 6%;
  z-index: 900;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.55rem;
  letter-spacing: 3px;
  color: #fff;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo img {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
}
.nav-logo .dot { color: var(--accent); }

.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.2s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}
.nav-links a.active::after {
  content: '';
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-cta {
  display: flex; align-items: center; gap: 12px;
}
.nav-hire {
  padding: 9px 22px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  transition: all 0.25s;
  font-family: 'JetBrains Mono', monospace;
}
.nav-hire:hover {
  background: var(--accent);
  color: #060810;
  box-shadow: 0 0 20px var(--glow);
}

/* Mobile nav toggle */
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s;
}

/* ---- PAGE WRAPPER ---- */
.page {
  position: relative; z-index: 1;
  min-height: 100vh;
  padding-top: var(--nav-h);
}

/* ---- SECTION COMMONS ---- */
.section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 5%;
}

.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  opacity: 0.8;
  display: flex; align-items: center; gap: 10px;
}
.section-eyebrow::before { content: '//'; opacity: 0.5; }

.section-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 1px;
  color: #fff;
  line-height: 1;
  margin-bottom: 56px;
}
.section-heading .hl { color: var(--accent); }

/* ---- BUTTON STYLES ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s;
  cursor: pointer; border: none;
}
.btn-primary {
  background: var(--accent);
  color: #060810;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--glow);
}
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,212,255,0.05);
}

/* ---- CARD BASE ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.card:hover {
  border-color: rgba(0,212,255,0.35);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* ---- REVEAL ANIMATION ---- */
.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.visible { opacity: 1; transform: translateY(0); }

/* ---- TAG / BADGE ---- */
.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  color: var(--accent);
  display: inline-block;
}

/* ---- PAGE TRANSITION ---- */
.page-transition {
  animation: fadeUp 0.5s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- FOOTER ---- */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 24px 6%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-left {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px;
  font-size: 1rem;
  color: var(--muted);
}
.footer-left span { color: var(--accent); }
.footer-center {
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-right {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0.6;
}

/* ---- STATUS PILL ---- */
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent3);
  font-family: 'JetBrains Mono', monospace;
}
.status-dot {
  width: 7px; height: 7px;
  background: var(--accent3);
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.3; transform:scale(0.6); }
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Body text boost — ensure muted is never too dark */
p, .about-intro, .exp-desc, .project-desc, .hero-desc,
.highlight-sub, .value-desc, .contact-intro,
.timeline-content p { color: var(--muted); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(6,8,16,0.97);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 8px;
  }
  .nav-links.open a { padding: 12px 16px; font-size: 1rem; }
}

@media (max-width: 600px) {
  .section-wrap { padding: 60px 5%; }
  .footer { flex-direction: column; text-align: center; }
}
