* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  text-decoration: none;
  scroll-behavior: smooth;
  list-style: none;
}

section {
  min-height: 100vh;
  padding: 10rem 12% 5rem 12%;
  /* top padding higher for fixed header */
  width: 100%;
  position: relative;
}

/*******HOME***************/

.home-content {
  margin: 0;
  flex: 1 1 400px;
  margin-top: 6rem;
  /* pushes text down from navbar */
}


.home-container {
  display: flex;
  flex-wrap: wrap;
  /* allows stacking on smaller screens */
  justify-content: space-between;
}


.home-subtitle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  margin-left: 30px;
}

.home-subtitle span {
  font-size: 1.5rem;
  font-family: 'Caveat', sans-serif;
  color: #009dff;
}

.first-name {
  font-family: 'Caveat', sans-serif;
  color: #009dff;
  font-size: 8rem;
}

.last-name {
  font-family: 'Caveat', cursive;
  color: white;
  font-weight: 600;
  font-size: 6.0rem;
}

.home-title {
  color: white;
  font-size: 4rem;
  font-weight: 400;
  -webkit-text-stroke: 2px hsl(0, 0%, 0%);
  text-shadow: 4px 4px rgba(0, 0, 0, 0.5);
}

.home-banner {
  position: absolute;
  right: 0%;
  top: 70%;
  transform: translateY(-50%);
  max-width: 650px;
}

.home-profile {
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

.bio {
  margin-left: 28px;
}

/********* TEXT ANIMATION *******/
.css-typing p {
  border-right: .15em solid;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  background: inherit;
  background-clip: text;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
}

.css-typing {
  margin-top: 1rem;
  margin-left: 25px;
}

.css-typing p {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  border-right: .15em solid;
}

.css-typing p:nth-child(1) {
  width: 36ch;
  animation: type1 3.6s steps(36, end) forwards;
  background: linear-gradient(to right, rgb(255, 0, 255), rgb(0, 157, 255));
  background-clip: text;
  color: transparent;
  font-size: 1.5rem;
}

@keyframes type1 {
  0% {
    width: 0;
  }

  99.9% {
    border-right: .15em solid;
  }

  100% {
    border: none;
  }
}

@keyframes type2 {
  0% {
    width: 0;
    opacity: 1;
  }

  99.9% {
    border-right: .15em solid;
  }

  100% {
    border: none;
    opacity: 1;
  }
}

/******* SOCIAL BUTTONS*********/
.socials {
  display: flex;
  gap: 1rem;
  background: transparent;
  padding: 0;
  margin: 0;
}

/******* BACKGROUND ******/
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

/********** NAVBAR **********/
header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 3rem;
  z-index: 1000;
}

.logo {
  color: white;
  font-size: 1.3rem;
  font-weight: 420;
  transition: 0.3s ease-in-out;
  white-space: nowrap;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
}

li a {
  position: relative;
  color: white;
  font-weight: 300;
  overflow: hidden;
}

li a::before {
  position: absolute;
  content: '';
  width: 0;
  left: 0;
  height: 5px;
  bottom: 0;
  border-radius: 1rem;
  transition: 0.3s ease-in-out;
  background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
}

li a:hover::before {
  width: 100%;
}

.visit-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 3rem;
  border: none;
  font-weight: 500;
  font-size: 1rem;
  color: white;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.3s ease-in-out;
  background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
  text-decoration: none;
  z-index: 2;
}

.visit-btn:hover {
  background: linear-gradient(to right, rgb(255, 0, 255), rgb(0, 157, 255));
  transform: scale(1.03);
}

#menu-icon {
  font-size: 2rem;
  display: none;
}

/********** SERVICES ***********/
.section-services {
  text-align: center;
  font-size: 4rem;
  font-weight: 600;
}

.services-title {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  color: #ff00ff;
  margin-top: 5px;
  margin-bottom: 80px;

}

.technical-services {
  font-family: 'Caveat', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: black;
}

.services-info {
  display: flex;


  gap: 5rem;
}

/*************** SERVICES GRID ************/
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* your services cards */
  gap: 2rem;
}

.grid-card {
  border: 1px solid black;
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  /* less vertical, more horizontal */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  cursor: pointer;
  transition: 0.2s ease-in-out;
  background-color: white;
  box-shadow: 0 0 15px #ff00ff66;
}


.grid-card:hover {
  transform: scale(1.02);
  background-color: transparent;
}

.grid-card i {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.grid-card span {
  font-size: 1.5rem;
  font-weight: 500;
  background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
  background-clip: text;
  color: transparent;
}

/*******DIVIDER*********/
.divider {
  border: none;
  border-top: 1px solid #9600d73e;
  width: 40%;
  margin: 2rem auto;
}

/***************SKILLS*****************/
.section-skills {
  text-align: center;
  font-size: 4rem;
  font-weight: 600;
}

.skills-title {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  color: #ff00ff;
  margin-top: 5px;
  margin-bottom: 80px;
}

.technical-skills {
  text-align: center;
  font-family: 'Caveat', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: black;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* keep 3 columns */
  gap: 4rem 1.5rem;
  /* maintain spacing */
  justify-items: center;
  /* center items in each column */
}

.skills-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skills-header,
.skills-description {
  padding-inline: 1.75rem;
}

.skills-name {
  font-size: 1.5rem;
  color: #009dff;
}

.skills-value {
  color: #9600d788;
  font-weight: bold;
}

.skills-description {
  margin-block: 1rem 1.75rem;
}

.skills-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid #9600ff;
  /* keep border color */
  box-shadow: 0 0 15px rgba(0, 157, 255, 0.2);
  /* keep shadow */
  border-radius: 0;
  /* sharp corners */
  background-color: #f1f1f1;
  padding: 2rem 1.5rem;
  /* taller rectangle shape */
  width: 100%;
  /* make items stretch to container width */
  min-height: 200px;
  /* consistent height for all items */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.skills-bar,
.skills-percentage {
  height: 2px;
}

.skills-bar {
  background-color: #e0e0e0;
  height: 5px;
  border-radius: 5px;
  position: relative;
  overflow: visible;
}

.skills-percentage {
  display: block;
  height: 100%;
  width: 80%;
  background: linear-gradient(to right, #ff00ff, #009dff);
  border-radius: 5px;
  transition: width 0.5s ease-in-out;
  position: relative;
}

.skills-percentage::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #f0f0f0f3;
  border: 2px solid #009dff;
  box-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff88, 0 0 30px #ff00ff55;
  transition: all 0.3s ease-in-out;
  animation: glowPulse 1.5s infinite alternate;
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff88, 0 0 15px #ff00ff55;
  }

  100% {
    box-shadow: 0 0 15px #ff00ff, 0 0 25px #ff00ff88, 0 0 35px #ff00ff55;
  }
}



.skills-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px #009dff;
}



/******SKILLS BUTTONS************/
.skills-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.skills-btn {
  padding: 12px 20px;
  background: #7a14a5fa;
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
}

.skills-btn:hover {
  background: #ffffff;
  border: 2.5px solid #7a14a5fa;
  transform: scale(1.05);
  color: #7a14a5fa;

}

.hidden {
  display: none;
}

/************* PORTFOLIO ****************/
.work-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-items: center;
  width: calc(100% + 24%);
  margin-left: -12%;
}


.work-item {
  width: 400px;
  height: 550px;
  border: 2px solid #ccc;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  box-shadow: 0 8px 20px #7a14a5fa;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #f1f1f1;

}


.work-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.work-img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.link img {
  width: 45px;
  margin-top: auto;
  transition: transform 0.3s ease;
}

.link img:hover {
  transform: scale(1.2);
  cursor: pointer;
}

.work-category {
  color: #009dff;
  margin: 0.5rem 0;
  text-align: left;
  width: 100%;
}

.work-title {
  font-size: 1.4rem;
  font-weight: 500;
  background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
  background-clip: text;
  color: transparent;
}

.work-description {
  font-size: 0.95rem;
  text-align: left;
  width: 100%;
  margin-top: 0.5rem;
  font-weight: normal;
}

.section-portfolio {
  text-align: center;
  font-size: 4rem;
  font-weight: 600;
}

.portfolio-title {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  color: #ff00ff;
  margin-top: 5px;
  margin-bottom: 80px;
}

.portfolio-title .work {
  font-family: 'Caveat', cursive;
  font-size: 32px;
  font-weight: 600;
  color: black;
}

.work-item h3 {
  margin-bottom: 1rem;
}

.work-item h4 {
  margin-bottom: 1rem;
}

.work-item p {
  margin-bottom: 1rem;
}

.view-video-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  border-radius: 3rem;
  background: linear-gradient(to right, #009dff, #ff00ff);
  color: white;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: 0.3s ease-in-out;
  text-align: center;
}

.view-video-btn:hover {
  background: linear-gradient(to right, #ff00ff, #009dff);
  transform: scale(1.03);
}



/*********PORTFOLIO VIDEOS****************/
.work-item video {
  width: 100%;
  height: auto;
  border-radius: 0;
  object-fit: cover;
  margin-top: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.work-item video:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

.video-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-items: center;
  /* center individual cards */
  width: calc(100% + 24%);
  /* counteract section padding (12% left + 12% right) */
  margin-left: -12%;
  /* pull grid left to align with page edges */
}





.video-card {
  width: 420px;
  height: auto;
  background-color: #ffffff;
  border-radius: 1.2rem;
  padding: 3rem;
  border: 2px solid #f0f0f0f3;
  box-shadow: 0 8px 25px #009dff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px #009dff;
}

.video-title {
  font-size: 1.4rem;
  font-weight: 600;
  background: linear-gradient(to right, #009dff, #ff00ff);
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.video-description {
  font-size: 1rem;
  font-weight: normal;
  color: #333;
  margin-top: 1rem;
}

.video-card video {
  width: 100%;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.20);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.video-card video:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

.video-card .video-image {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.20);
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.video-card .video-image:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}