:root {
  --primary: #10471dd8;
  --primary-dark: #0a3416;
  --primary-light: #2d5f3a;
  --secondary: #a5b4a5;
  --secondary-light: #c8d4c8;
  --dark-text: #1a1a1a;
  --light-text: #6b7280;
  --white: #ffffff;
  --accent-green: #5e695e;
  --success-green: #22c55e;
  --bg-light: #f8fafc;
  --bg-gradient: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  background: var(--bg-gradient);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  color: var(--dark-text);
  font-weight: 400;
  overflow-x: hidden;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.3;
}

/* Navigation - Matching testimonials.html */
#mainNav {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#mainNav .navbar-brand {
  color: var(--dark-text) !important;
  font-weight: 700;
  font-size: 1.25rem;
}

#mainNav .navbar-brand:hover {
  color: var(--primary) !important;
}

#mainNav .navbar-nav .nav-item .nav-link {
  color: var(--dark-text) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 0;
  margin: 0 1rem;
  transition: all 0.3s ease;
  position: relative;
}

#mainNav .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-nav .nav-item .nav-link.active {
  color: var(--primary) !important;
}

#mainNav .navbar-nav .nav-item .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Hero Module - Clean Solid Background */
.hero-module {
  min-height: 80vh;
  background: var(--primary);
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 72px;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 2rem;
  opacity: 0.95;
  font-family: 'Inter', sans-serif;
}

.hero-description {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
  max-width: 600px;
}

/* Bio Image Styling */
.bio-image {
  border-radius: 50%;
  max-width: 280px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border: 6px solid rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.bio-image:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

/* Social Links */
.social-links {
  margin-top: 2rem;
}

.social-links a {
  color: var(--white);
  font-size: 1.8rem;
  margin: 0 1rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.social-links a:hover {
  color: rgba(255,255,255,0.8);
  transform: translateY(-3px);
}

/* Content Modules - Beautiful Cards */
.content-section {
  padding: 6rem 0;
}

.content-module {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  padding: 4rem;
  margin-bottom: 4rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.content-module:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.module-header {
  text-align: center;
  margin-bottom: 4rem;
}

.module-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  position: relative;
}

.module-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-green));
  border-radius: 2px;
}

.module-subtitle {
  font-size: 1.3rem;
  color: var(--light-text);
  max-width: 700px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

/* Section Title */
.section-title {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-green));
  border-radius: 2px;
}

/* Education Cards */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.education-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.education-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
  border-color: rgba(16, 71, 29, 0.2);
}

.education-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-green) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 12px 24px rgba(16, 71, 29, 0.3);
  transition: all 0.3s ease;
}

.education-card:hover .education-icon {
  transform: scale(1.1) rotate(5deg);
}

.education-card h4 {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.education-card .degree {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.education-card p {
  color: var(--light-text);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Research Highlight */
.research-highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-green) 100%);
  color: var(--white);
  border-radius: 28px;
  padding: 3rem;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

.research-highlight::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  opacity: 0.5;
}

.research-highlight .content {
  position: relative;
  z-index: 2;
}

.research-highlight h4 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.research-highlight h5 {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-style: italic;
}

.research-highlight p {
  color: rgba(255,255,255,0.95);
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.research-btn {
  background: var(--white);
  color: var(--primary);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.research-btn:hover {
  background: rgba(255,255,255,0.95);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

/* Expertise Grid */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.expertise-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.expertise-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
  border-color: rgba(16, 71, 29, 0.2);
}

.expertise-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-green) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: var(--white);
  font-size: 2.5rem;
  box-shadow: 0 15px 30px rgba(16, 71, 29, 0.3);
  transition: all 0.3s ease;
}

.expertise-card:hover .expertise-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 20px 40px rgba(16, 71, 29, 0.4);
}

.expertise-card h5 {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.expertise-card p {
  color: var(--light-text);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Personal Section */
.personal-module {
  background: linear-gradient(135deg, rgba(16, 71, 29, 0.05) 0%, rgba(94, 105, 94, 0.05) 100%);
  border-radius: 28px;
  padding: 3rem;
  margin-top: 3rem;
  border: 1px solid rgba(16, 71, 29, 0.1);
}

.personal-image {
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  max-width: 300px;
  width: 100%;
  transition: all 0.3s ease;
}

.personal-image:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.personal-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--dark-text);
  margin-bottom: 1.5rem;
}

.personal-text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.personal-text a:hover {
  color: var(--accent-green);
  text-decoration: underline;
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 5rem 0 3rem 0;
  position: relative;
}

footer h4 {
  color: var(--white);
  margin-bottom: 2rem;
  font-weight: 600;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
}

.footer-divider {
  width: 60px;
  height: 4px;
  background: var(--white);
  opacity: 0.8;
  margin-bottom: 2rem;
  border-radius: 2px;
}

.footer-text {
  color: rgba(255,255,255,0.95);
  line-height: 1.7;
  margin-bottom: 0.8rem;
  font-family: 'Inter', sans-serif;
}

.footer-link {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.footer-link:hover {
  color: var(--white);
  transform: translateX(5px);
}

.footer-logo {
  max-width: 280px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  border: 2px solid rgba(255,255,255,0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .module-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .content-module {
    padding: 2.5rem;
  }
  
  .expertise-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }
  
  .bio-image {
    max-width: 200px;
  }
  
  .hero-content {
    text-align: center;
  }
}

/* Animation Classes */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.slide-in {
  animation: slideInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.fade-in-scale {
  animation: fadeInScale 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Loading States */
.content-module {
  opacity: 0;
  animation: fadeInScale 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.content-module:nth-child(1) { animation-delay: 0.1s; }
.content-module:nth-child(2) { animation-delay: 0.3s; }
.content-module:nth-child(3) { animation-delay: 0.5s; }
.content-module:nth-child(4) { animation-delay: 0.7s; }