/* ============================================================
   Portfolio CSS — Suraj Van Verma
   Modern dark theme, targeting YC founders & tech companies
   ============================================================ */

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

:root {
  --bg: #09090b;
  --bg-card: #111113;
  --bg-hover: #1c1c1f;
  --border: #27272a;
  --border-subtle: #1f1f22;
  --text: #fafafa;
  --text-muted: #71717a;
  --text-soft: #a1a1aa;
  --accent: #f97316;
  --accent-dim: rgba(249, 115, 22, 0.12);
  --accent-hover: #ea580c;
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ============================================================
   NAV
   ============================================================ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 60px;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-name a {
  color: inherit;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.nav-links .nav-cta {
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-weight: 500;
}

.nav-links .nav-cta:hover {
  border-color: var(--text-muted);
  background: var(--bg-hover);
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

section {
  padding: 96px 0;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.hero-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  filter: grayscale(20%);
  transition: filter 0.3s;
  flex-shrink: 0;
}

.hero-photo:hover {
  filter: grayscale(0%);
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    width: 120px;
    height: 120px;
    order: -1;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 40px;
  width: fit-content;
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero h1 {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 28px;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, transform 0.1s;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: color 0.15s, border-color 0.15s, transform 0.1s;
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   SECTION LABELS
   ============================================================ */

.section-header {
  margin-bottom: 48px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.15;
}

.section-desc {
  margin-top: 12px;
  font-size: 16px;
  color: var(--text-soft);
  max-width: 560px;
  line-height: 1.6;
}

/* ============================================================
   PROJECTS GRID
   ============================================================ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  padding: 28px;
  transition: background 0.15s;
  position: relative;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.project-card:hover {
  background: var(--bg-hover);
}

.project-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.project-icon {
  font-size: 22px;
  line-height: 1;
}

.project-arrow {
  color: var(--text-muted);
  font-size: 16px;
  transition: color 0.15s, transform 0.15s;
}

.project-card:hover .project-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.project-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 20px;
}

.project-highlight {
  font-size: 13px;
  color: var(--text-soft);
  background: var(--bg-subtle, #1c1c1f);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 18px;
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', monospace;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
  transition: color 0.15s, border-color 0.15s;
}

.project-card:hover .tag {
  color: var(--text-soft);
  border-color: var(--border);
}

.tag-accent {
  color: var(--accent);
  border-color: rgba(249, 115, 22, 0.3);
  background: var(--accent-dim);
}

/* ============================================================
   ABOUT
   ============================================================ */

.about-section {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-text p {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.7;
}

.about-text p strong {
  color: var(--text);
  font-weight: 600;
}

.about-text .about-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  margin-top: 8px;
  transition: gap 0.15s;
}

.about-text .about-cta:hover {
  gap: 12px;
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-block {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.info-block-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.info-block-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

.info-block-value a {
  color: var(--accent);
  transition: opacity 0.15s;
}

.info-block-value a:hover {
  opacity: 0.8;
}

/* ============================================================
   SKILLS
   ============================================================ */

.skills-section {
  background: linear-gradient(180deg, var(--bg) 0%, #0d0d10 100%);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.skill-category {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color 0.15s, background 0.15s;
}

.skill-category:hover {
  border-color: var(--border);
  background: var(--bg-hover);
}

.skill-category-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-item {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.4;
}

/* ============================================================
   EXPERIENCE TIMELINE
   ============================================================ */

.experience-section {
  background: var(--bg);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 28px;
  border-left: 1px solid var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
  padding-left: 28px;
}

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

.timeline-dot {
  position: absolute;
  left: -35px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  transition: border-color 0.15s;
}

.timeline-item:hover .timeline-dot {
  border-color: var(--accent);
}

.timeline-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.timeline-role {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.timeline-org {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 500;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 560px;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-section {
  background: var(--bg);
  border-top: 1px solid var(--border-subtle);
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-inner .section-label {
  margin-bottom: 16px;
}

.contact-heading {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 20px;
}

.contact-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 40px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.contact-link:hover {
  color: var(--text);
  border-color: var(--text-muted);
  background: var(--bg-hover);
}

.contact-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  padding: 32px 40px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--text);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

/* Hero entrance — staggered fade up on load */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-badge {
  animation: fadeUp 0.5s ease both;
  animation-delay: 0.1s;
}

.hero h1 {
  animation: fadeUp 0.6s ease both;
  animation-delay: 0.2s;
}

.hero-sub {
  animation: fadeUp 0.6s ease both;
  animation-delay: 0.35s;
}

.hero-actions {
  animation: fadeUp 0.6s ease both;
  animation-delay: 0.45s;
}

.hero-stats {
  animation: fadeUp 0.6s ease both;
  animation-delay: 0.55s;
}

.hero-photo {
  animation: fadeIn 0.8s ease both;
  animation-delay: 0.3s;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Project cards stagger */
.projects-grid .project-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.15s;
}

.projects-grid.revealed .project-card:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.05s; }
.projects-grid.revealed .project-card:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.1s;  }
.projects-grid.revealed .project-card:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.15s; }
.projects-grid.revealed .project-card:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.2s;  }
.projects-grid.revealed .project-card:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.25s; }
.projects-grid.revealed .project-card:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.3s;  }

/* Timeline items stagger */
.timeline-item {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline.revealed .timeline-item:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.05s; }
.timeline.revealed .timeline-item:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.15s; }
.timeline.revealed .timeline-item:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.25s; }

/* Skill cards stagger */
.skills-grid .skill-category {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.15s, background 0.15s;
}

.skills-grid.revealed .skill-category:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.05s; }
.skills-grid.revealed .skill-category:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.1s;  }
.skills-grid.revealed .skill-category:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.15s; }
.skills-grid.revealed .skill-category:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.2s;  }
.skills-grid.revealed .skill-category:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.25s; }
.skills-grid.revealed .skill-category:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.3s;  }

/* ============================================================
   DIVIDER
   ============================================================ */

.section-divider {
  height: 1px;
  background: var(--border-subtle);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ============================================================
   BLOG SECTION
   ============================================================ */

.blog-section {
  background: var(--bg);
}

.blog-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
  color: inherit;
}

.blog-cta-card:hover {
  background: var(--bg-hover);
  border-color: var(--text-muted);
}

.blog-cta-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.blog-cta-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.blog-cta-sub {
  font-size: 14px;
  color: var(--text-muted);
}

.blog-cta-arrow {
  font-size: 20px;
  color: var(--text-muted);
  transition: color 0.15s, transform 0.15s;
}

.blog-cta-card:hover .blog-cta-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  nav {
    padding: 0 20px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }


  .container {
    padding: 0 20px;
  }

  section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 100px;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 24px 20px;
  }

  .blog-cta-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 38px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    justify-content: center;
    width: 100%;
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
}
