:root {
  --bg: #050308;
  --bg-card: #14121b;
  --text: #f9f6ff;
  --text-muted: #a6a0c0;
  --accent: #e8b4bc;
  --accent-strong: #d4929e;
  --border: #282438;
  --font-sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Playfair Display", "DM Sans", system-ui, serif;
  --radius: 14px;
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background: radial-gradient(circle at top, #211631 0%, #050308 55%, #020107 100%);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(5, 3, 8, 0.9), rgba(5, 3, 8, 0.7));
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--text-muted);
}

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

.hero {
  max-width: 960px;
  margin: 2.5rem auto 0;
  padding: 2.5rem 1.5rem 2rem;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  margin: 0.2rem 0 0.4rem;
}

.hero-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--accent);
  font-size: 0.75rem;
}

.hero-tagline {
  margin: 0 0 1.3rem;
  color: var(--text-muted);
  max-width: 34rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--accent);
  color: #1a121f;
  border-color: var(--accent);
}

.btn.primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-photo {
  display: flex;
  justify-content: flex-end;
}

.hero-photo-frame {
  width: 260px;
  max-width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: radial-gradient(circle at top, #3c244a 0%, #110b1c 45%, #07040c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.hero-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

  .hero-photo {
    justify-content: flex-start;
  }

  .nav-inner {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 0.75rem;
}

.section p {
  margin: 0 0 0.8rem;
  color: var(--text-muted);
}

.grid.two {
  display: grid;
  gap: 1.8rem;
}

@media (min-width: 740px) {
  .grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-list li {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(20, 18, 27, 0.9);
  font-size: 0.85rem;
}

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

.timeline-item {
  display: grid;
  gap: 0.75rem 1.5rem;
  padding: 1.3rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(13, 10, 21, 0.96);
}

@media (min-width: 720px) {
  .timeline-item {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

.timeline-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.timeline-body h3 {
  margin: 0 0 0.2rem;
  font-size: 1.1rem;
}

.timeline-org {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: var(--accent);
}

.timeline-body ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.edu-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edu-item {
  padding: 1.1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(13, 10, 21, 0.96);
}

.edu-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.muted {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.contact-list li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  margin-top: 1rem;
}

.secret-link {
  margin-top: 1rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
}

.secret-arrow {
  font-size: 1.4rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  width: 100%;
  max-width: 360px;
  padding: 1.8rem 1.5rem 1.5rem;
  border-radius: var(--radius);
  background: rgba(13, 10, 21, 0.98);
  border: 1px solid var(--border);
}

.modal h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.modal-question {
  margin: 0 0 0.9rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-form input {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.6rem 0.9rem;
  background: #050308;
  color: var(--text);
  font-family: var(--font-sans);
}

.modal-error {
  min-height: 1.2rem;
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: #ff8a8a;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.7rem;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
}

/* Portfolio - Jahanvi - Inspired by ashishdikonda.com */
:root {
  --bg: #0f0f0f;
  --bg-card: #1a1a1a;
  --text: #f5f5f5;
  --text-muted: #a0a0a0;
  --accent: #e8b4bc;
  --accent-strong: #d4929e;
  --border: #2a2a2a;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Playfair Display', serif;
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 0 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #1a1a1a;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  text-decoration: none;
  color: #1a1a1a;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-pills span {
  padding: 0.4rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  margin: 0 0 2rem;
}

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

@media (min-width: 700px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-content h3,
.about-facts h3 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.about-content p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.fact-card {
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  text-align: center;
}

.fact-icon {
  font-size: 1.5rem;
}

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

.skill-category h3 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.skill-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tags li {
  padding: 0.4rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
}

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

.timeline-item {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

@media (min-width: 600px) {
  .timeline-item {
    grid-template-columns: 180px 1fr;
  }
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.timeline-content h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.timeline-content h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
}

.timeline-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.timeline-bullets {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.timeline-bullets li {
  margin-bottom: 0.5rem;
}

.timeline-bullets li:last-child {
  margin-bottom: 0;
}

.edu-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edu-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.edu-card h3 {
  margin: 0 0 0.5rem;
}

.edu-school,
.edu-year,
.edu-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.edu-meta {
  margin-top: 0.25rem;
}

.subsection-title {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
  color: var(--text-muted);
}

.cert-grid {
  display: grid;
  gap: 0.75rem;
}

.cert-item {
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.cert-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.cert-list li {
  margin-bottom: 0.4rem;
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.contact-info p {
  margin: 0 0 1rem;
}

.contact-info a {
  color: var(--accent);
}

.footer {
  text-align: center;
  padding: 3rem 2rem 4rem;
  border-top: 1px solid var(--border);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.secret-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: color 0.2s;
}

.secret-link:hover {
  color: var(--accent);
}

.secret-arrow {
  font-size: 1.2rem;
  opacity: 0.8;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  position: relative;
}

.modal h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

.modal-question {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-form input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-sans);
}

.modal-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.modal-error {
  margin: 0.75rem 0 0;
  color: #e07a7a;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.modal-close:hover {
  color: var(--text);
}
