/* Single-Page Academic Portfolio Stylesheet */

/* Import base styles from existing theme */
@import url('/assets/css/style.css');

/* CSS Variables for consistency */
:root {
  --primary-color: rgba(33, 79, 194, 1);
  --primary-light: rgba(33, 79, 194, 0.08);
  --primary-hover: rgba(33, 79, 194, 0.85);
  --text-color: #606c71;
  --heading-color: rgb(33, 79, 194);
  --max-width: 900px;
  --section-spacing: 4rem;
  --nav-height: 70px;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Sticky Navigation */
.site-nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #e9ebec;
  z-index: 1000;
  padding: 1rem 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--heading-color);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-name:hover {
  color: var(--primary-hover);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

/* Hamburger Menu (Mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e9ebec;
  flex-direction: column;
  padding: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-menu a {
  padding: 1rem 2rem;
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 1px solid #f8f9fa;
  transition: background-color 0.2s;
}

.mobile-menu a:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.mobile-menu.active {
  display: flex;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 4rem 2rem 3rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid #e9ebec;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  object-fit: cover;
  border: 4px solid white;
}

.hero-section h1 {
  font-size: 2.5rem;
  margin: 0.5rem 0;
  color: var(--heading-color);
  font-weight: 700;
}

.affiliation {
  font-size: 1.1rem;
  color: var(--text-color);
  margin: 0.5rem 0;
  font-weight: 500;
}

.title {
  font-size: 1.1rem;
  color: var(--text-color);
  margin: 0.25rem 0 1.5rem 0;
  font-weight: 500;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
}

.social-links img {
  width: 40px;
  height: 40px;
}

.social-links a:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

/* Main Content */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
}

.content-section {
  margin-bottom: var(--section-spacing);
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.content-section:last-of-type {
  margin-bottom: 2rem;
}

.content-section h2 {
  font-size: 2rem;
  color: var(--heading-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-light);
  font-weight: 700;
}

.content-section h3 {
  font-family: 'Figtree', sans-serif;
  font-size: 1.4rem;
  color: #8a8f94;
  margin: 2rem 0 1rem 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
}

/* About Section */
.about-content {
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-content p {
  margin-bottom: 1rem;
}

.about-content a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid var(--primary-light);
  transition: border-color 0.2s;
}

.about-content a:hover {
  border-bottom-color: var(--primary-color);
}

/* Research Interests */
.interests-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.interests-list li {
  font-family: 'Figtree', sans-serif;
  background: var(--primary-light);
  color: var(--primary-color);
  padding: 0.6rem 1.2rem;
  border-radius: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.interests-list li:hover {
  background: var(--primary-color);
  color: white;
  /* transform: translateY(-2px); */
  /* box-shadow: 0 2px 8px rgba(33, 79, 194, 0.3); */
}

/* Publications */
.publication-list {
  margin-top: 1.5rem;
}

.publication-item {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(248, 249, 250, 0.6);
  border-left: 3px solid var(--primary-light);
  border-radius: 0.3rem;
  transition: all 0.2s ease;
}

.publication-item:hover {
  background: rgba(248, 249, 250, 1);
  border-left-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.publication-item:last-child {
  margin-bottom: 0;
}

.pub-title {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  line-height: 1.5;
}

.pub-authors {
  font-family: 'Figtree', sans-serif;
  color: var(--text-color);
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.pub-venue {
  font-family: 'Figtree', sans-serif;
  color: var(--text-color);
  opacity: 0.85;
  margin-bottom: 0.5rem;
  font-size: 0.93rem;
}

.pub-links {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pub-link {
  font-family: 'Figtree', sans-serif;
  color: var(--primary-color);
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.pub-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* News */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  margin-bottom: 1.25rem;
  padding-left: 8.5rem;
  position: relative;
  line-height: 1.6;
}

.news-date {
  font-family: 'Figtree', sans-serif;
  position: absolute;
  left: 0;
  font-weight: 600;
  color: var(--text-color);
  opacity: 0.7;
  min-width: 7.5rem;
  font-size: 0.9rem;
  line-height: 2.0;
}

.news-text {
  font-family: 'Figtree', sans-serif;
  font-size: 0.98rem;
  color: var(--text-color);
  line-height: 1.6;
}

/* Contact */
.contact-social {
  margin-top: 1rem;
  font-size: 1rem;
}

.contact-social a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-social a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  border-top: 1px solid #e9ebec;
  color: var(--text-color);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --section-spacing: 3rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-section {
    padding: 3rem 1.5rem 2.5rem;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .profile-photo {
    width: 150px;
    height: 150px;
  }

  .main-content {
    padding: 1.5rem 1rem;
  }

  .content-section h2 {
    font-size: 1.75rem;
  }

  .news-list li {
    padding-left: 0;
  }

  .news-date {
    position: static;
    display: block;
    margin-bottom: 0.25rem;
  }

  .interests-list {
    gap: 0.5rem;
  }

  .interests-list li {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 1.75rem;
  }

  .affiliation {
    font-size: 1rem;
  }

  .social-links img {
    width: 35px;
    height: 35px;
  }

  .content-section h2 {
    font-size: 1.5rem;
  }
}
