:root {
  --primary-color: #2d3436;
  --secondary-color: #0984e3;
  --background-color: #ffffff;
  --text-color: #2d3436;
  --section-padding: 5rem 2rem;
  --timeline-color: rgba(9, 132, 227, 0.3);
  interpolate-size: allow-keywords;
}

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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

.header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
}

.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}

.burger-menu:focus {
  outline: none;
}

.burger-menu div {
  width: 2rem;
  height: 0.25rem;
  background: var(--primary-color);
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  transform-origin: 1px;
}

.burger-menu.open div:first-child {
  transform: rotate(45deg);
}

.burger-menu.open div:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.burger-menu.open div:nth-child(3) {
  transform: rotate(-45deg);
}

.avatar {
  border-radius: 50%;
  width: 7rem;
  height: 7rem;
  object-fit: cover;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1001;
}

.avatar-container {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0;
}

.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-links ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 3rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

.nav-social {
  margin-left: auto;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.nav-icon-button:hover {
  transform: scale(1.1);
}

.nav-icon-button img {
  transition: filter 0.3s ease;
}

.nav-icon-button:hover img {
  filter: brightness(1.2);
}

.linkedin-icon,
.github-icon,
.email-icon {
  height: 100%;
  width: auto;
}

@media screen and (max-width: 768px) {
  .nav {
    padding: 1rem;
  }

  .burger-menu {
    display: flex;
    margin-right: 1rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.90);
    padding-top: 5rem;
    z-index: 1001;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .nav-links.open {
    display: block;
  }

  .nav-links ul {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    
    position: static;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-social {
    position: static;
    display: flex;
    margin-left: 0;
  }

  .avatar {
    left: 1rem;
    width: 3rem;
    height: 3rem;
  }

  .avatar-container {
    margin-top: -0.5rem;
  }
}

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--section-padding);
  position: relative;
  color: white;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  animation: slowZoom 20s ease-in-out infinite alternate;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: both;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.section {
  padding: var(--section-padding);
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin: 0 0 1.5rem 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.social-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 2px solid var(--secondary-color);
  border-radius: 5px;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--secondary-color);
  color: white;
}

.footer {
  text-align: center;
  padding: 0.5rem;
  background-color: #f5f6fa;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .section h2 {
    font-size: 2rem;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }
}

.project-card {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.project-card p {
  color: #636e72;
  margin-bottom: 1.5rem;
}

.project-link {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 500;
  padding: 0.5rem 0;
  float: right;
  transition: transform 0.3s ease;
}

.project-link:hover {
  transform: scale(1.1);
}

.project-link img {
  transition: filter 0.3s ease;
}

.project-link:hover img {
  filter: brightness(1.2);
}

.project-icon {
  float: left;
  padding: 0.5rem 0;
  transition: transform 0.3s ease;
}

.project-icon:hover {
  transform: scale(1.1);
}

.project-icon img {
  transition: filter 0.3s ease;
}

.project-icon:hover img {
  filter: brightness(1.1);
}

.project-link .github-icon {
  width: 24px;
  height: 24px;
}

.project-status {
  display: inline-block;
  border-radius: 20px;
  padding: 0.2rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: white;
  vertical-align: baseline;
  position: relative;
  top: -3px;
  margin-left: 0.5rem;
}

.project-status.maintenance {
  background-color: #f0ad4e;
}

.project-status.active {
  background-color: #5cb85c;
}

.project-status.broken {
  background-color: #d9534f;
}

a:hover {
  text-decoration: none;
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

.publications-list {
  max-width: 900px;
  margin: 0 auto;
}

.publication {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  line-height: 1.7;

  flex-direction: column;
  gap: 0.3rem;
}

.publication-author {
  color: var(--text-color);
}

.publication-date {
  font-weight: 500;
}

.publication-title {
  margin: 0.2rem 0;
  font-weight: 600;
}

.publication-title a {
  text-decoration: none;
}

.publication-title a:hover {
  color: var(--secondary-color);
}

.publication-venue {
  color: #636e72;
  font-style: italic;
}

.publication-link {
  float: right;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  text-decoration: none;
  transition: transform 0.3s ease;
  width: 40px;
  height: 40px;
}

.publication-link:hover {
  transform: scale(1.1);
}

.publication-link i {
  transition: filter 0.3s ease;
  color: var(--secondary-color);
  font-size: 1.5rem;
}

.publication-link:hover i {
  filter: brightness(1.2);
}

@media print {
    .nav-links { 
        display: none;
    }
    .nav {
        position: absolute;
        width: 100%;
    }
    .nav-social {
        position: absolute;
        right: 0.5rem;
        top: 0.5rem;
        display: block;
        z-index: 10;
    }
    .nav-icon-button {
        justify-content: left;
        padding-bottom: 0.25rem;
    }

    .github-icon,
    .email-icon {
      padding-right: 0.5rem;
    }
    
    .linkedin-icon {
        padding-right: 0.2rem;
    }
    .header {
        position: static;
        box-shadow: none;
    }
    
    .section {
        padding-top: 0;
    }
}

@media screen {
    .nav-url {
        display: none;
    }
}