body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: lightgray;
}

html {
  scroll-behavior: smooth;
}

.container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
  background-color: #001f7c38;
}

.back-vid {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: -1;
  mix-blend-mode: lighten;
}

header {
  display: flex;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  height: 70px;
  background-color: rgba(255, 255, 255, 0.123);
  background-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.2),
    transparent 20%,
    transparent 80%,
    rgba(0, 0, 0, 0.2)
  );
  backdrop-filter: blur(1px);
  box-shadow: 0 0 15px #72a1de68;
  z-index: 999;
}

.left {
  display: flex;
  align-items: center;
}

.left img {
  width: 40px;
  margin: 0 15px;
}

.left h2 {
  background: linear-gradient(to right, #01e5ff, #8800ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; /* For Firefox */
  color: transparent;
  background-size: 100%;
}

.left {
  transform: translateX(clamp(-10px, -2vw, -2px));
}

header ul {
  display: flex;
  justify-content: space-between;
  width: 30%;
  padding: 15px 15px;
  border-radius: 50px;
  background-color: rgba(3, 3, 3, 0.207);
  /* backdrop-filter: blur(10px); */
  box-shadow: 0 0 10px #727fde;
}

header ul li {
  list-style: none;
}

header ul li a {
  font-family: 'Orbitron', sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
  color: #e0f7ff;
  text-decoration: none;
  padding: 8px 12px;
  transition: all 0.3s ease;
  position: relative;
}

/* Hover: glowing star effect */
header ul li a:hover {
  color: #ffffff;
  text-shadow: 0 0 6px #00ccff, 0 0 10px #00ccff;
}

/* Optional glowing underline effect */
header ul li a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00ccff, #ffffff);
  transition: width 0.3s ease;
  opacity: 0.8;
}

header ul li a:hover::after {
  width: 60%;
}
.box-icons {
  display: flex;
  gap: clamp(0.5rem, 2vw, 2rem);
}

.box-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  width: 36px;
  height: 36px;
  border: 2px solid #727fdeb4;
  box-shadow: 0 0 5px #727fde86;
  border-radius: 50%;
  color: #b6d8e0;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none; /* remove underline */
}

.box-icons a:hover {
  color: #ffffff;
  box-shadow: 0 0 25px #8c98fe86;
  border: 2px solid #a7b2ffb4;
}

.blackhole-box {
  position: absolute;
  top: -220px;
  width: 100%;
  height: 580px; /* shorter than 720px */
  overflow: hidden;
  z-index: -1;

  mix-blend-mode: lighten;
}

.blackhole-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top 0;
}
.hero {
  position: relative;
  display: flex;
  width: 100%;
  height: 100vh;
  min-height: 811px;
  align-items: center;
  justify-content: space-between;
  /* border: 1px solid; */
}

.hero-info {
  position: absolute;
  left: 5%;
}

.hero-info .hero-info-title {
  color: #727fde;
  padding: 8px 5px;
  border-radius: 50px;
  border: 1px solid #727fde77;
  width: 295px;
  background-color: #2200493d;
  box-shadow: 0 0 5px #727fde88;
}

.hero-info h1 {
  font-size: 60px;
  max-width: 600px;
  font-weight: 700;
  line-height: 70px;
  margin-top: 40px;
  margin-bottom: 30px;
}

.hero-info p {
  max-width: 550px;
  line-height: 25px;
  margin-bottom: 40px;
  font-size: 20px;
}

.hero-info button {
  color: white;
  padding: 15px 35px;
  border-radius: 10px;
  border: 1px solid #727fdeb4;
  background-color: #2200493d;
  box-shadow: 0 0 5px #727fde86;
  cursor: pointer;
  transition: 0.3s;
}
.btn-hero {
  position: relative;
  overflow: hidden;
  color: white;
  padding: 13px 20px;
  border-radius: 10px;
  border: 1px solid #727fdeb4;
  background-color: #2200493d;
  box-shadow: 0 0 5px #727fde86;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, box-shadow 0.4s ease;
  text-decoration: none;
  z-index: 1;
  width: 125px;
}

/* Gradient overlay base (off-screen, not animating yet) */
.btn-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #01f7ff, #6301b4);

  background-size: 100%;
  border-radius: 10px;
  z-index: -1;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

/* On hover: slide in + start animating background */
.btn-hero:hover::after {
  transform: translateX(0);
  /* animation: gradientMove 4s linear infinite; */
}

.btn-hero:hover {
  box-shadow: 0 0 15px #727fde86;
}
.button-group {
  display: flex;
  flex-direction: row; /* or row */
  gap: 1rem; /* optional spacing */
  position: relative; /* This helps with stacking */
  z-index: 0;
}

.hero-info button:hover {
  box-shadow: 0 0 15px #727fde86;
}

/* Gradient Animation */
.gradient {
  background: linear-gradient(
    to right,
    #008baa,
    #7e42a7,
    #6600c5,
    #6070fd,
    #2a46ff,
    #0099ff,
    #008ead
  );
  background-size: 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: animate-gradient 2.5s linear infinite;
}
@keyframes animate-gradient {
  to {
    background-position: 200%;
  }
}

.hero-vid-box {
  position: absolute;
  right: 0%;
}

.hero-vid-box video {
  height: clamp(300px, 65vw, 900px);
  mix-blend-mode: lighten;
}

.scroll-down {
  height: 50px;
  width: 30px;
  border: 2px solid lightgray;
  position: absolute;
  left: 49%;
  bottom: 8%;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(211, 211, 211, 0.477);
}
.scroll-down::before,
.scroll-down::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  height: 10px;
  width: 10px;
  transform: translate(-50%, -100%) rotate(45deg);
  border: 2px solid lightgray;
  border-top: transparent;
  border-left: transparent;
  animation: scroll-down 2s ease-in-out infinite;
}
.scroll-down::before {
  top: 30%;
  animation-delay: 0.5s;
}

.info-section {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 80%;
  margin-top: 200px;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
}

.info-cards {
  display: grid;
  grid-template-columns: auto auto 40%;
  gap: 20px;
  width: 100%;
  height: 100%;
  margin-top: 5px;
}

.card {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  width: auto;
  height: 40vh;
   min-height: 300px;
  overflow: hidden;
  border: 1px solid gray;
  background-color: #080020b7;
  border-radius: 20px;
  transition: 0.3s;
}

.card img {
  width: 75%;
  height: 50%;
  object-fit: cover;
}

.card h1 {
  position: absolute;
  margin: 0;
  bottom: 40%;
  left: 16px;
  font-size: 25px;
  z-index: 1;
  color: rgb(255, 255, 255);
}

.card p {
  position: absolute;
  top: calc(56% + 10px);
  left: 16px;
  right: 16px;
  z-index: 1;
  max-width: 300px;
  color: rgb(186, 186, 186);
  font-size: 13px;
  line-height: 20px;
}

.card video {
  margin-top: 10%;
  width: 78%;
  height: 350px;
  object-fit: cover;
  mix-blend-mode: lighten;
}

.btn-info {
  color: white;
  padding: 5px 15px;
  border-radius: 10px;
  border: 1px solid #727fdeb4;
  background-color: #2200493d;
  box-shadow: 0 0 5px #727fde86;
  transition: 0.3s;
  position: absolute;
  bottom: 5%;
  left: 16px;
  text-decoration: none;
}

.btn-info:hover {
  box-shadow: 0 0 15px #727fde86;
  /* opacity: 0.7; */
}

.card:hover {
  box-shadow: 0 0 15px rgb(211, 211, 211, 0.5);
}

.card:nth-child(3) {
  grid-row: span 2;
  height: 83vh;
   min-height: 625px;
}

.card:nth-child(3) p {
  top: calc(74.5% + 10px);
}

.card:nth-child(3) h1 {
  bottom: 24%;
}

.card:nth-child(4) {
  grid-column: span 2;
}

.card:nth-child(4) p {
  max-width: 650px;
}

@keyframes scroll-down {
  0% {
    /* top:20%; */
    opacity: 0;
  }
  30%,
  60% {
    opacity: 1;
  }
  100% {
    top: 90%;
    opacity: 0;
  }
}

/* My Projects */

.my-projects {
  display: flex;
  flex-direction: column;
  gap: 10%;
  align-items: center;
  position: relative;
  width: 80%;
  height: 100vh;
  margin-top: 200px;
  margin-bottom: 600px;
  /* border: 1px solid; */
  min-height: 1000px;
}

.project-card {
  display: flex;
  width: 100%;
  height: 40%;
  align-items: center;
  gap: 10%;
  justify-content: center;
  /* border: 1px solid; */
}

.project-vidbox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  mix-blend-mode: lighten;
  position: relative;
  cursor: pointer;
  transition: 0.5s;
  min-width: 400px;
  /* border: 1px solid; */
}

.project-vidbox video {
  object-fit: cover;
  width: 100%;
  box-shadow: 0 0 10px lightgray;
  border-radius: 20px;
  transition: 0.5s;
}

.project-card video:hover {
  box-shadow: 0 0 25px lightgray;
}

.project-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 50%;
  padding-left: 10%;
}

.project-info h1 {
  width: 90%;
  font-size: 25px;
  font-weight: bold;
  text-wrap: nowrap;
  margin-top: 0;
  margin-bottom: 15px;
  max-width: 450px;
}

.project-info p {
  width: 90%;
  max-width: 400px;
  min-width: 300px;
  margin-bottom: 20px;
  margin-top: 0;
  line-height: 1.5;
}

.project-info button {
  color: white;
  padding: 5px 15px;
  border-radius: 10px;
  border: 1px solid #727fdeb4;
  background-color: #2200493d;
  box-shadow: 0 0 5px #727fde86;
  cursor: pointer;
  transition: 0.3s;
}

.project-info button:hover {
  box-shadow: 0 0 15px #727fde86;
  /* opacity: 0.7; */
}

.hover-sign {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30%;
  height: 100px;
}

.hover-sign::before,
.hover-sign::after {
  content: '👆';
  text-align: center;
  position: absolute;
  font-size: 40px;
  top: 20%;
  left: 30%;
  border-radius: 50px;
  animation: hoverAnimation 3s ease-in-out infinite;
}

.hover-sign.active {
  display: none;
}

@keyframes hoverAnimation {
  0% {
    /* top:20%; */
    box-shadow: 0 0 5px lightgray;
    transform: translate(100%, 50%) rotate(30deg);
  }

  100% {
    box-shadow: 0 0 15px lightgray;
    transform: translateX(80%, 50%) rotate(0deg);
  }
}

/* Skills Section */
.skills-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  /* border: 1px solid; */
  margin-bottom: 200px;
}

.skills-box {
  width: 100%;
  height: 90vh;
  min-height: 625px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  mix-blend-mode: lighten;
  margin-top: -20px;
}

.skills-image {
  width: 70%;
  mix-blend-mode: lighten;
  opacity: 0.7;
  transform: translateZ(0);
}

.designer {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  top: 25%;
  left: 5%;
  max-width: 300px;
}

.coder {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  top: 25%;
  right: 5%;
  max-width: 300px;
}

.skills-box h1 {
  font-size: 50px;
  display: flex;
  align-items: center;
}

.skills-box p {
  line-height: 23px;
}

/* SLIDER  */
.slider {
  position: absolute;
  bottom: 5%;
  right: 20%;
  width: 60%;
  height: var(--height);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 10% 90%, transparent);
  mix-blend-mode: difference;
  opacity: 0.8;
}
.slider .list {
  display: flex;
  width: 100%;
  min-width: calc(var(--width) * var(--quantity));
  position: relative;
}
.slider .list .item {
  width: var(--width);
  height: var(--height);
  position: absolute;
  left: 100%;
  animation: autoRun 10s linear infinite;
  transition: filter 0.5s;
  animation-delay: calc(
    (10s / var(--quantity)) * (var(--position) - 1) - 10s
  ) !important;
}
.slider .list .item img {
  width: 100%;
}
@keyframes autoRun {
  from {
    left: 100%;
  }
  to {
    left: calc(var(--width) * -1);
  }
}
.slider:hover .item {
  animation-play-state: paused !important;
  filter: grayscale(1);
}
.slider .item:hover {
  filter: grayscale(0);
}

/* Contact Section */
.contact-section {
  width: 80%;
  /* height: calc(100vh + 125px); */
  height: 100vh;
  min-height: 950px;
  max-height: 1000px;
  display: flex;
  justify-content: center;
  gap: 10%;
  align-items: center;
  position: relative;
  /* border: 1px solid; */
  margin-bottom: 212px;
}

.contact-section h1 {
  position: absolute;
  top: 0%;
}

.social-box {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.social-box a {
  color: lightgray;
  text-decoration: none;
  font-size: 20px;
  text-wrap: nowrap;
}

.social-box i {
  color: #727fde;
  font-size: 30px;
  margin-right: 10px;
}

.social-icons a i {
  color: white;
  margin-top: 40px;
}

.contact-box p {
  max-width: 400px;
  margin-top: 30px;
  margin-bottom: 5px;
}

.contact-box input {
  padding: 7.5px 30px;
  background-color: lightgray;
  width: 100%;
  height: 40px;
  border: none;
  outline: none;
  border-radius: 10px;
}
input,
textarea,
button {
  box-sizing: border-box;
}
.contact-box textarea {
  padding: 7.5px 30px;
  background-color: lightgray;
  width: 100%;
  height: 150px;
  border: none;
  outline: none;
  border-radius: 10px;
}

.contact-box button {
  height: 40px;
  width: 100%;
  margin-top: 30px;
  color: white;
  padding: 10px 35px;
  border-radius: 10px;
  border: 1px solid #727fdeb4;
  background-color: #2200493d;
  box-shadow: 0 0 5px #727fde86;
  cursor: pointer;
  transition: 0.3s;
}

.contact-box button:hover {
  /* opacity: 0.8; */
  box-shadow: 0 0 15px #727fde86;
}

.footer {
  width: 100%;
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  align-items: center;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.128);
  backdrop-filter: blur(1px);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.356);
  z-index: 999;
  position: relative;
  font-size: 14 px;
}

/* SIDEBAR */
.menu-icon {
  font-size: 35px;
  cursor: pointer;
  display: none;
}

.sidebar {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 70%;
  width: 0%;
  background-color: #000000b8;
  backdrop-filter: blur(10px);
  z-index: 999;
  box-shadow: 0 0 20px rgba(211, 211, 211, 0.411);
  border-bottom-left-radius: 100%;
  opacity: 0;
}

.close-icon {
  font-size: 50px;
  color: lightgray;
  padding-left: 10px;
  cursor: pointer;
}

.sidebar ul {
  padding-left: 20px;
}

.sidebar ul li {
  list-style: none;
  margin-bottom: 30px;
}

.sidebar ul li a {
  text-decoration: none;
  color: lightgray;
  font-size: 30px;
  font-weight: 700;
  text-shadow: 0 0 15px rgba(128, 128, 128, 0.256);
}
.sidebar ul li a.active {
  color: #fff; /* Or any color you want */
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.7); /* Glowing effect */
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  color: white; /* Optional: highlight active item */
}

.sidebar .social-icons {
  padding-left: 20px;
  margin-top: 60px;
  text-wrap: nowrap;
}

.sidebar .social-icons a {
  font-size: 35px;
  padding: 5px 5px;
}

/* Open Sidebar Animation */
.sidebar.open-sidebar {
  animation: openSidebarAnimation 0.75s forwards;
}

@keyframes openSidebarAnimation {
  to {
    width: 80%;
    opacity: 1;
    bottom: 0;
    border-radius: 0;
  }
}

/* Close Sidebar Animation */
.sidebar.close-sidebar {
  animation: closeSidebarAnimation 0.75s forwards;
}

@keyframes closeSidebarAnimation {
  from {
    width: 80%;
    opacity: 1;
    bottom: 0;
    border-radius: 0;
  }
  to {
    width: 0;
    opacity: 0;
    bottom: 70%;
    border-bottom-left-radius: 50%;
  }
}

/* Blur Effect Animation */
.autoBlur {
  filter: blur(20px);
  opacity: 0;
  transition: none;
  will-change: filter, opacity;
}

/* To disable the blur */
.autoBlur.disable-blur-mobile.active-no-blur {
  filter: none !important;
  backdrop-filter: none !important;
  opacity: 1 !important;
}

.vid-wrapper {
  mix-blend-mode: lighten;
}

.autoDisplay {
  opacity: 0.2;
  transform: translateY(-200px) scale(0);
  filter: blur(10px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out,
    filter 0.6s ease-out;
  will-change: opacity, transform, filter;
}

.autoDisplay.active {
  opacity: 1;
  transform: translateY(0px) scale(1);
  filter: blur(0px);
}

@media (max-aspect-ratio: 16/9) {
  .back-vid {
    width: auto;
    height: 100%;
  }
}

/* Fadein_Left */

.fadein-right {
  opacity: 0;
  transform: translateX(500px) scale(0.2);
  filter: blur(20px);
  transition: none;
  will-change: opacity, transform, filter;
}

@media (min-aspect-ratio: 16/9) {
  .back-vid {
    width: 100%;
    height: auto;
  }
}

/* Tablet */
@media screen and (max-width: 1024px) {
  .blackhole-box {
    top: -163px;
    width: 80%;
    height: 464px; /* shorter than 720px */
  }

  .left img {
    width: 40px;
    margin: 0 8px 0 3px;
  }

  header ul {
    width: 295px;
  }
  .hero-info .hero-info-title {
    font-size: 12px;
    width: 220px;
  }
  .hero-info h1 {
    font-size: 40px;
    max-width: 400px;
    line-height: 40px;
  }

  .hero-info p {
    max-width: 380px;
  }

  .section-title {
    font-size: 30px;
  }

  .info-cards {
    grid-template-columns: auto;
  }
  .card p {
    max-width: 500px;
  }

  .card:nth-child(3) {
    grid-column: span 2;
    height: 70vh;
  }

  .info-cards .card h1 {
    font-size: 20px;
  }

  .card:nth-child(3) h1 {
    bottom: 25%;
  }

  .my-projects {
    margin-bottom: 450px;
  }

  .project-vidbox video {
    width: 350px;
    margin-left: -15px;
  }

  .project-info {
    padding-left: 0;
    margin-left: -50px;
  }

  .project-info h1 {
    font-size: 20px;
    max-width: 250px;
    text-wrap: wrap;
  }

  .project-info p {
    font-size: 12px;
    max-width: 250px;
    text-wrap: wrap;
    min-width: 0;
  }
  .footer p {
    font-size: 12px;
  }
}

@media screen and (min-width: 1100px) and (max-width: 1270px) {
  .card video {
    width: 78%;
    height: 300px;

    transform: translateZ(0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
    will-change: transform, opacity;
    backface-visibility: hidden;
    box-shadow: 0 0 0 0.1px rgba(0, 0, 0, 0.01);
    background-color: rgba(0, 0, 0, 0.5);
  }
}
@media screen and (min-width: 1025px) and (max-width: 1099px) {
  .card video {
    width: 78%;
    height: 285px;
    transform: t ranslateZ(0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
    will-change: transform, opacity;
    backface-visibility: hidden;
    box-shadow: 0 0 0 0.1px rgba(0, 0, 0, 0.01);
    background-color: rgba(0, 0, 0, 0.5);
  }
}

@media screen and (max-width: 1024px) {
  .card video {
    width: 440px;
    height: 400px;
    margin-top: clamp(25px, 5vh, 100px);

    transform: translateZ(0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
    will-change: transform, opacity;
    backface-visibility: hidden;
    box-shadow: 0 0 0 0.1px rgba(0, 0, 0, 0.01);
    background-color: rgba(0, 0, 0, 0.5);
  }
}

@media screen and (min-width: 1480px) {
  .card video {
    height: 450px;
    width: 500px;
    margin-top: 30px;
  }
}

@media screen and (min-width: 701px) and (max-width: 760px) {
  .my-projects {
    margin-bottom: 600px;
  }
}
@media screen and (max-width: 700px) {
  .left img {
    margin-top: 2px;
    margin-left: 1px;
  }
  .blackhole-box {
    top: -122px;
    width: 100%;
    height: 348px;
  }

  header {
    position: fixed;
    height: 50px;
  }

  header ul {
    display: none;
  }

  header .box-icons {
    display: none;
  }
  header h2 {
    display: none;
  }

  .hero {
    flex-direction: column;
  }

  .hero-info {
    bottom: 5%;
  }

  .scroll-down {
    bottom: 5%;
  }

  .hero-info h1 {
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .hero-info p {
    margin-bottom: 30px;
  }

  .hero-vid-box {
    position: relative;
    top: clamp(6%, 8vh, 80%);
    left: 1%;
  }

  .hero-vid-box video {
    height: clamp(375px, 57vw, 400px);
  }
  .btn-hero {
    padding: 10px 12px;
    width: 123px;
  }

  .button-group {
    display: flex;
    flex-direction: column; /* or row */
    gap: 1rem; /* optional spacing */
    position: relative; /* This helps with stacking */
    z-index: 0;
  }

  .info-section {
    scroll-margin-top: 50px;
  }
  .info-cards {
    margin-top: 26px;
  }
  .my-projects {
    scroll-margin-top: 50px;
    margin-bottom: 750px;
  }
  .project-card {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .project-vidbox {
    align-items: center;
    justify-content: center;
  }

  .project-vidbox video {
    width: 85%;
    margin-left: 0;
  }
  .project-info {
    width: 320px;
    align-items: flex-start;
    margin-left: 0;
  }
  .project-info h1 {
    text-wrap: nowrap;
  }
  .project-info p {
    max-width: 300px;
    margin-bottom: 14px;
    word-wrap: break-word;
  }
  .skills-section {
    scroll-margin-top: 50px;
  }
  .skills-box {
    min-height: 780px;
  }

  .designer {
    max-width: 390px;
    top: 15%;
    left: 14%;
    margin-right: 60px;
  }

  .coder {
    max-width: 390px;
    top: 45%;
    left: 14%;
    margin-right: 60px;
  }
  .skills-box h1 {
    font-size: 38px;
  }

  .skills-box p {
    line-height: 23px;
  }

  .skills-box h1 {
    margin-bottom: 0;
    margin-top: 70px;
  }

  .slider {
    bottom: 0;
  }
  .slider .list .item img {
    width: 60%;
  }

  .contact-section {
    flex-direction: column;
    scroll-margin-top: 50px;
    margin-bottom: 50px;
    height: 120vh;
    gap: 0;
  }


  .social-icons a i {
    margin-top: 0;
  }

  .social-box {
    margin-top: 30px;
  }

  .info-cards {
    display: grid;
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .card:nth-child(-n + 4) {
    grid-column: span 1; /* All 4 cards take full width */
  }

  .info-section {
    height: 100vh;
    margin-bottom: 850px;
  }

  .menu-icon {
    display: inline;
  }
}

@media screen and (max-width: 500px) {
  .card video {
    margin-top: 20%;
    width: 90%;
    height: 320px;
  }
}

@media screen and (max-width: 400px) {
  .hero-info h1 {
    font-size: 35px;
    max-width: 400px;
    line-height: 40px;
  }

  .hero-info p {
    font-size: 18px;
  }

  .project-vidbox {
    min-width: 360px;
  }
  .project-info {
    margin-left: 25px;
  }
  .card video {
    margin-top: 20%;
    width: 100%;
    height: 290px;
  }
}
