body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: lightgrey;
}

.container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
}

.back-vid {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: -1;
  mix-blend-mode: overlay;
}

@media (max-aspect-ratio: 16/9) {
  .back-vid {
    width: auto;
    height: 100%;
  }
}

@media (min-aspect-ratio: 16/9) {
  .back-vid {
    width: 100%;
    height: auto;
  }
}

header {
  display: flex;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  background-color: rgb(255, 255, 255, 0.123);
  backdrop-filter: blur(10px);
  padding: 0 30px;
  box-shadow: 0 0 15px #4f29cf;
  z-index: 999;
}

.left {
  display: flex;
  align-items: center;
}

.left img {
  width: 40px;
  margin: 0 15px;
}

header ul {
  display: flex;
  justify-content: space-between;
  width: 30%;
  padding: 15px 15px;
  border-radius: 15px;
  background-color: rgb(0, 0, 69, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 10px #727fde65;
}

header ul li {
  list-style: none;
}

header ul a {
  text-decoration: none;
  color: white;
  font-weight: 700;
  margin: 0 10px;
}

.box-icons {
  display: flex;
  gap: 40px;
}

.box-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  width: 30px;
  height: 30px;
  border: 2px solid #dd1717;
  text-decoration: none;
  color: lightgray;
  border-radius: 50%;
  transition: 0.3s;
}

.box-icons a:hover {
  background-color: #c53434;
  color: black;
  box-shadow: 0 0 15px #dd1717;
}

.blackhole-box {
  position: absolute;
  top: 0;
  width: 100%;
  justify-content: center;
}

.balckhole-box video {
  width: 100%;
  margin-top: -23.5%;
}

.hero {
  position: relative;
  display: flex;
  width: 100%;
  height: 100vh;
  align-items: start;
  justify-content: space-between;
  margin-top: -20%;
}

.hero-info {
  position: absolute;
  left: 5%;
}

.hero-info .hero-info-title {
  color: #727fde;
  padding: 8px 5px;
  border: 1px solid #727fde77;
  width: 240px;
  background-color: #2200493d;
  box-shadow: 0 0 5px #2735a1;
  border-radius: 50px;
}

.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: 2px solid #5727b8;
  background-color: #2200493d;
  box-shadow: 0 0 5px #2735a1;
  cursor: pointer;
  transition: 0.3s;
}

.hero-info button:hover {
  box-shadow: 0 0 15px #2735a1;
}

/* 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: -160%;
  margin-top: -110%;
}

.hero-vid-box video {
  height: 900px;
  mix-blend-mode: difference;
}

.scroll-down {
  height: 50px;
  width: 30px;
  border: 2px solid lightgray;
  position: absolute;
  left: 48%;
  bottom: 40%;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(211, 211, 211, 0.492);
}

.scroll-down::before,
.scroll-down::after {
  content: "";
  position: absolute;
  top: 20%;
  left: 49%;
  height: 10px;
  width: 10px;
  border: 2px solid lightgray;
  transform: translate(-50%, -100%) rotate(45deg);
  border-top: transparent;
  border-left: transparent;
  animation: scroll-down 2s ease-in-out infinite;
}

.scroll-down::before {
  top: 30%;
  animation-delay: 0.5s;
}

@keyframes scroll-down {
  0% {
    opacity: 0;
  }
  30%,
  60% {
    opacity: 1;
  }
  100% {
    top: 90%;
    opacity: 0;
  }
}

.info-section {
  display: flex;
  flex-direction: column;
  align-self: center;
  width: 80%;
  margin-top: 100px;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
}

.info-cards {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 20px;
  width: 100%;
  height: 100%;
  margin-top: 30px;
}

.Card {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  width: auto;
  height: 40vh;
  overflow: hidden;
  border: 1px solid gray;
  background-color: #080020b7;
  border-radius: 20px;
  transition: 0.3s;
}

.Card img {
  width: 80%;
  height: 50%;
  object-fit: cover;
}

.Card h1 {
  position: absolute;
  margin: 0;
  bottom: 50%;
  left: 5%;
  font-size: 25px;
  z-index: 1;
  color: lightgray;
}

.Card p {
  position: absolute;
  bottom: 3%;
  left: 5%;
  z-index: 1;
  max-width: 300px;
  color: gray;
  font-size: 13px;
  line-height: 20px;
}

.Card video {
  margin-top: 10%;
  width: 70%;
  height: 50%;
  object-fit: cover;
  mix-blend-mode: lighten;
}

.Card button {
  color: white;
  padding: 10px 15px;
  border-radius: 10px;
  border: 2px solid #5727b8;
  background-color: #2200493d;
  box-shadow: 0 0 5px #2735a1;
  cursor: pointer;
  transition: 0.3s;
  position: absolute;
  bottom: 5%;
  left: 5%;
}

.Card button:hover {
  box-shadow: 0 0 15px #727fde86;
  opacity: 0.7;
}

.Card:hover {
  box-shadow: 0 0 15px rgba(211, 211, 211, 0.504);
}

.Card:nth-child(4) {
  grid-row: span 2;
  height: 70vh;
}

.Card:nth-child(4) p {
  bottom: 20%;
}
.Card:nth-child(4) h1 {
  bottom: 13%;
}

.Card:nth-child(5) {
  grid-column: span 2;
}

.Card:nth-child(5)p {
  max-width: 650px;
}

.Card:nth-child(5) h1 {
  bottom: 40%;
}

.Card:nth-child(2) h1 {
  bottom: 42%;
}

/*my project */

.my-projects {
  display: flex;
  flex-direction: column;
  gap: 10%;
  align-items: center;
  position: relative;
  width: 90%;
  height: 150vh;
  margin-top: 300px;
  margin-bottom: 800px;
}

.project-card {
  display: flex;
  width: 100%;
  height: 80%;
  align-items: center;
  gap: 10%;
  justify-content: center;
}

.project-vidbox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  position: relative;
  cursor: pointer;
  min-width: 400px;
  transition: 1.5s;
  mix-blend-mode: exclusion;
}

.project-vidbox video {
  object-fit: cover;
  width: 100%;
  box-shadow: 0 0 10px lightgray;
  border-radius: 20px;
  transition: 0.5s;
}

.project-vidbox video:hover {
  box-shadow: 0 0 20px lightgray;
}

.project-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50%;
  padding-left: 10%;
}

.project-info h1 {
  width: 90%;
  font-size: 25px;
  font-weight: bold;
  text-wrap: nowrap;
  margin-bottom: 10px;
  margin-top: 0;
  max-width: 450px;
}

.project-info p {
  width: 90%;
  max-width: 400px;
  min-width: 300px;
  margin-bottom: 50px;
  margin-top: 0;
}

.project-info button {
  color: white;
  padding: 10px 15px;
  border-radius: 10px;
  border: 2px solid #5727b8;
  background-color: #2200493d;
  box-shadow: 0 0 5px #2735a1;
  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: 35px;
  top: 20%;
  left: 40%;
  border-radius: 50%;
  animation: hoveranim 3s ease-in-out infinite;
}

@keyframes hoveranim {
  0% {
    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);
  }
}

.hover-sign.active {
  display: none;
}

/* Skills Section */
.skills-section {
  display: flex;
  flex-direction: column;
  gap: 10%;
  align-items: center;
  position: relative;
  width: 90%;
  height: 150vh;
  margin-top: 300px;
  margin-bottom: 50px;
}

.skills-box {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: start;
  justify-content: center;
}

.skills-image {
  width: 100%;
  mix-blend-mode: lighten;
  opacity: 0.7;
  right: 70%;
}

.designer {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: start;
  top: 25%;
  left: 5%;
  max-width: 300px;
}

.corder {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: start;
  top: 25%;
  right: 5%;
  max-width: 300px;
}

/* 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: max-content;
  min-width: calc(var(--width) * var(--quantity));
  position: relative;
  animation: slideMove 15s linear infinite;
}

.slider .list .item {
  width: var(--width);
  height: var(--height);
  position: relative;
  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%;
  display: block;
}

@keyframes slideMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-160%);
  }
}

.slider :hover .list {
  animation-play-state: paused !important;
  filter: grayscale(1);
}

.slider .items:hover {
  filter: grayscale(1);

  animation-play-state: running !important;
}

/* contact */

.contact-section {
  width: 80%;
  min-height: 60vh; /* Reduce height for less vertical space */
  margin-top: -170px; /* Pull section further up under skills animation */
  margin-bottom: 70px; /* Add a little space below */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 5%;
  align-items: center;
  position: relative;
  padding: 40px 0 30px 0;
  background: transparent;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(114, 127, 222, 0.25);
  box-shadow: 0 0 26px rgba(114, 127, 222, 0.22),
    inset 0 0 10px rgba(34, 0, 73, 0.15);
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: radial-gradient(
    closest-side,
    rgba(114, 127, 222, 0.45),
    rgba(114, 127, 222, 0) 70%
  );
  filter: blur(24px);
  opacity: 0.28;
  z-index: -1;
  animation: none;
}

@keyframes glow-rotate {
  to {
    transform: rotate(360deg);
  }
}

/* Optional: reduce container gap for overall layout */
.container {
  gap: 60px; /* was 100px */
}

.contact-section h1 {
  position: static;
  margin-top: 60px;
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(114, 127, 222, 0.25);
}

.social-box {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.social-box i {
  color: #727fde;
  font-size: 30px;
  margin-right: 20px;
}

.social-icons {
  color: white;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.social-box a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.social-box a:hover {
  color: #8ea0ff;
  opacity: 1;
}

/* Animated phone icon */
.phone-anim {
  display: inline-block;
  animation: phone-ring 1.5s ease-in-out infinite;
  transform-origin: 50% 0.6em;
}

@keyframes phone-ring {
  0% {
    transform: rotate(0deg);
  }
  15% {
    transform: rotate(15deg);
  }
  30% {
    transform: rotate(-12deg);
  }
  45% {
    transform: rotate(8deg);
  }
  60% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(2deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.contact-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 500px;
  gap: 18px;
  background: rgba(30, 30, 60, 0.2);
  padding: 30px 30px 20px 30px;
  border-radius: 15px;
  box-shadow: 0 0 10px #727fde65;
}

.contact-box p {
  max-width: 400px;
  margin: 0;
  text-align: left;
  font-size: 16px;
  color: #ccc;
}

.contact-box input,
.contact-box .input-message {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #727fde77;
  background: #2200493d;
  color: #fff;
  font-size: 16px;
  margin-bottom: 10px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    background 0.25s ease;
}

.contact-box input::placeholder,
.contact-box .input-message::placeholder {
  color: #b8b8d9;
}

.contact-box input:focus,
.contact-box .input-message:focus {
  border-color: #8ea0ff;
  box-shadow: 0 0 0 4px rgba(114, 127, 222, 0.18);
  background: rgba(34, 0, 73, 0.45);
}

/* optional: style a basic error state via .is-invalid class if used */
.contact-box input.is-invalid,
.contact-box .input-message.is-invalid {
  border-color: #dd1717;
  box-shadow: 0 0 0 4px rgba(221, 23, 23, 0.15);
}

/* Button: transparent base, violet hover */
.contact-box button {
  color: white;
  padding: 12px 25px;
  border-radius: 10px;
  border: 2px solid #5727b8;
  background: transparent;
  box-shadow: 0 0 5px rgba(39, 53, 161, 0.25);
  cursor: pointer;
  transition: background-color 0.25s ease, box-shadow 0.25s ease,
    transform 0.06s ease, opacity 0.2s ease;
  margin-top: 10px;
}

.contact-box button:hover {
  background-color: #5727b8;
  box-shadow: 0 0 18px rgba(114, 127, 222, 0.55);
}

.contact-box button:active {
  transform: translateY(1px) scale(0.99);
}

@media (max-width: 768px) {
  .contact-section {
    width: 92%;
    padding: 28px 0 24px 0;
    margin-top: -140px;
  }
  .contact-box {
    max-width: 92%;
    padding: 24px 18px 16px 18px;
    gap: 14px;
  }
  .contact-box p {
    font-size: 15px;
  }
  .contact-box input,
  .contact-box .input-message {
    font-size: 15px;
  }
  .contact-box button {
    width: 100%;
  }
}

html {
  scroll-behavior: smooth;
}

/* Navigation styling improvements */
header ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
  position: relative;
}

header ul li a:hover {
  color: #727fde;
  transform: translateY(-2px);
}

header ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: linear-gradient(90deg, #2a46ff, #7e42a7);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

header ul li a:hover::after {
  width: 100%;
}
