@import url("https://fonts.googleapis.com/css2?family=Work+Sans:wght@200;300;400;500&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Work Sans", sans-serif;
}
html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Screen reader only class for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.header {
  padding: 0 4.8rem;
  height: 10rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #5361ff, #7b68ee);
  color: white;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.header h1 {
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: 2px;
}
.navbar-list {
  display: flex;
  gap: 4.8rem;
  list-style-type: none;
}

.navbar-link:link,
.navbar-link:visited {
  color: white;
  display: inline-block;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  font-size: 2rem;
  transition: all 0.3s;
}

.navbar-link:hover,
.navbar-link:active {
  border-radius: 5px;
  background-color: white;
  padding: 8px;
  color: #5361ff;
}
/* center the section hero */

.head {
  display: flex;
  justify-content: center;
  align-items: center;
}
.section-hero {
  margin: auto;
  height: 90vh;
  width: calc(100% - 20rem);

  /* background-color: red; */
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  /* width: 100%; */
  gap: 2rem;
}

/* .section-hero {
  margin: 10px 0;
  padding: 20px;
} */
.hero {
  order: 2;
}
.info {
  order: 1;
}

.info h1 {
  font-size: 4rem;
  font-weight: 700;
  /* letter-spacing: 2px; */
  margin-bottom: 1.6rem;
}
.info .tagline {
  font-size: 2.6rem;
  font-weight: 500;
  margin-bottom: 1.6rem;
  line-height: 1.5;
  color: #333;
}

.info .intro {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 2.4rem;
  line-height: 1.6;
  color: #666;
  max-width: 600px;
}
#hero img {
  height: 350px;
  width: 350px;
  border-radius: 50%;
  /* border: 4px solid #5361ff; */
  box-shadow: 0 8px 10px 0 rgba(0, 0, 0, 0.2);
}
.socials {
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
  gap: 4rem;
}
.socials a {
  text-decoration: none;
}

.github,
.youtube {
  font-size: 1.8rem;
  /* background-color: rebeccapurple; */
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
  color: black;
  gap: 1rem;
}

.github:hover,
.youtube:hover {
  padding: 8px;
  color: white;
  background: linear-gradient(135deg, #5361ff, #7b68ee);
  transform: translateY(-2px);
  transition: all 0.3s ease;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(83, 97, 255, 0.3);
}
.mobile-navbar-btn {
  display: none;
  background-color: transparent;
  cursor: pointer;
}

.mobile-nav-icon {
  width: 4rem;
  height: 4rem;
  /* background-color: coral; */
}

.mobile-nav-icon[name="close-outline"] {
  display: none;
}
.about {
  background: linear-gradient(135deg, #5361ff, #7b68ee);
  padding: 10% 5%;
  color: white;
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23ffffff" opacity="0.1"/></svg>') repeat;
  background-size: 50px 50px;
  pointer-events: none;
}
.about h1,
.skill-section h1 {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.contact-section h1 {
  margin-bottom: 3rem;
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-align: center;
  color: #333;
}
.space {
  height: 30px;
  /* background-color: red; */
}
.about-text {
  letter-spacing: 0.5px;
  font-size: 2.6rem;
  font-weight: 400;
  margin-bottom: 2.4rem;
  line-height: 1.6;
  text-align: justify;
}
.skill-section {
  /* background-color: teal; */
  padding: 7% 5% 0 5%;
  /* color: white; */
}
.skills-container {
  /* background-color: red; */
  /* margin: auto; */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 1.8rem;

  grid-template-rows: auto; /* adjust rows according to content */
  justify-content: center; /* center items horizontally */
  align-content: center; /* center items vertically */
  justify-items: center;
}
.skill {
  width: calc(100% - 6rem);
  /* background-color: #536; */
  /* padding: 1.5rem; */
  font-weight: 500;
  font-size: 2rem;
  /* color: white; */
}
.skill {
  margin-bottom: 2rem;
}

.skill-name {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  color: #333;
}

.skill-bar {
  width: 100%;
  height: 2rem;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-progress {
  height: 100%;
  background: linear-gradient(135deg, #5361ff, #7b68ee);
  border-radius: 10px;
  transition: width 0.8s ease-in-out;
  position: relative;
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.more-skills {
  font-size: 2rem;
  font-weight: 600;
  padding: 20px;
  text-align: center;
  color: #5361ff;
  cursor: pointer;
  border: 2px solid #5361ff;
  border-radius: 8px;
  margin: 2rem auto;
  max-width: 200px;
  transition: all 0.3s ease;
  background: transparent;
}

.more-skills:hover {
  background: #5361ff;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(83, 97, 255, 0.3);
}
.projects-section {
  /* background-color: #5361ff; */
  padding: 10% 5%;
  /* color: white; */
  /* height: 60vh; */
}
.projects-section h1 {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1.6rem;
}
.all-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 2rem;
  justify-items: center;
  align-items: center;
  /* padding: 1.8rem; */
}

/* .project-thumbnail img {
  height: 300px;
  width: 300px;
  padding: 1.5rem;
  object-fit: cover;
  border-radius: 1rem;
} */
.items {
  position: relative;
  height: 300px;
  width: 100%;
  padding: 1.5rem;
  background-size: cover;
  background-position: center;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.items:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.items::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(83, 97, 255, 0.1), rgba(123, 104, 238, 0.1));
  transition: opacity 0.3s ease;
  opacity: 0;
}

.items:hover::before {
  opacity: 1;
}

/* Loading animations */
.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive improvements */
@media (max-width: 900px) {
  .contact-section {
    padding: 3rem 2rem;
  }
  
  .contact {
    padding: 1rem;
  }
  
  .contact-form {
    padding: 0;
  }
  
  .popup-content {
    width: 90%;
    height: 80%;
    padding: 1rem;
  }
  
  .popup-content .buttons {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .section-hero {
    gap: 1rem;
  }
  
  .info .tagline {
    font-size: 2.2rem;
  }
  
  .info .intro {
    font-size: 1.8rem;
  }
  
  .about-text {
    font-size: 2.2rem;
  }
  
  .skills-container {
    gap: 1rem;
  }
  
  .tech-tag {
    font-size: 1.2rem;
    padding: 0.3rem 0.6rem;
  }
  
  .contact-section {
    padding: 2rem 1rem;
  }
  
  .contact-section h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
  }
  
  .contact {
    padding: 0;
  }
  
  input[type="text"],
  input[type="email"],
  textarea[name="message"] {
    font-size: 1.4rem;
    padding: 12px;
  }
  
  .submit-btn {
    font-size: 1.6rem;
    padding: 1.2rem 2rem;
    width: 100%;
  }
}
.know-more {
  display: none;
  animation: fade-in 0.5s;
  visibility: hidden;
  padding: 10%;
  text-align: center;
  color: white;
  transition: background-color 0.5s ease;
  /* background-color: #5361ff;
  border-radius: 50%; */
}

.know-more i {
  background-color: #5361ff;
  padding: 10%;
  border-radius: 50%;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.items:hover .know-more {
  display: block;
  visibility: visible;
}
.items:hover .name h1 {
  display: none;
}

.name h1 {
  position: absolute;
  bottom: 0;
  left: 10;
  color: white;
  padding: 1rem;
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  background-color: #5361ff;
  border-radius: 1rem;
}
.project-item {
  background-color: red;
  padding: 2rem;
}
.blurred {
  filter: blur(5px);
}
.greyed {
  background-color: gray;
}
.popup {
  display: none;
  animation: fade-in 0.5s;
  visibility: hidden;
  padding: 2%;
  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  z-index: 2;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: white;
}
.popup-content {
  padding: 2rem;

  height: 90%;
  width: 70%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.popup-content img {
  border-radius: 1rem;
  height: 55%;
  width: 100%;
  object-fit: fill;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
}

.popup-content h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.popup-content h3 {
  font-size: 2.4rem;
  font-weight: 600;
}
.popup-content p {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.6;
}

.tech-tag {
  display: inline-block;
  background: linear-gradient(135deg, #5361ff, #7b68ee);
  color: white;
  padding: 0.4rem 0.8rem;
  margin: 0.2rem;
  border-radius: 20px;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.popup .info {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 2rem;
}
.popup-content .buttons {
  text-align: center;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
  font-size: 2.5rem;
  font-weight: 500;
}
.close-popup {
  padding: 2rem;
  background-color: white;
  color: #5361ff;
  border: 2px solid #5361ff;
  border-radius: 1rem;
}
.visit-website {
  padding: 2rem;
  background-color: #5361ff;
  color: white;
  border-radius: 1rem;
}
.buttons a {
  text-decoration: none;
  color: white;
}
.contact-section {
  padding: 5%;
  background-color: #f8f9fa;
}
input[type="text"],
input[type="email"],
textarea[name="message"] {
  margin: 0;
  height: 50px;
  width: 100%;
  background-color: #f8f9fa;
  padding: 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1.6rem;
  font-family: inherit;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea[name="message"]:focus {
  outline: none;
  border-color: #5361ff;
  box-shadow: 0 0 0 3px rgba(83, 97, 255, 0.1);
  background-color: #fff;
}
textarea[name="message"] {
  height: 120px;
  resize: vertical;
  min-height: 80px;
  max-height: 200px;
}
.contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}
.contact-form {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 2rem;
  width: 100%;
}

.submit-btn {
  margin: 2rem 0 0 0;
  padding: 1.5rem 3rem;
  background: linear-gradient(135deg, #5361ff, #7b68ee);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  align-self: flex-start;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(83, 97, 255, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.footer h3 {
  background: linear-gradient(135deg, #5361ff, #7b68ee);
  color: white;
  padding: 2rem;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  margin: 0;
}

@media (max-width: 63em) {
  .mobile-navbar-btn {
    display: block;
    z-index: 99;
  }
  .header {
    position: relative;
  }
  .header .logo {
    width: 40%;
  }
  .navbar {
    display: none;
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #5361ff, #7b68ee);
    z-index: 98;
    display: flex;

    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: all 0.5s linear;
  }
  .navbar-list {
    flex-direction: column;
    align-items: center;
  }
  .active .navbar {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .active .mobile-navbar-btn .mobile-nav-icon[name="close-outline"] {
    display: block;
  }
  .active .mobile-navbar-btn .mobile-nav-icon[name="menu-outline"] {
    display: none;
  }
  .section-hero {
    /* margin: 5rem 0 3rem 0;
    padding: 1rem; */
    /* height: auto; */
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero {
    order: 1;
  }
  .info {
    order: 2;
    text-align: center;
    padding: 0;
  }
  #hero img {
    height: 40vh;
    width: 40vh;
    max-height: 350px;
    max-width: 350px;
  }
  .socials {
    justify-content: center;
  }
  .about-text {
    text-align: center;
  }
  .skills-container {
    grid-template-columns: repeat(1, 1fr);
    padding: 10px;
  }
}

@media (max-width: 800px) {
  .popup-content img {
    display: none;
  }
  .popup-content {
    align-items: center;
  }
}
@media (max-width: 450px) {
  .all-projects {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .items {
    height: 200px;
  }
  .name h1 {
    font-size: 1.6rem;
  }
}
@media (max-width: 35em) {
  .header {
    padding: 0 2.4rem;
  }
  .header .logo {
    width: 60%;
  }
  #hero img {
    height: 60vw;
    width: 60vw;
  }
}
