/**************************/
/* HEADER */
/**************************/

.header {
  background-color: rgba(26, 26, 46, 0.95);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 6rem;
  border-bottom: 0.2px solid rgba(26, 26, 46, 0.95);
  position: fixed;
  top: 0; /* lock at the very top */
  left: 0; /* align to the left edge */
  width: 100%; /* span across the screen */
  z-index: 1000; /* make sure it stays above other elements */
}

/**************************/
/* NAVIGATION */
/**************************/

.main-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 5.2rem;
}

.main-nav-link:link,
.main-nav-link:visited {
  position: relative; /* fix added */
  display: inline-block;
  text-decoration: none;
  color: #e8fffc;
  font-weight: 500;
  font-size: 1.6rem;
  transition: all 0.3s;
  z-index: 1; /* ensure text is above the underline */
}

.main-nav-link:hover,
.main-nav-link:active {
  color: #3b82f6;
  text-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
}

.main-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0; /* align exactly with the bottom of text */
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transform: scaleX(0); /* start hidden */
  transform-origin: center; /* expand from center */
  transition: transform 0.3s ease;
  z-index: -1;
}

.main-nav-link:hover::after {
  transform: scaleX(1);
}

.main-nav-link:hover {
  color: #3b82f6;
}

.btn-projects,
.btn-projects:link,
.btn-projects:visited {
  margin-top: 1.2rem;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  font-size: 1.6rem;
  border: 2px solid #3b82f6; /* optional, to see the border */
  background: linear-gradient(90deg, #8b5cf6, #3b82f6);
  color: white; /* text color */
  transition: all 0.3s;
  text-align: center;
  line-height: 1.4;
  font-family: inherit;
}

.btn-projects:hover,
.btn-projects:focus,
.btn-projects:active {
  transform: translateY(2.2px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

/**************************/
/* HOME SECTION */
/**************************/

.home-section {
  background-color: rgba(21, 21, 37, 1);
  padding: 8rem 0 4rem 0;
}

.home {
  max-width: 80rem;
  padding: 0 3.2rem;
  margin: 0 auto;
  display: flex;
}

.text-box {
  text-align: center;
}

.home-heading-primary {
  font-size: 6rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 1.4px;
  background: linear-gradient(90deg, #7a45f4, #4483e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 8px rgba(59, 130, 246, 0.7);
  margin-bottom: 2.2rem;
  margin-top: 2rem;
}

.home-heading-secondary {
  font-size: 2rem;
  font-weight: 600;
  background: linear-gradient(90deg, #8b5cf6, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 4px rgba(59, 130, 246, 0.7);
  margin-bottom: 1.6rem;
}

.home-description {
  margin-bottom: 1.2rem;
  font-size: 2rem;
  line-height: 1.6;
  font-weight: 400;
  color: #e8fffc;
  text-shadow: 0 0 2px rgba(59, 130, 246, 0.6);
}

.home-heading-primary-me {
  font-size: 4rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 1.4px;
  background: linear-gradient(90deg, #8b5cf6, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 12px rgba(59, 130, 246, 0.7);
  margin-bottom: 1.6rem;
}

/**************************/
/* ABOUT ME SECTION */
/**************************/

.about-me-section {
  align-self: center;
  background-color: rgba(26, 26, 46, 0.95);
  margin: 1.2rem auto;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 80rem;
}

.about-me {
  padding: 0 3.2rem;
  margin: 0 auto;
}

.about-me-text {
  text-align: left;
}

.about-me-text {
  font-size: 1.6rem;
  line-height: 1.6;
  font-weight: 400;
  color: #e8fffc;
  text-shadow: 0 0 2px rgba(59, 130, 246, 0.6);
}

/**************************/
/* SKILLS SECTION */
/**************************/

.skills-section {
  width: 100%;
  padding: 6rem 0;
}

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

.skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-content: center;
}

.skill {
  /* margin: 0 auto;  centers the skill inside the grid cell */
  /* max-width: 220px;  keeps the skill box compact */
  margin: 0; /* remove auto-centering */
  width: 100%; /* fill the column */
  max-width: none; /* let grid define the width */
  font-size: 1.2rem;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* subtle shadow */
  transition: transform 0.3s, box-shadow 0.3s; /* smooth hover effect */
}

.heading-tree {
  margin-top: 12px;
  color: #e8fffc;
}

i {
  font-size: 60px;
}

.skill-text {
  display: block;
  font-size: 1.4rem;
  margin-top: 0.8rem;
  color: #e8fffc;
  text-align: center;
  max-width: none; /* limit the width so text wraps */
  margin-left: auto; /* center inside skill block */
  margin-right: auto;
}

.skill:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.white {
  color: white;
}

/**************************/
/* PROJECTS SECTION */
/**************************/

.projects-section {
  padding: 1rem 0 4rem 0;
  align-self: center;
  background-color: rgba(26, 26, 46, 0.95);
}

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

.projects {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.project {
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.project:hover {
  transform: translateY(-5px);
}

.see-more {
  display: inline-block;
  margin: 1rem auto 0 auto;
  padding: 0.8rem 1.6rem 0.8rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(90deg, #7a45f4, #8b5cf6, #3b82f6);
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.see-more:hover {
  transform: translateY(-1.5px);
  background: linear-gradient(90deg, #8b5cf6, #7a45f4, #3b82f6);
}

.see-more-wrapper {
  display: flex;
  justify-content: flex-end; /* pushes button to the right */
  max-width: none; /* allow full page width */
  margin: 0; /* remove auto centering */
  padding: 0 2rem; /* optional: keep page padding */
}

.project-heading {
  margin-top: 1.2rem;
  font-size: 1.6rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: 1.4px;
  line-height: 1.6;
  font-weight: 600;
  color: #e8fffc;
  text-transform: uppercase;
  text-shadow: 0 0 2px rgba(59, 130, 246, 0.6);
}

.project-text {
  display: block;
  font-size: 1.2rem; /* slightly smaller than heading */
  line-height: 1.6; /* good readability */
  text-align: left; /* matches heading */
  color: #cde8e4; /* softer than heading for hierarchy */
  max-width: 300px; /* keeps text blocks compact */
  margin: 0.5rem 0 1rem 0; /* spacing above and below */
}

.size-fit {
  font-size: 1.4rem;
}

.project-icon {
  font-size: 4.4rem;
  color: #cde8e4;
}

.project-buttons {
  display: flex;
  gap: 0.5rem; /* space between buttons */
  margin-bottom: 0.5rem; /* space below buttons */
  margin-top: auto;
}

.src-project {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  padding: 0.4rem 0.8rem; /* smaller padding */
  border-radius: 25px; /* smaller rounded corners */
  font-size: 0.9rem; /* slightly smaller text */
  border: 2px solid #3b82f6;
  background: linear-gradient(90deg, #8b5cf6, #3b82f6);
  color: white;
  transition: all 0.3s;
  text-align: center;
  line-height: 1.2;
  font-family: inherit;
}

.src-project:hover {
  text-decoration: underline;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/**************************/
/* CONTACT SECTION */
/**************************/

.contact-me-section {
  background-color: rgba(21, 21, 37, 1);
  padding: 4rem 0;
}

.contact-me-container {
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  background: #2b2b40; /* slightly lighter than section for contrast */
  border-radius: 12px; /* rounded corners for card effect */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); /* subtle shadow */
}

.contact-me-heading {
  margin-bottom: 1.2rem;
  margin-top: 0.8rem;
  font-size: 2.6rem;
  text-align: center;
  letter-spacing: 1.4px;
  line-height: 1.6;
  font-weight: 800;
  color: #e8fffc;
  background: linear-gradient(90deg, #7a45f4, #4483e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  text-shadow: 0 0 2px rgba(59, 130, 246, 0.6);
}

.contact-options a {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0.5rem;
  text-decoration: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  transition: background 0.3s ease;
}

.contact-options a i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

/* Email button */
.contact-options a.email-link {
  background: #1d4ed8;
}
.contact-options a.email-link:hover {
  background: #2563eb;
}

/* WhatsApp button */
.contact-options a.whatsapp-link {
  background: #25d366;
}
.contact-options a.whatsapp-link:hover {
  background: #1ebe5c;
}

/* LinkedIn button */
.contact-options a.linkedin-link {
  background: #0a66c2;
}
.contact-options a.linkedin-link:hover {
  background: #004182;
}

/* Hamburger Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
}

/* Mobile Nav Hidden by Default */
.main-nav {
  transition: max-height 0.3s ease;
  overflow: hidden;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    max-height: 0; /* hidden */
  }

  .main-nav.open {
    max-height: 500px; /* enough to show menu */
  }

  .main-nav-list {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 1rem 0;
  }
}
