@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');

:root {
  --bg: #f6f6f6;
  --text: #333333;
  --link: #ff3300;
  --muted: #666666;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: "EB Garamond", serif;
  font-size: 23px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 40px;
  /* Reduced side padding for smaller screens, max-width handles large screens */
}

/* Specific overrides for reduced spacing */
.header-content.container {
  padding-top: 50px;
  padding-bottom: 40px;
}

.hero-inner.container {
  padding-top: 20px;
  padding-bottom: 0px;
}

/* Header */
.site-header {
  margin-bottom: 0px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0px;
}

.brand {
  font-weight: 700;
  font-size: 23px;
  color: var(--text);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  color: var(--link);
  text-decoration: none;
  font-size: 23px;
}

.nav a:hover {
  text-decoration: underline;
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 0.5em;
  line-height: 1.2;
}

h1 {
  font-size: 23px;
  /* nadh.in keeps headings relatively same size or just bold */
  margin: 0 0 1em;
}

h2 {
  font-size: 23px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 1.5em;
}



p,
ul,
li {
  margin-bottom: 1.5em;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  margin-bottom: 0px;
  margin-top: 0;
}

.hero-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
}

.hero-text {
  flex: initial;
}

.hero-title {
  font-size: 23px;
  font-weight: 400;
}

.hero-subtitle {
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.5em;
  /* Add space between subtitle and links */
  margin-top: 0;
}

.profile-photo-container {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 2px solid #eaeaea;
  /* Thinner, softer border */
  overflow: hidden;
  flex-shrink: 0;
  /* Ensures circle shape holds */
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 100%;
  transform: scale(1.35) translateY(-25px);
  display: block;
}



/* Layout Elements */
main {
  display: block;
}

section {
  margin-bottom: 60px;
}

/* Ventures */
.ventures-section {
  margin-bottom: 40px;
}

.venture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.venture-card {
  padding: 20px;
  background: #f9f9f9;
  border-left: 3px solid var(--text);
  border-radius: 4px;
}

.venture-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
}

.venture-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.venture-role {
  font-size: 14px;
  font-style: italic;
  color: #666;
}

.venture-status {
  font-size: 13px;
  color: #888;
  margin: 0;
  font-family: monospace;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#summary h2 {
  margin-top: 0;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.skills-group {
  margin-bottom: 0;
}

.skills-group h3 {
  font-style: italic;
  font-weight: 400;
  margin-bottom: 1em;
  margin-top: 0;
  color: var(--text);
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
}

.chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
}

.chips li {
  display: block;
  padding: 4px 0;
  margin: 0;
  color: var(--text);
  background: none;
  border: none;
  font-size: 23px;
}

.chips li:after {
  content: none;
}

/* Experience */
.role {
  margin-bottom: 40px;
}

.role-header {
  margin-bottom: 0.5em;
}

.role-header h3 {
  display: inline;
  margin: 0;
  font-size: 23px;
  font-weight: 700;
}

.meta {
  display: block;
  font-size: 18px;
  /* Slightly smaller for meta */
  color: var(--text);
  /* Keep contrast high */
  font-style: italic;
  margin-bottom: 1em;
}

.role-category {
  display: block;
  font-weight: 700;
  font-style: italic;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-size: 23px;
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
}

.bullets {
  list-style: disc;
  padding-left: 1.5em;
  margin-top: 0;
}

.bullets li {
  margin-bottom: 0.5em;
}

/* Education & Research */
.edu-item {
  margin-bottom: 1.5em;
}

.edu-title {
  font-weight: 700;
}

.edu-meta {
  font-style: italic;
}

.list li {
  margin-bottom: 0.5em;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
  text-align: center;
}

.site-footer .container {
  padding: 0;
  text-align: center;
}

/* Media Queries */
@media (max-width: 640px) {
  .container {
    padding: 40px 20px;
  }

  .header-content {
    flex-direction: column;
    align-items: center;
    /* Center header content */
    text-align: center;
    gap: 20px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    /* Center nav links */
    gap: 15px;
  }

  /* Center hero content on mobile */
  .hero-inner {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .hero-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-links {
    justify-content: center;
  }
}

/* Contact Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.modal-overlay.visible {
  opacity: 1;
}

.modal-card {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  max-width: 90%;
  width: 400px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.visible .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 5px;
}

.modal-close:hover {
  color: #000;
}

.email-link {
  font-size: 1.2em;
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
  margin-top: 10px;
  display: inline-block;
  border-bottom: 1px solid transparent;
}

.email-link:hover {
  border-bottom-color: var(--link-color);
}

/* Contact Button style to look like a link */
#contact-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: var(--link-color);
  text-decoration: none;
}

#contact-btn:hover {
  text-decoration: underline;
}