* {
  max-width: 1900px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}
/* Prevent scrolling */

/* extra */

/* button styling */
.button1 {
  margin: 0;
  height: auto;
  background: transparent;
  padding: 0;
  border: none;
  cursor: pointer;
  --border-right: 6px;
  --text-stroke-color: rgba(255, 255, 255, 0.6);
  --animation-color: #a537ff;
  --fs-size: 2em;
  letter-spacing: 3px;
  text-decoration: none;
  font-size: var(--fs-size);
  font-family: "Arial";
  position: relative;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-stroke-color);
}

img {
  transition: transform 0.3s ease;
}

img:hover {
  transform: scale(1.1) translateX(20px) translateY(20px); /* Scale up by 10% */
}

.color {
  --background-c: linear-gradient(to right, #6366f1, #a855f7);
  background: linear-gradient(to right, #6366f1, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* custome scroll bar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background-color: transparent;
}

::-webkit-scrollbar-track {
  background: rgba(3, 0, 20, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.2),
    0 0 10px rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.5);
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: inset 0 0 30px rgba(168, 85, 247, 0.3),
    0 0 15px rgba(99, 102, 241, 0.3);
}

/* When scrollbar is in active/clicked state */
::-webkit-scrollbar-thumb:active {
  background: rgba(99, 102, 241, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: inset 0 0 40px rgba(168, 85, 247, 0.4),
    0 0 20px rgba(99, 102, 241, 0.4);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* for a lighting effect */
.bg-color {
  /* opacity: 0.1; */
  position: relative;
  background: linear-gradient(to right, #6365f100, #a955f700);
  border-radius: 50%;
  width: 60%;
  z-index: 1;
  overflow: visible;
}

.bg-color::before {
  margin-top: 2rem;
  content: "";
  position: absolute;
  top: -30px;
  left: -50px;
  right: -50px;
  bottom: -50px;
  background: linear-gradient(to right, #6365f152, #a955f736);
  border-radius: 50%;
  filter: blur(50px);
  z-index: -1;
}

.white {
  background: linear-gradient(to right, #f5f5f5, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.dark {
  background-color: white;
  color: #f1f1f1;
}

body.dark.container {
  position: relative;
  overflow: hidden;
}
html,
body {
  margin: 0%;
  padding: 0;
  background-color: #0d0d0d;
  color: white;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

.bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 220vw;
  object-fit: cover;
  z-index: -1;
}

/* temp animation */
.background {
  background-color: rgba(255, 192, 203, 0.788);
  opacity: 0.1;
  box-shadow: 0 0 50px 100px rgba(255, 192, 203, 0.788);
  position: fixed; /* ✅ Make it stay in the viewport */
  height: 100px;
  width: 100px;
  border: 1px solid pink;
  border-radius: 50%;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  z-index: -1; /* Optional: keep it behind your content */
}

.scroll-anim {
  animation: scroll-moving 3s infinite alternate ease;
}

@keyframes scroll-moving {
  0% {
    transform: translateY(0%) translateX(0);
  }
  50% {
    transform: translateY(-50%) translateX(5rem);
  }
  100% {
    transform: translateY(-50%) translateX(10rem);
  }
}

/* Default: Light mode */

.starter {
  animation: animation 1s 2s both ease-in;
  background-color: black;
  z-index: 10;
  position: absolute;
  height: 100%;
  width: 100%;
}
.temp-content {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid black;
}
.temp-content h2 {
  color: white;
  margin-top: 3rem;
  font-size: 3rem;
}
.right-left-t {
  animation: right-left-text 1s ease-in;
}
@keyframes right-left-text {
  0% {
    transform: translate(-100%, 0);
    opacity: 0;
    letter-spacing: 7px;
  }
  20% {
    opacity: 0.4;
  }
  70% {
    letter-spacing: 1px;
    transform: translate(0, 0);
    opacity: 1;
  }
  80% {
    transform: translate(0, 0);
    opacity: 1;
  }
  90% {
    transform: translate(0, 0);
    opacity: 1;
  }
  100% {
    letter-spacing: 0px;
    opacity: 0;
    z-index: 0;
  }
}

.down-up-t {
  
  font-size: 2rem;
  animation: down-up-text 1s ease-in;
  animation-delay: var(--delay, 0s);
}
@keyframes down-up-text {
  0% {
    transform: translate(0, 100%);
    opacity: 0;
  }
  20% {
    opacity: 0.4;
  }
  70% {
    transform: translate(0, 0);
    opacity: 1;
  }

  90% {
    transform: translate(0, 0);
    opacity: 1;
  }
  100% {
    opacity: 1;
    z-index: 99;
  }
}

.hover-text {
  position: absolute;
  box-sizing: border-box;
  content: attr(data-text);
  color: var(--animation-color);
  width: 0%;
  inset: 0;
  border-right: var(--border-right) solid var(--animation-color);
  overflow: hidden;
  transition: 0.5s;
  -webkit-text-stroke: 1px var(--animation-color);
}
/* hover */
.button1:hover .hover-text {
  width: 100%;
  filter: drop-shadow(0 0 23px var(--animation-color));
}

nav {
  z-index: 9;
  backdrop-filter: blur(6px);
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 100vw;
  background-color: rgba(0, 0, 0, 0.2);
  color: #fff;
  letter-spacing: 1px;
  padding: 1rem;
  text-align: end;
}
.shooting-star {
  position: absolute;
  top: 0;
  right: 0;
  rotate: -45deg;
  width: 5em;
  height: 1px;
  background: linear-gradient(90deg, #ffffff, transparent);
  animation: shootingStars 2.5s ease-in-out 2;
  opacity: 0;
}

/* Randomize each shooting star */
.shooting-star:nth-child(1) {
  top: 10%;
  animation-delay: 0s;
}

.shooting-star:nth-child(2) {
  top: 30%;
  animation-delay: 1s;
}

.shooting-star:nth-child(3) {
  top: 50%;
  animation-delay: 2s;
}

.shooting-star:nth-child(4) {
  top: 70%;
  animation-delay: 3s;
}

.shooting-star:nth-child(5) {
  top: 90%;
  animation-delay: 4s;
}

@keyframes shootingStars {
  0% {
    transform: translateX(0) translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateX(-100em) translateY(0);
    opacity: 0;
  }
}
.navbar-content {
  align-items: center;
  display: flex;
  min-width: 85.8%;
  animation: slideDownFade 1s ease forwards;
  opacity: 0;
  transform: translateY(-100%);
  animation-delay: 3s;
}

.navbar-content ul {
  justify-content: center;
}
@keyframes slideDownFade {
  to {
    opacity: 1;
    transform: translateY(0) scale(0.9);
  }
}

nav a {
  margin-right: auto;
  font-size: 24px;
  font-weight: bold;
  background: linear-gradient(to right, #6365f17e, #a955f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

nav p:hover {
  content: "";
  top: -50px;
  left: -50px;
  right: -50px;
  bottom: -50px;
  background-color: linear-gradient(to right, #ff7b00, #a955f736);
  border-radius: 50%;
  filter: blur(50px);
  z-index: -1;
}

nav ul {
  font-size: 1.25rem;
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 5px;
}
nav ul li a::after {
  opacity: 0;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  opacity: 1;
}

nav ul li a {
  position: relative;
  display: inline-block;
  color: #a855f7;
  text-decoration: none;
  transition: color 0.3s ease;
}
nav ul li a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(to right, #a855f7, #a12fff);
}

nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(to right, #a855f7, #a12fff);
  transition: opacity 0.3s ease;
}

nav ul li a:hover {
  transition: all 0.3s ease;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 2px;
  font-family: "Poppins", sans-serif;
  text-decoration: none;
}

nav ul li a:active {
  color: #a855f7;
}

.switch {
  font-size: 17px;
  position: relative;
  display: inline-block;
  width: 64px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #73c0fc;
  transition: 0.4s;
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 30px;
  width: 30px;
  border-radius: 20px;
  left: 0px;
  bottom: 2px;
  z-index: 2;
  background-color: #e8e8e8;
  transition: 0.4s;
}
input:checked + .slider {
  background-color: #2196f3;
}
input:checked + .slider:before {
  transform: translateX(26px);
}

.sun svg {
  position: absolute;
  top: 6px;
  left: 36px;
  z-index: 1;
  width: 24px;
  height: 24px;
}

.moon svg {
  fill: #73c0fc;
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 1;
  width: 24px;
  height: 24px;
}

/* .switch:hover */
.sun svg {
  animation: rotate 15s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* .switch:hover */
.moon svg {
  animation: tilt 5s linear infinite;
}

@keyframes tilt {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-10deg);
  }

  75% {
    transform: rotate(10deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.input:checked + .slider {
  background-color: #183153;
}

.input:focus + .slider {
  box-shadow: 0 0 1px #183153;
}

.input:checked + .slider:before {
  transform: translateX(30px);
}

.theme-toggle-wrapper {
  position: unset;
  display: inline-block;
}

.theme-tooltip {
  visibility: hidden;
  opacity: 0;
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 6px 10px;
  border-radius: 6px;
  position: absolute;
  top: 120%; /* 👈 Show tooltip below the toggle */
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.3s ease;
  font-size: 13px;
  white-space: nowrap;
  z-index: 99;
}
/* Tooltip arrow */
.theme-tooltip::after {
  content: "";
  position: absolute;
  bottom: 100%; /* 👈 Arrow on top of tooltip */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

/* Show tooltip on hover */
.theme-toggle-wrapper:hover .theme-tooltip {
  visibility: visible;
  opacity: 1;
}

.sky {
  position: absolute;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: transparent; /* or your background */
  z-index: -1;
}

#page-1 {
  margin: 0;
  height: 100%;
  max-width: 80%;
  margin: 0 auto;
  padding: 10rem 0;
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
  align-items: center;
}

/* main section */

#left-side {
  display: flex;
  flex-direction: column;
  gap: 10px;

  opacity: 0;
  transform: translateX(-50px);
  animation: slideDownFade 1.5s ease-out 3s forwards;
}

#left-side p:first-child {
  margin-bottom: 2rem;
  font-size: 1rem;
  width: fit-content;
  border: 1px solid #a855f7;
  font-weight: 600;
  color: #a855f7;
  padding: 10px 15px;
  border-radius: 20px;
  background-color: rgba(168, 85, 247, 0.3);

  box-shadow: 0 0 56px 4px rgba(255, 192, 203, 0.603);
}
#left-side p:first-child:hover {
  box-shadow: 0 0 65px 8px rgba(255, 192, 203, 0.514);
}

/* add hue rate here and fix this image like a prortfolio */
#left-side p img {
  height: 1rem;
  width: 1.5rem;
  filter: hue-rotate(10);
}

#left-side p {
  font-weight: 700;
  font-size: 5rem;
  width: 100%;
}
#left-side p span {
  font-weight: 700;
}

/* card section */
.card1 {
  background-color: var(--bg-color);
  letter-spacing: 2px;
  color: #fff;
}

.loader {
  font-family: "Poppins", sans-serif;
  margin-top: 1rem;
  font-size: 25px;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  height: 40px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  border-radius: 8px;
}

.words {
  overflow: hidden;
  position: relative;
}
.words::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    var(--bg-color) 10%,
    transparent 30%,
    transparent 70%,
    var(--bg-color) 90%
  );
  z-index: 20;
}

.word {
  display: block;
  height: 100%;
  padding-left: 6px;
  color: #fff;
  animation: spin_4991 3s infinite;
}

@keyframes spin_4991 {
  10% {
    -webkit-transform: translateY(-102%);
    transform: translateY(-102%);
  }

  25% {
    -webkit-transform: translateY(-100%);
    transform: translateY(-100%);
  }

  35% {
    -webkit-transform: translateY(-202%);
    transform: translateY(-202%);
  }

  50% {
    -webkit-transform: translateY(-200%);
    transform: translateY(-200%);
  }

  60% {
    -webkit-transform: translateY(-302%);
    transform: translateY(-302%);
  }

  75% {
    -webkit-transform: translateY(-300%);
    transform: translateY(-300%);
  }

  85% {
    -webkit-transform: translateY(-402%);
    transform: translateY(-402%);
  }

  100% {
    -webkit-transform: translateY(-400%);
    transform: translateY(-400%);
  }
}

#content-text {
  position: relative;
  line-height: 30px;
  left: 0.3rem;
  font-size: 1.3rem;
  letter-spacing: 1px;
  font-weight: 100 !important;
  color: grey !important;
}

/* skills  */

.skill {
  z-index: 99;
  margin-top: 1.3rem;
  --btn-bg-1: #1f1f1f; /* Indigo */
  --btn-bg-2: #1f1f1f;
  --btn-hov: #999;
  --btn-bg-color: #ffffff;
  --radii: 25px;
  cursor: pointer;
  padding: 0.8em 1.6em;
  min-width: 120px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  background-image: linear-gradient(135deg, var(--btn-bg-1), var(--btn-bg-2));
  background-size: 100%;
  border: 1px solid rgba(205, 213, 211, 0.1);
  border-radius: var(--radii);
  color: var(--btn-bg-color);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
}

.skill:hover {
  background-color: var(--btn-hov); /* Slightly lighter black */
  color: #f1f1f1; /* Softer white text */
  transform: translateY(-2px);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}
.skills .skill-item {
  opacity: 0;
  transform: translateY(40px);
  animation: slideDownFade 0.8s ease forwards;
  animation-delay: 4s;
}
.skill:is(:focus, :focus-visible, :active) {
  outline: none;
  box-shadow: 0 0 0 3px var(--btn-bg-color), 0 0 0 6px var(--btn-bg-2);
}

@media (prefers-reduced-motion: reduce) {
  .skill {
    transition: linear;
  }
}
/* works project and contect */
.work {
  position: relative;
  right: 0.4vw;
}

.type1::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  transition: all 0.5s ease-in-out;
  background: linear-gradient(-3deg, #8002f5, #9432e4);
  border-radius: 30px;
  visibility: hidden;
  height: 10px;
  width: 10px;
  z-index: -1;
}

.type1:hover::after {
  visibility: visible;
  transform: scale(100) translateX(2px);
}
.work .work-card {
  opacity: 0;
  transform: translateY(40px);
  animation: slideDownFade 1s ease forwards;
  animation-delay: 4s;
}

.button {
  height: 3rem; /* Changes */
  max-width: 100%;
  position: relative;
  flex-wrap: wrap;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background-color: transparent;
  cursor: pointer;
  border: 2px solid #868686;
  border-radius: 30px;
  color: #a3a3a3;
  transition: all 0.5s ease-in-out;
}

.button:hover {
  box-shadow: 1px 1px 200px #252525;
  color: #fff;
  border: none;
}
.btn-txt {
  z-index: 1;
  font-weight: 800;
  letter-spacing: 4px;
}

/* contect me */

.wrapper {
  display: inline-flex;
  list-style: none;
  /* display: block; */
  padding-top: 1.9rem;
  font-family: "Poppins", sans-serif;
  justify-content: center;
}

.wrapper .icon {
  position: relative;
  background: transparent;
  border-radius: 50%;
  margin: 10px;
  width: 50px;
  height: 50px;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  opacity: 0;
  transform: scale(0.8);
  animation: popIn 0.6s ease-out forwards;
  animation-delay: var(--delay, 0s);
  /* animation-delay: 4s; */
}
@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    /* display: block; */
  }
}

.wrapper .tooltip {
  position: absolute;
  top: 0;
  font-size: 14px;
  background: linear-gradient(to right, #a855f7, #a12fff);
  -webkit-background-clip: text;
  color: transparent;
  padding: 5px 8px;
  border-radius: 5px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .tooltip::before {
  position: absolute;
  content: "";
  height: 8px;
  width: 8px;
  background: #fff;
  bottom: -3px;
  left: 50%;
  transform: translate(-50%) rotate(45deg);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .icon:hover .tooltip {
  top: -45px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wrapper .icon:hover span,
.wrapper .icon:hover .tooltip {
  text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
}

.wrapper .facebook:hover,
.wrapper .facebook:hover .tooltip,
.wrapper .facebook:hover .tooltip::before {
  background: linear-gradient(to right, #6365f177, #a955f783);
  box-shadow: 0 0 10px 10px #a955f767;
  color: #fff;
}

.wrapper .twitter:hover,
.wrapper .twitter:hover .tooltip,
.wrapper .twitter:hover .tooltip::before {
  background: linear-gradient(to right, #6365f177, #a955f783);
  box-shadow: 0 0 10px 10px #a955f767;
  color: #fff;
}

.wrapper .instagram:hover,
.wrapper .instagram:hover .tooltip,
.wrapper .instagram:hover .tooltip::before {
  background: linear-gradient(to right, #6365f177, #a955f783);
  box-shadow: 0 0 10px 10px #a955f767;
  color: #fff;
}

.top-bottom-t {
  animation: top-bottom-text 1s ease-in;
}
@keyframes top-bottom-text {
  0% {
    transform: translate(0, -100%);
    opacity: 0;
  }
  20% {
    opacity: 0.4;
  }
  70% {
    transform: translate(0, 0);
    opacity: 1;
  }

  90% {
    transform: translate(0, 0);
    opacity: 1;
  }
  100% {
    letter-spacing: 0px;
    opacity: 0;
    /* display: none; */
    z-index: 0;
  }
}

/*  */
/* right section */
#right-side {
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 1s ease-out forwards;
  animation-delay: 3s; /* Adjust to sync with left-side */
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0) scale(1.03);
  }
}
.card {
  opacity: 0;
  transform: translateY(40px);
  animation: slideDownFade 1.5s 3s ease forwards;
  animation-delay: 3s;

  position: relative;
  width: 19em;
  height: 25em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #171717;
  color: white;
  font-family: Montserrat;
  font-weight: bold;
  padding: 1em 2em 1em 1em;
  border-radius: 20px;
  overflow: hidden;
  z-index: 1;
  row-gap: 1em;
}
.card img {
  width: 12em;
  margin-right: 1em;
  animation: move 10s ease-in-out infinite;
  z-index: 5;
}
.image:hover {
  cursor: -webkit-grab;
  cursor: grab;
}

.icons svg {
  width: 20px;
  height: 20px;
}

.card::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  inset: -3px;
  border-radius: 10px;
  background: radial-gradient(#858585, transparent, transparent);
  transform: translate(-5px, 250px);
  transition: 0.4s ease-in-out;
  z-index: -1;
}
.card:hover::before {
  width: 150%;
  height: 100%;
  margin-left: -4.25em;
}
.card::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 20px;
  background: rgb(23, 23, 23, 0.7);
  transition: all 0.4s ease-in-out;
  z-index: -1;
}

.heading {
  z-index: 2;
  transition: 0.4s ease-in-out;
}
.card:hover .heading {
  letter-spacing: 0.025em;
}

.heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  opacity: 1;
  box-shadow: 220px 118px #fff, 280px 176px #fff, 40px 50px #fff,
    60px 180px #fff, 120px 130px #fff, 180px 176px #fff, 220px 290px #fff,
    520px 250px #fff, 400px 220px #fff, 50px 350px #fff, 10px 230px #fff;
  z-index: -1;
  transition: 1s ease;
  animation: 1s glowing-stars linear alternate infinite;
  animation-delay: 0s;
}
.icons::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  opacity: 1;
  box-shadow: 140px 20px #fff, 425px 20px #fff, 70px 120px #fff, 20px 130px #fff,
    110px 80px #fff, 280px 80px #fff, 250px 350px #fff, 280px 230px #fff,
    220px 190px #fff, 450px 100px #fff, 380px 80px #fff, 520px 50px #fff;
  z-index: -1;
  transition: 1.5s ease;
  animation: 1s glowing-stars linear alternate infinite;
  animation-delay: 0.4s;
}
.icons::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  opacity: 1;
  box-shadow: 490px 330px #fff, 420px 300px #fff, 320px 280px #fff,
    380px 350px #fff, 546px 170px #fff, 420px 180px #fff, 370px 150px #fff,
    200px 250px #fff, 80px 20px #fff, 190px 50px #fff, 270px 20px #fff,
    120px 230px #fff, 350px -1px #fff, 150px 369px #fff;
  z-index: -1;
  transition: 2s ease;
  animation: 1s glowing-stars linear alternate infinite;
  animation-delay: 0.8s;
}
.card:hover .heading::before,
.card:hover .icons::before,
.card:hover .icons::after {
  filter: blur(3px);
}

.image:active {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}
.image:active + .heading::before {
  box-shadow: 240px 20px #9b40fc, 240px 25px #9b40fc, 240px 30px #9b40fc,
    240px 35px #9b40fc, 240px 40px #9b40fc, 242px 45px #9b40fc,
    246px 48px #9b40fc, 251px 49px #9b40fc, 256px 48px #9b40fc,
    260px 45px #9b40fc, 262px 40px #9b40fc;
  animation: none;
  filter: blur(0);
  border-radius: 2px;
  width: 0.45em;
  height: 0.45em;
  scale: 0.65;
  transform: translateX(9em) translateY(1em);
}
.image:active ~ .icons::before {
  box-shadow: 262px 35px #9b40fc, 262px 30px #9b40fc, 262px 25px #9b40fc,
    262px 20px #9b40fc, 275px 20px #9b40fc, 275px 24px #9b40fc,
    275px 28px #9b40fc, 275px 32px #9b40fc, 275px 36px #9b40fc,
    275px 40px #9b40fc, 275px 44px #9b40fc, 275px 48px #9b40fc;
  animation: none;
  filter: blur(0);
  border-radius: 2px;
  width: 0.45em;
  height: 0.45em;
  scale: 0.65;
  transform: translateX(9em) translateY(1em);
}
.image:active ~ .icons::after {
  box-shadow: 238px 60px #9b40fc, 242px 60px #9b40fc, 246px 60px #9b40fc,
    250px 60px #9b40fc, 254px 60px #9b40fc, 258px 60px #9b40fc,
    262px 60px #9b40fc, 266px 60px #9b40fc, 270px 60px #9b40fc,
    274px 60px #9b40fc, 278px 60px #9b40fc, 282px 60px #9b40fc,
    234px 60px #9b40fc, 234px 60px #9b40fc;
  animation: none;
  filter: blur(0);
  border-radius: 2px;
  width: 0.45em;
  height: 0.45em;
  scale: 0.65;
  transform: translateX(9em) translateY(1.25em);
}

.heading::after {
  content: "";
  top: -8.5%;
  left: -8.5%;
  position: absolute;
  width: 7.5em;
  height: 7.5em;
  border: none;
  outline: none;
  border-radius: 50%;
  background: #f9f9fb;
  box-shadow: 0px 0px 100px rgba(193, 119, 241, 0.8),
    0px 0px 100px rgba(135, 42, 211, 0.8), inset #9b40fc 0px 0px 40px -12px;
  transition: 0.4s ease-in-out;
  z-index: -1;
}
.card:hover .heading::after {
  box-shadow: 0px 0px 200px rgba(193, 119, 241, 1),
    0px 0px 200px rgba(135, 42, 211, 1), inset #9b40fc 0px 0px 40px -12px;
}

.icons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  column-gap: 1em;
  position: relative;

  z-index: 1;
}

.instagram {
  position: relative;
  transition: 0.4s ease-in-out;
}
.instagram:after {
  content: "";
  position: absolute;
  width: 0.5em;
  height: 0.5em;
  left: 0;
  background-color: white;
  box-shadow: 0px 0px 10px rgba(233, 233, 233, 0.5),
    0px 0px 10px rgba(192, 192, 192, 0.5);
  border-radius: 50%;
  z-index: -1;
  transition: 0.3s ease-in-out;
}
.instagram svg path {
  stroke: #808080;
  transition: 0.4s ease-in-out;
}
.instagram:hover svg path {
  stroke: #cc39a4;
}

.instagram svg,
.x svg,
.discord svg {
  transition: 0.3s ease-in-out;
}
.instagram:hover svg {
  scale: 1.4;
}

.instagram:hover:after,
.x:hover:after,
.discord:hover:after {
  scale: 4;
  transform: translateX(0.09em) translateY(0.09em);
}

.instagram::before {
  content: "";
  position: absolute;
  top: -700%;
  left: 1050%;
  rotate: -45deg;
  width: 5em;
  height: 1px;
  background: linear-gradient(90deg, #ffffff, transparent);
  animation: 4s shootingStar ease-in-out infinite;
  transition: 1s ease;
  animation-delay: 1s;
}

.card:hover .instagram::before,
.card:hover .x::before,
.card:hover .discord::before {
  filter: blur(3px);
}
.image:active ~ .icons .instagram::before {
  animation: none;
  opacity: 0;
}
/* inside card instagram shooting star */
@keyframes shootingStar {
  0% {
    transform: translateX(0) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-55em) translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateX(-70em) translateY(0);
    opacity: 0;
  }
  100% {
    transform: translateX(0) translateY(0);
    opacity: 0;
  }
}

@keyframes move {
  0% {
    transform: translateX(0em) translateY(0em);
  }
  25% {
    transform: translateY(-1em) translateX(-1em);
    rotate: -10deg;
  }
  50% {
    transform: translateY(1em) translateX(-1em);
  }
  75% {
    transform: translateY(-1.25em) translateX(1em);
    rotate: 10deg;
  }
  100% {
    transform: translateX(0em) translateY(0em);
  }
}

@keyframes glowing-stars {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

/* page-2 started */
/* About Me section */

#About {
  max-width: 80%;
  margin: auto;
}

#About h2 {
  font-size: 3rem;
  font-weight: 600;
}

#About .Text {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.Text p {
  font-size: 1.5rem;
  font-weight: 400;
}

.Text img {
  height: 30px;
}

.about-cont {
  margin-top: 5rem;
  height: 100%;
  font-size: 3rem;
  font-weight: 600;
  display: flex;
}

.about-cont h1 {
  font-size: 3rem;
  background: linear-gradient(to top, #6366f1, #a855f7);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-cont.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1s ease, transform 1s ease;
}
@keyframes aboutFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.paragraph {
  font-weight: 100;
  color: gray !important;
  margin-top: 1rem;
  font-size: 1.5rem;
  max-width: 60%;
}

.details {
  max-width: 80%;
  margin: auto;
}
.button-group {
  display: flex;
  gap: 1rem;
  font-family: sans-serif;
}

.btns {
  display: inline-flex;
  align-items: center;
  padding: 0rem 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
/* Gradient button */
.gradient-btn {
  padding: 0.5rem 2rem;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  color: white;
  border: none;
}
.icon {
  margin-right: 0.5rem;
}
.btn {
  box-shadow: -8px 0 16px #6365f18c, 0px 0 20px #7b4df5, 8px 0 16px #840df3;
  height: 3rem;
  width: 10.5rem;
  position: relative;
  background-color: transparent;
  cursor: pointer;
  border: 2px solid #868686;
  overflow: hidden;
  border-radius: 10px;
  color: #a3a3a3;
  transition: all 0.5s ease-in-out;
}

/* Outline button */
.outline-btn {
  padding: 0.8rem 2rem;
  border: 2px solid #a855f7;
  color: #a855f7;
  background: transparent;
}

.outline-btn:hover {
  background-color: rgba(168, 85, 247, 0.1);
}

.page-2 {
  height: 50%;
}

.main-container {
  font-family: "Trebuchet MS", sans-serif;
  position: relative;
  top: 1.5rem;
  width: 247px;

  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 300ms ease-in;
}
.main-container:hover {
  transform: rotateZ(1deg) rotateY(10deg) scale(1.1);
  box-shadow: 0 5em 2em #111;
}

.border {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Main container hover */
.main-container:hover {
  transform: rotateZ(1deg) rotateY(10deg) scale(1.1);
  box-shadow: 0 5em 2em #a855f72b;
}

/* Image floating animation */
@keyframes floatImage {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Card container (can be used for background or shadow effects) */
.card2 {
  border-radius: 50%;
  background-color: transparent;
  position: relative;
  z-index: 1;
}

/* Shadow layer if needed */
.shadow {
  width: 100%;
  height: 100%;

  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Your profile image with shine and circle effect */
.shine-circle {
  height: 247px;
  width: 260px;
  border-radius: 50%;
  object-fit: cover; /* Keeps image aspect ratio */
  object-position: top center; /* Centers your head in the circle */
  display: block;
  position: relative;
  z-index: 2;
  transition: transform 0.5s ease;
}

/* Slight zoom on hover */
.main-container:hover .shine-circle {
  transform: scale(1.05);
}
.border {
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Circular shine effect */
.border::after {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 250%;
  height: 250%;
  border-radius: 50%;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 60%
  );
  transform: rotate(25deg) translateX(-100%);
  opacity: 0;
  z-index: 3;
  pointer-events: none;
}

/* Trigger shine animation */
.border.shine::after {
  animation: shineOnce 1.2s ease-out 1 forwards;
  opacity: 1;
}

/* One-time shine movement */
@keyframes shineOnce {
  0% {
    transform: rotate(25deg) translateX(-100%);
    opacity: 0;
  }
  30% {
    opacity: 0.4;
  }
  100% {
    transform: rotate(25deg) translateX(100%);
    opacity: 0;
  }
}

/* project - marksheet */
.projects-marksheet {
  margin-top: 5rem;
  display: flex;
  align-items: center;
  justify-self: center;
  position: relative;
  width: 100%;
  height: 10rem;
  gap: 10rem;
}

/* From Uiverse.io by nima-mollazadeh */
.one-section {
  height: 100%;
  width: calc(80% / 3);
  position: relative;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(
    45deg,
    rgba(42, 29, 221, 0.149),
    #c222e230,
    #bc07fd4f
  );
  padding: 14px 25px;
  border-radius: 10px;
  cursor: pointer;
}

.one-section span {
  font-weight: 100;
  display: flex;
  justify-content: center;
  align-self: center;
  position: relative;
  font-size: 2rem;
  z-index: 1;
}

.one-section .animated {
  align-items: center;
  border: 1px solid pink;
}

.one-section::before {
  content: "";
  position: absolute;
  inset: 1px;
  background-color: #111111;
  border-radius: 9px;
  transition: 0.5s;
}

.one-section:hover::before {
  opacity: 0.7;
}

.one-section::after {
  content: "";
  position: absolute;
  inset: 0px;
  background: linear-gradient(
    45deg,
    rgba(42, 29, 221, 0.149),
    #c222e230,
    #bc07fd4f
  );

  border-radius: 9px;
  transition: 0.5s;
  opacity: 0;
  filter: blur(20px);
}

.one-section:hover:after {
  opacity: 1;
}

.two-section {
  height: 100%;
  width: calc(80% / 3);
  border: 1px solid #00d9ff;
}
.three-section {
  height: 100%;
  width: calc(80% / 3);
  border: 1px solid #00d9ff;
}

/*  */
/* skills page-3 */

#details-skills {
  margin-top: 15%;
  font-size: 3rem;
  background: linear-gradient(to top, #6366f1, #a955f7ab);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.page-3 {
  max-width: 80%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.skills-section {
  width: 50%;
  opacity: 0; /* animate later */
  transform: translateX(100px); /* slide from right */
}

.language-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0;
  opacity: 0; /* for animation */
  transform: translateX(100px); /* animate from right */
}

.lang.icon {
  position: relative;
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
}

.lang.icon:hover {
  background: linear-gradient(to right, #6365f177, #a955f783);
  box-shadow: 0 0 10px 10px #a955f767;
}

.tooltip {
  position: absolute;
  font-weight: 600;
  top: 0;
  font-size: 1rem;
  background: linear-gradient(to right, #a855f7, #a12fff);
  -webkit-background-clip: text;
  color: transparent;
  padding: 5px 8px;
  border-radius: 5px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
}

.tooltip::before {
  content: "";
  position: absolute;
  height: 8px;
  width: 8px;
  background: #fff;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
}

.lang:hover .tooltip {
  top: -35px;
  opacity: 1;
  pointer-events: auto;
}

#second-side {
  height: 70vh;
  width: 25%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.skills-section header h2 {
  opacity: 0;
  transform: translateX(100px); /* slide in from right */
}

/* page-4 */
.connect-me-Text {
  margin-top: 15%;
  font-size: 3rem;
}

.page-4-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 1;
  transform: translateY(0) scale(1);
}

#page-4 {
  margin: auto;
  height: 100%;
  max-width: 80%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}
.wave-group {
  position: relative;
}

.wave-group .input:focus {
  outline: none;
}

.wave-group .label {
  color: #999;
  font-size: 18px;
  font-weight: normal;
  position: absolute;
  pointer-events: none;
  left: 5px;
  top: 10px;
  display: flex;
}

.wave-group .label-char {
  transition: 0.2s ease all;
  transition-delay: calc(var(--index) * 0.05s);
}

.wave-group .input:focus ~ label .label-char,
.wave-group .input:valid ~ label .label-char {
  transform: translateY(-30px);
  font-size: 14px;
  color: #000000;
}

.wave-group .bar:before {
  left: 50%;
}

.wave-group .bar:after {
  right: 50%;
}

.wave-group .input:focus ~ .bar:before,
.wave-group .input:focus ~ .bar:after {
  width: 50%;
}

.hader-page-4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.input__container {
  max-width: 30rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 20px;
  position: relative;
}

.input__container::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  filter: blur(25px);
  border-radius: 20px;
  background-color: #e499ff65;
  background-image: radial-gradient(
      at 47% 69%,
      hsla(17, 62%, 65%, 1) 0px,
      transparent 50%
    ),
    radial-gradient(at 9% 32%, hsla(222, 75%, 60%, 1) 0px, transparent 50%);
}

.input__description {
  z-index: 1;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 500;
  text-align: start;
  color: rgba(0, 0, 0, 0.8);
}

.input {
  margin-bottom: 2rem;
  border: none;
  outline: none;
  width: 100%;
  padding: 0.7rem;
  padding-left: 0.9em;
  border-radius: 10px;
  background: #fff;
  transition: background 300ms, color 300ms;
}

.input:hover,
.input:focus {
  background: rgb(0, 0, 0);
  color: #fff;
}

.submit {
  width: 100%;
  position: relative;
  height: 3.5em;
  border: 3px ridge #e499ff;
  outline: none;
  background-color: transparent;
  color: white;
  transition: 1s;
  border-radius: 0.3em;
  font-size: 16px;
  cursor: pointer;
}

.submit::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 1%;
  width: 99%;
  height: 6%;
  background-color: #912fec79;
  transition: 0.5s;
  transform-origin: center;
}

.submit::before {
  content: "";
  transform-origin: center;
  position: absolute;
  top: 100%;
  left: 1%;
  width: 99%;
  height: 6%;
  background-color: #912fec75;
  transition: 0.5s;
}

.submit:hover::before,
.submit:hover::after {
  transform: scale(0);
}

.submit:hover {
  box-shadow: inset 0px 0px 25px #942ef3;
}

.seprater {
  height: 1px;
  width: 100%;
  border: 1px solid gray;
  margin: 3rem 0 3rem 0;
}

.connect-me {
  z-index: 1;
  width: 100%;
  background-color: rgba(58, 55, 55, 0.699);
  border-radius: 10px;
}
.Connect-mess {
  max-width: 90%;
  margin: auto;
}
.button-con {
  max-width: 90%;
  margin: 5%;
  padding: 5% 21% 5% 1%;
  position: relative;
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
  background-color: rgb(0 107 179);
  border-radius: 10px;
  display: flex;
  align-items: center;
  /* justify-content: ; */
  cursor: pointer;
  color: #ffff;
  gap: 0.5rem;
  font-weight: bold;
  border: 3px solid #ffffff4d;
  outline: none;
  overflow: hidden;
  font-size: 1rem;
}

.button-con .icon {
  position: absolute;
  width: 24px;
  height: 24px;
  transition: all 0.3s ease-in-out;
  transform: scale(0);
}

.button-con:hover {
  transform: scale(1.05);
  border-color: rgb(255, 255, 255);
}

.button-con:hover .icon {
  transform: scale(1) translate(15rem);
}

.button-con:hover::before {
  animation: shine 1.5s ease-out infinite;
}

/* diffrent part */
.button-con-square:hover {
  transform: scale(1.05);
  border-color: rgb(255, 255, 255);
}

.button-con-square:hover .icon {
  transform: scale(1) translate(15rem);
}

.button-con-square:hover::before {
  animation: shine 1.5s ease-out infinite;
}
.button-con-square::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 100%;
  background-image: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0) 70%
  );
  top: 0;
  left: -100px;
  opacity: 0.6;
}

.button-con-square {
  padding: 4%;
  display: flex;
  text-decoration: none;
  color: white;
  overflow: hidden;
  border: 1px solid pink;
  border-radius: 10px;
  margin: 2%;
  gap: 7%;
}
.square-links::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 100%;
  background-color: #110f0f;
  background-image: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0) 70%
  );
  top: 0;
  left: -100px;
  opacity: 0.6;
}

.square-contant {
  width: 73%;
  display: flex;
  flex-direction: column;
  /* border: 1px solid pink; */
  border-radius: 10px;
  /* padding: 5%; */
}
.square-links {
  max-width: 90%;
  margin: 5%;
  padding: 2%;
  position: relative;
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
  background-color: rgb(45 45 45 / 53%);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  color: #ffff;
  /* gap: ; */
  font-weight: bold;
  border: 1px solid #ffffff0e;
  outline: none;
  overflow: hidden;
  font-size: 1rem;
}
.center {
  display: flex;
  align-items: center;
  justify-self: center;
}
.square-contant-right {
  /* padding: 1%; */
  border: 1px solid black;
  text-decoration: none;
  color: white;
  border-radius: 10px;
  width: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.square-img {
  align-items: center;
}

/* second section */

.second-section {
  width: 50%;
  height: 50rem; /* Add this */

  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

@keyframes shine {
  0% {
    left: -100px;
  }

  60% {
    left: 100%;
  }

  to {
    left: 100%;
  }
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #6e00ff, #00d9ff);
  color: white;
  border: none;
  border-radius: 50%;
  padding: 8px 16px;
  font-size: 22px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(110, 0, 255, 0.6);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 15px rgba(110, 0, 255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(110, 0, 255, 0);
  }
}

@keyframes animation {
  from {
    transform: translate(0, 0);
    opacity: 1;
  }
  to {
    opacity: 0;
    /* display: none;  i do because i want to keep the links elements as show thats why*/
    z-index: -99;
  }
}

.cont {
  margin: 3rem;
}

.row {
  margin-top: 3rem;
  width: 100%;
  height: 1px;
  background: linear-gradient(45deg, #8a47f7c7, #f84e4e36, #3701fa94);
}

/* responsive code */
@media screen and (max-width: 1900px) {
  .projects-marksheet pre {
    display: none;
  }
}
@media screen and (max-width: 768px) {
  .navbar-content {
    flex-direction: column;
    align-items: center;
  }
    nav {
    z-index: 9;
    /* backdrop-filter: blur(6px); */
    /* position: fixed; */
    /* display: flex; */
    /* justify-content: center; */
    /* align-items: center; */
    /* min-width: 100vw; */
    /* background-color: rgba(0, 0, 0, 0.2); */
    /* color: #fff; */
    /* letter-spacing: 1px; */
    padding: 0rem;
    /* text-align: end; */
  }
  nav a {
    margin-right: 20%;
  }
  .switch{
    position: absolute;
    top: -2rem;
    right: 0.4rem;
  }
  nav ul {
    right: 5%;
    position: relative;
    font-size: 3.25rem;
    list-style: none;
    display: flex;

    align-items: end;
  }
  .skills-container,
  .button-group,
  .card-container {
    flex-direction: column;
    align-items: center;
  }

  #left-side p:first-child {
    width: 100%;
  }

  #page-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 60rem;
    width: 100%;
    transform: translatey(10%);
  }

  .bg-color {
    width: 100%;
  }
  /* Left-side */
  #left-side {
    margin: 15rem 0 0 0;
    text-align: center;
  }

  #About {
    margin: 20rem 0 0 0;
    max-width: 100%;
  }

  .projects-marksheet {
    margin-top: 5rem;

    width: 100%;
    height: 10rem;

    gap: 1rem;
  }
  .projects-marksheet span {
    font-size: 1rem;
    display: flex;
    flex-wrap: wrap;
  }

  .projects-marksheet pre {
    display: none;
  }

  .page-3 {
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  #page-4 {
    height: 100%;
    max-width: 80%;
    position: relative;
    display: flex;
    flex-direction: column;
  }

  .container {
    height: 100%;
    width: 100%;
  }
  model-viewer {
    height: 40rem;
    width: 100%;
  }

  /* Skills/work section */
  .skills,
  .work {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .skills-section {
    width: 85%;
    color: white;
  }

  .card1 {
    margin: auto;
  }
  /* Wrapper (icons or social section) */
  .wrapper {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* About content */
  .about-cont {
    flex-direction: column;
    padding: 20px;
  }

  .about-section,
  .page-2 {
    width: 100%;
    text-align: center;
  }

  .page-2 img {
    width: 80%;
    max-width: 250px;
    margin: auto;
  }

  /* Back to top button resize */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    padding: 12px 15px;
    font-size: 18px;
  }
  .paragraph {
    font-weight: 600;
    margin: 4.8rem;
    width: 100vw !important;
    margin-bottom: 0;
    margin-top: 1rem;
  }

  /* img{
          margin: 0 0 0 14rem;
    } */

  .main-container {
    width: 100%;
    margin-bottom: 2rem;
  }
}
@media screen and (max-width: 768px) {
/* extra */
.right{
  margin-left: 15rem;
}
/* extra */

  .navbar-content {
    flex-direction: column;
    align-items: center;
  }

  .skills-container,
  .card-container,
  .button-group {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-section,
  .content,
  .skills,
  .work,
  .about-section {
    padding: 1rem;
    text-align: center;
  }
}

.language-container .lang:hover {
  background: linear-gradient(to right, #6365f177, #a955f783);
  box-shadow: 0 0 10px 10px #a955f767;
}

.language-container .tooltip {
  position: absolute;
  font-weight: 600;
  top: 0;
  font-size: 1rem;
  background: linear-gradient(to right, #a855f7, #a12fff);
  -webkit-background-clip: text;
  color: transparent;
  padding: 5px 8px;
  border-radius: 5px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
}

.language-container .tooltip::before {
  content: "";
  position: absolute;
  height: 8px;
  width: 8px;
  background: #fff;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
}

.language-container .lang:hover .tooltip {
  top: -35px;
  opacity: 1;
  pointer-events: auto;
}

.font-end {
  display: flex;
  flex-direction: column;
}

#second-side {
  height: 70vh;
  width: 25%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1; /* Animate in */
}


/* message code */
