:root {
  /* Brand colors */
  --color-accent: #DF6D14;
  --color-accent-hover: #e68748;
  --color-accent-light: #66666606;

  /* Grayscale */
  --color-black: #000;
  --color-white: #fff;
  --color-text: #333;
  --color-muted: #666;
  --color-light: #999;
  --color-bg: #ffffff;

  /* Shadows */
  --shadow-soft: 0 2px 4px #fba54a1a;
  --shadow-deep: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-card: 0px 0px 10px 0px #666;
}
.darkmode {
  /* Brand colors */
  --color-accent: #DF6D14;
  --color-accent-hover: #e68748;
  --color-accent-light: #ffffff0a;

  /* Grayscale for dark UI */
  --color-black: #fff;
  --color-white: #121212;
  --color-text: #ffffff;
  --color-muted: #cccccc;
  --color-light: #999999;
  --color-bg: #1e1e1e;

  /* Shadows */
  --shadow-soft: 0 2px 4px rgba(255, 255, 255, 0.06);
  --shadow-deep: 0 4px 8px rgba(0, 0, 0, 0.5);
  --shadow-card: 0px 0px 10px 0px rgba(255, 255, 255, 0.05);
}


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

@font-face {
  font-family: 'Steph';
  src: url('fonts/steph-font.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Steph';
  src: url('fonts/steph-font-bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Steph', sans-serif;
  margin: 0;
  background-color: var(--color-bg);
}

/* Navbar */
.navbar {
  width: 100%;
  background-color: var(--color-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 45px;
  box-shadow: var(--shadow-soft);
}
.theme-switch {
  height: 50px;
  width: 50px;
  padding: 0;
  border-radius: 25%;
  background-color: #00000000;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.theme-switch svg {
  fill: var(--color-text); /* Use fill instead of color */
  width: 20px;
  height: 20px;
}

/* Hide sun icon by default */
.theme-switch svg:last-child {
  display: none;
}

/* Swap icons in dark mode */
.darkmode .theme-switch svg:first-child {
  display: none;
}

.darkmode .theme-switch svg:last-child {
  display: block;
}


.logo img {
  height: 50px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li {
  display: inline-flex;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 20px;
  transition: all 0.3s ease-in-out;
}

.nav-links a:hover {
  color: var(--color-accent);
  transform: scale(1.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo p {
  font-size: 24px;
  font-weight: bold;
  color: var(--color-text)
}

/* About section */
.about {
  padding: 50px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--color-accent-light);
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1000px;
  width: 100%;
}

.about-text {
  max-width: 600px;
  text-align: left;
  color: var(--color-text)
}

.about-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
}

.intro-block {
  display: inline-block;
  text-align: left;
}

.intro {
  font-size: 50px;
  position: relative;
}

.intro::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  margin-top: 12px;
  border-radius: 2px;
}

.about .location,
.about .education {
  font-size: 20px;
  color: var(--color-muted);
  margin-top: 10px;
}

.about p {
  font-size: 20px;
  color: var(--color-text);
  margin-top: 15px;
  line-height: 1.4;
}

/* Social links */
.social-links {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-links i {
  font-size: 28px;
  color: var(--color-accent);
  transition: transform 0.3s ease;
}

.social-links i:hover {
  transform: scale(1.2);
  color: var(--color-accent-hover);
}

/* Skills section */
.skills {
  min-height: 30vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.skills h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-text);
}

.skills h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--color-accent);
  margin: 0 auto;
  margin-top: 10px;
  border-radius: 2px;
}

.skills .skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.skills i {
  font-size: 3rem;
  color: var(--color-accent);
  transition: transform 0.3s ease, color 0.3s ease;
}

.skills i:hover {
  transform: scale(1.2);
  color: var(--color-accent-hover);
}

/* Publications */
.publications {
  padding: 60px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--color-accent-light);
}

.publications h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  position: relative;
  color: var(--color-text)
}

.publications h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--color-accent);
  margin: 0 auto;
  margin-top: 10px;
  border-radius: 2px;
}

.publication-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: 10px;
  max-width: 900px;
}

.venue-tag {
  background-color: #c716d0;
  color: var(--color-white);
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  box-shadow: var(--shadow-deep);
  font-size: 0.9rem;
  white-space: nowrap;
}

.pub-content {
  flex: 1;
}

.pub-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color:var(--color-text)
}

.pub-authors {
  font-size: 1rem;
  color: #444;
  margin-bottom: 0.3rem;
  color:var(--color-light)
}

.pub-venue {
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  color:var(--color-light)
}

.pub-links {
  display: flex;
  gap: 1rem;
}
.publications h3{
  color: var(--color-text)
}

.pub-btn {
  border: 1px solid var(--color-black);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--color-black);
  transition: background-color 0.2s ease;
}

.pub-btn:hover {
  background-color: var(--color-bg);
}

/* Timeline */
.timeline-section {
  padding: 80px 50px;
  text-align: center;
}

.timeline-section h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  position: relative;
  color:var(--color-text);
}

.timeline-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--color-accent);
  margin: 0 auto;
  margin-top: 10px;
  border-radius: 2px;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: auto;
  color: var(--color-text);
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--color-accent);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 20px 40px;
  position: relative;
  width: 50%;
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-content {
  background-color: var(--color-bg);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.timeline-content:hover {
  transform: scale(1.05);
}

.timeline-item.left .timeline-content {
  text-align: center;
}

.timeline-item::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: var(--color-white);
  border: 4px solid var(--color-accent);
  top: 30px;
  border-radius: 50%;
  z-index: 3;
}

.timeline-item.left::before {
  right: -12px;
}

.timeline-item.right::before {
  left: -12px;
}

.timeline-content p strong {
  color: var(--color-accent);
  font-weight: 600;
}

.timeline-content h4 {
  text-align: center;
  color: var(--color-muted);
}
/* Section style */
.projects {
  padding: 60px 50px;
  text-align: center;
}

.projects h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  position: relative;
  color: var(--color-text);
}
.projects h2:after{
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--color-accent);
  margin: 0 auto;
  margin-top: 10px;
  border-radius: 2px;
}
.projects h3{
  text-align: center;
}
.projects h4{
  font-size: 1.2rem;
  color: var(--color-muted);
  text-align: center;
}
.projects-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}
/* Card style */
.project-card {
  width: 300px;
  background-color: var(--color-white);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--shadow-deep);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.project-card:hover {
  transform: translateY(-10px); /* Lift effect */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* No root var provided for this, kept as-is */
}

/* Image style */
.project-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

/* Title and Description style */
.project-title {
  font-size: 1.5rem;
  margin-top: 20px;
  color: var(--color-text);
}

.project-description {
  font-size: 1rem;
  color: var(--color-muted);
  margin-top: 10px;
}

/* Link style */
.project-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.project-link {
  text-decoration: none;
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 10px 15px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.project-link:hover {
  background-color: var(--color-accent-hover);
}

/* Footer */
.site-footer {
  background-color: var(--color-white);
  color: var(--color-light);
  padding: 30px 20px;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 80px;
  box-shadow: var(--shadow-soft);
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
}

.footer-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-white);
}
