* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Prompt', sans-serif;
  background: #ffffff;
  color: #1f2937;
}
header {
  padding: 100px 20px;
  text-align: center;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.15"/><circle cx="20" cy="60" r="0.5" fill="white" opacity="0.15"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
  opacity: 0.3;
}
header img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
  margin-bottom: 25px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}
header img:hover {
  transform: scale(1.05);
}
nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 20px;
  z-index: 10;
}
nav a {
  color: #374151;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
}
nav a:hover { 
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

section {
  max-width: 1200px;
  margin: auto;
  padding: 80px 20px;
}
h2 {
  margin-bottom: 40px;
  color: #1f2937;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  position: relative;
}
h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #1e40af);
  border-radius: 2px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #1e40af);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
form {
  max-width: 500px;
  margin: auto;
  display: grid;
  gap: 15px;
}
input, textarea {
  padding: 15px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  font-family: inherit;
  background: white;
  transition: all 0.3s ease;
  font-size: 16px;
}
input:focus, textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
button {
  padding: 15px 30px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  color: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}
footer {
  text-align: center;
  padding: 40px;
  background: #f8fafc;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
}

/* Modern styles for about section */
#about h3 {
  color: #374151;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 30px 0 15px 0;
  border-left: 4px solid #3b82f6;
  padding-left: 15px;
}

#about ul {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

#about ul li {
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
  padding-left: 25px;
}

#about ul li:before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-weight: bold;
}

#about ul li:last-child {
  border-bottom: none;
}

#about p {
  line-height: 1.8;
  font-size: 1.1rem;
  color: #4b5563;
  margin-bottom: 20px;
}

/* Button styles */
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-primary::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 ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  color: white;
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
}

.btn-primary:active {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Teaching cards styles */
.teaching-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
}

.course-code {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 15px;
  align-self: center;
}

.teaching-card h3 {
  color: #1f2937;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

.course-description p {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: auto;
}

.tag {
  background: #f3f4f6;
  color: #374151;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.tag:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

/* Responsive adjustments for teaching cards */
@media (max-width: 768px) {
  .teaching-card h3 {
    font-size: 1.1rem;
  }
  
  .course-description p {
    font-size: 0.9rem;
  }
  
  .tag {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
}

/* Research cards styles */
.research-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
}

.year-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 15px;
  align-self: center;
}

.research-card h3 {
  color: #1f2937;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

.research-description p {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

/* Responsive adjustments for research cards */
@media (max-width: 768px) {
  .research-card h3 {
    font-size: 1.05rem;
  }
  
  .research-description p {
    font-size: 0.85rem;
  }
  
  .year-badge {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

/* About section styles */
.about-container {
  max-width: 1000px;
  margin: 0 auto;
}

.about-intro {
  text-align: center;
  padding: 40px;
  margin-bottom: 40px;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border: 1px solid #e2e8f0;
}

.intro-badge {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 20px;
}

.about-intro h3 {
  color: #1f2937;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 20px 0;
}

.intro-description {
  color: #6b7280;
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0;
  max-width: 800px;
  margin: 0 auto;
}

.about-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
  position: relative;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.about-card h3 {
  color: #1f2937;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 20px 0;
}

.about-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex-grow: 1;
}

.info-item {
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 10px;
  border-left: 4px solid #3b82f6;
  text-align: left;
  color: #374151;
  font-size: 0.95rem;
}

.expertise-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.expertise-item {
  padding: 10px 16px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid #10b981;
  text-align: left;
  color: #374151;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.expertise-item:hover {
  background: #f1f5f9;
  transform: translateX(5px);
}

.education-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-grow: 1;
}

.education-item {
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  text-align: left;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.education-item:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.edu-level {
  font-weight: 700;
  color: #1f2937;
  font-size: 1rem;
  margin-bottom: 5px;
}

.edu-detail {
  color: #374151;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.edu-institute {
  color: #6b7280;
  font-size: 0.85rem;
}

/* Responsive adjustments for about section */
@media (max-width: 768px) {
  .about-intro {
    padding: 30px 20px;
  }
  
  .about-intro h3 {
    font-size: 1.5rem;
  }
  
  .intro-description {
    font-size: 1rem;
  }
  
  .card-icon {
    font-size: 2rem;
  }
  
  .about-card h3 {
    font-size: 1.1rem;
  }
  
  .info-item, .expertise-item {
    font-size: 0.85rem;
  }
  
  .education-item {
    padding: 15px;
  }
}
