@import url("https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0b1220;
  --panel: #0f172a;
  --muted: #94a3b8;
  --text: #e2e8f0;
  --brand: #6366f1;
  --brand-2: #22d3ee;
  --ring: rgba(99, 102, 241, 0.45);
  --card: #111827;
  --accent: #1f2937;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

body,
html {
  font-family: "Urbanist", sans-serif;
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  scrollbar-width: none;
  scroll-behavior: smooth;
}

/* Header & Navbar */
header {
  width: 100%;
  height: 60px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

nav {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

/* Logo & Title */
.title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.title .logo {
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 30%;
}

.title h1 {
  font-size: 1.2rem;
  color: var(--text);
}

/* Navigation Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li {
  display: inline-block;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: var(--brand-2);
}

.details {
  width: 100%;
  height: 400px;
  display: flex;
}

.details .box {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.name {
  width: 80%;
}

.name .info {
  width: 220px;
  display: flex;
  justify-content: center;
  border-radius: 18px;
  border: 1px solid #6366f1;
  background-color: #2c2c40;
  padding: 12px;
  font-size: 8px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}

.info h2 {
  font-size: 14px;
  font-weight: 400;
}

.name h1 {
  font-size: 30px;
  font-weight: 600;
}

.name h1 strong {
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.name p {
  color: #94a3b8;
  font-size: 18px;
}

.links {
  display: flex;
  gap: 18px;
  margin-top: 20px;
}

.links i {
  font-size: 28px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
  gap: 10px;
}

.links i:hover {
  transform: scale(1.2);
  opacity: 0.8;
}

.details .image {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image img {
  width: 300px;
  height: 300px;
  border: 20px solid #2c2c40;
  border-radius: 50px;
  box-shadow: 0px 0px 15px var(--brand);
}

/* About */
.about {
  width: 100%;
  height: max-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: auto;
  background-color: var(--panel);
}

.about h1 {
  font-size: 30px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-top: 20px;
}

.about p {
  font-size: 18px;
  color: #94a3b8;
  margin-bottom: 50px;
  padding: 50px;
}

.myinfo {
  width: 80%;
  margin-top: 20px;
}

/* Skills */
main .skills {
  width: 100%;
  height: max-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: auto;
}

.skills h1 {
  font-size: 30px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 50px;
}

.skill-tit {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.skills .progress {
  width: 80%;
  padding: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  justify-content: center;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--brand);
  box-shadow: 0px 0px 15px var(--brand);
  border-radius: 16px;
  margin: auto;
}

.progress .bar {
  display: flex;
  width: 70px;
  height: 70px;
  background-color: #2c2c40;
  border: 1px solid #22d3ee;
  margin-bottom: 8px;
  border-radius: 6px;
  box-shadow: 0px 0px 15px var(--brand);
}

.bar .logo {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  background-color: #ffff;
}

.logo img {
  width: 50px;
  height: 50px;
}

.skill-tit h3 {
  text-align: center;
  margin-bottom: 10px;
}

/* Projects */
.project {
  background: var(--panel);
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project h1 {
  font-size: 30px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  padding: 20px;
}

.list {
  width: 80%;
  padding: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  justify-items: center;
  margin: auto;
}

.cards {
  width: 300px;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-items: center;
  align-items: center;
  overflow: hidden;
  padding: 10px;
  background-color: var(--panel);
  border-radius: 20px;
  box-shadow: 0px 0px 15px var(--brand);
  margin-top: 20px;
}

.card_img {
  width: 300px;
  height: 150px;
}

.card_img img {
  width: 100%;
  height: 100%;
  margin-top: -10px;
}

#more_projects {
  width: 20%;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: 1px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  font-family: Urbanist, sans-serif;
  margin-bottom: 50px;
  cursor: pointer;
}

#more_projects:hover {
  opacity: 70%;
}

.textbox {
  width: 100%;
}

.textbox h2 {
  font-size: 20px;
  color: white;
  font-weight: 600;
  text-align: center;
  margin-top: 10px;
}

.textbox button {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: 1px;
  font-size: 18px;
  color: var(--text);
  font-weight: 500;
  font-family: Urbanist, sans-serif;
  margin-top: 10px;
}

.textbox button:hover {
  opacity: 70%;
  cursor: pointer;
}

/* Tags */
.group,
.group1,
.group2 {
  width: 80px;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--accent);
  border: 1px solid var(--brand);
  border-radius: 20px;
  font-size: 12px;
}

.group {
  margin: 15px 0px 0px 10px;
}

.group1 {
  margin: 15px 0px 0px 10px;
}

.group2 {
  margin-top: -10px;
}

.group i {
  font-size: 12px;
  margin-right: 10px;
}

.stack {
  display: flex;
}

/* Achievements */
.achievement {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.achievement h1 {
  font-size: 30px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-top: 20px;
}

.momentos {
  width: 88%;
  padding: 50px;
}

.box1 {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.ring {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 50%;
  border: 5px solid var(--accent);
}

.gotdetails h3 {
  font-size: 20px;
  color: var(--text);
}

.gotdetails h2 {
  font-size: 16px;
  font-weight: 500;
  margin-top: 10px;
}

.gotdetails p {
  color: var(--muted);
  margin-top: 10px;
  font-weight: 500;
}

/* Experience */
.prizes {
  width: 100%;
  height: max-content;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 30px;
  justify-items: center;
  margin: auto;
}

.one {
  width: 60%;
  height: 100px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  box-shadow: 0px 0px 15px var(--brand);
}

.one h1 {
  font-size: 24px;
  text-align: center;
  margin-top: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.one p {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
}

.experience {
  width: 100%;
  height: max-content;
  display: flex;
  flex-direction: column;
  background: var(--card);
}

.experience h2 {
  font-size: 30px;
  text-align: center;
  margin-top: 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Contact */
.learn {
  width: 100%;
  display: flex;
  justify-items: center;
  align-content: center;
  margin: auto;
}

.work {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.small_box {
  width: 100%;
  padding: 50px;
}

.small_box h1 {
  font-size: 24px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: left;
}

.small_box p {
  color: #94a3b8;
  margin-top: 10px;
}

.contact_details {
  width: 50%;
  padding: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  height: max-content;
}

.contact {
  width: 70%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--brand);
  border-radius: 8px;
  box-shadow: 0px 0px 15px var(--brand);
}

.contact h1 {
  font-size: 24px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  padding: 20px;
}

#contact-form {
  width: 80%;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

#contact-form input {
  width: 100%;
  height: 40px;
  background-color: var(--accent);
  border-radius: 8px;
  border: 1px solid var(--brand);
  font-family: "Urbanist", sans-serif;
  color: white;
  margin-bottom: 10px;
  outline: none;
  padding-left: 10px;
}

#contact-form textarea {
  width: 100%;
  height: 80px;
  background-color: var(--accent);
  border-radius: 8px;
  border: 1px solid var(--brand);
  font-family: "Urbanist", sans-serif;
  color: white;
  margin-bottom: 10px;
  outline: none;
  padding: 10px 0px 0px 10px;
}

#contact-form button {
  width: 40%;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: 1px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  font-family: Urbanist, sans-serif;
  margin-top: 10px;
  cursor: pointer;
}

#contact-form button:hover {
  opacity: 80%;
  color: white;
}
/* Popup Background */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

/* Show popup */
.popup.show {
  opacity: 1;
  visibility: visible;
}

/* Popup Box */
.popup-box {
  background: var(--panel);
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 0 25px var(--brand);
  transform: scale(0.7);
  animation: popupScale 0.4s ease forwards;
}

/* Check icon */
.checkmark {
  width: 60px;
  height: 60px;
  margin: auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

/* Animation */
@keyframes popupScale {
  to {
    transform: scale(1);
  }
}

/* Footer */
footer {
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid var(--muted);
}

footer h2 {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}

/* Responsive */
@media screen and (max-width: 750px) {
  .nav-links {
    display: none;
  }

  header {
    height: 50px;
    padding: 0 1rem;
  }

  .title h1 {
    font-size: 14px;
  }

  .logo {
    width: 100%;
    height: 100%;
  }

  .details {
    flex-direction: column-reverse;
    height: auto;
    padding: 20px 0;
  }

  .details .box {
    width: 100%;
    text-align: center;
  }

  .image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
  }

  .name {
    width: 90%;
  }

  .info {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    height: 20px;
    margin-top: 20px;
  }

  .info h2 {
    font-size: 12px;
  }

  .name h1 {
    font-size: 24px;
  }

  .name p {
    font-size: 12px;
  }

  .links {
    justify-content: center;
  }

  .links i {
    font-size: 20px;
  }

  .details .image img {
    width: 120px;
    height: 120px;
    border-width: 10px;
    border-radius: 30px;
  }

  .skills h1 {
    font-size: 24px;
    margin-top: 40px;
  }
  .skills .progress {
    justify-content: center;
  }
  .progress .bar {
    width: 100%;
    height: 45px;
    margin: 10px auto;
  }

  .logo img {
    width: 28px;
    height: 28px;
  }

  .about h1 {
    font-size: 24px;
  }

  .about p {
    font-size: 12px;
    padding: 0px;
    text-align: center;
  }

  .skill-tit {
    width: 50px;
    margin: auto;
  }

  .list {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .project h1 {
    font-size: 24px;
  }

  .cards {
    width: 250px;
    height: 300px;
  }

  #more_projects {
    width: 40%;
  }

  .achievement h1 {
    font-size: 24px;
  }

  .momentos {
    padding: 20px;
  }

  .gotdetails h3 {
    font-size: 18px;
  }

  .gotdetails h2 {
    font-size: 16px;
  }

  .gotdetails p {
    font-size: 12px;
  }

  .ring {
    width: 20px;
    height: 16px;
  }

  .one h1 {
    font-size: 20px;
  }

  .experience h2 {
    font-size: 24px;
  }

  .learn {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 50px;
  }

  .work {
    width: 100%;
  }

  .small_box {
    width: 100%;
    padding: 30px;
  }

  .small_box h1 {
    font-size: 24px;
  }

  .small_box p {
    font-size: 12px;
  }

  .contact_details {
    width: 100%;
  }

  .contact {
    width: 100%;
    padding: 0;
  }

  #contact-form {
    width: 100%;
  }

  #contact-form input {
    font-size: 14px;
    height: 30px;
  }

  #contact-form button {
    width: 100%;
    font-size: 14px;
  }

  footer h2 {
    font-size: 12px;
  }
}
