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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background: #1a252f;
  color: white;
  transition: background-color 0.3s, color 0.3s;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #2c3e50;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #3498db;
}

.nav-links a.active {
  border-bottom: 2px solid #3498db;
}

#theme-toggle {
  background: #3498db;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s;
}

#theme-toggle:hover {
  background: #2980b9;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background:很有意思 white;
  transition: all 0.3s;
}

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

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

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

section {
  padding: 4rem 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

#home .home-content {
  display: flex;
  flex-direction: column-reverse;
  gap: 2.5rem;
  padding: 5rem 0;
  justify-content: center;
  align-items: center;
}

#home .text-content {
  text-align: center;
  flex: 1;
  max-width: 32rem;
}

#home .typing {
  font-size: 2.25rem; /* Tailwind text-4xl */
  font-weight: 700; /* Tailwind font-bold */
  font-family: 'Georgia', serif; /* WPHunter serif */
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 1.5rem;
  white-space: nowrap; /* Prevent line break */
}

#home .cursor {
  display: inline-block;
  width: 3px;
  height: 2rem;
  background: white;
  margin-left: 0.25rem;
}

#home .cursor.blink {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

#home .description {
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
}

#home .logo-image {
  width: 6rem;
  height: 6rem;
  margin-left: auto;
  margin-right: auto;
}

#projects, #team {
  text-align: center;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  background: #2c3e50;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s;
}

.filter-btn.active {
  background: #3498db;
}

.filter-btn:hover {
  background: #3498db;
}

.project-grid, .team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.project-card, .team-card {
  background: #2c3e50;
  padding: 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.project-card:hover, .team-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.team-card img {
  width: 100%;
  max-width: 150px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

#contact {
  text-align: center;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

#contact-form input,
#contact-form textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #fff;
  color: #333;
}

#contact-form button {
  padding: 0.5rem;
  background: #3498db;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
}

#contact-form button:hover {
  background: #2980b9;
}

footer {
  background: #2c3e50;
  text-align: center;
  padding: 1rem;
  color: white;
}

.light-theme {
  background: #fff;
  color: #333;
}

.light-theme .navbar {
  background: #ecf0f1;
}

.light-theme .nav-links a {
  color: #333;
}

.light-theme .project-card,
.light-theme .team-card {
  background: #ecf0f1;
}

.light-theme #home,
.light-theme #contact {
  background: #f4f4f4;
}

.light-theme #home .cursor {
  background: #333;
}

@media (min-width: 768px) {
  #home .home-content {
    flex-direction: row;
    gap: 3rem; /* Reduced gap for better balance */
    justify-content: center; /* Center content */
    align-items: flex-start;
  }

  #home .text-content {
    text-align: left;
  }

  #home .logo-image {
    width: 9rem;
    height: 9rem;
    margin-left: 1rem; /* Adjusted for balance */
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #2c3e50;
    padding: 1rem;
  }

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

  .hamburger {
    display: flex;
  }

  .about-content {
    flex-direction: row;
    text-align: left;
  }
}
.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 1rem;
}
