:root {
  --main-font: "Courier New", monospace;
  --sub-font: Georgia, serif;
  --text-color: #111;
  --bg-color: #fdfdfb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

header nav a {
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  transition: all 0.2s ease;
}

header nav a:hover {
  color: #0d6efd;
  border-bottom: 2px solid #0d6efd;
}

header {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  background-color: #ffffffee; 
  backdrop-filter: blur(4px); 
}

header {
  border-bottom: 1px solid #ddd;
}

.nav-scroll {
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; 
}

.nav-scroll::-webkit-scrollbar {
  display: none; 
}

.nav-scroll a {
  padding: 0.3rem 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.nav-scroll a:hover {
  color: #0d6efd;
  text-decoration: underline;
}


.experience-skills h4 {
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #444;
  border-left: 4px solid #444;
  padding-left: 0.75rem;
  margin-bottom: 0.5rem;
}

body {
  font-family: var(--main-font);
  background-color: var(--bg-color);
  color: var(--text-color);
  scroll-behavior: smooth;
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 5% 40px;
  flex-wrap: wrap;
  gap: 4rem;
  text-align: center;
  min-height: 110vh;
  opacity: 0;
  animation: fadeInHero 1.2s ease forwards;
}

.project-preview {
  display: block;
  max-width: 100%;
  width: 600px;
  margin: 2rem auto 0;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
}

.text-area {
  max-width: 500px;
}

.text-area h1 {
  font-size: 2.5rem;
  margin-bottom: 0.3rem;
}

.text-area h2 {
  font-family: var(--sub-font);
  font-weight: normal;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.socials{
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.socials a {
  color: var(--text-color);
  text-decoration: underline;
  transition: all 0.2s ease;
  list-style: none;
}

.socials a:hover {
  color: #0d6efd;
  text-decoration: none;
  transform: translateX(2px); 
}

.socials li {
  cursor: pointer;
}


.socials img {
  width: 24px;
  height: 24px;
}

.circle-img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
}

.circle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

section {
  padding: 80px 10%;
  border-top: 1px solid #eee;
}

section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes fadeInHero {
  to {
    opacity: 1;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  max-width: 350px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-body h4 {
  font-size: 1rem;
  margin: 0;
}

.card-credit {
  font-size: 0.85rem;
  color: #555;
  margin: 0;
}

.timeline {
  position: relative;
  margin: 2rem 0;
  padding-left: 20px;
  border-left: 3px solid #ccc;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1rem;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  background-color: #000;
  border-radius: 50%;
  position: absolute;
  left: -9px;
  top: 6px;
}

.timeline-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.timeline-content span {
  font-weight: normal;
  font-size: 0.9rem;
  color: #666;
  margin-left: 0.5rem;
}

.timeline-content em {
  font-style: italic;
}

.timeline-content p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.project-item {
  padding: 1rem;
  border-left: 4px solid #444;
  background-color: #f7f7f7;
  border-radius: 6px;
}

.project-item strong {
  font-size: 1.05rem;
}

.project-item p {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.link-center {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #1a0dab;
  text-decoration: underline;
}

.text-center {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.research-interests {
  margin-top: 2rem;
}

.research-interests h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.project-item.card-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
}

.project-item.card-layout .project-text {
  flex: 1 1 300px;
}

.project-item.card-layout .project-image {
  flex: 1 1 300px;
}

.project-item.card-layout .project-image img {
  width: 30%;
  max-height: 300px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.other-projects {
  margin-top: 1.5rem;
}

.other-experience {
  margin-top: 1.5rem;
}

.teaching-list li {
  margin-bottom: 0.8rem;
}

.cert-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  width: 300px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.card a {
  color: #0073e6;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}


.minimal-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
}

.minimal-btn:hover {
  border-color: #000;
  background-color: #f8f8f8;
}

.carousel-arrow {
  font-size: 20px;
  color: #333;
}

.carousel-control-prev {
  left: -50px;
}

.carousel-control-next {
  right: -50px;
}

.news-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  max-width: 350px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
}

.news-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-body {
  padding: 16px;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.news-text {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.news-date {
  font-size: 0.8rem;
}
