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

html {
  scroll-behavior: smooth;
}
#loader {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  background-color: #0b0c10;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #72a1de;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ✅ Responsive tweak for smaller devices */
@media screen and (max-width: 500px) {
  .spinner {
    width: 35px;
    height: 35px;
    border-width: 4px;
  }
}

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

.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;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  background-color: rgba(255, 255, 255, 0.128);
  backdrop-filter: blur(10px);
  padding: 0 30px;
  box-shadow: 0 0 15px #72a1de68;
  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: 50px;
  background-color: rgba(0, 0, 69, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 10px #72a1de68;
}

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;
  text-decoration: none;
  color: lightgray;
  border: 2px solid #72a1de68;
  border-radius: 50%;
  transition: 0.3s;
}
.box-icons a:hover {
  background-color: #8bafdeac;
  color: black;
  box-shadow: 0 0 15px #72aadec9;
}

.blackhole-box {
  z-index: -1;
  position: absolute;
  top: 0;
  width: 100%;
  justify-content: center;
  mix-blend-mode: lighten;
}
.blackhole-box {
  z-index: -1;
  position: absolute;
  top: 0;
  width: 100%;
  justify-content: center;
  mix-blend-mode: lighten;
}
.blackhole-desktop {
  display: block;
  width: 100%;
  margin-top: -23.5%;
}
.blackhole-mobile {
  display: none;
  width: 100%;
  margin-top: -16%; /* or adjust as needed */
}

.hero {
  position: relative;
  display: flex;
  width: 100%;
  height: 100vh;
  align-items: center;
  justify-content: space-between;
}

.hero-info {
  position: absolute;
  left: 5%;
}
.hero-info .hero-info-title {
  color: #85aee5d2;
  padding: 8px 5px;
  border: 1px solid #1463c9d2;
  width: 240px;
  background-color: #16064f68;
  box-shadow: 0 0 5px #2a108b68;
  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 25px;
  border: 1px solid #72a1de68;
  border-radius: 10px;
  background-color: #16064f68;
  box-shadow: 0 0 5px #12478ed2;
  cursor: pointer;
  transition: 0.3s;
}

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

.hero-vid-box {
  position: absolute;
  right: 0%;
}
.hero-vid-box video {
  height: 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 lightgray;
}

.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-items: center;
  width: 80%;
  margin-top: 100px;
}
.info-top-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.info-top-row .card {
  flex: 1 1 45%;
  max-width: 600px;
}

.info-bottom-row .card {
  width: 100%;
  margin-top: 2rem;
}

.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: 55%;
  object-fit: cover;
  /* object-fit: contain; */
}
.card h1 {
  position: absolute;
  margin: 0;
  bottom: 40%;
  left: 5%;
  font-size: 25px;
  z-index: 1;
  color: lightgray;
}
.card p {
  position: absolute;
  bottom: 2%;
  left: 5%;
  z-index: 1;
  max-width: 304px;
  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: 1px solid #72a1de68;
  border-radius: 10px;
  background-color: #16064f68;
  box-shadow: 0 0 5px #12478ed2;
  cursor: pointer;
  transition: 0.3s;
  position: absolute;
  bottom: 5%;
  left: 5%;
}
.card button:hover {
  box-shadow: 0 0 15px #12478ed2;
  opacity: 0.7;
}

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

.card:nth-child(3) {
  grid-row: span 2;
  height: 83vh;
}
.card:nth-child(3) p {
  bottom: 12%;
}
.card:nth-child(3) h1 {
  bottom: 32%;
}

.card:nth-child(4) {
  grid-column: span 2;
}
.card:nth-child(4) p {
  max-width: 650px;
}
.card:nth-child(4) h1 {
  bottom: 45%;
}

.my-project {
  display: flex;
  flex-direction: column;
  gap: 10%;
  align-items: center;
  position: relative;
  width: 80%;
  height: 100vh;
  margin-top: 200px;
  margin-bottom: 700px;
}

.project-card {
  display: flex;
  width: 100%;
  height: 40%;
  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: 0.5s;
  mix-blend-mode: exclusion;
}
.project-vidbox video {
  filter: none !important;
  mix-blend-mode: normal !important;
  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: start;
  justify-content: center;
  width: 50%;
  padding-left: 10%;
}
.project-info h1 {
  width: 90%;
  font-size: 25px;
  font-weight: bold;
  text-wrap: nowrap;
  margin-bottom: 6px;
  margin-top: 0;
  max-width: 450px;
}

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

.project-info button {
  color: white;
  padding: 10px 15px;
  border: 1px solid #72a1de68;
  border-radius: 10px;
  background-color: #16064f68;
  box-shadow: 0 0 5px #12478ed2;
  cursor: pointer;
  transition: 0.3s;
}

.project-info button:hover {
  box-shadow: 0 0 15px #12478ed2;
  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: 50px;
  top: 20%;
  left: 40%;
  border-radius: 50%;
  animation: hoverAnimation 3s ease-in-out infinite;
}

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

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

.skills-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.skills-box {
  width: 100%;
  height: 90vh;
  position: relative;
  display: flex;
  align-items: start;
  justify-content: center;
}

.skills-image {
  width: 70%;
  mix-blend-mode: lighten;
  opacity: 0.7;
}

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

.coder {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: start;
  top: 25%;
  right: 5%;
  max-width: 300px;
}
.skills-box h1 {
  font-size: 33px;
  display: flex;
  align-items: center;
}
.skills-box p {
  line-height: 23px;
}

.contact-section {
  width: 80%;
  height: 100vh;
  display: flex;
  justify-content: center;
  gap: 10%;
  align-items: center;
  position: relative;
}

.contact-section h1 {
  position: absolute;
  top: 5%;
  left: 40%;
}

.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: #72aadec9;
  font-size: 30px;
  margin-right: 10px;
}
/* .social-icons a i {
  color: rgb(229, 212, 212);
  margin-top: 40px;
} */
.social-icons a i {
  color: rgb(229, 212, 212);
  margin-top: 40px;
  font-size: 28px;
  transition: all 0.3s ease;
}

.social-icons a i:hover {
  color: #9ae6e6; /* neon cyan glow */
  transform: scale(1.2);
  text-shadow: 0 0 10px #a4ecec, 0 0 20px #00ffff;
}

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

.contact-box input {
  padding: 7.5px 30px;
  background-color: lightgray;
  width: 80%;
  height: 25px;
  border: none;
  outline: none;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.contact-box button {
  margin-top: 30px;
  color: white;
  padding: 10px 15px;
  border: 1px solid #72a1de68;
  border-radius: 10px;
  background-color: #16064f68;
  box-shadow: 0 0 5px #12478ed2;
  cursor: pointer;
  transition: 0.3s;
}
.contact-box button:hover {
  box-shadow: 0 0 15px #12478ed2;
  opacity: 0.7;
}

footer {
  display: flex;
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  align-items: center;
  justify-content: center;
  height: 50px;
  background-color: #acbdd330;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px #acbdd3e9;
  z-index: 999;
}

footer h1 {
  font-size: 30px;
}

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

/* ✅ FINAL SIDEBAR CSS FOR MOBILE RESPONSIVENESS */

.sidebar {
  position: fixed;
  right: 0;
  top: 0;
  width: 0%;
  height: 100vh; /* Full screen height */
  background-color: #000000b8;
  backdrop-filter: blur(10px);
  z-index: 999;
  box-shadow: 0 0 20px #72aadec9;
  opacity: 0;
  overflow: hidden;
  transition: width 0.5s ease, opacity 0.5s ease;
}

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

.sidebar ul {
  padding: 60px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sidebar ul li {
  list-style: none;
}

.sidebar ul li a {
  text-decoration: none;
  color: lightgray;
  font-size: 30px;
  font-weight: 700;
  text-shadow: 0 0 15px #16064f3d;
}

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

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

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

@keyframes openSidebarAnimation {
  to {
    width: 80%;
    opacity: 1;
  }
}

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

@keyframes closeSidebarAnimation {
  from {
    width: 80%;
    opacity: 1;
  }
  to {
    width: 0;
    opacity: 0;
  }
}

/* Blur Effect Animation */
.autoBlur {
  animation: autoBlurAnimation linear both;
  animation-timeline: view();
}

@keyframes autoBlurAnimation {
  0% {
    filter: blur(40px);
    opacity: 0;
  }
  35%,
  65% {
    filter: blur(0);
    opacity: 1;
  }
  100% {
    filter: blur(40px);
    opacity: 0;
  }
}

/* Auto Display Animation */
.autoDisplay {
  animation: autoDisplayAnimation both;
  animation-timeline: view();
}

@keyframes autoDisplayAnimation {
  from {
    filter: blur(10px);
    transform: translateY(-200px) scale(0);
    opacity: 0.2;
  }
  50% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0) scale(1);
  }
}

/* Fade-In Right  */
.fadeInRight {
  animation: fadeInAnimation both;
  animation-timeline: view();
}

@keyframes fadeInAnimation {
  0% {
    opacity: 0;
    transform: translateX(-500px) scale(0.2);
    filter: blur(20px);
  }
  35%,
  65% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
  100% {
    filter: blur(20px);
  }
}

/* Gradient Animation */

.gradient {
  background: linear-gradient(
    to right,
    #669ce3bb,
    #1c63a5c9,
    #9819abc9,
    #800d82d2,
    #1463c9d2,
    #669ce3bb
  );
  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%;
  }
}

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

/* Tab Responsiveness */

@media screen and (max-width: 1000px) {
  .blackhole-box video {
    margin-top: -16%;
  }
  .hero-info h1 {
    font-size: 40px;
    max-width: 400px;
    line-height: 40px;
  }
  .hero-info p {
    max-width: 320px;
  }
  .hero-vid-box {
    right: 0;
  }
  .hero-vid-box video {
    height: 550px;
  }
  .section-title {
    font-size: 30px;
  }
  .info-cards {
    grid-template-columns: auto;
  }
  .card:nth-child(3) {
    grid-column: span 2;
    height: 50vh;
  }
  .info-cards .card h1 {
    font-size: 20px;
  }
  .card:nth-child(3) h1 {
    bottom: 35%;
  }
  .card:nth-child(3) p {
    bottom: 15%;
  }
  .card video {
    height: 62%;
    margin-top: 5%;
    object-fit: contain;
  }
  .my-project {
    margin-bottom: 300px;
  }
  .project-vidbox video {
    width: 250px;
    margin-left: -100px;
  }
  .project-info {
    padding-left: 0;
    margin-left: -50px;
  }
  .project-info h1 {
    font-size: 20px;
    max-width: 200px;
    text-wrap: wrap;
  }
  .project-info p {
    font-size: 10px;
    max-width: 200px;
    text-wrap: wrap;
    min-width: 0;
  }
  .skills-box h1 {
    font-size: 20px;
    max-width: 200px;
    text-wrap: wrap;
  }
  .designer {
    margin-top: 10%;
  }
  .coder {
    margin-top: 10%;
  }
  footer h1 {
    font-size: 20px;
  }
}

/* Mobile Responsiveness */

@media screen and (max-width: 700px) {
  @media screen and (max-width: 700px) {
    .hero-vid-box {
      display: none !important;
    }
  }
  .hover-sign {
    display: none !important;
  }

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

  header ul,
  header .box-icons {
    display: none;
  }

  header h1 {
    font-size: 25px;
  }

  .blackhole-desktop {
    display: none !important;
  }

  .blackhole-mobile {
    display: block !important;
  }
  .hero {
    flex-direction: column;
  }

  .autoBlur {
    animation: none;
  }

  .hero-info {
    bottom: 5%;
  }

  .scroll-down {
    bottom: 5%;
  }

  .hero-info h1 {
    line-height: 45px;
  }

  .hero-vid-box {
    height: 200px;
    top: 5%;
    right: 5%;
  }

  .hero-vid-box video {
    filter: brightness(0.3);
  }

  .info-cards {
    grid-template-columns: auto;
    display: flex; /* Important for order to work */
    flex-direction: column;
  }

  .info-cards .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    width: 90%;
    height: auto;
    padding: 20px 15px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .info-cards .card:nth-child(3) {
    order: 4;
  }
  .info-cards .card:nth-child(4) {
    order: 3;
  }
  .info-cards .card img,
  .info-cards .card video {
    filter: brightness(0.6);
    transition: filter 0.3s ease;
    position: absolute;
    width: 73%;
    height: 30vh;
    object-fit: contain;
    margin-bottom: 15px;
    padding: 1px 16px;
  }

  .info-cards .card h1 {
    position: static;
    color: lightgray;
    font-size: 20px;
    margin-top: 15%;
    margin-bottom: 20%;
    padding: 7px 5px;
  }

  .info-cards .card p {
    position: static;
    max-width: 80%;
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 12px;
    color: lightgray;
  }

  .info-cards .card button {
    position: static;
    margin-top: 10px;
  }

  /* Special Styling for 4th Card */
  .info-cards .card:nth-child(4) img,
  .info-cards .card:nth-child(4) video {
    filter: brightness(1);
    width: 80%; /* increase size */
    height: 30vh;
    object-fit: cover;
  }

  .info-cards .card:nth-child(4) h1 {
    margin-bottom: 10px;
    padding: 20px 10px;
  }

  .info-cards .card:nth-child(4) p {
    max-width: 90%;
    line-height: 22px;
    margin-bottom: 10px;
  }

  .card:nth-child(3),
  .card:nth-child(4) {
    height: auto;
    grid-column: auto;
    grid-row: auto;
  }

  .card video {
    width: 100%;
  }
  .project-vidbox video {
    will-change: transform;
  }

  .my-project {
    margin-bottom: 600px;
  }

  .project-card {
    flex-direction: column;
    margin-left: 25%;
    gap: 30px;
    height: 50%;
  }

  .project-info {
    width: 85%;
  }

  .project-info h1 {
    font-size: 18px;
    text-wrap: nowrap;
  }

  .project-info p {
    max-width: 320px;
  }

  .project-vidbox {
    min-width: 200px;
  }

  .designer {
    top: 15%;
    left: 12%;
    right: 12%;
  }

  .coder {
    top: 65%;
    left: 12%;
    right: 12%;
  }

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

  .contact-section {
    flex-direction: column;
    margin-top: 155px;
    margin-bottom: 80px;
  }

  .contact-section .section-title {
    top: -57px;
    left: 24%;
  }
  .contact-section .social-box {
    margin: 10px;
    padding: 10px;
  }
  footer h1 {
    font-size: 17px;
  }

  .menu-icon {
    display: inline;
  }
}

.project-tag {
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(to right, #7f00ff, #e100ff);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 1rem;
  margin-bottom: 10px;
  font-weight: 600;
}

#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  font-size: 24px;
  border: none;
  outline: none;
  background-color: #1f1f1f;
  color: white;
  cursor: pointer;
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

#scrollTopBtn:hover {
  background-color: #333;
}
