/* === Your Original CSS Below (Unchanged) === */

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #111;
  line-height: 1.6;
}

a {
  color: #0070f3;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Navbar Styling */
.navbar {
  background: #fff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

/* === ANIMATED NAVBAR UNDERLINE EFFECT === */
.navbar li a {
  position: relative; /* Add for underline effect */
  font-weight: bold;
  color: #0070f3;
  transition: color 0.3s;
}
.navbar li a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: #0070f3;
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s cubic-bezier(.51,1.17,.79,1);
  transform-origin: right;
}
.navbar li a:hover,
.navbar li a:focus {
  color: #005bd1;
}
.navbar li a:hover::after,
.navbar li a:focus::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hero Section Styling */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4rem 10%;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 500px;
  padding-right: 2rem;
}

.hero h1 {
  font-size: 3rem;
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
}

.name-highlight {
  color: #0070f3;
}

.hero h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  color: #333;
}

.hero p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #444;
  max-width: 600px;
}

/* === ANIMATED BUTTON HOVER === */
.btn {
  display: inline-block;
  background: #0070f3;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: bold;
  transition:
    background 0.3s, 
    transform 0.18s cubic-bezier(.57,1.47,.65,1.2),
    box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(0,112,243,0.05);
  position: relative;
  cursor: pointer;
}
.btn:hover {
  background: #005bd1;
  text-decoration: none;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 20px rgba(0,112,243,0.12);
}

.social-icons {
  margin-top: 1.5rem;
}

.social-icons a {
  display: inline-block;
  font-size: 1.4rem;
  margin-right: 1.2rem;
  padding: 0.6rem;
  color: #444;
  background: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(.68,-0.25,.47,1.25);
  font-weight: 600;
  min-width: 2.5rem;
  text-align: center;
}

/* === ANIMATED SOCIAL ICONS === */
.social-icons a:hover,
.social-icons a:focus {
  color: #fff;
  transform: scale(1.2) translateY(-2px) rotate(-3deg);
  box-shadow: 0 4px 16px 0 rgba(0,112,243,0.15);
  text-decoration: none;
}

/* Brand-specific hovers */
.social-icons a[href*="x.com"]:hover,
.social-icons a[href*="twitter"]:hover {
  background: #000000;
}

.social-icons a[href*="linkedin"]:hover {
  background: #0077b5;
}

.social-icons a[href*="scholar"]:hover {
  background: #4285f4;
}

.social-icons a[href*="researchgate.net"]:hover {
  background: #00CCBB; /* ResearchGate teal */
}

.social-icons a[title*="X"] {
  font-size: 1.6rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui;
}

.hero-image {
  flex: 1 1 300px;
  text-align: center;
}

.profile-image {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #0070f3;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.subtitle {
  margin-top: 1rem;
  font-size: 1rem;
  color: #333;
}

/* Content Section Styles for Other Pages */
.content-section {
  max-width: 900px;
  margin: 2rem auto;
  padding: 3rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.5rem;
  font-family: 'Playfair Display', serif;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  font-weight: 400;
}

.card-list {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.card {
  display: flex;
  align-items: flex-start;
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition:
    box-shadow 0.25s cubic-bezier(.22,.61,.36,1),
    transform 0.22s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

/* === ANIMATED CARD HOVER === */
.card:hover,
.card:focus-within {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 16px 36px 0 rgba(0,112,243,0.09), 0 2px 8px rgba(0,0,0,0.02);
  z-index: 2;
}
/* === Card icon "jump" on card hover === */
.card:hover .card-icon,
.card:focus-within .card-icon {
  transform: scale(1.13) rotate(-8deg);
  transition: transform 0.22s cubic-bezier(.31,1.26,.47,1.24);
}

.card-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #0070f3, #00a8ff);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.2rem;
  font-size: 2rem;
  color: #fff;
  transition: transform 0.22s cubic-bezier(.31,1.26,.47,1.24);
}

.card-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
  font-family: 'Inter', sans-serif;
}

.card-content p {
  font-size: 1rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.contact-section {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.email-link {
  font-size: 1.1rem;
  color: #64748b;
}

.email-link a {
  color: #0070f3;
  font-weight: 600;
}

.email-link a:hover {
  color: #005bd1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }
  
  .navbar ul {
    gap: 1rem;
    justify-content: center;
  }
  
  .hero {
    flex-direction: column;
    padding: 2rem 5%;
    text-align: center;
  }
  
  .hero-text {
    padding-right: 0;
    margin-bottom: 2rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .social-icons a {
    margin-bottom: 0.5rem;
  }
  
  .content-section {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .card {
    flex-direction: column;
    text-align: center;
  }
  
  .card-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .navbar ul {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero h2 {
    font-size: 1.3rem;
  }
  
  .content-section {
    padding: 1.5rem 1rem;
  }
  
  .page-header h1 {
    font-size: 1.8rem;
  }
  
  .profile-image {
    width: 180px;
    height: 180px;
  }
  
  .social-icons a {
    font-size: 1.2rem;
    margin-right: 0.8rem;
  }
}

/* Social Icons Styling */
.social-icons {
  margin-top: 1.5rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-right: 1.2rem;
  padding: 0; /* Remove padding to perfectly fit icons */
  color: #444;
  background: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-weight: 600;
  font-size: 1.4rem; /* Controls Font Awesome icon size */
}

.social-icons a:hover,
.social-icons a:focus {
  color: #fff;
  transform: scale(1.2) translateY(-2px) rotate(-3deg);
  outline: none;
}

/* Brand-specific hover backgrounds */
.social-icons a[href*="x.com"]:hover,
.social-icons a[href*="twitter"]:hover {
  background: #000000;
}

.social-icons a[href*="linkedin"]:hover {
  background: #0077b5;
}

.social-icons a[href*="scholar"]:hover,
.social-icons a[href*="google-scholar"]:hover {
  background: #4285f4;
}

.social-icons a[href*="researchgate"]:hover {
  background: #00CCBB;
}

.social-icons svg,
.social-icons i {
  font-size: 1.4rem;
}

/* === Dark Mode Styles === */
body.dark-mode {
  background: #121212;
  color: #eee;
}

body.dark-mode a {
  color: #58a6ff;
}

body.dark-mode a:hover {
  text-decoration: underline;
}

body.dark-mode .navbar {
  background: #1f1f1f;
  box-shadow: 0 2px 8px rgba(100, 100, 100, 0.15);
}

body.dark-mode .navbar li a {
  color: #58a6ff;
}

body.dark-mode .navbar li a:hover {
  color: #1e90ff;
}

body.dark-mode .hero {
  background: transparent;
}

body.dark-mode .hero-text h1,
body.dark-mode .hero-text h2,
body.dark-mode .hero-text p {
  color: #eee;
}

body.dark-mode .btn {
  background: #1e90ff;
  color: #fff;
}

body.dark-mode .btn:hover {
  background: #0070f3;
}

body.dark-mode .social-icons a {
  background: #2c2c2c;
  color: #aaa;
}

body.dark-mode .social-icons a:hover {
  color: #fff;
}

body.dark-mode .card {
  background: #1e1e1e;
  border-color: #444;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

body.dark-mode .card-content h3 {
  color: #fff;
}

body.dark-mode .card-content p {
  color: #bbb;
}

body.dark-mode .contact-section {
  border-top: 1px solid #444;
  color: #bbb;
}

body.dark-mode .email-link a {
  color: #58a6ff;
}

body.dark-mode .profile-image {
  border-color: #58a6ff;
} 
