@import url("https://fonts.googleapis.com/css2?family=Playwrite+AR&family=Playwrite+BE+WAL:wght@350&family=Playwrite+HU:wght@100..400&display=swap");

/* @import url("https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Palanquin:wght@100;200;300;400;500;600;700&display=swap"); */
:root {
  --box-bg: #17112b;
  /* Replace with your custom color */
}

* {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* font-family: "poppins", sans-serif; */
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
}

body {
  color: #ededed;
  overflow-x: hidden;
  letter-spacing: 0.04rem;
  /* background-color: purple; */
  /* background-image: radial-gradient(
    circle farthest-corner at 3.2% 49.6%,
    rgba(80, 12, 139, 0.87) 0%,
    rgba(161, 10, 144, 0.72) 83.6%
  ); */
  background-color: #1a0f2a;
  /* Deep slate background for contrast */
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100vw;
  min-height: 100vh;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  /* Make sure it's behind everything */
  opacity: 0.5;
  /* Adjust for readability, 0.5 is a good start */
  pointer-events: none;
  /* So it doesn't block clicks */
}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(26, 15, 42, 0.5);
  /* Adjust color and opacity as needed */
  z-index: 0;
  pointer-events: none;
}

.highlight {
  color: #c084fc;
  /* color: #9d6ef0; */
}

.gradient {
  background: linear-gradient(to right,
      #5020b1,
      #9b42d6,
      #6600c5,
      #6541f5,
      #bc26f8,
      #a614d2,
      #7300ad);
  background-size: 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: animate-gradient 3s linear infinite;
}

@keyframes animate-gradient {
  to {
    background-position: 200%;
  }
}

.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1000;
  right: 1rem;
  top: 2rem;
  height: 40px;
  width: 40px;
  position: fixed;
}

.hamburger span {
  height: 2px;
  width: 25px;
  background: #6600c5;
  border-radius: 2px;
  margin: 0.5rem;
  display: block;
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform-origin: center;
}

/* Hide nav on mobile by default */
@media (max-width: 768px) {
  .navbar a {
    display: none;
    position: fixed;
    /* So it overlays the screen */
    top: 4rem;
    /* Just below the hamburger */
    right: 2rem;
    /* Align right */
    background: #333;
    padding: 1rem;
    border-radius: 5px;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
    /* Below hamburger (z-index: 1000) */
  }

  .navbar.show {
    display: flex;
    /* Show when toggled */
  }

  .hamburger {
    display: block;
    /* Show hamburger on mobile */
  }
}

/* Popup menu box (hidden initially) */
.popup-menu {
  display: none;
  position: fixed;
  /* floats over content */
  top: 80px;
  /* adjust so it's below header/hamburger */
  right: 20px;
  background: #211a39;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  flex-direction: column;
  gap: 1rem;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  min-width: 150px;
}

.popup-menu a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
}

/* Show popup when toggled */
.popup-menu.show {
  display: flex;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 10%;

  background: linear-gradient(135deg,
      rgba(139, 12, 242, 0.9),
      rgba(52, 4, 65, 0.9));

  display: flex;
  justify-content: space-between;
  align-content: center;
  z-index: 100;
}

.logo {
  position: relative;
  font-size: 25px;
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  cursor: default;
  font-family: "Playwrite HU", cursive;
  opacity: 0;
  animation: slideRight 0.5s ease forwards;
}

@keyframes slideRight {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }

  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.2rem;
  /* position: relative; */
  /* z-index: 1000; */
}

.navbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
  /* margin-left: 20px; */
  transition: 0.4s;
  height: 100%;
  opacity: 0;
  animation: slideTop 0.5s ease forwards;
  animation-delay: calc(0.1s * var(--i));
  transition: all 1.2s ease;
}

@keyframes slideTop {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }

  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}

.navbar a:hover {
  background: linear-gradient(90deg, #a21caf, #9333ea, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* optional for non-WebKit support */
  text-fill-color: transparent;
  /* optional fallback */
}

.home {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 70px 10% 0;
}

.img-container {
  display: flex;
  justify-content: space-around;
}

.me-img {
  margin-left: 3rem;
  width: 80%;
  height: 80%;
  border-radius: 250px;
  border: 5px solid white;
  box-shadow: 0 0 5px rgba(138, 78, 241, 0.95), 0 0 15px rgba(144, 86, 246, 0.7),
    0 0 30px rgba(124, 58, 237, 0.6), 0 0 50px rgba(124, 58, 237, 0.4);
}

.me-img:hover {
  transform: scale(1.1);
  transition-duration: 0.3s;
  transition-timing-function: ease-in;
}

.home-content {
  max-width: 600px;
}

.home-content h3 {
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0;
  animation: slideBottom 0.5s ease 0.2s 1 forwards;
}

@keyframes slideBottom {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }

  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}

.home-content h1 {
  font-size: 2rem;
  font-weight: 700;
  font-family: "Playwrite HU", cursive;
  margin: -3px 0;
  opacity: 0;
  animation: slideRight 0.7s ease-out forwards;
  animation-delay: 0.3s;
}

.home-content p {
  font-size: 0.8rem;
  opacity: 0;
  animation: slideLeft 0.7s ease forwards;
  animation-delay: 0.4s;
}

@keyframes slideLeft {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }

  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}

.home-content h3:nth-of-type(2) {
  margin-bottom: 1rem;
  animation: slideTop 0.5s ease forwards;
  animation-delay: 0.5s;
}

.home-content h3 span {
  color: #7c3aed;
}

.home-sci a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  width: 40px;
  background: transparent;
  text-decoration: none;
  /* color: #9e41fc;
  border: 2px solid #a246fd; */

  color: #7c3aed;
  border: 2px solid #7c3aed;
  border-radius: 100px;
  font-size: 1.3rem;
  margin: 30px 15px 30px 0;
  transition: 0.5s ease;
  opacity: 0;
  animation: slideLeft 0.5s ease 1 forwards;
  animation-delay: calc(0.15s * var(--i));

  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s ease;
}

.home-sci a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #7506a5, #9333ea, #7c3aed);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s ease;
}

.home-sci a:hover {
  /* background-color: rgb(236, 201, 252); */
  /* color: rgb(151, 58, 250); */
  color: #7c3aed;
  /* Violet accent for 'Skills' word */
  border: 2px solid #7c3aed;
  /* box-shadow: 0 0 20px rgb(149, 51, 255); */
}

.home-sci a:hover::before {
  transform: scaleX(1);
  /* Animate gradient in from left to right */
}

.home-sci a:hover {
  color: white;
}

.btn-box {
  display: flex;
  align-items: center;
  align-self: center;
  max-width: 35%;
  font-size: 13px;
  gap: 0.3rem;
  justify-content: center;
  padding: 8px 10px;
  /* background: #211a39; */
  background-color: #1a0f2a;
  /* Solid initial background */
  /* border: 1px solid #7a04c2;
  color: white; */

  /* color: #9e41fc;
  border: 2px solid #a246fd; */

  color: #7c3aed;
  border: 2px solid #7c3aed;
  margin-bottom: 1rem;
  border-radius: 40px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  opacity: 0;

  transition: transform 0.3s ease;
  animation: slideLeft 0.5s ease 1 forwards;
  animation-delay: 1.7s;
}

.btn-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #7506a5, #9333ea, #7c3aed);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s ease;
}

.btn-box:hover::before {
  transform: scaleX(1);
  /* Animate gradient in from left to right */
}

.btn-box:hover {
  color: white;
}

.scroll-down {
  height: 40px;
  width: 25px;
  border: 2px solid #7c3aed;
  position: absolute;
  left: 49%;
  bottom: 8%;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 0 15px rgb(97, 2, 145);
}

.scroll-down::before,
.scroll-down::after {
  content: "";
  position: absolute;
  top: 20%;
  left: 49%;
  width: 8px;
  height: 8px;
  border: 2px solid #7c3aed;
  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;
  }
}

.about {
  padding: 1.5rem;
  height: 100vh;
  width: 100vw;
  background-size: cover;
  display: flex;
  /* grid-template-columns: repeat(2, 1fr); */
  justify-content: space-between;
  align-items: center;
  /* gap: 1.5rem; */
  margin-top: 5rem;
}

@media screen and (max-width: 768px) {
  .about {
    flex-direction: column;
    height: auto;
  }

  .about-img {
    min-width: 100%;
    padding: 0;
  }

  .about-img img {
    width: 100%;
    height: 100%;
    border-radius: 50rem;
  }

  .about-text {
    padding: 0;
    text-align: center;
  }

  .about-text h2 {
    font-size: 2rem;
  }
}

.about-img {
  padding: 2rem;
  display: flex;
  min-width: 40%;
  justify-content: center;
  align-items: center;
}

.about-img img {
  height: 80%;
  width: 70%;
  border-radius: 50rem;
}

.vid-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  /* background-color: #0f172a; optional subtle background */
}

.vid-container video {
  width: 90%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  mix-blend-mode: lighten;
  border-radius: 15px;
  transition: transform 0.4s ease;
  filter: blur(1.1px);
  mix-blend-mode: lighten;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.vid-container video:hover {
  transform: scale(1.03);
}

.vid-container-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 100%;
  overflow: hidden;
}

.vid-container-contact video {
  width: 90%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  /* mix-blend-mode: lighten; */
  border-radius: 12px;
  transition: transform 0.4s ease;
  filter: blur(0.3px);
  mix-blend-mode: lighten;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.vid-container-contact video:hover {
  transform: scale(1.03);
}

.about-text p {
  color: white;
  font-size: 0.7rem;
  margin-bottom: 0.5rem;
  padding-right: 1rem;
}

.about-text li {
  color: white;
  font-size: 0.7rem;
  margin-bottom: 0.5rem;
  padding-right: 1rem;
}

.about-text h2 {
  font-size: 3rem;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  padding-right: 1rem;
}

.about-text h2 {
  font-size: 2.5rem;
}

.about-text h2 span {
  color: #7c3aed;
}

.about-text h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #c084fc;
  line-height: 2rem;
  margin: 10px 0 20px;
}

/* Font Awesome (add in <head> of your HTML) */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");

.highlights-section {
  /* background-color: #1a0f2a; */
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  /* color: #c084fc; */
  margin-bottom: 50px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  /* background: rgba(255, 255, 255, 0.07); */
  /* border: 1px solid #a855f7; */
  backdrop-filter: blur(10px);
  /* background-color: #1a0f2a; */
  /* background: #211a39; */
  /* background: #17112b; */
  background: var(--box-bg);

  border-radius: 20px;
  padding: 25px 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.4),
    0 0 8px rgba(124, 58, 237, 0.2);
}

/* .stat-icon {
  font-size: 2.5rem;
  color: #c084fc;
  margin-bottom: 15px;
} */

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: #e9d5ff;
}

.stat-label {
  margin-top: 8px;
  font-size: 1rem;
  color: #d8b4fe;
}

#btn-2 {
  margin: 1rem;
}

.skills {
  background-color: #1a0f2a;
}

.heading-skills {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
}

.heading-skills span {
  margin-left: 0.5rem;

  color: #7c3aed;
}

.container-skills {
  display: grid;
  grid-template-columns: repeat(6, minmax(100px, 1fr));
  grid-gap: 1.5rem;
  margin-top: 2rem;
  padding: 1rem;
}

.content-skills {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* background: #211a39; */
  background: var(--box-bg);


  padding: 0.5rem;
  font-size: 0.8rem;
  font-weight: 400;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 0.75rem;
  /* optional, feel free to uncomment */
}

.content-skills:hover {
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.4),
    0 0 8px rgba(124, 58, 237, 0.2);
}

.skill-icon {
  font-size: 3rem;
}

.skill-name {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.skill-content {
  text-align: center;
}

.profiles a {
  text-decoration: none;
  color: white;
  font-size: 0.8rem;
}

.profiles a:hover {
  color: #7c3aed;
}

.main-text {
  padding-top: 2rem;
  margin-top: 2rem;
}

.main-text h2 {
  font-size: 2rem;
  line-height: 1rem;
  text-align: center;
}

.main-text h2 span {
  color: #7c3aed;
}

.project-content {
  display: grid;
  margin-top: 2rem;
  margin: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 3rem;
  padding: 3rem;
}

.aClass {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 0.3rem;
  justify-content: center;
  padding: 8px 12px;
  background: #211a39;
  /* Solid initial background */
  /* border: 1px solid #7a04c2; */
  border: 1.2px solid #530484;
  color: white;
  border-radius: 10px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s ease;
}

.aClass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #7506a5, #9333ea, #7c3aed);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s ease;
}

.aClass:hover::before {
  transform: scaleX(1);
  /* Animate gradient in from left to right */
}

#tag {
  color: rgb(255, 255, 255);
  text-decoration: none;
}

.row {
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  align-items: center;
  /* border: 1px solid white; */
  border-radius: 1rem;

  /* background: #211a39; */
  background: var(--box-bg);

  /* Slightly lighter than the section background */
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.row:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  overflow: hidden;
}

.row img {
  width: 100%;
  height: 60%;
  min-height: 5rem;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  filter: brightness(1.1);
  /* 1.0 is normal, try 1.2–1.5 for a brighter look */
  object-fit: cover;
  transition: transform 0.5s ease-in-out;
}

.row:hover img {
  transform: scale(1.05);
  overflow: hidden;
}

.project-box {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-betwen;
  align-items: center;
  gap: 0.5rem;
}

.project-links {
  display: flex;
  justify-content: space-around;
  height: 100%;
  width: 100%;
}

.row p {
  /* margin-bottom: 0.2rem; */
  margin-top: 0.5rem;

}

.layer {
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.2rem;
  padding: 1rem;
  padding-top: 0.2rem;
}

.layer h5 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
  margin-top: 0.5rem;
  letter-spacing: 0.05rem;
  /* font-family: "Times New Roman", Times, serif; */
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  opacity: 0;
  animation: slideBottom 0.5s ease forwards;
}

.layer i {
  font-size: 1.3rem;
  /* color: #ededed; */
  opacity: 0;
  animation: slideTop 0.5s ease forwards;
}

.layer i:hover {
  transform: scale(1.2);
}

/* awards section code */
/* .awards {
  display: grid;
  margin-top: 2rem;
  margin: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 3rem;
  padding: 3rem;
  background-color: #211a39;
} */

.wrapper {
  /* max-width: 1100px; */
  padding: 20px 10px;
  margin: 2rem 60px 35px;
  overflow: hidden;
}

.wrapper .card {
  height: auto;
  display: flex;
  flex-direction: column;
  /* background-color: #1a0f2a; */
  /* background: #211a39; */
  background: var(--box-bg);
  min-height: 400px;
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wrapper .card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  overflow: hidden;
}

.card-container {
  margin: 0 1rem;
  font-family: "Inter", sans-serif;
}

.card .card-image {
  position: relative;
  height: 50%;
}

.card .card-image img {
  width: 100%;
  height: 100%;
  padding: 10px;
  border-radius: 22px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;

  aspect-ratio: 16/9;
  object-fit: cover;
  filter: brightness(1.2);
  /* 1.0 is normal, try 1.2–1.5 for a brighter look */
}

.card .card-image .card-tag {
  position: absolute;
  display: none;
  font-size: 0.75rem;
  padding: 5px 15px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: #f1e9fa;
  color: #7c3aed;
  left: 25px;
  top: 25px;
}

.card .card-content {
  flex: 1;
  display: flex;
  height: 50%;
  flex-direction: column;
  text-align: center;
  padding: 10px 25px 25px;
}

.card .card-content .card-title {
  color: rgb(255, 255, 255);
  font-size: 1.2rem;
  font-family: "Times New Roman", Times, serif;
  letter-spacing: 0.04rem;
  line-height: 1.3;
  margin-bottom: 15px;
}

.card .card-content .card-platform {
  /* color: #7c3aed; */
  color: #c084fc;
  letter-spacing: 0.1rem;
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
}

.card .card-content p {
  /* color: rgb(62, 61, 61); */
  font-size: 0.8rem;
  line-height: 1.2;
  margin-bottom: 18px;
}

.card .card-content .card-footer {
  display: flex;
  align-items: center;
  padding-top: 15px;
  /* margin-top: auto; */
  position: relative;
  justify-content: center;
  /* border-top: 1px solid #232323; */
}

.card .card-footer .card-button {
  position: relative;
  display: inline-block;
  border-radius: 40px;
  background-color: #211a39;
  padding: 10px 20px;
  font-size: 0.81rem;
  color: #7c3aed;
  border: 1px solid #7c3aed;
  text-decoration: none;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease;
}

.card .card-footer .card-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #7506a5, #9333ea, #7c3aed);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s ease;
}

.card .card-footer .card-button:hover::before {
  transform: scaleX(1);
}

.card .card-footer .card-button:hover {
  color: white;
}

.wrapper .swiper-pagination-bullet {
  height: 15px;
  width: 15px;
  overflow: hidden;
  opacity: 1;
  /* background: #a487f9; */
  background: #c084fc;
}

.wrapper .swiper-pagination-bullet-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background: #7c3aed;
  transform: scaleX(0);
  transform-origin: left center;
  animation: autoplay-loading 3s linear forwards;
}

card-container:hover .wrapper .swiper-pagination-bullet-active::before {
  animation-play-state: paused;
}

@keyframes autoplay-loading {
  100% {
    transform: scaleX(1);
  }
}

.wrapper .swiper-button-prev,
.wrapper .swiper-button-next {
  color: #7c3aed !important;
  margin-top: -35px;
  transition: all 0.3s ease;
}

.wrapper .swiper-button-prev:hover,
.wrapper .swiper-button-next:hover {
  color: #6010ea !important;
}

@media (max-width: 736px) {
  .wrapper {
    /* margin: 0 40px 25px; */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
  }

  .wrapper .swiper-button-prev,
  .wrapper .swiper-button-next {
    display: none !important;
  }

  /* .card{
  max-width: 70vw;
  margin: 0 auto;
 } */
}

.contact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  grid-gap: 1rem;
  padding: 2rem;
  margin: 2rem;

  /* background-color: #0f172a; Deep slate background for contrast */

  /* display: flex;
  justify-content: center;
  align-items: center; */
}

.contact-text {
  /* text-align: center; */
  margin-bottom: 4rem;
}

.contact-text h2 {
  font-size: 2rem;
  text-align: center;
}

.contact-text h2 span {
  color: #7c3aed;
}

.contact-text h4 {
  margin: 1rem 0;

  color: #c084fc;
  font-size: 1rem;
  font-weight: 600;
}

.contact-text p {
  color: white;
  font-size: 0.8rem;
  line-height: 1.5rem;
  font-weight: 100;
  margin-bottom: 2rem;
}

.contact-list li {
  list-style: none;
  font-weight: 700;
}

.contact-list a {
  text-decoration: none;
}

.socials {
  display: inline-flex;
  justify-content: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;

  line-height: 1.5rem;
  align-items: center;
  color: #c084fc;

  opacity: 0;
  animation: slideRight 0.5s ease forwards;
  animation-delay: calc(0.2s * var(--i));
}

.socials:hover {
  color: #7c3aed;
  transform: scale(1.1);
}

.vid-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
}

.contact-img {
  padding: 2rem;
  display: flex;
  min-width: 40%;
  justify-content: center;
  align-items: center;
}

.contact-img img {
  height: 100%;
  width: 90%;
  border-radius: 50rem;
}

.contact-form {
  position: relative;
  display: none;
}

.contact-form form input,
form textarea {
  border: none;
  outline: none;
  color: #f8fafc;
  width: 90%;
  padding: 0.7rem;
  /* background: #1e293b; Slightly lighter than the section background */

  background: #211a39;

  font-weight: 400;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
}

.contact-form form .send {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  /* background: #1e293b; Slightly lighter than the section background */

  background-color: #211a39;

  border-radius: 25px;
  font-size: 1rem;
  color: #c084fc;
  /* border: 2px solid #c084fc; */
  font-weight: 500;
  opacity: 0;
  animation: slideTop 1s ease forwards;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.contact-form form .send:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);

  transform: scale(1.1);
  /* background: #1e293b; Slightly lighter than the section background */

  color: #7c3aed;
  /* Violet accent for 'Skills' word */
  border: 2px solid #7c3aed;
  background: #211a39;
}

.last-section {
  display: flex;

  /* background-color: #0f172a; Deep slate background for contrast */
}

.last-text {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: slideTop 1s ease forwards;
}

.last-text p {
  font-family: "Playwrite HU", cursive;
}

.back-to-top {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 0.3rem;
  justify-content: center;
  padding: 10px 20px;
  /* background: #211a39;  */
  background-color: #1a0f2a;
  /* Solid initial background */
  /* border: 1px solid #7a04c2;
  color: white; */

  color: #7c3aed;
  border: 2px solid #7c3aed;

  margin-bottom: 1rem;
  border-radius: 40px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s ease;
}

.back-to-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #7506a5, #9333ea, #7c3aed);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s ease;
}

.back-to-top:hover::before {
  transform: scaleX(1);
  /* Animate gradient in from left to right */
}

.back-to-top:hover {
  color: white;
}

.skills {
  padding: 5rem 2rem;
  /* background-color: #0f172a; */
  /* background-color: #1a0f2a; */
  background: transparent;
  /* Deep slate background for contrast */
  color: #f1f5f9;
  /* Light text */
}

.skills-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.skills-content .heading {
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #f8fafc;
}

.skills-content .heading span {
  color: #7c3aed;
  /* Violet accent for 'Skills' word */
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
}

.skill-box {
  /* background: #1e293b; Slightly lighter than the section background */
  /* background: #211a39; */
  background: var(--box-bg);

  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-box:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.4),
    0 0 8px rgba(124, 58, 237, 0.2);
}

.skill-box h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #c084fc;
  /* Soft purple */
}

.skill-box ul {
  list-style-type: disc;
  padding-left: 1.2rem;
  text-align: left;
}

.skill-box ul li {
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
  color: #e2e8f0;
  /* Light slate for readability */
  transition: color 0.3s ease;
}

.skill-box ul li a {
  color: #7c3aed;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.skill-box ul li a:hover {
  color: #a78bfa;
  text-decoration: underline;
}

/* Mobile responsiveness for screens up to 768px */
@media screen and (max-width: 650px) {

  /* General */
  body {
    overflow-x: hidden;
  }

  * {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
  }

  .vid-container {
    display: none;
  }

  .vid-container-contact {
    height: 80%;
    width: 80%;
    object-fit: contain;
    overflow-y: hidden;
  }

  /* Header */
  .header {
    flex-direction: column;
    align-items: center;
    padding: 10px 5%;
    display: none;
    margin-bottom: 2rem;
  }

  .navbar {
    display: none;
  }

  .navbar a {
    margin-left: 0;
    font-size: 20px;
  }

  .logo {
    font-size: 20px;
  }

  /* Home Section */
  .home {
    flex-direction: column;
    padding: 30px 5%;
    margin-bottom: 0%;
    margin-top: 1%;
    text-align: center;
  }

  .home-content h1 {
    font-size: 1.5rem;
  }

  .home-content h3 {
    font-size: 1.1rem;
  }

  .home-content p {
    font-size: 0.9rem;
  }

  .home-sci {
    justify-content: center;
    gap: 10px;
  }

  .home-sci a {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
  }

  .btn-box {
    font-size: 0.8rem;
    width: 50%;
    padding: 10px 20px;
  }

  .scroll-down {
    position: absolute;
    left: 50%;
    bottom: 70px;
    /* move this as needed */
    transform: translateX(-50%);
    /* center horizontally */
    z-index: 100;
  }

  .img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    /* margin-top: 20px; */
    margin-top: -90px;
    flex-wrap: wrap;
  }

  .me-img {
    width: 60%;
    height: auto;
    margin: 0 auto;
  }

  /* About Section */
  .about {
    flex-direction: column;
    padding: 20px 5%;
    margin-top: -40px;
    text-align: center;
  }

  .about-img img {
    width: 100%;
    height: auto;
    display: none;
    border-radius: 50%;
    margin-bottom: 20px;
  }

  .about-text h2 {
    font-size: 1.5rem;
  }

  .about-text h4 {
    font-size: 1rem;
  }

  .about-text p,
  .about-text li {
    font-size: 0.8rem;
  }

  .highlights-section {
    display: none;
  }

  .heading-skills {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
  }

  .container-skills {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    /* 2 columns on small screens */
  }

  .content-skills {
    height: 100%;
    width: 100%;
  }

  .heading-skills h5 {
    font-size: 1.5rem;
  }

  /* Skills Section */
  .skills {
    /* background-color: #1a0f2a; */
    padding: 1.5rem 1rem;
  }

  .skills-content .heading {
    font-size: 1.5rem;
  }

  .skills-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    gap: 1rem;
  }

  .skill-box {
    padding: 0.8rem;
    text-align: center;
    height: 100%;
    width: 100%;
  }

  .skill-box h3 {
    font-size: 1rem;
  }

  .skill-box ul li {
    font-size: 0.7rem;
    text-align: left;
  }

  .profiles {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.6rem;
  }

  /* Projects Section */
  .project-content {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
  }

  .main-text h2 {
    font-size: 1.5rem;
  }

  .layer {
    text-align: center;
    font-size: 0.7rem;
    padding: 0.5rem;
    padding-top: 0;
  }

  .layer h5 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    opacity: 0;
    animation: slideBottom 0.5s ease forwards;
  }

  .layer p {
    font-size: 0.7rem;
  }

  .layer i {
    font-size: 0.7rem;
    opacity: 0;
    animation: slideTop 0.5s ease forwards;
  }

  .layer i:hover {
    transform: scale(1.2);
  }

  .row img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .project-links {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
  }

  .aClass:hover {
    transform: scale(1.1);
    background: transparent;
  }

  #tag {
    color: rgb(255, 255, 255);
    text-decoration: none;
  }

  .card .card-content .card-title {
    font-size: 0.9rem;
  }

  .wrapper .card-content .card-footer {
    font-size: 0.7rem;
    margin: 0;
  }

  /* .card-content.card-text{
    font-size: 0.7rem;
  } */
  .card .card-content .card-title {
    font-size: 0.9rem;
  }

  .card .card-content p {
    font-size: 0.7rem;
    margin-bottom: 0;
  }

  .card .card-footer .card-button {
    font-size: 0.7rem;
  }

  .card-container .card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .wrapper .card .card-image {
    height: 100%;
    width: 100%;
  }

  .wrapper .card .card-image img {
    height: 100%;
    width: 100%;
  }

  .wrapper .card .card-content {
    width: 100%;
    height: 100%;
  }

  .card .card-content .card-footer {
    font-size: 0.8rem;
    padding: 10px 20px;
  }

  .card .card-footer .card-button {
    font-size: 0.7rem;
    padding: 5px 10px;
  }

  /* Contact Section */
  .contact {
    grid-template-columns: 1fr;
    padding: 1rem;
    text-align: center;
  }

  .contact-text {
    margin-bottom: 1.5rem;
  }

  .contact-text h2 {
    font-size: 1.2rem;
  }

  .contact-text h4 {
    font-size: 0.9rem;
  }

  .contact-text p {
    font-size: 0.8rem;
  }

  .contact-form form input,
  .contact-form form textarea {
    width: 100%;
    margin-bottom: 1rem;
    font-size: 0.8rem;
  }

  .contact-form form .send {
    font-size: 0.9rem;
  }

  /* Footer */
  .last-section {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .last-text p {
    font-size: 0.8rem;
  }

  .back-to-top {
    font-size: 0.8rem;
  }
}

/* Hide class for mobile */
.hide-mobile {
  display: block;
  /* Show by default on desktop */
}

/* View More button - hidden by default */
.view-more-btn {
  display: none !important;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem auto 0;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, #6600c5, #9b42d6) !important;
  color: white !important;
  text-decoration: none;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 0, 197, 0.3);
  width: fit-content;
  position: relative;
  z-index: 1000;
}

.view-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 0, 197, 0.4);
  background: linear-gradient(135deg, #7a00e6, #a855e6) !important;
}

/* Mobile styles - make sure this comes AFTER the default styles */
@media screen and (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  .view-more-btn {
    display: flex !important;
    background: linear-gradient(135deg, #6600c5, #9b42d6) !important;
    color: white !important;
  }
}

/* Explicitly hide on larger screens */
@media screen and (min-width: 769px) {
  .view-more-btn {
    display: none !important;
  }

  .hide-mobile {
    display: block !important;
  }
}