:root {
  --bg-color: #121212;
  --text-color: #ffffff;
  --accent-color: #6c5ce7;
  --secondary-color: #a29bfe;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

#logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.3s ease;
}

#logo:hover {
  transform: scale(1.1);
}

#logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#verse {
  max-width: 300px;
  background-color: rgba(40, 40, 43, 0.8);
  padding: 15px;
  border-radius: 15px;
  font-size: 12px;
  transition: transform 0.3s ease;
}

#verse:hover {
  transform: translateY(-5px);
}

#info {
  text-align: center;
  margin-bottom: 40px;
}

#info h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}

#info p {
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 0.2s forwards;
}

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

#projects-button {
  background-color: var(--accent-color);
  color: var(--text-color);
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#projects-button:hover {
  background-color: var(--secondary-color);
  transform: scale(1.05);
}

#popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background-color: rgba(18, 18, 18, 0.95);
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#popup.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

#popup h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.project-item {
  margin-bottom: 20px;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  cursor: pointer;
}

.project-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.1);
}

.project-item h3 {
  color: var(--secondary-color);
  margin-bottom: 5px;
}

#projectback {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  font-size: 1.5rem;
}

footer {
  text-align: center;
  padding: 20px 0;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1000px;
  }

  #info h1 {
    font-size: 3rem;
  }

  #verse {
    max-width: 400px;
    font-size: 14px;
  }

  /* Popup adjustments for large screens */
  #popup {
    max-width: 700px;
  }

  #popup h2 {
    font-size: 2rem;
  }
}

/* Medium screens (768px to 1199px) */
@media (max-width: 1199px) {
  .container {
    max-width: 90%;
  }

  /* Popup adjustments for medium screens */
  #popup {
    max-width: 600px;
  }

  #popup h2 {
    font-size: 1.8rem;
  }
}

/* Small screens (576px to 767px) */
@media (max-width: 767px) {
  header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  #verse {
    max-width: 100%;
    margin-top: 20px;
  }

  #info h1 {
    font-size: 2rem;
  }

  #info p {
    font-size: 0.9rem;
    padding: 0 15px;
  }

  /* Popup adjustments for small screens */
  #popup {
    width: 90%;
    max-width: 500px;
  }

  #popup h2 {
    font-size: 1.5rem;
  }

  .project-item h3 {
    font-size: 1.2rem;
  }
}

/* Extra small screens (up to 575px) */
@media (max-width: 575px) {
  #logo {
    width: 60px;
    height: 60px;
  }

  #info h1 {
    font-size: 1.75rem;
  }

  #verse {
    font-size: 10px;
    padding: 12px;
  }

  /* Popup adjustments for extra small screens */
  #popup {
    width: 95%;
  }

  #popup h2 {
    font-size: 1.3rem;
  }

  .project-item h3 {
    font-size: 1.1rem;
  }

  footer {
    font-size: 0.7rem;
  }
}

/* Very small screens (320px and below) */
@media (max-width: 320px) {
  #info h1 {
    font-size: 1.5rem;
  }

  #verse {
    font-size: 9px;
    padding: 10px;
  }

  .container {
    padding: 15px;
  }

  /* Popup adjustments for very small screens */
  #popup h2 {
    font-size: 1.2rem;
  }

  .project-item h3 {
    font-size: 1rem;
  }
}