* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #4a5d23;
  --secondary-color: #6b7c32;
  --accent-color: #8fbc8f;
  --sage-light: #a8c09a;
  --sage-dark: #3d4a1f;
  --text-color: #2d3a1a;
  --text-light: #6b7c32;
  --bg-color: #ffffff;
  --bg-light: #f7f8f5;
  --bg-sage: #f0f4ed;
  --border-color: #d4e6d1;
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --shadow: 0 2px 8px rgba(77, 93, 35, 0.1);
  --shadow-hover: 0 4px 16px rgba(77, 93, 35, 0.15);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-color);
  font-size: 16px;
  min-height: 100vh;
  scroll-behavior: smooth;
}

.container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  background: var(--primary-color);
  color: white;
  width: 280px;
  min-height: 100vh;
  padding: 2rem 1.5rem;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  overflow-y: auto;
}

.main-content {
  margin-left: 280px;
  width: calc(100% - 280px);
  padding: 2rem;
  min-height: 100vh;
  box-sizing: border-box;
}

.sidebar .header-content h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  letter-spacing: -0.3px;
  text-align: left;
}

.sidebar .subtitle {
  font-size: 0.9rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  font-weight: 400;
  text-align: left;
  line-height: 1.4;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.sidebar nav a {
  color: white;
  text-decoration: none;
  font-weight: 400;
  padding: 0.8rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-size: 0.95rem;
  text-align: left;
}

.sidebar nav a:hover {
  background-color: rgba(255,255,255,0.1);
}

section {
  margin-bottom: 4rem;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(77, 93, 35, 0.1);
  transition: all 0.4s ease;
  position: relative;
}

section:last-child {
  border-bottom: none;
}


h2 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 1.9rem;
  font-weight: 600;
  position: relative;
  padding-left: 1rem;
  transition: all 0.3s ease;
}


h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 2rem;
  background: linear-gradient(180deg, var(--accent-color) 0%, var(--sage-light) 100%);
  border-radius: 2px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color) 0%, transparent 100%);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.profile-photo {
  position: relative;
  text-align: center;
}

.profile-photo img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: block;
}

.profile-photo img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
}

.photo-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  margin: 0 auto;
  transition: var(--transition);
}

.photo-placeholder:hover {
  background: var(--bg-sage);
}

.photo-placeholder i {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.photo-placeholder p {
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.photo-placeholder small {
  color: var(--text-light);
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.3;
}

.research-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.research-content h3 {
  color: var(--primary-color);
  margin: 2rem 0 1rem 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.teaching-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.teaching-content h3 {
  color: var(--primary-color);
  margin: 2rem 0 1rem 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.course-schedule {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.course-item {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-sage) 100%);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.course-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.course-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.course-item p {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.course-item p:last-child {
  margin-bottom: 0;
}

.women-computing-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.women-computing-content h3 {
  color: var(--primary-color);
  margin: 2rem 0 1rem 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.women-computing-content ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.women-computing-content li {
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-color);
}


.teaching-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.teaching-item {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-sage) 100%);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.teaching-item::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(143, 188, 143, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(30px, -30px);
}

.teaching-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-hover);
}

.teaching-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.teaching-period {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.teaching-item ul {
  list-style: none;
  padding-left: 0;
}

.teaching-item li {
  padding: 0.3rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.teaching-item li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}




.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-sage) 100%);
  border-radius: var(--border-radius);
  transition: var(--transition);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.contact-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-color) 0%, var(--sage-light) 100%);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.contact-item:hover::before {
  transform: scaleY(1);
}

.contact-item:hover {
  background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e8 100%);
  transform: translateX(5px);
  box-shadow: var(--shadow-hover);
}

.contact-item i {
  color: var(--accent-color);
  font-size: 1.2rem;
  width: 20px;
}

.contact-item a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--accent-color);
}

.btn {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--sage-light) 100%);
  color: white;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--sage-dark) 100%);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  box-shadow: 0 -2px 8px rgba(77, 93, 35, 0.1);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color) 0%, var(--sage-light) 50%, var(--accent-color) 100%);
}

/* Responsive Design */
@media (min-width: 1200px) {
  main {
    max-width: 1400px;
    padding: 1rem 3rem;
  }
  
  section {
    padding: 2.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  
  .sidebar {
    position: static;
    width: 100%;
    min-height: auto;
    padding: 1.5rem;
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 1rem;
  }
  
  .sidebar .header-content h1 {
    font-size: 1.6rem;
    text-align: center;
  }
  
  .sidebar .subtitle {
    font-size: 0.9rem;
    text-align: center;
  }
  
  .sidebar nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .sidebar nav a {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }
  
  section {
    padding: 1.5rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .profile-photo img,
  .photo-placeholder {
    width: 150px;
    height: 150px;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-content h1 {
    font-size: 1.8rem;
  }
  
  nav {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  nav a {
    padding: 0.8rem 1rem;
  }
}
