/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header and Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 58, 138, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e3a8a;
  line-height: 1.2;
}

.nav-brand p {
  font-size: 0.875rem;
  color: #0d9488;
  font-weight: 500;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: #1e3a8a;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0d9488;
  transition: width 0.3s ease;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 3px;
  background: #1e3a8a;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #1e3a8a;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #475569;
  margin-bottom: 32px;
  line-height: 1.5;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #0d9488;
}

.stat-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.cta-button {
  display: inline-block;
  background: #1e3a8a;
  color: white;
  padding: 16px 32px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

.cta-button:hover {
  background: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.35);
}

.hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  background-image: url('/images/MJO_allphases_globes.gif');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Section Styles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e3a8a;
  text-align: center;
  margin-bottom: 64px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #0d9488;
  border-radius: 2px;
}

/* About Section */
.about {
  padding: 80px 0;
  background: #ffffff;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text .lead {
  font-size: 1.25rem;
  color: #0d9488;
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1.5;
}

.about-text p {
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.7;
  color: #374151;
}

.about-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Research Section */
.research {
  padding: 80px 0;
  background: #f8fafc;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.research-card {
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.research-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.research-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.research-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 16px;
}

.research-card p {
  color: #475569;
  line-height: 1.6;
}

/* Publications Section */
.publications {
  padding: 80px 0;
  background: #ffffff;
}

.publications-list {
  max-width: 800px;
  margin: 0 auto;
}

.publication {
  display: flex;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid #e5e7eb;
}

.publication:last-child {
  border-bottom: none;
}

.publication-year {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0d9488;
  min-width: 80px;
}

.publication-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 8px;
  line-height: 1.4;
}

.authors {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 4px;
}

.journal {
  font-size: 0.875rem;
  color: #475569;
  font-style: italic;
  margin-bottom: 12px;
}

.publication-links {
  display: flex;
  gap: 16px;
}

.pub-link {
  color: #0d9488;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 4px 12px;
  border: 1px solid #0d9488;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.pub-link:hover {
  background: #0d9488;
  color: white;
}

/* Experience Section */
.experience {
  padding: 80px 0;
  background: #f8fafc;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 100px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #0d9488;
}

.timeline-item {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 92px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0d9488;
  border: 4px solid white;
  box-shadow: 0 0 0 3px #0d9488;
}

.timeline-year {
  font-size: 1rem;
  font-weight: 700;
  color: #0d9488;
  min-width: 80px;
}

.timeline-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 8px;
}

.institution {
  font-weight: 500;
  color: #475569;
  margin-bottom: 12px;
  line-height: 1.4;
}

.timeline-content p:last-child {
  color: #64748b;
  line-height: 1.6;
}

/* Achievements Section */
.achievements {
  padding: 80px 0;
  background: #ffffff;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.achievement-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #0d9488 100%);
  color: white;
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s ease;
}

.achievement-card:hover {
  transform: translateY(-4px);
}

.achievement-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.award-year {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  opacity: 0.9;
}

.achievement-card p:last-child {
  font-size: 0.875rem;
  opacity: 0.8;
  line-height: 1.5;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: #f8fafc;
}

.contact-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-item {
  margin-bottom: 32px;
}

.contact-item strong {
  color: #1e3a8a;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.contact-item p {
  color: #475569;
  line-height: 1.6;
}

.contact-item a {
  color: #0d9488;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #0f766e;
}

.profile-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.profile-link {
  background: #1e3a8a;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.profile-link:hover {
  background: #1e40af;
  transform: translateY(-1px);
}

.contact-map img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
  background: #1e3a8a;
  color: white;
  padding: 32px 0;
  text-align: center;
}

.footer p {
  margin-bottom: 8px;
  opacity: 0.9;
}

.footer p:last-child {
  margin-bottom: 0;
  opacity: 0.7;
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
      display: none;
  }
  
  .nav-toggle {
      display: flex;
  }
  
  .hero-content {
      grid-template-columns: 1fr;
      gap: 40px;
      text-align: center;
  }
  
  .hero-title {
      font-size: 2.5rem;
  }
  
  .hero-stats {
      justify-content: center;
  }
  
  .about-content {
      grid-template-columns: 1fr;
      gap: 40px;
  }
  
  .research-grid {
      grid-template-columns: 1fr;
      gap: 24px;
  }
  
  .publication {
      flex-direction: column;
      gap: 16px;
  }
  
  .timeline::before {
      left: 20px;
  }
  
  .timeline-item {
      flex-direction: column;
      gap: 16px;
      padding-left: 48px;
  }
  
  .timeline-item::before {
      left: 12px;
  }
  
  .achievements-grid {
      grid-template-columns: 1fr;
      gap: 24px;
  }
  
  .contact-content {
      grid-template-columns: 1fr;
      gap: 40px;
  }
  
  .container {
      padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .hero {
      padding: 100px 0 60px;
  }
  
  .hero-title {
      font-size: 2rem;
  }
  
  .hero-stats {
      flex-direction: column;
      gap: 16px;
  }
  
  .section-title {
      font-size: 2rem;
      margin-bottom: 48px;
  }
  
  .research-card,
  .achievement-card {
      padding: 24px;
  }
  
  .profile-links {
      flex-direction: column;
  }
}

/* Smooth animations */
@media (prefers-reduced-motion: no-preference) {
  .research-card,
  .achievement-card,
  .cta-button {
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Print styles */
@media print {
  .header,
  .footer {
      display: none;
  }
  
  .hero {
      padding: 40px 0;
      min-height: auto;
  }
  
  .section-title {
      margin-bottom: 32px;
  }
  
  .research-card,
  .achievement-card {
      break-inside: avoid;
  }
}