/* ═══════════════════════════════════════════════
   DEEPANSHU — CLEAN DARK MODERN PORTFOLIO
   ═══════════════════════════════════════════════ */

:root {
  --bg: #000000;
  --surface: #0a0a0a;
  --card: #0d0d0d;
  --ink: #ffffff;
  --ink-soft: #e0e0e0;
  --muted: #777777;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --accent: #c8ff00;
  --accent-dim: rgba(200, 255, 0, 0.12);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── SCROLL PROGRESS ─── */
.scroll-progress {
  background: var(--accent);
  height: 2px;
  left: 0;
  position: fixed;
  top: 0;
  transform: scaleX(0);
  transform-origin: left;
  width: 100%;
  z-index: 100;
}

/* ═══════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════ */

.site-header {
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid var(--border);
  display: flex;
  height: 72px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 50;
}

.brand {
  align-items: center;
  display: flex;
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  font-style: italic;
  gap: 0;
}

.brand-dot {
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  margin-right: 0.5rem;
  width: 8px;
}

.site-nav {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.85rem;
  font-weight: 500;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.site-nav a { transition: color 200ms ease; }
.site-nav a:hover, .site-nav a.active { color: var(--ink); }

.nav-contact-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1.2rem;
  transition: border-color 200ms ease, background 200ms ease;
}
.nav-contact-btn:hover { background: rgba(255, 255, 255, 0.04); border-color: var(--border-hover); }

.nav-toggle { background: transparent; border: 0; display: none; height: 42px; padding: 0; width: 42px; }
.nav-toggle span { background: var(--ink); display: block; height: 1.5px; margin: 7px auto; width: 22px; }

/* ═══════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════ */

h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(5rem, 12vw, 11rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin-bottom: 0.5rem;
}

h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

p { margin-top: 0; }

.eyebrow {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.hero-tagline {
  color: var(--muted);
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  margin-bottom: 1.8rem;
}

.hero-tagline em {
  color: var(--ink-soft);
  font-style: italic;
}

/* ─── SECTION LABELS ─── */
.section-label {
  align-items: center;
  color: #92d0ff;
  display: flex;
  font-size: 0.75rem;
  font-weight: 600;
  gap: 0.75rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.label-line {
  background: var(--border-hover);
  height: 1px;
  width: 2rem;
}

/* ─── BUTTONS ─── */
.button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 700;
  min-height: 48px;
  padding: 0 1.6rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.button:hover { transform: translateY(-2px); }

.button.primary {
  background: var(--ink);
  color: var(--bg);
}
.button.primary:hover { box-shadow: 0 6px 24px rgba(255, 255, 255, 0.12); }

.button.secondary {
  border: 1px solid var(--border);
  color: var(--ink);
}
.button.secondary:hover { border-color: var(--border-hover); background: rgba(255, 255, 255, 0.03); }

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */

.hero {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
  min-height: calc(100vh - 72px);
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 4vw, 4rem) 4rem;
  position: relative;
}

.hero-content {
  max-width: 700px;
  min-width: 0;
}

.hero-text {
  color: var(--muted);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 0;
}

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

.hero-accent-line {
  margin-top: 1.5rem;
  margin-bottom: -0.5rem;
  max-width: 250px;
  width: 100%;
  opacity: 0.85;
  mix-blend-mode: screen;
}

/* ─── HERO VISUAL PANEL ─── */
.hero-visual {
  align-self: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: grid;
  gap: 0.75rem;
  min-height: 520px;
  overflow: hidden;
  padding: 1.25rem;
  position: relative;
}

.identity-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  gap: 1rem;
  padding: 1rem;
}

.avatar {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: var(--bg);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.1rem;
  font-weight: 900;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.role { font-weight: 700; font-size: 0.92rem; margin: 0; }
.location { color: var(--muted); font-size: 0.85rem; margin: 0.2rem 0 0; }

/* ─── STAT BOXES ─── */
.signal-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(3, 1fr); }

.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  min-height: 100px;
  transition: border-color 300ms ease;
}
.stat-box:hover { border-color: var(--border-hover); }

.stat-number {
  color: var(--ink);
  display: inline;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.6rem, 3.5vw, 2rem);
}

.stat-plus {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--accent);
}

.stat-box p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ─── CODE WINDOW ─── */
.code-window {
  align-self: end;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--ink-soft);
  min-height: 240px;
  padding: 1rem;
}

.window-dots { display: flex; gap: 0.4rem; margin-bottom: 0.85rem; }
.window-dots span { border-radius: 50%; height: 9px; width: 9px; }
.window-dots span:nth-child(1) { background: #ff5f57; }
.window-dots span:nth-child(2) { background: #febc2e; }
.window-dots span:nth-child(3) { background: #28c840; }

pre { font-size: clamp(0.78rem, 1.4vw, 0.9rem); line-height: 1.65; margin: 0; overflow-x: auto; white-space: pre-wrap; }

/* ═══════════════════════════════════════════════
   MARQUEE
   ═══════════════════════════════════════════════ */

.marquee {
  border-block: 1px solid var(--border);
  overflow: hidden;
  padding: 0.85rem 0;
}

.marquee-track { animation: marquee 34s linear infinite; display: flex; gap: 0.75rem; width: max-content; }

.marquee span {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  white-space: nowrap;
  transition: color 200ms ease, border-color 200ms ease;
}
.marquee span:hover { border-color: var(--border-hover); color: var(--ink); }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ═══════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════ */

.section {
  border-top: 1px solid var(--border);
  padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 4vw, 4rem);
}

/* ─── ABOUT ─── */
.about-layout {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.about-copy .large-copy {
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 1rem;
}

.about-copy p:not(.large-copy) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 640px;
}

.quick-facts { display: grid; gap: 0.6rem; }

.fact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem;
  transition: border-color 300ms ease;
}
.fact-card:hover { border-color: var(--border-hover); }

.fact-card span {
  color: var(--accent);
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.fact-card strong { display: block; font-size: 0.92rem; font-weight: 600; line-height: 1.4; }

/* ─── PROJECTS ─── */
.section-top {
  align-items: end;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section-top .section-label { margin-bottom: 0.8rem; }

.filter-group { display: flex; gap: 0.35rem; }

.filter {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  min-height: 34px;
  padding: 0 0.9rem;
  transition: all 180ms ease;
}
.filter:hover { border-color: var(--border-hover); color: var(--ink); }
.filter.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.project-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(3, 1fr); }

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 1.5rem;
  transition: border-color 300ms ease, transform 300ms ease;
}
.project-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.project-card.is-hidden { display: none; }

.project-tag {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.project-card h3 { font-size: 1.3rem; }

.project-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.65; }

.project-card ul {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  list-style: none;
  margin: 0.5rem 0;
  padding: 0;
}

.project-card li::before { content: "→ "; color: var(--accent); opacity: 0.5; }

.project-card > a {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: auto;
  padding-top: 0.75rem;
  transition: color 200ms ease;
}
.project-card > a:hover { color: var(--accent); }

/* ─── EXPERIENCE ─── */
.timeline { display: grid; gap: 0.75rem; }

.timeline-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  transition: border-color 300ms ease;
}
.timeline-card:hover { border-color: var(--border-hover); }

.timeline-date {
  color: var(--accent);
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.timeline-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }

.timeline-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 760px;
}

/* ─── SKILLS ─── */
.skill-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.skill-cloud span {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  transition: border-color 200ms ease, color 200ms ease, transform 200ms ease;
}
.skill-cloud span:hover { border-color: var(--border-hover); color: var(--ink); transform: translateY(-2px); }

/* ─── CONTACT ─── */
.contact-layout {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.contact-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 500px;
}

.contact-panel { display: grid; gap: 0.5rem; }

.contact-panel a, .copy-email {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--ink);
  display: flex;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 50px;
  overflow-wrap: anywhere;
  padding: 0 1.2rem;
  transition: border-color 200ms ease, background 200ms ease;
}
.contact-panel a:hover, .copy-email:hover { background: rgba(255, 255, 255, 0.03); border-color: var(--border-hover); }

.copy-email { cursor: pointer; }
.copy-status { color: var(--accent); font-size: 0.82rem; min-height: 20px; margin: 0; }

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */

footer {
  align-items: center;
  border-top: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  font-size: 0.82rem;
  justify-content: space-between;
  padding: 1.5rem clamp(1.5rem, 4vw, 4rem);
}

footer p { margin: 0; }
footer a { color: var(--ink); font-weight: 600; transition: color 200ms ease; }
footer a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════
   DECORATIVE FLOW IMAGES
   ═══════════════════════════════════════════════ */

.flow-section {
  position: relative;
  overflow: hidden;
}

.flow-deco {
  pointer-events: none;
  position: absolute;
  opacity: 0.35;
  mix-blend-mode: screen;
  z-index: 0;
  user-select: none;
}

/* Hero — green flow bottom right */
.flow-hero {
  bottom: -15%;
  right: -10%;
  width: 60%;
  max-width: 680px;
  opacity: 0.22;
  transform: rotate(-5deg);
}

/* About — blue flow right side */
.flow-about {
  top: -20%;
  right: -12%;
  width: 55%;
  max-width: 600px;
  opacity: 0.2;
  transform: rotate(10deg);
}

/* Projects — green flow left side */
.flow-projects {
  top: -8%;
  left: -12%;
  width: 50%;
  max-width: 550px;
  opacity: 0.18;
  transform: scaleX(-1) rotate(8deg);
}

/* Experience — purple flow left side */
.flow-experience {
  bottom: -25%;
  left: -15%;
  width: 55%;
  max-width: 580px;
  opacity: 0.22;
  transform: rotate(-12deg);
}

/* Skills — green flow right side */
.flow-skills {
  top: -30%;
  right: -10%;
  width: 50%;
  max-width: 520px;
  opacity: 0.18;
  transform: scaleX(-1) rotate(5deg);
}

/* Contact divider — green flow centered */
.flow-divider {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.flow-contact {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
  max-width: 850px;
  opacity: 0.28;
}

/* ═══════════════════════════════════════════════
   REVEAL ANIMATION
   ═══════════════════════════════════════════════ */

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

/* ═══════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 1120px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { max-width: 600px; width: 100%; }
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav, .nav-contact-btn { display: none; }
  .site-nav.open {
    background: rgba(0, 0, 0, 0.98);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    left: 0;
    padding: 1.5rem;
    position: absolute;
    right: 0;
    top: 72px;
  }
  .about-layout { grid-template-columns: 1fr; }
  .section-top { align-items: flex-start; flex-direction: column; }
  .project-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-visual { min-height: 480px; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .signal-grid { grid-template-columns: 1fr; }
  .filter-group { flex-wrap: wrap; }
  .filter { flex: 1 1 40%; text-align: center; }
  .hero-visual { min-height: auto; }
  footer { align-items: flex-start; flex-direction: column; gap: 0.75rem; }
}
