* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

body {
  background: linear-gradient(135deg, #1e3a8a, #4b5563, #854d0e);
  background-size: 200% 200%;
  animation: gradientShift 20s ease infinite;
  color: #e5e5e5;
  line-height: 1.6;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #1a1a1a;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 20px;
  z-index: 1000;
  border-bottom: 1px solid #d4af37;
  height: 70px;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-link {
  color: #e5e5e5;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #d4af37;
}

.social-icons {
  position: absolute;
  right: 20px;
  display: flex;
  gap: 15px;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #d4af37;
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
}

.nav-icon:hover {
  background-color: #b8972e;
  transform: translateY(-2px);
}

.icon {
  width: 20px;
  height: 20px;
}

.landing {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  color: #e5e5e5;
  margin-top: 70px;
}

.about {
  min-height: calc(100vh - 70px);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  color: #e5e5e5;
  margin-top: 70px;
}

.landing h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
}

.landing p {
  font-size: 1.5rem;
  max-width: 400px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeIn 1s ease-in 0.3s forwards;
}

.content-button {
  padding: 12px 24px;
  font-size: 1.1rem;
  color: #1a1a1a;
  background-color: #d4af37;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  opacity: 0;
  animation: fadeIn 1s ease-in 0.6s forwards;
}

.content-button:hover {
  background-color: #b8972e;
  transform: translateY(-2px);
}

.about-content {
  display: flex;
  flex-direction: row;
  gap: 40px;
  max-width: 1000px;
  justify-content: center;
  align-items: flex-start;
}

.about-text {
  flex: 1;
  text-align: left;
}

.about h3 {
  font-size: 2rem;
  margin-top: 20px;
  margin-bottom: 1rem;
}

.about p {
  font-size: 1.5rem;
  max-width: 400px;
  margin-bottom: 2rem;
}

.my-skills {
  flex: 1;
  margin-top: 20px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  max-width: 400px;
}

.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #e5e5e5;
  transition: transform 0.2s;
}

.skill:hover {
  transform: translateY(-5px);
}

.skill-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
  border-radius: 10px;
}

.skill p {
  font-size: 1rem;
  margin: 0;
}

.projects {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  color: #e5e5e5;
  margin-top: 70px;
}

.projects h3 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 800px;
  width: 100%;
}

.project {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #e5e5e5;
  padding: 20px;
  background-color: rgba(26, 26, 26, 0.8);
  border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.3s;
  min-height: 500px;
  justify-content: space-between;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.project-image {
  width: 100%;
  max-width: 600px;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.project h4 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.project p {
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 15px;
  flex-grow: 1;
}

.tech-stack {
  font-size: 1rem;
  color: #d4af37;
  margin-bottom: 15px;
}

.project-button {
  padding: 10px 20px;
  font-size: 1.1rem;
  color: #1a1a1a;
  background-color: #d4af37;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
}

.project-button:hover {
  background-color: #b8972e;
  transform: translateY(-2px);
}

.about:target,
.projects:target {
  padding-top: 90px;
  margin-top: 0;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

#typed-name::after {
  content: "|";
  animation: blink 0.7s infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .navbar {
    display: none;
  }

  .landing, .about, .projects {
    margin-top: 0;
    padding: 20px;
  }

  .landing h1, .about h3, .projects h3 {
    font-size: 2rem;
  }

  .landing p, .about p {
    font-size: 1.1rem;
    max-width: 90%;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 90%;
  }

  .about-text {
    text-align: center;
  }

  .my-skills {
    margin-top: 20px;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 100%;
  }

  .skill-icon {
    width: 50px;
    height: 50px;
  }

  .skill p {
    font-size: 0.9rem;
  }

  .projects-grid {
    gap: 30px;
    max-width: 100%;
  }

  .project {
    min-height: 400px;
    padding: 15px;
  }

  .project-image {
    max-width: 100%;
    height: 200px;
  }

  .project h4 {
    font-size: 1.4rem;
  }

  .project p {
    font-size: 1rem;
    max-width: 100%;
  }

  .tech-stack {
    font-size: 0.9rem;
  }

  .project-button {
    padding: 8px 16px;
    font-size: 1rem;
  }
}
