:root {
  --sage: #8A9A86;
  --dark-sage: #3A4D39;
  --light-sage: #ECEFE6;
  --cream: #F9F8F3;
  --dark-text: #2C3E2E;
  --light-text: #5A6B5C;
  --white: #FFFFFF;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: var(--cream);
  color: var(--dark-text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  color: var(--dark-sage);
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--sage);
  text-transform: uppercase;
  margin-bottom: 8px;
}

header, .navbar, .bio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 40px;
  background-color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo, .bio-logo {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--dark-sage);
}

.logo span, .bio-logo span {
  color: var(--sage);
}

.nav-links, .bio-nav {
  display: flex;
  gap: 30px;
}

.nav-links a, .bio-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--light-text);
}

.nav-links a:hover, .bio-nav a:hover,
.nav-links a.active, .bio-nav a.active {
  color: var(--dark-sage);
  font-weight: 600;
}

.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80vh;
  padding: 40px 0;
  gap: 40px;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  color: var(--dark-sage);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 320px;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.profile-card {
  display: flex;
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  gap: 30px;
  align-items: center;
}

.profile-photo {
  width: 220px;
  height: 280px;
  object-fit: cover;
  border-radius: 16px;
  flex-shrink: 0;
}

.profile-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--dark-sage);
  margin-bottom: 10px;
}

.details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.hobby-card {
  background: var(--white);
  padding: 20px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.hobby-card:hover {
  transform: translateY(-5px);
}

.academic-card {
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

th, td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #EEE;
}

th {
  background-color: var(--dark-sage);
  color: var(--white);
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: var(--light-sage);
}
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.photo-card {
  flex: 1 1 300px;
  max-width: 340px;
  background: var(--white);
  padding: 15px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.photo-card:hover {
  transform: translateY(-5px);
}

.photo-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

.photo-card figcaption {
  font-size: 14px;
  color: var(--dark-sage);
}

.contact-container {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}

.contact-info, .contact-form {
  flex: 1;
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.contact-info h3, .contact-form h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--dark-sage);
  margin-bottom: 15px;
}

.contact-info p {
  color: var(--light-text);
  margin-bottom: 25px;
  font-size: 15px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-item .icon {
  width: 45px;
  height: 45px;
  background: var(--light-sage);
  color: var(--dark-sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 13px;
  color: var(--light-text);
  font-weight: 500;
}

.contact-item p {
  font-size: 15px;
  color: var(--dark-text);
  font-weight: 600;
  margin-bottom: 0;
}

/* Form Inputs */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-sage);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background-color: var(--cream);
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  color: var(--dark-text);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus, 
.form-group textarea:focus {
  border-color: var(--sage);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(138, 154, 134, 0.15);
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background-color: var(--dark-sage);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background-color: var(--sage);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(58, 77, 57, 0.2);
}

footer, .bio-footer {
  text-align: center;
  padding: 40px 20px;
  background-color: var(--dark-sage);
  color: var(--white);
  margin-top: 60px;
}

@media (max-width: 768px) {
  header, .navbar, .bio-header {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }

  .hero-section, .profile-card, .contact-container {
    flex-direction: column;
  }

  .details {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    width: 100%;
    height: 300px;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .contact-info, .contact-form {
    padding: 25px;
  }
}