/* General Styles */
:root {
  --primary-color: #000000;
  --secondary-color: #f5f5f5;
  --text-color: #333;
  --light-text: #777;
  --background-color: #fff;
  --section-padding: 60px 0;
  --hover-color: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-weight: 700;
  margin-bottom: 20px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

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

/* Keep button and nav links styled as buttons */
.header-links a,
nav a,
.btn,
.btn-outline {
  text-decoration: none !important;
}

.btn {
  background-color: #fff;
  color: var(--primary-color) !important;
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff !important;
}

/* Header */
header {
  background-color: var(--primary-color);
  color: #fff;
  padding: 100px 0 70px;
  text-align: center;
}

header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

header .subtitle {
  font-size: 1.5rem;
  opacity: 0.8;
  margin-bottom: 30px;
}

.header-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.btn, .btn-outline {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
}

.btn {
  background-color: #fff;
  color: var(--primary-color);
}

.btn:hover {
  background-color: #f0f0f0;
  transform: translateY(-3px);
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* Navigation */
nav {
  background-color: #fff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  margin: 0;
}

nav a {
  display: block;
  padding: 20px 15px;
  color: var(--text-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
}

nav a:hover {
  color: var(--primary-color);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-color);
  transition: all 0.3s;
}

nav a:hover::after {
  width: 100%;
  left: 0;
}

/* Sections */
.section {
  padding: var(--section-padding);
  border-bottom: 1px solid #eee;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s, transform 0.8s;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section h2 {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section h2:after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* About Section */
.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.about-image {
  flex: 1;
  min-width: 250px;
  text-align: center;
}

#profile-picture {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--secondary-color);
}

.about-text {
  flex: 2;
  min-width: 300px;
}

/* Timeline for Experience and Education */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline:before {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--secondary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  left: 0;
  margin-bottom: 30px;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--primary-color);
  border-radius: 50%;
  top: 15px;
  z-index: 1;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

.timeline-date {
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.timeline-title {
  font-weight: 600;
  margin-bottom: 5px;
}

.timeline-company {
  font-style: italic;
  color: var(--light-text);
  margin-bottom: 10px;
}

/* Skills */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.skill-item {
  background-color: var(--secondary-color);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.skill-item:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Publications and Awards */
.publications-list, .awards-list {
  max-width: 800px;
  margin: 0 auto;
}

.publication-item, .award-item {
  background-color: var(--secondary-color);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.publication-title, .award-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.publication-authors, .award-description {
  margin-bottom: 10px;
  font-style: italic;
}

.publication-journal, .award-date {
  color: var(--light-text);
}

/* Contact */
.contact-info {
  max-width: 600px;
  margin: 0 auto;
}

.contact-info p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info i {
  font-size: 1.2rem;
  color: var(--primary-color);
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  text-align: center;
  padding: 30px 0;
  color: var(--light-text);
}

/* Timeline Description */
.timeline-description ul {
  list-style-type: disc;
  padding-left: 20px;
}

.timeline-description li {
  margin-bottom: 5px;
}

/* Publication Link */
.publication-link {
  margin-top: 10px;
}

.publication-link a {
  display: inline-block;
  padding: 5px 15px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.publication-link a:hover {
  background-color: var(--hover-color);
}

/* Animations */
.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 60px 0;
  }

  header h1 {
    font-size: 2.5rem;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .timeline:before {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item::after, 
  .timeline-item:nth-child(even)::after {
    left: 20px;
  }
}

@media (max-width: 576px) {
  nav ul {
    flex-wrap: wrap;
  }
  
  nav a {
    padding: 15px 10px;
    font-size: 0.9rem;
  }
  
  .header-links {
    flex-direction: column;
    gap: 10px;
  }
} 

/* Classic hyperlink style for inline links - moved to end for max specificity */
.about-text a, .timeline-company a, .timeline-description a, .publication-journal a, .award-description a, .contact-info a:not([class]) {
  color: #1a0dab !important;
  text-decoration: underline !important;
  font-weight: 500;
  transition: color 0.2s;
}

.about-text a:hover, .timeline-company a:hover, .timeline-description a:hover, .publication-journal a:hover, .award-description a:hover, .contact-info a:not([class]):hover {
  color: #174ea6 !important;
  text-decoration: underline !important;
} 