@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Raleway:wght@300;400;500;600;700;800&display=swap");

:root {
  --primary-color: rgba(11, 11, 193, 0.88);
  --light-blue: rgb(79, 152, 255);
  --light-purple: #c8b6ff;
  --dark-purple: #8e44ad;
  --off-white: #f0f0f0;
  --secondary-color: #008080;
  --light-tilt: rgba(9, 184, 184, 0.72);
  --text-color: #ffffff;
  --shadow-color: rgb(145, 145, 145);
  --background-color: rgb(203, 203, 203);
  --black: #000;
  --light-green: #2ecc71;
  --orange: rgb(157, 97, 0);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  text-decoration: none;
}
html,
body {
  width: 100%;
  height: 100%;
  background-color: var(--off-white);
  scroll-behavior: smooth;
}
#container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#header {
  width: 100%;
  height: 60px;
  padding-right: 10px;
  padding-left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: var(--off-white);
  position: relative;
}

.headerContent {
  width: 30%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-shrink: 0;
}

.logo {
  width: 100%;
  height: 70%;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.logo img {
  width: 10%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.logoText1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.logoText {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--black);
  /* margin-left: 2px; */
}

.nav {
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 30px;
}

.nav a {
  color: var(--black);
  font-size: 1.1rem;
  font-weight: 400;
  transition: all 0.3s ease-in-out;
}

.nav a::after {
  content: "";
  display: block;
  width: 0%;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease-in-out;
}

.nav a:hover {
  color: var(--secondary-color);
}

.nav a:hover::after {
  width: 100%;
}

#githubButton {
  width: 150px;
  height: 40px;
  background-color: var(--secondary-color);
  color: var(--text-color);
  border: none;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

#githubButton:hover {
  background-color: var(--light-green);
}

.menubtn {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 5px;
  background-color: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1001;
  justify-content: center;
  align-items: center;
}

#menu-toggle {
  display: none;
}

.mobile-menu {
  position: fixed;
  top: 60px;
  right: -100%;
  width: 250px;
  height: calc(100vh - 60px);
  background-color: var(--off-white);
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 1000;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}

#menu-toggle:checked ~ .mobile-menu {
  right: 0;
}

.mobile-nav-link {
  display: block;
  padding: 15px 20px;
  color: var(--black);
  font-size: 1.1rem;
  font-weight: 400;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  background-color: var(--secondary-color);
  color: var(--text-color);
  padding-left: 30px;
}

.mobile-github-btn {
  width: 90%;
  margin: 20px auto;
  padding: 10px 20px;
  background-color: var(--secondary-color);
  color: var(--text-color);
  border-radius: 5px;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
  display: block;
}

.mobile-github-btn:hover {
  background-color: var(--light-green);
}

.menubtn svg {
  transition: transform 0.3s ease;
}

#menu-toggle:checked ~ .menubtn svg {
  transform: rotate(90deg);
}

#herosection {
  width: 90%;
  height: 100vh;
}
.main {
  width: 100%;
  height: 100%;
  display: flex;
  padding: 20px;
  background-color: var(--off-white);
  align-items: center;
  justify-content: center;
}
.heroleft {
  width: 50%;
  height: 100%;
  display: flex;
  padding: 20px;
  padding-right: 50px;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  animation: slideFromLeft 1.5s ease-in-out;
  /* gap: 20px; */
}
@keyframes slideFromLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.heroleft span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary-color);
}
.heroleft h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--black);
  /* gap: 0px; */
}
.heroleft h1 > span {
  font-size: 3rem;
  color: var(--secondary-color);
}
.heroleft h1 > .s {
  font-size: 3rem;
}
.herofooter {
  width: 100%;
  height: auto;
  display: flex;
  gap: 20px;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--black);
  margin-top: 20px;
}
.download,
.contact {
  width: 150px;
  height: 40px;
  background-color: var(--secondary-color);
  border: none;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}
.download:hover,
.contact:hover {
  background-color: var(--orange);
}
.download > a,
.contact > a {
  color: var(--off-white);
}

.heroright {
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.heroimg {
  width: 400px;
  height: 400px;
  background-color: var(--light-tilt);
  overflow: hidden;
  position: relative;
  border-radius: 10px;
  box-shadow: 40px 40px 10px var(--secondary-color);
  animation: tiltEffect 1.5s ease-in-out;
}
@keyframes tiltEffect {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(10deg);
  }
  50% {
    transform: rotate(-10deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
.heroimg img {
  width: 100%;
  height: auto;
  position: relative;
  object-fit: cover;
  border-radius: 10px;
}
#about {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
  animation: fadeInAbout 1.5s ease-in-out;
}
@keyframes fadeInAbout {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.about-title {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.about-title h2 {
  font-size: 3rem;
  font-weight: 400;
  color: var(--black);
}
.about-content {
  font-size: 1.1rem;
  width: 100%;
  max-width: 1900px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.about-content p {
  padding: 20px;
  border-radius: 10px;
  font-size: 1.2rem;
  max-width: 1200px;
  font-weight: 300;
  background-color: var(--background-color);
  text-align: left;
}
.about-pic {
  width: 100%;
  height: auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
  margin-top: 10px;
  /* margin-left: 395px; */
}
.abimg {
  width: 50px;
  height: 50px;
  border: 2px solid var(--secondary-color);
  border-radius: 50%;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.abimg img {
  width: 100%;
  height: auto;
  position: relative;
  object-fit: cover;
  border-radius: 50%;
}
.itext {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.itext .R {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--black);
}
.itext .D {
  font-size: 1rem;
  font-weight: 400;
  color: var(--shadow-color);
}
#education {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeInEducation 1.5s ease-in-out;
}
@keyframes fadeInEducation {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.educontainer {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.eduheader {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.eduheader h2 {
  font-size: 3rem;
  font-weight: 400;
  color: var(--black);
}

.eduheader p {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 10px;
  text-align: center;
  color: var(--shadow-color);
}

.boxdesign {
  width: 100%;
  height: auto;
  display: flex;
  background-color: rgb(208, 208, 208);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}
.educontent {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}
.clz {
  width: 100%;
  height: auto;
  gap: 20px;
}
.clz > h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary-color);
}
.fa-solid {
  padding: 0 10px;
  font-size: 0.9rem;

  color: var(--shadow-color);
}
.fa-solid > span {
  font-size: 1rem;
  padding: 0 5px;
  font-weight: 400;
}
.ongoing {
  width: 120px;
  height: 35px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 400;
  background-color: var(--shadow-color);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ptag {
  font-size: 1.2rem;
  font-weight: 400;
  text-align: center;
  padding: 20px;
  color: var(--black);
}
.list {
  width: 100%;
  max-width: 900px;
  height: auto;
  padding: 20px;
  text-align: left;
}
.list > h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 10px;
}
.coursework-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 20px;
}
.coursework-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.coursework-column li {
  font-size: 1rem;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 10px;
  position: relative;
}
.coursework-column li::before {
  content: "•";
  color: var(--secondary-color);
  font-weight: bold;
  margin-right: 10px;
}

#skill {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  animation: slideInFromLeft 1s ease-out;
}

@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.skill-title {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 50px;
}
#skill h2 {
  font-size: 3rem;
  font-weight: 400;
  color: var(--black);
}
.skill-title p {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--shadow-color);
}
.skill-container {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: grid;
  grid-template-areas: "item1 item2 item3 item4 item5 ";
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(1, 1fr);
  gap: 50px;
  padding: 20px;
}
.skill-item {
  width: 100%;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--light-purple);
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
.fa-brands {
  font-size: 5rem;
  color: var(--secondary-color);
}
.skills > h3 {
  color: var(--secondary-color);
}
#projects {
  width: 100%;
  min-height: 100vh;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  animation: slideInFromLeft 0.6s ease-out;
}

.projects-title {
  text-align: center;
  margin-bottom: 60px;
  color: black;
}

.projects-title h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 400;
  /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); */
}

.projects-title p {
  font-size: 1.2rem;
  color: var(--shadow-color);
  opacity: 0.9;
  margin: 0;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
  place-items: center;
}

.project-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  text-align: center;
  color: white;
  width: 100%;
  max-width: 350px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

.project-icon {
  margin-bottom: 20px;
}

.project-icon i {
  font-size: 3rem;
  color: #ffd700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--secondary-color);
}

.project-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: black;
  margin-bottom: 20px;
  opacity: 0.9;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.project-tech span {
  background: var(--secondary-color);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
#contact {
  width: 100%;
  min-height: 20vh;
  /* background-color: var(--secondary-color); */
  padding: 5px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slideInFromLeft 0.8s ease-out;
}

.contact-container {
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
}

.contact-header {
  text-align: center;
  margin-bottom: 10px;
}

.contact-header h2 {
  font-size: 2rem;
  font-weight: 400;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.contact-header p {
  font-size: 1rem;
  color: var(--shadow-color);
  opacity: 0.9;
}

.contact-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 600px;
}

.contact-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 5px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-icon {
  width: 45px;
  height: 45px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.1rem;
  color: var(--off-white);
}

.contact-details h3 {
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 1px;
  font-weight: 600;
}

.contact-details a {
  color: var(--black);
  opacity: 0.9;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.contact-details a:hover {
  opacity: 1;
  color: var(--orange);
}

/* Footer Section */
#footer {
  background-color: var(--black);
  color: var(--off-white);
  padding: 50px 0 20px;
  width: 100%;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.footer-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.footer-tagline {
  font-size: 1.1rem;
  opacity: 0.8;
  line-height: 1.6;
  max-width: 400px;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: var(--off-white);
  opacity: 0.8;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-section ul li a:hover {
  opacity: 1;
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 45px;
  height: 45px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--orange);
  transform: translateY(-3px);
}

.social-link i {
  font-size: 1.2rem;
  color: var(--off-white);
}

.footer-copyright {
  text-align: center;
  opacity: 0.7;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Responsive Design for Projects */
@media (max-width: 768px) {
  .projects-title h2 {
    font-size: 2.5rem;
  }

  .projects-title p {
    font-size: 1rem;
  }

  .projects-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .project-card {
    padding: 25px;
    max-width: none;
  }

  .project-icon i {
    font-size: 2.5rem;
  }

  .project-content h3 {
    font-size: 1.3rem;
  }

  .project-content p {
    font-size: 0.95rem;
  }
}
/* below this responsive design for all */
@media (max-width: 480px) {
  #projects {
    padding: 60px 0;
  }

  .projects-title {
    margin-bottom: 40px;
  }

  .projects-title h2 {
    font-size: 2rem;
  }

  .project-card {
    padding: 20px;
  }

  .project-icon i {
    font-size: 2rem;
  }

  .project-tech span {
    font-size: 0.8rem;
    padding: 4px 12px;
  }
}

@media (max-width: 1224px) {
  #header {
    padding-left: 20px;
    padding-right: 0;
  }
  .logo {
    width: 100%;
  }
  .nav {
    display: none;
  }
  #githubButton {
    display: none;
  }
  .menubtn {
    display: flex;
    margin-right: 0;
  }
  #herosection {
    width: 95%;
    height: auto;
    min-height: 80vh;
  }

  .main {
    padding: 15px;
  }

  .heroleft {
    padding-right: 30px;
  }

  .heroleft h1 {
    font-size: 2.5rem;
  }

  .heroleft h1 > span {
    font-size: 2.5rem;
  }

  .heroimg {
    width: 350px;
    height: 350px;
    box-shadow: 30px 30px 8px var(--secondary-color);
  }
  #about {
    max-width: 1000px;
    padding: 40px 20px;
  }

  .about-title h2 {
    font-size: 2.5rem;
  }

  .about-content p {
    font-size: 1.1rem;
    max-width: auto;
  }

  /* .about-pic {
    margin-left: 250px;
  } */

  .abimg {
    width: 45px;
    height: 45px;
  }

  .itext .R {
    font-size: 1.1rem;
  }

  .educontent {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 20px;
  }
  .clz h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }
  .ongoing {
    margin: 15px 0;
    width: 150px;
    height: 40px;
    font-size: 1rem;
  }
  .ptag {
    font-size: 1rem;
    padding: 15px;
    text-align: justify;
  }
  .list {
    padding: 15px;
    text-align: left;
  }
  .list h3 {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 20px;
  }
  .coursework-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
  }
  .coursework-column li {
    font-size: 1rem;
  }
  .fa-solid {
    font-size: 1rem;
  }
  .fa-solid > span {
    font-size: 1rem;
  }
  #skill {
    padding: 20px 15px;
    align-items: center;
    text-align: center;
  }
  .skill-container {
    grid-template-areas: "item1 item2 item3" "item4 item5 .";
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
  }

  .skill-item:nth-child(1) {
    grid-area: item1;
  }
  .skill-item:nth-child(2) {
    grid-area: item2;
  }
  .skill-item:nth-child(3) {
    grid-area: item3;
  }
  .skill-item:nth-child(4) {
    grid-area: item4;
  }
  .skill-item:nth-child(5) {
    grid-area: item5;
  }
}
@media (max-width: 865px) {
  .logo {
    width: 100%;
    height: 30px;
  }
  .logoText1 {
    font-size: 1rem;
  }
  .logoText {
    font-size: 1rem;
  }
  .main {
    flex-direction: column;
    gap: 30px;
    padding: 20px;
  }

  .heroleft {
    width: 100%;
    order: 2;
    text-align: center;
    padding: 0;
    align-items: center;
  }
  .herofooter {
    align-items: center;
    justify-content: center;
  }
  .heroright {
    width: 100%;
    order: 1;
  }

  .heroleft h1 {
    font-size: 2.5rem;
  }

  .heroleft h1 > span {
    font-size: 2.5rem;
  }

  .heroimg {
    width: 300px;
    height: 300px;
    box-shadow: 25px 25px 8px var(--secondary-color);
  }
  #education {
    width: 100%;
    margin-top: 60px;
    height: auto;
    min-height: 100vh;
    padding: 40px 20px;
  }
}

@media (max-width: 572px) {
  .logo {
    width: 100%;
    height: 20px;
  }
  .logoText1 {
    font-size: 0.8rem;
  }
  .logoText {
    font-size: 0.8rem;
  }
  .main {
    padding: 15px 10px;
    gap: 20px;
    flex-direction: column;
  }
  .heroleft {
    padding: 0;
    padding-right: 0;
    justify-content: center;
    align-items: center;
    order: 2;
    width: 100%;
  }
  .heroright {
    width: 100%;
    order: 1;
  }
  .heroleft h1 {
    font-size: 2.5rem;
  }

  .heroleft h1 > span {
    font-size: 2.5rem;
  }

  .heroleft span {
    font-size: 0.8rem;
  }

  .herofooter {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .download,
  .contact {
    width: 160px;
    height: 40px;
  }

  .heroimg {
    width: 240px;
    height: 240px;
    box-shadow: 15px 15px 5px var(--secondary-color);
  }

  #about {
    padding: 20px 10px;
    margin-top: 20px;
  }

  .about-title h2 {
    font-size: 2rem;
    text-align: center;
  }

  .about-content p {
    font-size: 0.9rem;
    max-width: 100%;
    padding: 15px;
    text-align: justify;
    margin: 10px 0;
  }

  .about-pic {
    margin-left: 0;
    margin-top: 20px;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: row;
    text-align: left;
    gap: 15px;
  }

  .abimg {
    width: 60px;
    height: 60px;
  }

  .itext {
    align-items: flex-start;
    text-align: left;
  }

  .itext .R {
    font-size: 1.1rem;
  }

  .itext .D {
    font-size: 0.9rem;
  }

  #education {
    width: 100%;
    margin-top: 80px;
    height: auto;
    min-height: 100vh;
    padding: 40px 0;
  }

  .educontainer {
    max-width: 100%;
    padding: 0 10px;
  }

  .eduheader {
    animation: fadeInHeader 0.8s ease-out;
    margin-bottom: 20px;
  }

  .eduheader h2 {
    font-size: 2rem;
    animation: slideDownTitle 1s ease-out 0.2s backwards;
  }

  .eduheader p {
    font-size: 1rem;
    animation: fadeInText 1.2s ease-out 0.4s backwards;
    padding: 10px;
  }

  .boxdesign {
    margin: 20px 0;
    padding: 15px;
    background-color: var(--background-color);
  }

  .educontent {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding: 15px;
  }

  .clz h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .ongoing {
    margin: 10px 0;
  }

  .ptag {
    font-size: 1rem;
    padding: 15px;
    text-align: justify;
  }

  .list {
    padding: 15px;
    text-align: left;
  }

  .list h3 {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 15px;
  }

  .coursework-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 15px;
  }

  .coursework-column li {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  #skill {
    padding: 20px 10px;
    align-items: center;
    text-align: center;
  }

  .skill-container {
    grid-template-areas:
      "item1"
      "item2"
      "item3"
      "item4"
      "item5";
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 1fr);
    gap: 20px;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 100%;
    height: 12px;
  }
  .logoText1 {
    font-size: 0.6rem;
  }
  .logoText {
    font-size: 0.6rem;
  }
  .main {
    flex-direction: column;
    padding: 10px;
  }
  .heroleft {
    width: 100%;
    order: 2;
    text-align: center;
  }
  .heroright {
    width: 100%;
    order: 1;
  }
  .heroleft h1 {
    font-size: 1.5rem;
  }

  .heroleft h1 > span {
    font-size: 1.5rem;
  }

  .heroimg {
    width: 200px;
    height: 200px;
    box-shadow: 10px 10px 5px var(--secondary-color);
  }

  /* Further reduce education section */
  .eduheader h2 {
    font-size: 1.8rem;
    animation: slideDownTitle 0.8s ease-out 0.1s backwards;
  }

  .eduheader p {
    font-size: 0.9rem;
    animation: fadeInText 1s ease-out 0.3s backwards;
  }

  .educontent {
    padding: 10px;
  }

  .ptag {
    font-size: 0.9rem;
    padding: 10px;
  }

  .list h3 {
    font-size: 1.2rem;
  }

  .coursework-column li {
    font-size: 0.85rem;
  }

  #skill {
    padding: 20px 10px;
    align-items: center;
    text-align: center;
  }

  .skill-container {
    grid-template-areas:
      "item1"
      "item2"
      "item3"
      "item4"
      "item5";
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 1fr);
    gap: 15px;
    max-width: 300px;
    margin: 0 auto;
    padding: 0;
  }

  .skill-item {
    width: 100%;
    height: 100px;
    margin: 0 auto;
  }
  #contact {
    min-height: 20vh;
    padding: 10px 0;
  }

  .contact-header h2 {
    font-size: 1.5rem;
  }

  .contact-header p {
    font-size: 0.8rem;
  }

  .contact-info {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 300px;
  }

  .contact-item {
    padding: 10px;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .contact-icon {
    width: 35px;
    height: 35px;
  }

  .contact-icon i {
    font-size: 0.9rem;
  }

  .contact-details h3 {
    font-size: 0.9rem;
  }

  .contact-details a {
    font-size: 0.8rem;
  }
  #footer {
    padding: 30px 0 15px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-name {
    font-size: 1.3rem;
  }

  .footer-tagline {
    font-size: 1rem;
  }

  .footer-section h4 {
    font-size: 1.1rem;
  }

  .footer-social {
    flex-wrap: wrap;
    justify-content: center;
  }

  .social-link {
    width: 40px;
    height: 40px;
  }

  .social-link i {
    font-size: 1.1rem;
  }

  .footer-copyright {
    font-size: 0.8rem;
  }
}
