/* ================================
   Saransh Amoli — Portfolio
   ================================ */

:root {
  --bg: #08090d;
  --surface: #101219;
  --surface-2: #151821;
  --text: #f3f5f7;
  --muted: #9ba1ae;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(circle at 80% 5%, rgba(139, 92, 246, .14), transparent 30%),
    radial-gradient(circle at 10% 35%, rgba(34, 211, 238, .06), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::selection { background: var(--accent); color: white; }

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

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .025;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.site-header {
  width: min(var(--max), calc(100% - 40px));
  height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 30;
}

.logo {
  font: 700 1.45rem "Space Grotesk", sans-serif;
  letter-spacing: -.08em;
}

.logo span { color: var(--accent-2); }

nav { display: flex; gap: 30px; }

nav a {
  color: var(--muted);
  font-size: .9rem;
  transition: color .2s ease;
}

nav a:hover { color: var(--text); }

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.5rem;
}

.hero {
  min-height: calc(100vh - 76px);
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 70px;
  padding: 80px 0 120px;
}

.eyebrow {
  color: var(--accent-2);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1, h2 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -.055em;
  line-height: 1.02;
}

.hero h1 { font-size: clamp(3.2rem, 7vw, 6.4rem); max-width: 850px; }
.hero h1 span, h2 span { color: var(--accent); }

.hero-text {
  max-width: 650px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions, .contact-actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.25); }
.btn.primary { background: var(--text); color: var(--bg); }
.btn.ghost { background: rgba(255,255,255,.025); }

.status {
  margin-top: 25px;
  color: var(--muted);
  font-size: .78rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 14px #34d399;
}

.hero-card {
  min-height: 430px;
  position: relative;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: .8;
}

.orb-one {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(139,92,246,.38), transparent 68%);
  top: 15px;
  right: 0;
}

.orb-two {
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(34,211,238,.24), transparent 68%);
  bottom: 15px;
  left: 0;
}

.terminal {
  width: min(100%, 510px);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(12,14,20,.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 100px rgba(0,0,0,.45);
  transform: rotate(2deg);
}

.terminal-top {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
  color: #727989;
  font-size: .7rem;
}

.terminal-top i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #424650;
}

.terminal-top span { margin-left: 8px; }

pre {
  padding: 28px;
  overflow-x: auto;
  font: 500 .85rem/1.9 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.pink { color: #f472b6; }
.blue { color: #60a5fa; }
.green { color: #34d399; }
.yellow { color: #fbbf24; }

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.section-heading h2, .contact h2 { font-size: clamp(2.6rem, 5vw, 5rem); }

.about {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 90px;
}

.about-content { max-width: 720px; color: var(--muted); font-size: 1.05rem; }
.about-content p + p { margin-top: 18px; }

.stats {
  margin-top: 42px;
  display: flex;
  gap: 45px;
  flex-wrap: wrap;
}

.stats div { display: grid; }
.stats strong { color: var(--text); font: 700 1.3rem "Space Grotesk", sans-serif; }
.stats span { font-size: .72rem; margin-top: 3px; }

.skill-grid, .project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 55px;
}

.skill-card, .project-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  border-radius: 18px;
  padding: 28px;
  min-height: 210px;
  transition: transform .25s ease, border-color .25s ease;
}

.skill-card:hover, .project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139,92,246,.45);
}

.skill-number, .project-meta {
  color: #696f7d;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.skill-card h3, .project-card h3 { margin: 45px 0 9px; font: 600 1.2rem "Space Grotesk", sans-serif; }
.skill-card p, .project-card p { color: var(--muted); font-size: .86rem; }

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.muted { color: var(--muted); max-width: 340px; font-size: .85rem; }

.project-grid { grid-template-columns: 1.35fr 1fr 1fr; }

.project-card { min-height: 330px; display: flex; flex-direction: column; }
.project-meta { display: flex; justify-content: space-between; }
.project-card h3 { margin-top: auto; }
.project-link {
  color: var(--text);
  margin-top: 24px;
  font-size: .82rem;
  font-weight: 700;
}

.featured {
  background:
    radial-gradient(circle at 90% 10%, rgba(139,92,246,.23), transparent 40%),
    linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
}

.cert-list { margin-top: 50px; }
.cert-list article {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 30px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.cert-list article > span { color: var(--accent-2); font-size: .78rem; font-weight: 700; }
.cert-list h3 { font: 600 1.15rem "Space Grotesk", sans-serif; }
.cert-list p { color: var(--muted); font-size: .8rem; margin-top: 5px; }

.contact { padding-bottom: 80px; }
.contact > p:not(.eyebrow) { max-width: 500px; color: var(--muted); margin-top: 22px; }

footer {
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
  padding: 25px 0 35px;
  display: flex;
  justify-content: space-between;
  color: #666b77;
  font-size: .72rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  nav { display: none; }
  nav.open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #0d0f15;
    flex-direction: column;
    gap: 18px;
  }
  .menu-toggle { display: block; }
  .hero, .about { grid-template-columns: 1fr; }
  .hero { padding-top: 60px; }
  .hero-card { min-height: 350px; }
  .skill-grid { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-header, .hero, .section, footer { width: min(100% - 28px, var(--max)); }
  .hero h1 { font-size: clamp(2.8rem, 15vw, 4.3rem); }
  .section { padding: 85px 0; }
  .skill-grid { grid-template-columns: 1fr; }
  .row-heading { display: block; }
  .muted { margin-top: 20px; }
  .cert-list article { grid-template-columns: 1fr; gap: 8px; }
  footer { flex-direction: column; gap: 8px; }
}
