/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: url("../images/cursor/water-molecule.svg") 12 10, auto;
  cursor: -webkit-image-set(url("../images/cursor/water-molecule2x.svg") 2x) 12 10, auto;
}

html {
  scroll-behavior: smooth;
  max-width: 100vw;
  overflow-x: hidden;
}

/* General Layout */
body {
  background: #0e0e10;
  color: #fff;
  font-family: "LXGW WenKai Mono TC", monospace;
  font-weight: 400;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

/* Variables for consistent colors */
:root {
  --accent-pink: #FF6EC7;
  --accent-teal: #00FFC6;
  --bg-dark: #0e0e10;
  --bg-section: #1a1a1d;
  --text-primary: #ffffff;
  --text-secondary: #ccc;
}

/* ===== NAVIGATION ===== */
.navbar {
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 20px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-menu li {
  margin: 0 15px;
}

.navbar-menu a {
  text-decoration: none;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: bold;
  transition: color 0.3s ease;
}

.navbar-menu a:hover {
  color: var(--accent-teal);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(26, 26, 29, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  min-width: 200px;
  padding: 10px 0;
  list-style: none;
  z-index: 1001;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 8px 12px;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: rgba(255, 110, 199, 0.2);
  color: var(--accent-pink);
  
}

.dropdown-toggle::after {
  content: " ▼";
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-left: 0px;
}

.dropdown-toggle a:hover {
  color: var(--accent-teal);
}

.connections {
  display: flex;
  gap: 15px;
}

.connection-link {
  text-decoration: none;
}

.connection-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.connection-icon:hover {
  transform: scale(1.2);
  opacity: 0.8;
}

/* Hamburger Menu (Mobile Only) */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  padding: 10px;
  z-index: 1001;
  position: relative;
  cursor: pointer;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 3px 0;
  transition: 0.3s;
}

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

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

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

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scroll-progress.visible {
  opacity: 1;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-teal);
  transition: width 0.1s ease;
}

/* ===== HERO SECTION ===== */
.hero {
  text-align: center;
  position: relative;
  padding: 50px 20px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-content {
  display: inline-block;
  text-align: center;
  position: relative;
}

.hero-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 30%;
  border: 3px solid var(--accent-teal);
  margin-bottom: 20px;
}

.greeting {
  font-size: 3rem;
  color: var(--accent-pink);
}

.name {
  color: var(--accent-teal);
}

.subtitle {
  font-size: 1.5em;
  font-style: italic;
  opacity: 0.8;
  max-width: 80%;
  width: 100%;
  margin: 1.0em auto;
  text-align: center;
}

/* Animated Blob Background */
.blob-bg {
  position: absolute;
  top: -200px;
  left: -150px;
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-teal) 100%);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.7;
  animation: blobMove 20s infinite alternate ease-in-out;
  z-index: 0;
  max-width: calc(100vw + 150px);
}

@keyframes blobMove {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 50px) scale(1.1); }
  100% { transform: translate(-25px, 80px) scale(1.05); }
}

/* ===== SCROLL ARROWS ===== */
.scroll-arrows {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 10;
  opacity: 0.5;
}

.scroll-arrow {
  font-size: 2rem;
  color: #fff;
  text-decoration: none;
}

.scroll-arrow svg {
  width: 40px;
  height: 40px;
  fill: #fff;
  transition: fill 0.3s ease;
}

.scroll-arrow:hover svg {
  fill: var(--accent-pink);
}

/* ===== SECTIONS ===== */
.about-me, .experiences, .education, .footer {
  width: 100%;
  padding: 50px 10%;
  background-color: var(--bg-section);
  color: #fff;
  text-align: left;
}

.about-me {
  text-align: center;
  margin-top: 10%;
}

.about-me h2, .experiences-content h2, .education-content h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--accent-pink);
}

.about-me p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: left;
}

/* Links */
.about-me a, .publication-highlight a {
  color: var(--accent-teal);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.about-me a:hover, .publication-highlight a:hover {
  color: var(--accent-pink);
}

/* ===== EXPERIENCE ITEMS ===== */
.experience, .education-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.company-logo, .education-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
}

.experience-details h3, .education-item h3 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--accent-teal);
}

.experience-details h4, .experience-details h5, 
.education-item h4, .education-gpa {
  font-size: 1rem;
  margin: 5px 0;
  color: var(--text-secondary);
}

.education-degree {
  font-size: 1.2rem;
  color: #fff;
  margin: 5px 0;
}

.experience-details ul {
  list-style-type: disc;
  padding-left: 20px;
}

.experience-details ul li {
  margin-bottom: 10px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Publication Highlight */
.publication-highlight {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px 15px;
  border-left: 4px solid var(--accent-pink);
  font-style: italic;
  color: #fff;
  margin: 10px 0;
  line-height: 1.6;
}

/* Footer */
.footer {
  text-align: center;
}

.footer-content p {
  margin: 5px 0;
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    order: 1;
  }

  .navbar {
    padding: 8px 15px;
    position: relative;
    z-index: 1002;
  }

  .connections {
    order: 2;
    gap: 12px;
  }

  .connection-icon {
    width: 25px;
    height: 25px;
  }

  .navbar-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100vh;
    background: rgba(26, 26, 29, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 20px 20px;
    transition: left 0.3s ease;
    z-index: 1000;
  }

  .navbar-menu.active {
    left: 0;
  }

  .navbar-menu li {
    margin: 15px 0;
    width: 100%;
  }

  .navbar-menu a {
    font-size: 1.1rem;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Mobile section padding */
  .about-me, .experiences, .education, .footer, .hero {
    padding: 30px 15px;
  }

  .about-me p {
    padding: 0;
    margin: 5%;
  }

  .experiences-content, .education-content {
    margin: 0 5%; /* Add margins to content containers */
  }

  /* Mobile blob */
  .blob-bg {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
  }
}

@media (max-width: 480px) {
  .navbar-menu {
    width: 200px;
    padding: 70px 15px 15px;
  }

  .about-me, .experiences, .education, .footer, .hero {
    padding: 20px 10px;
  }

  .about-me p {
    padding: 0;
    margin: 3%;
  }

  .experiences-content, .education-content {
    margin: 0 3%; /* Add margins to content containers */
  }
}