* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

/* Change Cursor */
* {
  cursor: none;
}

@media (max-width: 768px) {
  .custom-cursor {
    display: none;
  }
}

.custom-cursor {
  position: fixed;
  width: 15px;
  height: 15px;
  background-color: black;
  border-radius: 50%;
  z-index: 9999;
}

/* ----------------------------------hero-section------------------------------------- */
.hero_section {
  margin-bottom: 80px;
  position: relative;
}

.hero_links {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
}

.logo img {
  height: 30px;
}

.logo span {
  font-size: 25px;
}

.menus {
  display: flex;
  justify-content: center;
  font-size: 20px;
  gap: 25px;
  margin: 50px;
  flex-wrap: wrap;
}

.scrollButton {
  transition: all 0.3s ease;
}

.scrollButton:hover {
  color: hsl(0, 0%, 50%);
  transform: scale(1.1);
}

.day-night {
  width: 80px;
  height: 40px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: lightblue;
  border-radius: 30px;
}

.day-night img {
  height: 30px;
}

.sun {
  position: absolute;
  transition: opacity 0.5s, transform 0.5s;
}

.moon {
  position: absolute;
  transition: opacity 0.5s, transform 0.5s;
  opacity: 0;
}

.dark-mode {
  background-color: #121212;
  color: white;
}

@media (max-width: 480px) {
  .day-night {
    width: 45px;
    height: 20px;
  }

  .day-night img {
    height: 15px;
  }
}

.rainbow-divider {
  width: 100%;
  height: 20px;
  background: linear-gradient(to right,
      red,
      black,
      orange,
      black,
      yellow,
      black,
      green,
      black,
      blue,
      black,
      indigo,
      black,
      violet);
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 0;
}

.heading_text {
  display: flex;
  justify-content: center;
}

.key {
  font-size: 200px;
  font-weight: 600;
  position: relative;
  z-index: 2;
  display: inline-block;
  letter-spacing: -1vw;
  transition: transform 0.2s;
}

@keyframes pressDown1 {

  30%,
  40%,
  100% {
    transform: translateY(0);
  }

  35% {
    transform: translateY(10px);
  }
}

@keyframes pressDown2 {

  70%,
  80%,
  100% {
    transform: translateY(0);
  }

  75% {
    transform: translateY(10px);
  }
}

@keyframes pressDown3 {

  30%,
  40%,
  100% {
    transform: translateY(0);
  }

  35% {
    transform: translateY(10px);
  }
}

@keyframes pressDown4 {

  40%,
  50%,
  100% {
    transform: translateY(0);
  }

  45% {
    transform: translateY(10px);
  }
}

@keyframes pressDown5 {

  20%,
  30%,
  100% {
    transform: translateY(0);
  }

  25% {
    transform: translateY(10px);
  }
}

@keyframes pressDown6 {

  60%,
  70%,
  100% {
    transform: translateY(0);
  }

  65% {
    transform: translateY(10px);
  }
}

@keyframes pressDown7 {

  30%,
  40%,
  100% {
    transform: translateY(0);
  }

  35% {
    transform: translateY(10px);
  }
}

@keyframes pressDown8 {

  35%,
  45%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(10px);
  }
}

@keyframes pressDown9 {

  30%,
  40%,
  100% {
    transform: translateY(0);
  }

  35% {
    transform: translateY(10px);
  }
}

.key:nth-child(1) {
  animation: pressDown1 2s infinite;
}

.key:nth-child(2) {
  animation: pressDown2 3s infinite;
}

.key:nth-child(3) {
  animation: pressDown3 4s infinite;
}

.key:nth-child(4) {
  animation: pressDown4 2.5s infinite;
}

.key:nth-child(5) {
  animation: pressDown5 2.5s infinite;
}

.key:nth-child(6) {
  animation: pressDown6 3.5s infinite;
}

.key:nth-child(7) {
  animation: pressDown7 4s infinite;
}

.key:nth-child(8) {
  animation: pressDown8 2.5s infinite;
}

.key:nth-child(9) {
  animation: pressDown9 2s infinite;
}

#hero_intro {
  display: flex;
  justify-content: center;
}

#hero_intro span {
  margin: 20px;
  border: 1px solid;
  padding: 20px;
  border: none;
  border-radius: 50px;
  width: 10%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  background-color: rgb(20, 100, 70);
  color: white;
}

.hero_intro span {
  transition: all 0.3s ease;
}

.hero_intro span:hover {
  transform: scale(1.1);
}

.scroll-to-explore {
  display: flex;
  padding-left: 100px;
  gap: 20px;
}

.scroll-to-explore-image img {
  height: 20px;
}

/* Responsive Design for laptops */
@media (max-width: 1024px) {
  .hero_intro p {
    font-size: 150px;
  }

  #hero_intro span {
    font-size: 12px;
    padding: 15px;
    border-radius: 30px;
  }

  .hero_links {
    gap: 15px;
    margin: 40px;
  }
}

/* Responsive Design for Mobile Devices */
@media (max-width: 768px) {
  .hero_intro p {
    font-size: 70px;
  }

  #hero_intro span {
    font-size: 10px;
    padding: 10px;
    border-radius: 25px;
    width: 10%;
  }

  .hero_links {
    gap: 10px;
    margin: 30px;
  }

  .menus {
    display: flex;
    font-size: 10px;
    gap: 5px;
  }

  .rainbow-divider {
    height: 10px;
    display: none;
  }
}

/* Responsive Design for Small Mobile Devices */
@media (max-width: 480px) {
  .hero_section {
    margin-bottom: 10px;
  }

  .hero_intro p {
    font-size: 70px;
  }

  #hero_intro span {
    font-size: 10px;
    padding: 8px;
    border-radius: 20px;
    width: 20%;
  }

  .hero_links {
    gap: 5px;
    margin: 20px;
    display: flex;
    font-size: 7px;
    display: flex;
    justify-content: space-between;
    padding-left: 20px;
    padding-right: 20px;
  }

  .menus {
    display: none;
    font-size: 10px;
    margin: 10px;
  }

  .logo {
    gap: 2px;
  }

  .logo span {
    font-size: 12px;
  }

  .logo img {
    height: 20px;
  }

  .theme span {
    font-size: 10px;
  }

  .rainbow-divider {
    height: 10px;
    display: none;
  }

  .scroll-to-explore {
    display: none;
  }
}

/* --------------------------------------About--------------------------------------- */
.about {
  display: flex;
  margin-bottom: 80px;
  flex-wrap: wrap;
}

.about_left {
  display: flex;
  justify-content: center;
  padding: 50px;
  width: 50%;
}

.about_left p {
  color: rgb(30, 100, 70);
  font-size: 50px;
}

.about_left span {
  color: black;
  background-color: rgb(234, 219, 195);
  border: 1px solid;
  padding: 10px;
  border-radius: 40px;
  margin-left: 20px;
}

.about_right {
  width: 50%;
  padding: 50px;
}

.about_right article {
  font-size: 20px;
}

.about_right h1 {
  font-size: 50px;
}

/* Responsive Design for Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
  .about {
    flex-direction: column;
    align-items: center;
  }

  .about_left {
    width: 100%;
    padding: 30px;
    text-align: center;
  }

  .about_left p {
    font-size: 40px;
  }

  .about_left span {
    font-size: 16px;
    padding: 8px;
  }

  .about_right {
    width: 100%;
    padding: 30px;
    text-align: center;
  }

  .about_right h1 {
    font-size: 40px;
  }

  .about_right article {
    font-size: 18px;
  }
}

/* Responsive Design for Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  .about_left {
    display: none;
  }

  .about_left p {
    font-size: 35px;
  }

  .about_left span {
    font-size: 25px;
    padding: 6px;
    margin-left: 50px;
  }

  .about_right h1 {
    font-size: 35px;
  }

  .about_right article {
    font-size: 16px;
  }
}

/* Responsive Design for Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
  .about {
    margin-bottom: 40px;
  }

  .about_left p {
    font-size: 30px;
  }

  .about_left span {
    font-size: 25px;
    padding: 5px;
    margin-left: 50px;
  }

  .about_right h1 {
    font-size: 30px;
  }

  .about_right article {
    font-size: 12px;
  }
}

/* ---------------------------------------Skills------------------------------------ */
.skills {
  margin: 80px 0;
}

/* ===== TITLE ===== */
.skills_text p {
  text-align: center;
  font-size: 24px;
  position: relative;
  margin-bottom: 30px;
  cursor: pointer;
}

/* Hover text effect */
.skills_text p:hover {
  color: transparent;
}

.skills_text p:hover::after {
  content: "Explore my Skills";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: gray;
}

/* ===== SCROLLING ===== */
.skills_logo {
  width: 100%;
  overflow: hidden;
  padding: 30px 0;
}

/* Track */
.skills_logo_track {
  display: flex;
  gap: 80px;
  width: max-content;
  animation: scrollSkills 20s linear infinite;
}

/* Skill card */
.skills_logo_container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Images */
.skills_logo_container img {
  height: 50px;
  transition: 0.3s ease;
}

/* Text */
.skills_logo_container p {
  margin-top: 8px;
  font-size: 14px;
  opacity: 0;
  transition: 0.3s;
}

/* Hover effects */
.skills_logo_container:hover img {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.skills_logo_container:hover p {
  opacity: 1;
}

/* Animation */
@keyframes scrollSkills {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Pause on hover */
.skills_logo:hover .skills_logo_track {
  animation-play-state: paused;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .skills_logo_track {
    gap: 40px;
    animation: scrollSkills 25s linear infinite;
  }

  .skills_logo_container img {
    height: 40px;
  }
}

/* Responsive Design for Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
  .skills_logo {
    gap: 25px;
    padding: 30px;
  }

  .skills_text p {
    font-size: 18px;
  }

  .skills_logo_container img {
    height: 45px;
  }

  .skills_logo_container p {
    font-size: 14px;
  }
}

/* Responsive Design for Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  .skills_logo {
    gap: 20px;
    padding: 20px;
  }

  .skills_text p {
    font-size: 16px;
  }

  .skills_logo_container img {
    height: 40px;
  }

  .skills_logo_container p {
    font-size: 13px;
  }
}

/* Responsive Design for Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
  .skills {
    margin-bottom: 40px;
  }

  .skills_logo {
    gap: 15px;
    padding: 15px;
  }

  .skills_text p {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .skills_logo_container img {
    height: 35px;
  }

  .skills_logo_container p {
    font-size: 12px;
  }

  .skills_logo_track {
    gap: 40px;
  }
}

/* ---------------------------------------Projects------------------------------------- */
.projects {
  margin-bottom: 90px;
  padding-left: 200px;
  padding-right: 200px;
}

.projects_text p {
  display: flex;
  justify-content: center;
  font-size: 20px;
  position: relative;
  margin-bottom: 20px;
}

.projects_text p:hover {
  color: transparent;
}

.projects_text p:hover::after {
  content: "Browse my recent Projects";
  position: absolute;
  color: gray;
}

/* Project cards */
.projects_cards a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 30px;
  flex-wrap: wrap;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid gray;
}

.projects_cards span {
  font-size: 30px;
}

.projects_cards img {
  height: 35px;
  transition: transform 0.5s ease;
}

.projects_cards img:hover {
  transform: rotate(45deg);
}

/* ========================= */
/* 🔥 HIDE / SHOW ANIMATION */
/* ========================= */

#hidden-project {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(20px);
  transition:
    max-height 0.6s ease,
    opacity 0.4s ease,
    transform 0.4s ease,
    padding 0.4s ease;
}

/* Show ALL hidden projects */
#toggleProjects:checked~#hidden-project {
  max-height: 200px;
  opacity: 1;
  transform: translateY(0);
}

/* ========================= */
/* 🔘 SHOW MORE BUTTON */
/* ========================= */

.more-projects {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
}

.more-projects span {
  border: 1px solid gray;
  font-size: 20px;
  transition: all 0.3s ease;
  padding: 20px;
  border-radius: 50px;
}

.more-projects span:hover {
  background-color: black;
  color: white;
  transform: scale(1.1);
}

/* Toggle text */
.more-projects span::after {
  content: "More works";
}

#toggleProjects:checked~.more-projects span::after {
  content: "Show less";
}

/* ========================= */
/* 📱 RESPONSIVE */
/* ========================= */

@media (max-width: 1024px) {
  .projects {
    padding: 60px;
  }

  .projects_text p {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .projects {
    padding: 40px;
  }

  .projects_text p {
    font-size: 16px;
  }

  .projects_cards span {
    font-size: 25px;
  }

  .projects_cards img {
    height: 30px;
  }

  .projects_cards a {
    padding: 15px;
  }

  .more-projects {
    margin-top: 30px;
  }

  #toggleProjects:checked~.hidden-project {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .projects {
    padding: 30px;
    padding-left: 45px;
    padding-right: 45px;
    margin-bottom: 50px;
  }

  .projects_text p {
    font-size: 14px;
  }

  .projects_cards span {
    font-size: 15px;
  }

  .more-projects span {
    padding: 10px;
    border-radius: 35px;
    font-size: 10px;
  }
}

/* --------------------------------------Contact-------------------------------------- */

.contact_me {
  margin-bottom: 90px;
}

.contact_text span {
  display: flex;
  justify-content: center;
  font-size: 20px;
  position: relative;
}

.contact_text span:hover {
  color: transparent;
}

.contact_text span:hover::after {
  content: "Let's talk";
  position: absolute;
  color: gray;
}

.contact_links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

.contact_links div {
  width: calc(100% / 6 - 10px);
  text-align: center;
}

.contact_link_container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  border: 1px solid hsl(0, 0%, 70%);
  padding: 10px;
  border-radius: 50px;
  flex-wrap: wrap;
}

.contact_link_container a {
  text-decoration: none;
  color: inherit;
}

.contact_link_container a:visited {
  color: inherit;
  text-decoration: none;
}

.contact_links img {
  height: 1.5rem;
}

.contact_link_container {
  transition: all 0.3s ease;
}

.contact_link_container:hover {
  transform: scale(1.1);
}

/* Responsive Design for Tablets */
@media (max-width: 1024px) {
  .contact_text span {
    font-size: 18px;
  }

  .contact_link_container {
    font-size: 14px;
    padding: 8px;
  }

  .contact_links img {
    height: 0.9rem;
  }
}

/* Responsive Design for Mobile Devices */
@media (max-width: 768px) {
  .contact_text span {
    font-size: 16px;
  }

  .contact_link_container {
    font-size: 13px;
    padding: 6px;
  }

  .contact_links {
    gap: 15px;
    padding: 20px;
  }

  .contact_links img {
    height: 0.8rem;
  }
}

/* Responsive Design for Small Mobile Devices */
@media (max-width: 480px) {
  .contact_me {
    margin-bottom: 20px;
  }

  .contact_text span {
    font-size: 14px;
  }

  .contact_link_container {
    font-size: 12px;
    padding: 5px;
    border-radius: 40px;
  }

  .contact_links img {
    height: 0.7rem;
  }

  .contact_links {
    gap: 10px;
  }

  .contact_links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
  }

  .contact_links div {
    width: calc(80% / 2 - 10px);
    text-align: center;
  }
}

/*------------------------------------------Banner--------------------------------------- */

.banner-page {
  height: 60vh;
}

.banner-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.banner {
  position: absolute;
  width: 100%;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  padding: 10px 0;
  white-space: nowrap;
}

.yellow-banner {
  background-color: hsl(60, 90%, 60%);
  transform: rotate(-10deg);
  top: 40%;
  color: black;
}

.green-banner {
  background-color: hsl(120, 90%, 20%);
  transform: rotate(10deg);
  top: 50%;
  color: white;
}

@media (max-width: 1024px) {
  .banner-page {
    height: 20vh;
  }

  .banner {
    font-size: 20px;
    padding: 8px 0;
  }

  .yellow-banner {
    top: 40%;
  }

  .green-banner {
    top: 45%;
  }
}

@media (max-width: 768px) {
  .banner-page {
    height: 20vh;
  }

  .banner {
    font-size: 20px;
    padding: 8px 0;
  }

  .yellow-banner {
    top: 40%;
  }

  .green-banner {
    top: 45%;
  }
}

@media (max-width: 480px) {
  .banner-page {
    height: 20vh;
  }

  .banner {
    font-size: 16px;
    padding: 6px 0;
  }

  .yellow-banner {
    top: 40%;
    transform: rotate(-10deg);
  }

  .green-banner {
    top: 45%;
    transform: rotate(10deg);
  }
}

/* -----------back-to-top------------- */
.back-to-top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-left: 80px;
  margin-bottom: 0px;
}

.back-to-top-image {
  align-items: center;
}

.back-to-top-image img {
  margin-top: 5px;
  height: 25px;
}

.back-to-top-text {
  display: flex;
  align-items: center;
}

@media (max-width: 480px) {
  .back-to-top {
    display: none;
  }
}

/* ---------------------------------------------Footer--------------------------------------------- */

.footer_bar {
  padding: 50px;
  margin-bottom: 200px;
}

.status {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
}

/* Blinking green dot with shadow */
.blinking-circle {
  width: 10px;
  height: 10px;
  background-color: green;
  border-radius: 50%;
  animation: blink-shadow 0.8s infinite alternate ease-in-out;
}

/* Blinking Shadow Animation */

@keyframes blink-shadow {
  0% {
    box-shadow: 0 0 0px rgba(0, 255, 0, 0.5);
  }

  50% {
    box-shadow: 0 0 10px hsla(120, 100%, 50%, 0.7);
  }

  100% {
    box-shadow: 0 1 65px hsl(120, 100%, 70%);
  }
}

.footer_content {
  font-size: 80px;
  font-weight: 800;
  display: flex;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
}

.copyright {
  display: flex;
  justify-content: center;
  color: gray;
}

.footer_content:hover {
  color: transparent;
}

.footer_content:hover::after {
  content: "Frontend Developer";
  position: absolute;
  color: grey;
}

/* Responsive Design for Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
  .footer_bar {
    padding: 30px;
    margin: 30px;
  }

  .footer_content {
    font-size: 60px;
  }

  .copyright {
    font-size: 10px;
  }
}

/* Responsive Design for Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  .footer_bar {
    padding: 20px;
    margin: 20px;
  }

  .footer_content {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
  }

  .copyright {
    font-size: 8px;
  }
}

/* Responsive Design for Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
  .status {
    font-size: 10px;
  }

  .footer_bar {
    padding: 30px;
    margin: 15px;
  }

  .footer_content {
    font-size: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .copyright {
    font-size: 8px;
  }
}