:root {
  --background_color: #05001a;
  --primary_color: cyan;
  --secondary_color: #3a3a4a;
  --text_color: white;
  --address_bar: darkgreen;
  --proj_color: red;
}

/* ===== BODY ===== */
body {
  margin: 0;
  background-color: var(--background_color);
  color: var(--text_color);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===== HEADING ===== */
h1 {
  text-align: center;
  margin-top: 40px;
  font-size: clamp(40px, 8vw, 80px); /* 🔥 responsive */
}

/* ===== NAVBAR ===== */
.nav-list {
  display: flex;
  justify-content: center;
  align-items: center;

  list-style: none;
  gap: 15px;

  margin: 40px auto;
  padding: 10px 20px;

  width: fit-content;
  max-width: 95%;

  background: var(--secondary_color);
  border-radius: 50px;
}

.nav-list li {
  flex: none;
}

.nav-list a {
  color: var(--primary_color);
  text-decoration: none;
  font-size: 18px;
  padding: 8px 16px;
  border-radius: 50px;
  white-space: nowrap;
}

.nav-list a:hover {
  color: white;
  background-color: var(--address_bar);
}

.nav-list a.now {
  background-color: var(--address_bar);
  color: white;
}

/* ===== ANIMATIONS ===== */
@keyframes popUpLeft {
  0% { opacity: 0; transform: translateX(-60px) scale(0.85); }
  60% { transform: translateX(8px) scale(1.03); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes popUpRight {
  0% { opacity: 0; transform: translateX(60px) scale(0.85); }
  60% { transform: translateX(-8px) scale(1.03); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* ===== ABOUT ===== */
.about {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 100px 50px;
}

.about img {
  width: 200px;
  border-radius: 1000px;
  animation: popUpRight 0.8s ease both;
}

.about img:hover {
  transform: scale(1.1);
  transition: 0.3s;
}

.about p {
  font-size: 28px;
  max-width: 500px;
  animation: popUpLeft 0.8s ease both;
}

/* ===== PROJECTS ===== */
.projects {
  text-align: center;
  padding: 80px 20px;
}

.projects h2 {
  font-size: clamp(30px, 5vw, 50px);
  margin-bottom: 40px;
}

.project-grid {
  display: grid;
  grid-template-rows: repeat(3, 1fr); /* 🔥 fixed */
  gap: 30px;

  list-style: none;
  padding: 0;
  max-width: 1000px;
  margin: 0 auto;
}

.project-grid article.text {
  background: var(--secondary_color);
  padding: 25px;
  border-radius: 12px;
  text-align: left;
  font-size: 20px;
  transition: 0.3s;
}

.project-grid article.text:hover {
  transform: scale(1.05);
}

article.text .temp {
  text-align: center;
  font-size: 24px;
  padding-bottom: 15px;
  color: var(--proj_color);
}

/* ===== CONTACT ===== */
.contact {
  text-align: center;
  padding: 80px 20px;
}

.contact h2 {
  font-size: clamp(30px, 5vw, 50px);
  margin-bottom: 40px;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 🔥 fixed */
  gap: 30px;

  list-style: none;
  padding: 0;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-list li {
  background: var(--secondary_color);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  font-size: 20px;
  transition: 0.3s;
}

.contact-list li:hover {
  transform: scale(1.05);
}

/* ===== SOCIALS ===== */
.socials {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.socials img {
  width: 60px;
  transition: 0.3s;
}

.socials img:hover {
  transform: scale(1.2);
}

/* ========================================= */
/* 🔥🔥🔥 MOBILE RESPONSIVENESS 🔥🔥🔥 */
/* ========================================= */
@media (max-width: 768px) {

  /* NAVBAR */
  .nav-list {
    flex-wrap: nowrap;
    overflow-x: auto;         /* 🔥 scroll instead of break */
    justify-content: flex-start;
    gap: 10px;
  }

  .nav-list a {
    font-size: 16px;
    padding: 8px 12px;
  }

  /* ABOUT */
  .about {
    flex-direction: column;
    text-align: center;
    padding: 50px 20px;
    gap: 20px;
  }

  .about p {
    font-size: 18px;
    max-width: 95%;
  }

  .about img {
    width: 150px;
  }

  /* PROJECTS */
  .project-grid {
    grid-template-columns: 1fr; /* stack */
  }

  /* CONTACT */
  .contact-list {
    grid-template-columns: 1fr;
  }
}