/* Modern Academic Portfolio CSS */

:root {
  --primary-color: #1e3a8a;
  --secondary-color: #3b82f6;
  --accent-color: #1d4ed8;
  --text-primary: #2d3748;
  --text-secondary: #718096;
  --text-light: #a0aec0;
  --bg-primary: #ffffff;
  --bg-secondary: #f7fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
}

/* Global Styles */
* {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  letter-spacing: -0.01em;
}

.fixed-top-nav {
  padding-top: 50px;
}

.sticky-bottom-footer {
  padding-bottom: 40px;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  color: var(--primary-color) !important;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.navbar-brand:hover {
  color: var(--secondary-color) !important;
  transform: translateY(-1px);
}

.navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
  background-color: rgba(30, 58, 138, 0.1);
}

/* Main Content Container */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.post {
  margin-bottom: 3rem;
}

/* Profile Section */
.post-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1rem 0;
}

.post-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 0;
}

.profile {
  float: none;
  text-align: center;
  margin: 1rem 0;
}

.profile .address {
  margin-top: 0.5rem;
}

.profile .address p {
  margin-bottom: 0.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Contact Icons */
.contact-icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.25rem;
}

.contact-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white !important;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.contact-icons a:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-md);
  color: white !important;
}

/* About Section */
#about {
  margin-bottom: 3rem;
}

#about p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-align: left;
}

#about a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

#about a:hover {
  border-bottom-color: var(--secondary-color);
}

/* Section Headers */
h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1.8rem 0 1rem 0;
  position: relative;
  padding-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
  border-radius: 2px;
}

h2:first-of-type {
  margin-top: 0;
}

/* Experience Section */
.experience {
  margin-bottom: 0.3rem;
}

.experience .row {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.experience .row:last-child {
  border-bottom: none;
}

.experience .row:hover {
  background-color: rgba(30, 58, 138, 0.03);
  margin: 0 -1rem;
  padding: 1.5rem 1rem;
  border-radius: var(--radius-md);
  border-bottom: 1px solid transparent;
}

.experience .year {
  font-weight: 600;
  color: var(--secondary-color);
  font-size: 0.95rem;
  letter-spacing: 0.025em;
}

.experience .position {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.experience .institution {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 400;
}

/* Publications/Research Section */
.publications {
  margin-bottom: 1.8rem;
}

.publications .bibliography {
  list-style: none;
  padding: 0;
  counter-reset: publication-counter;
}

.publications .bibliography > li {
  counter-increment: publication-counter;
  margin-bottom: 1.2rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
}

.publications .bibliography > li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 58, 138, 0.3);
}

.publications .bibliography > li::before {
  content: counter(publication-counter);
  position: absolute;
  top: -10px;
  left: 20px;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.publications .row {
  align-items: flex-start;
}

.publications .abbr {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.25rem;
}

.publications .badge {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.publications .title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.publications .author {
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.publications .author em {
  color: var(--primary-color);
  font-weight: 600;
}

.publications .periodical {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
}

.publications .description {
  margin-bottom: 0.7rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.publications .links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.publications .btn {
  background: var(--secondary-color);
  color: white !important;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.publications .btn:hover {
  background: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  color: white !important;
  text-decoration: none;
}

.badge-info {
  background: linear-gradient(135deg, #3182ce, #2c5282);
}

.badge-warning {
  background: linear-gradient(135deg, #d69e2e, #b7791f);
}

/* Notes Section */
.notes {
  margin-bottom: 1.3rem;
}

.note-card {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.note-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-color);
  background: rgba(30, 58, 138, 0.02);
  color: var(--primary-color);
  text-decoration: none;
}

.note-card i {
  transition: all 0.2s ease;
}

.note-card:hover i {
  color: var(--primary-color) !important;
}

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

footer a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .post-title {
    font-size: 2rem;
  }

  .desc {
    font-size: 1.1rem;
  }

  .contact-icons {
    gap: 0.75rem;
  }

  .contact-icons a {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .experience .year {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }

  .experience .position {
    font-size: 1.1rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  #about p {
    font-size: 1rem;
    text-align: left;
  }

  .publications .bibliography > li {
    padding: 1rem;
  }

  .publications .title {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .fixed-top-nav {
    padding-top: 60px;
  }

  .navbar {
    padding: 0.75rem 0;
  }

  .post-header {
    padding: 1rem 0;
    margin-bottom: 2rem;
  }

  .post-title {
    font-size: 1.8rem;
  }

  h2 {
    margin: 2rem 0 1.5rem 0;
  }
}

/* Smooth scrolling and animations */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Selection colors */
::selection {
  background-color: rgba(30, 58, 138, 0.2);
  color: var(--primary-color);
}
