/* ============================================
   ATUL PANDEY — atulpandey.in
   Dark Editorial · Gold Accent · Serif Display
   ============================================ */

:root {
  --bg:        #0a0c10;
  --bg2:       #0f1117;
  --bg3:       #14171f;
  --surface:   #181c25;
  --border:    rgba(255,255,255,0.07);
  --gold:      #c9a84c;
  --gold-lt:   #e8c97a;
  --gold-dim:  rgba(201,168,76,0.15);
  --text:      #e8e6e0;
  --text-dim:  #8a8880;
  --text-mute: #4a4845;
  --navy:      #1a2540;
  --accent:    #c9a84c;
  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:   'DM Sans', system-ui, sans-serif;
  --ff-mono:   'DM Mono', monospace;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow:    0 20px 60px rgba(0,0,0,0.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ── SELECTION ── */
::selection { background: var(--gold-dim); color: var(--gold-lt); }

/* ── LINKS ── */
a { color: inherit; text-decoration: none; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gridPulse {
  0%, 100% { opacity: 0.03; }
  50%       { opacity: 0.07; }
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(201,168,76,0); }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── NAV ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,12,16,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(10,12,16,0.97);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 2px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: var(--gold) !important;
  border: 1px solid var(--gold);
  padding: 0.4rem 1.1rem;
  border-radius: 2px;
  transition: background var(--transition), color var(--transition) !important;
}
.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--bg) !important;
}

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--text);
  transition: var(--transition);
}

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
}
.mobile-menu ul { list-style: none; }
.mobile-menu li { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.mobile-menu li:last-child { border: none; }
.mobile-menu a { font-size: 1rem; font-weight: 500; color: var(--text); }
.mobile-menu.open { display: block; }

/* ── SECTION SHARED ── */
section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.section-label {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.section-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 2.5rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border-radius: 2px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn-large { padding: 1rem 2.5rem; font-size: 1rem; }

/* ── PILL ── */
.pill {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--gold-lt);
  font-family: var(--ff-mono);
  letter-spacing: 0.3px;
}

/* ============================================
   HERO
   ============================================ */
#hero {
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridPulse 6s ease-in-out infinite;
}
.hero-grid-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 20% 50%, rgba(201,168,76,0.04) 0%, transparent 70%),
              radial-gradient(ellipse 50% 80% at 80% 30%, rgba(26,37,64,0.3) 0%, transparent 60%),
              linear-gradient(to bottom, transparent 0%, var(--bg) 100%);
}

.hero-content, .hero-stats {
  position: relative; z-index: 1;
  max-width: 1160px; margin: 0 auto; width: 100%;
}
.hero-eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero-name {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}
.hero-name-accent { color: var(--gold); }
.hero-tagline {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-dim);
  max-width: 580px;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  animation: fadeUp 0.8s ease 0.5s both;
}
.stat-card {
  background: var(--surface);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: background var(--transition);
}
.stat-card:hover { background: var(--bg3); }
.stat-num {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
}
.stat-plus { font-size: 1.4rem; }
.stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.scroll-cue {
  position: absolute; bottom: 2rem;
  left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem;
  z-index: 1;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-text {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--text-mute);
  text-transform: uppercase;
}

/* ============================================
   ABOUT
   ============================================ */
#about {
  border-top: 1px solid var(--border);
  padding-top: 6rem;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
}
.about-text p {
  color: var(--text-dim);
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
  line-height: 1.8;
}
.about-certs {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.cert-tag {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  padding: 0.35rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-dim);
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  position: sticky;
  top: 100px;
}
.about-card-header {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.about-initials {
  width: 52px; height: 52px;
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display);
  font-weight: 700; font-size: 1.1rem;
  color: var(--gold);
}
.about-card-name { font-weight: 600; font-size: 1rem; }
.about-card-role { font-size: 0.8rem; color: var(--text-dim); }
.about-card-divider { height: 1px; background: var(--border); margin-bottom: 1.2rem; }
.about-card-row {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.83rem;
}
.about-card-row:last-child { border: none; }
.acr-label { color: var(--text-mute); font-weight: 500; white-space: nowrap; }
.acr-val { color: var(--text-dim); text-align: right; }

/* ============================================
   PROJECTS
   ============================================ */
#projects {
  border-top: 1px solid var(--border);
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg2) 100%);
  max-width: 100%;
  padding: 6rem 2rem;
}
#projects > h2 {
  max-width: 1200px;
  margin: 0 auto 3rem;
}
#projects > .section-label {
  max-width: 1200px;
  margin: 0 auto 2rem;
}
.projects-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.project-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover {
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.project-card:hover::before { opacity: 1; }

.project-number {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  color: var(--text-mute);
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
}
.project-icon { font-size: 1.8rem; margin-bottom: 0.8rem; }
.project-card h3 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}
.project-client {
  font-size: 0.78rem;
  color: var(--gold);
  font-family: var(--ff-mono);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}
.project-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.project-tags span {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-dim);
}
.project-status {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}
.project-status.complete { color: #4ade80; }
.project-status.ongoing  { color: var(--gold); }
.project-status.inprogress { color: #60a5fa; }

/* ============================================
   EXPERIENCE / TIMELINE
   ============================================ */
#experience {
  border-top: 1px solid var(--border);
}
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid var(--border);
  margin-top: 1rem;
}
.tl-item {
  position: relative;
  padding: 0 0 3rem 2.5rem;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -2.1rem; top: 0.4rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.2);
  animation: dotPulse 3s ease-in-out infinite;
}
.tl-item:not(:first-child) .tl-dot { animation: none; background: var(--text-mute); box-shadow: none; }
.tl-date {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.tl-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.tl-company {
  font-size: 0.82rem;
  color: var(--text-mute);
  margin-bottom: 0.9rem;
  font-weight: 500;
}
.tl-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tl-bullets li {
  font-size: 0.88rem;
  color: var(--text-dim);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.6;
}
.tl-bullets li::before {
  content: '—';
  position: absolute; left: 0;
  color: var(--gold);
  font-size: 0.7rem;
  top: 3px;
}

/* ============================================
   SKILLS
   ============================================ */
#skills {
  border-top: 1px solid var(--border);
  background: var(--bg2);
  max-width: 100%;
  padding: 6rem 2rem;
}
#skills > h2, #skills > .section-label {
  max-width: 1200px; margin-left: auto; margin-right: auto;
}
#skills > h2 { margin-bottom: 3rem; }
.skills-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.skill-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
}
.skill-group:hover {
  border-color: rgba(201,168,76,0.25);
  transform: translateY(-2px);
}
.sg-icon { font-size: 1.4rem; margin-bottom: 0.7rem; }
.skill-group h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skill-tags span {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.55rem;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 2px;
  color: var(--gold-lt);
}

/* ============================================
   CONTACT
   ============================================ */
#contact {
  border-top: 1px solid var(--border);
  text-align: center;
  max-width: 100%;
  padding: 6rem 2rem;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg2) 100%);
}
.contact-inner { max-width: 700px; margin: 0 auto; }
#contact .section-label { text-align: center; }
.contact-sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-top: -1rem;
  margin-bottom: 3rem;
  line-height: 1.7;
}
.contact-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color var(--transition), transform var(--transition);
}
.contact-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}
.cc-icon {
  font-size: 1.2rem;
  width: 40px; height: 40px;
  background: var(--gold-dim);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: var(--ff-display);
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.cc-label { font-size: 0.7rem; color: var(--text-mute); letter-spacing: 1px; text-transform: uppercase; font-family: var(--ff-mono); }
.cc-val { font-size: 0.8rem; color: var(--text-dim); font-weight: 500; }

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--gold);
  letter-spacing: 2px;
}
footer p { font-size: 0.78rem; color: var(--text-mute); }
.footer-location { font-family: var(--ff-mono); font-size: 0.7rem; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-card { position: static; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  #hero { padding: 6rem 1.5rem 3rem; }
  .hero-name { font-size: clamp(3rem, 12vw, 5rem); }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .contact-links { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  section { padding: 4rem 1.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .skills-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-pills { gap: 0.4rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
