/* ═══════════════════════════════════════════════════
   RISHABH BAIRAGI — SENIOR FLUTTER DEVELOPER
   Design system: Midnight obsidian + electric cyan
   ═══════════════════════════════════════════════════ */

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

:root {
  --obsidian: #080c14;
  --deep: #0d1321;
  --slate: #1a2235;
  --slate-mid: #1f2b42;
  --border: rgba(0, 212, 255, 0.12);
  --border-dim: rgba(255, 255, 255, 0.06);
  --cyan: #00d4ff;
  --cyan-dim: rgba(0, 212, 255, 0.08);
  --cyan-glow: rgba(0, 212, 255, 0.18);
  --white: #e8eef8;
  --muted: #5b6a85;
  --muted-hi: #8a9bb8;
  --danger: #ff6b6b;
}

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

body {
  background: var(--obsidian);
  color: var(--white);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════
   NAV
══════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  height: 64px;
  background: rgba(8, 12, 20, 0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border-dim);
}

.nav-logo {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-bracket {
  color: var(--muted);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--muted-hi);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  transition:
    color 0.2s,
    background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
  background: var(--cyan-dim);
}

.nav-cta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem !important;
  color: var(--cyan) !important;
  border: 1px solid var(--border) !important;
  background: transparent !important;
  padding: 0.45rem 1rem !important;
  letter-spacing: 0.08em !important;
  transition:
    background 0.2s,
    border-color 0.2s !important;
}

.nav-cta:hover {
  background: var(--cyan-dim) !important;
  border-color: var(--cyan) !important;
}

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 5rem;
  padding: 9rem 4rem 5rem;
  position: relative;
  overflow: hidden;
}

/* Geometric grid texture */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 212, 255, 0.07) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.hero-left {
  position: relative;
  z-index: 2;
}

/* Status badge */
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 100px;
  padding: 0.35rem 0.9rem 0.35rem 0.6rem;
  margin-bottom: 2.4rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.hero-status-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted-hi);
  letter-spacing: 0.08em;
}

/* Profile row */
.hero-profile-row {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  margin-bottom: 2rem;
}

.profile-photo-wrap {
  flex-shrink: 0;
  position: relative;
}

.profile-photo-wrap::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--cyan),
    transparent 40%,
    var(--cyan) 80%,
    transparent
  );
  animation: spin 8s linear infinite;
  opacity: 0.5;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.profile-photo-wrap::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: var(--obsidian);
  z-index: 0;
}

.profile-photo-wrap img {
  position: relative;
  z-index: 1;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border: 2.5px solid rgba(0, 212, 255, 0.4);
}

.hero-name {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.hero-role {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--cyan);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-role::before {
  content: "// ";
  color: var(--muted);
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--muted-hi);
  line-height: 1.85;
  margin-bottom: 2.5rem;
  max-width: 520px;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--cyan);
  color: var(--obsidian);
  padding: 0.8rem 2rem;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
  opacity: 0.92;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 0.8rem 2rem;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  transition:
    transform 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.btn-outline:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* HERO RIGHT — Stats panel */
.hero-right {
  position: relative;
  z-index: 2;
}

.hero-stats-card {
  background: var(--slate);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 212, 255, 0.04);
}

.stats-card-header {
  background: var(--slate-mid);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mac-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mac-dot.red {
  background: #ff5f57;
}
.mac-dot.yellow {
  background: #febc2e;
}
.mac-dot.green {
  background: #28c840;
}

.stats-card-title {
  margin-left: 0.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.stats-body {
  padding: 1.8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-dim);
}

.stat-item {
  background: var(--slate);
  padding: 1.6rem 1.2rem;
  transition: background 0.2s;
}

.stat-item:hover {
  background: rgba(0, 212, 255, 0.04);
}

.stat-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ══════════════════════════════════
   SECTION BASE
══════════════════════════════════ */
section {
  padding: 6rem 4rem;
}

.section-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.6;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 3rem;
  color: var(--white);
}

/* ══════════════════════════════════
   ABOUT
══════════════════════════════════ */
#about {
  background: var(--deep);
}

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

.about-text p {
  color: var(--muted-hi);
  line-height: 1.85;
  margin-bottom: 1.3rem;
  font-size: 1rem;
}

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

.contact-list {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--muted-hi);
  font-family: "JetBrains Mono", monospace;
}

.contact-list a {
  color: var(--cyan);
  text-decoration: none;
  transition: opacity 0.2s;
}
.contact-list a:hover {
  opacity: 0.75;
  text-decoration: underline;
}

.contact-icon {
  width: 28px;
  height: 28px;
  background: var(--cyan-dim);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  color: var(--cyan);
}

/* Skills chips */
.about-skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-chip {
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-family: "JetBrains Mono", monospace;
  color: var(--muted-hi);
  border-radius: 4px;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
  cursor: default;
}

.skill-chip:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
}

/* ══════════════════════════════════
   EXPERIENCE
══════════════════════════════════ */
#experience {
  background: var(--obsidian);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-item {
  background: var(--slate);
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  padding: 2rem 2.2rem;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.25s,
    transform 0.25s;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.timeline-item:hover {
  border-color: var(--border);
  transform: translateX(4px);
}

.timeline-item:hover::before {
  opacity: 1;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.exp-role {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.exp-company {
  color: var(--cyan);
  font-weight: 600;
}

.exp-period {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  background: var(--cyan-dim);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.25rem 0.65rem;
  white-space: nowrap;
}

.exp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-family: "JetBrains Mono", monospace;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: color 0.2s;
  letter-spacing: 0.04em;
}

.exp-link:hover {
  color: var(--cyan);
}

.exp-link svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.exp-bullets {
  list-style: none;
  margin-bottom: 1.2rem;
}

.exp-bullets li {
  color: var(--muted-hi);
  font-size: 0.9rem;
  line-height: 1.65;
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.4rem;
}

.exp-bullets li::before {
  content: "→";
  color: var(--cyan);
  position: absolute;
  left: 0;
  font-size: 0.75rem;
  top: 0.15rem;
}

.exp-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.tech-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.67rem;
  color: var(--muted-hi);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dim);
  border-radius: 3px;
  padding: 0.2rem 0.55rem;
  letter-spacing: 0.04em;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.tech-tag:hover {
  border-color: var(--border);
  color: var(--cyan);
}

/* ══════════════════════════════════
   SKILLS
══════════════════════════════════ */
#skills {
  background: var(--deep);
}

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

.skill-card {
  background: var(--slate);
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  padding: 2rem;
  transition:
    border-color 0.25s,
    transform 0.2s,
    box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.skill-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.skill-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.skill-card:hover::after {
  opacity: 1;
}

.skill-card-icon {
  width: 44px;
  height: 44px;
  background: var(--cyan-dim);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}

.skill-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
  color: var(--white);
}

.skill-card-items {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════
   EDUCATION
══════════════════════════════════ */
#education {
  background: var(--obsidian);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.edu-card {
  background: var(--slate);
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  padding: 2rem 2.2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  transition:
    border-color 0.25s,
    transform 0.25s;
}

.edu-card:hover {
  border-color: rgba(0, 212, 255, 0.25);
  transform: translateY(-3px);
}

.edu-badge {
  background: linear-gradient(135deg, var(--cyan), rgba(0, 180, 220, 0.8));
  color: var(--obsidian);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 0.85rem;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  letter-spacing: 0.03em;
}

.edu-degree {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: var(--white);
}

.edu-school {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.edu-meta {
  display: flex;
  gap: 1rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════
   CONTACT
══════════════════════════════════ */
#contact {
  background: var(--deep);
  text-align: center;
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact-inner p {
  color: var(--muted-hi);
  margin-bottom: 2.5rem;
  font-size: 1rem;
  line-height: 1.8;
}

.contact-email {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  color: var(--cyan);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 2rem;
  display: inline-block;
  margin-bottom: 2.5rem;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}

.contact-email:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted-hi);
  text-decoration: none;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}

.social-link:hover {
  color: var(--cyan);
  border-color: var(--border);
  background: var(--cyan-dim);
  transform: translateY(-2px);
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
footer {
  background: var(--obsidian);
  padding: 1.8rem 4rem;
  border-top: 1px solid var(--border-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.footer-name {
  color: var(--cyan);
}

/* ══════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 1024px) {
  #hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 8rem 2.5rem 4rem;
  }
  .hero-right {
    max-width: 480px;
  }
  .stats-body {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  nav {
    padding: 0 1.5rem;
  }
  section {
    padding: 4.5rem 2rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
  .education-grid {
    grid-template-columns: 1fr;
  }
  footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 1.5rem 2rem;
  }
}

@media (max-width: 640px) {
  .hero-profile-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-name {
    font-size: 2.8rem;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-tagline {
    text-align: center;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .nav-links li:not(.nav-cta-li) {
    display: none;
  }
  section {
    padding: 3.5rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  .profile-photo-wrap::before {
    transition: none !important;
    animation: none !important;
  }
}

/* RSB */

.hero-highlight {
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.6;
}

#projects {
  background: var(--deep);
}

.projects-grid {
  display: grid;
  gap: 2rem;
}

.project-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  background: var(--slate);
  border: 1px solid var(--border-dim);
  border-radius: 14px;
  overflow: hidden;
  transition: 0.25s;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
}

.project-image {
  background: #111827;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-content {
  padding: 2rem;
}

.project-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.project-content p {
  color: var(--muted-hi);
  margin-bottom: 1rem;
}

.project-points {
  list-style: none;
  margin-bottom: 1.5rem;
}

.project-points li {
  color: var(--muted-hi);
  margin-bottom: 0.4rem;
}

.project-points li::before {
  content: "✓ ";
  color: var(--cyan);
}

@media (max-width: 900px) {
  .project-card {
    grid-template-columns: 1fr;
  }
}
