/*
 * Stylesheet for Soham Shirolkar's personal site.
 *
 * This design draws inspiration from glassmorphism: cards use
 * semi‑transparent backgrounds and a subtle blur filter to create a
 * frosted glass effect. Typography uses Montserrat throughout for a
 * clean, modern feel. Colors are soft and neutral, allowing content to
 * take centre stage.
 */

/* CSS custom properties centralize the color palette and fonts. */
:root {
  --bg-0: #f3f4f6;
  --bg-1: #e5e7eb;
  --surface: rgba(255, 255, 255, 0.60);
  --surface-strong: rgba(255, 255, 255, 0.72);
  --border: rgba(17, 24, 39, 0.10);
  --text: rgba(17, 24, 39, 0.92);
  --muted: rgba(17, 24, 39, 0.68);
  --muted-2: rgba(17, 24, 39, 0.55);
  --accent: #2563eb;
  --accent-2: #60a5fa;
  --shadow: 0 18px 55px rgba(17, 24, 39, 0.12);
  --glass-blur: blur(18px);
  --radius: 22px;

  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Montserrat', sans-serif;

  --container: 1120px;
}

/* Reset margin and padding on all elements for consistency. */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--body-font);
  color: var(--text);
  background: radial-gradient(1200px 900px at 12% 8%, rgba(96, 165, 250, 0.30), transparent 62%),
    radial-gradient(1100px 800px at 88% 10%, rgba(37, 99, 235, 0.16), transparent 62%),
    radial-gradient(900px 700px at 55% 92%, rgba(147, 197, 253, 0.22), transparent 62%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  backdrop-filter: var(--glass-blur);
  color: var(--text);
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
}

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.orb {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 9999px;
  filter: blur(35px);
  opacity: 0.9;
  transform: translate3d(0, 0, 0);
}

.orb-1 {
  left: -160px;
  top: -180px;
  background: radial-gradient(circle at 30% 30%, rgba(147, 197, 253, 0.85), rgba(147, 197, 253, 0.0) 60%);
}

.orb-2 {
  right: -180px;
  top: -140px;
  background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.28), rgba(37, 99, 235, 0.0) 62%);
}

.orb-3 {
  left: 22%;
  bottom: -220px;
  background: radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.35), rgba(96, 165, 250, 0.0) 62%);
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(17, 24, 39, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 10%, rgba(0, 0, 0, 0.35), transparent 70%);
  opacity: 0.55;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.85rem 0;
  background: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  backdrop-filter: var(--glass-blur);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: lowercase;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem;
  border-radius: 9999px;
  border: 1px solid rgba(17, 24, 39, 0.10);
  background: rgba(255, 255, 255, 0.50);
  backdrop-filter: var(--glass-blur);
}

.nav a {
  padding: 0.55rem 0.85rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
}

.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
}

.hero {
  padding: 4.25rem 0 2.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 2.25rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.6rem, 4.5vw, 3.6rem);
  font-family: var(--heading-font);
  font-weight: 600;
  margin: 0.25rem 0 0.8rem;
  line-height: 1.08;
}

.hero-content h1 span {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: rgba(17, 24, 39, 1);
}

.hero-content {
  padding-top: 1.1rem;
}

.about-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.56));
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
  border: 1px solid rgba(17, 24, 39, 0.10);
  box-shadow: 0 18px 52px rgba(17, 24, 39, 0.12);
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  color: rgba(17, 24, 39, 0.92);
  font-size: 1.06rem;
  line-height: 1.75;
  transform: none;
}

.about-card p + p {
  margin-top: 1rem;
}

.about-card:hover {
  transform: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.15rem;
  border-radius: 9999px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: var(--glass-blur);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(17, 24, 39, 0.16);
}

.button:active {
  transform: translateY(0);
}

.button.primary {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.92), rgba(96, 165, 250, 0.92));
  border-color: rgba(17, 24, 39, 0.12);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.18);
}

.button.primary:hover {
  background: linear-gradient(90deg, rgba(37, 99, 235, 1), rgba(96, 165, 250, 1));
}

.button.ghost {
  background: rgba(255, 255, 255, 0.40);
}

.button.small {
  padding: 0.6rem 0.95rem;
  font-size: 0.92rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: var(--glass-blur);
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(17, 24, 39, 0.16);
  color: var(--text);
}

.headshot {
  position: relative;
  display: grid;
  place-items: center;
}

.headshot::before {
  content: '';
  position: absolute;
  width: min(420px, 80%);
  height: min(420px, 80%);
  border-radius: 9999px;
  background: radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.55), rgba(96, 165, 250, 0.0) 62%);
  filter: blur(18px);
  transform: translateY(18px);
  z-index: 0;
}

.headshot img {
  width: min(360px, 78%);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 9999px;
  border: 10px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.18);
  background: rgba(255, 255, 255, 0.55);
  transform: translateY(6px);
  z-index: 1;
}

.hero-card {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.06));
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 1.2rem 1.2rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 30%, rgba(34, 211, 238, 0.75), rgba(139, 92, 246, 0.35) 60%, rgba(255, 255, 255, 0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-card-name {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.hero-card-sub {
  color: var(--muted-2);
  font-size: 0.95rem;
}

.hero-card-body {
  padding: 1rem 1.2rem 1.15rem;
  display: grid;
  gap: 0.85rem;
}

.stat {
  display: grid;
  gap: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted-2);
  letter-spacing: 0.2px;
}

.stat-value {
  color: var(--text);
  font-weight: 500;
  font-size: 0.97rem;
}

.hero-card-actions {
  padding: 0 1.2rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.70), rgba(255, 255, 255, 0.52));
  backdrop-filter: var(--glass-blur);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(17, 24, 39, 0.10);
  box-shadow: 0 16px 44px rgba(17, 24, 39, 0.10);
}

.card h3 {
  font-family: var(--heading-font);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.card p,
.card li {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.card ul {
  list-style: none;
}

.checklist {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  padding-left: 0;
}

.checklist li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}

.checklist li::before {
  content: '✓';
  color: rgba(34, 211, 238, 0.95);
  font-weight: 700;
  margin-top: 0.05rem;
}

.section {
  padding: 3.2rem 0;
}

.section-header {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-family: var(--heading-font);
  font-size: 2.2rem;
  line-height: 1.12;
  font-weight: 600;
}

.section-header p {
  color: var(--muted);
  max-width: 72ch;
}

.project-grid,
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.work-item {
  position: relative;
  padding-top: 2.15rem;
}

.work-item h3 {
  margin-bottom: 0.25rem;
}

.work-sub {
  color: rgba(17, 24, 39, 0.64);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.corner-link {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: var(--glass-blur);
  color: rgba(17, 24, 39, 0.72);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.78rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.corner-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.78);
  color: rgba(17, 24, 39, 0.88);
}

.corner-text {
  font-weight: 500;
  letter-spacing: 0.1px;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.pub-item {
  position: relative;
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
}

.pub-corner-link {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: var(--glass-blur);
  color: rgba(17, 24, 39, 0.72);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.pub-corner-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.78);
  color: rgba(17, 24, 39, 0.88);
}

.pub-title {
  margin-bottom: 0.5rem;
  font-family: var(--heading-font);
  font-size: 1.55rem;
  line-height: 1.15;
  font-weight: 600;
}

.pub-title a {
  color: rgba(17, 24, 39, 0.92);
  text-decoration: none;
}

.pub-title a:hover {
  color: rgba(17, 24, 39, 1);
}

.pub-item p {
  color: rgba(17, 24, 39, 0.70);
  margin-bottom: 0.6rem;
}

.pub-item p:last-child {
  margin-bottom: 0;
}

.pub-tech {
  color: rgba(17, 24, 39, 0.62);
  font-weight: 500;
}

.resume-row {
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.10);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 14px 38px rgba(17, 24, 39, 0.08);
}

.resume-text {
  color: rgba(17, 24, 39, 0.72);
  font-weight: 500;
}

.mini-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.contact {
  padding: 3.2rem 0 3.8rem;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-inner h2 {
  font-family: var(--heading-font);
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.contact-inner p {
  color: var(--muted);
  margin-bottom: 1.2rem;
  max-width: 70ch;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-card h3 {
  margin-bottom: 0.6rem;
}

.contact-card p {
  margin-bottom: 1rem;
}

footer {
  padding: 1.25rem 0 1.75rem;
  color: var(--muted);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.55);
  outline-offset: 3px;
}

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

  .contact-inner {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 0.1rem;
  }

  .nav a {
    padding: 0.5rem 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .about-card {
    transform: none;
  }
}
