body {
  background-color: rgb(0, 0, 0);
  color: white;
  font-smooth: antialiased;
  font-family: sans-serif;
  overflow-x: hidden;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  position: sticky;
  /* or 'fixed' or 'relative' */
  top: 0;
  /* required for sticky or fixed to work */
  left: 0;
  margin-bottom: 30px;
  z-index: 1000;
  /* adjust as needed */

  background-color: black;


}

header h1 {
  margin: 0;
  color: #a855f7;
  font-weight: bold;
  font-family: sans-serif;
  font-size: 28px;
}

/* Default navbar styling */
.navbar {
  display: flex;
  gap: 35px;
  font-size: 16px;
  background-color: black;
}

/* Hide links by default on small screens */
.navbar a {
  display: none;
  color: white;
  text-decoration: none;
  font-family: sans-serif;
  transition: all 0.3s ease-in-out;
}

.navbar a:hover {
  color: #fff;
  text-shadow: 0 0 8px #872d9e, 0 0 16px #ae40e0, 0 0 24px #830a79;
  background-color: #111;
  /* optional slight change */
  transform: scale(1.1);
}


/* Hamburger icon styling */
.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Show hamburger and adjust navbar for small screens */
@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
  }

  /* Show menu when active class is added */
  .navbar.active {
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;

  }

  .navbar.active a {
    position: relative;
    display: block;
    width: 100%;
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    top: 5px;
    color: white;
    text-decoration: none;
    text-align: left;
    padding-right: 20vw;
  }

  header {
    align-items: flex-start;
  }

  .navbar.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .navbar.active .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .navbar.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
  }
}

/* Ensure links are visible on larger screens */
@media screen and (min-width: 769px) {
  .navbar {
    justify-content: space-around;
  }

  .navbar a {
    display: inline-block;
  }

  .hamburger {
    display: none;
  }
}

.hero {
  display: grid;
  gap: 40px;
  align-items: start;
  padding: 30px 20px;
  max-width: 1200px;
  margin: auto;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    /* Two columns on large screens */
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    /* Reduced gap for smaller screens */
  }

}

.para {
  font-size: 20px;
  font-family: sans-serif;
  animation: para 1s ease 0s 1 normal forwards;
}

@keyframes para {
  0% {
    transform: translateY(50px);
    opacity: 0;
    /* start invisible */
  }

  100% {
    transform: translateY(0);
    opacity: 1;
    /* end fully visible */
  }
}


.profile-img {
  display: none;
}

/* Show only on mobile (max-width 768px or adjust as you want) */
@media (max-width: 768px) {
  .profile-img {
    display: block;
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    margin-top: -50px;
    border-radius: 50%;
    border: 2px solid #a855f7;
    box-shadow: 0 0 15px 5px rgba(168, 85, 247, 0.6);

  }
}



.about {
  font-weight: bold;
  font-size: 60px;
  font-family: sans-serif;
}

.aboutimg {
  max-width: 100%;
  /* Ensure container doesn't exceed parent width */
  height: auto;
  /* Allow container to adjust based on image height */
  overflow: hidden;
  /* Prevent image overflow */

}

/* Default image styling (mobile-first) */
.aboutimg img {
  display: block;
  /* Remove inline-block spacing */
  max-width: 100%;
  /* Ensure image scales within container */
  height: auto;
  /* Maintain aspect ratio */
}

/* Small screens (mobile) */
@media (max-width: 767px) {
  .aboutimg {
    display: none;
    /* hide only on mobile */
  }
}

/* Medium screens (tablets) */
@media (min-width: 768px) {
  .aboutimg {
    max-width: 80%;
    /* Slightly larger image width for tablets */
  }
}

/* Large screens (desktops) */
@media (min-width: 1024px) {
  .aboutimg {
    max-width: 570px;
    /* Match original intended width for desktop */
  }
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  /* similar to Tailwind's gap-4 */
  font-family: sans-serif;
}

.btn-primary {
  background-color: #9333ea;
  /* Tailwind's purple-600 */
  color: white;
  font-weight: bold;
  padding: 12px 32px;
  border-radius: 9999px;
  /* fully rounded like Tailwind's rounded-full */
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #7e22ce;
  /* Tailwind's purple-700 */
  transform: scale(1.05);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid #c084fc;
  /* Tailwind's purple-400 */
  color: #c084fc;
  font-weight: bold;
  padding: 12px 32px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: rgba(192, 132, 252, 0.1);
  /* purple-400/10 */
}

.social-icons {
  margin-top: 3rem;
  /* mt-12 */
  display: flex;
  align-items: center;
  gap: 1.5rem;
  /* space-x-6 */
}

.icon {
  color: #9ca3af;
  /* Tailwind's text-gray-400 */
  font-size: 1.5rem;
  /* 24px = h-6 w-6 */
  transition: color 0.3s ease;
}

.icon:hover {
  color: #a855f7;
  /* Tailwind's text-purple-400 */
}

.parent {
  position: relative;
  /* Needed for absolute children */
  display: flex;
  justify-content: center;
  /* center or flex-end if you want right */
  align-items: center;
  height: 420px;
  /* give proper height */
}

/* Image wrapper */
.image-wrapper {
  position: relative;
  display: inline-block;
}

.minimg {
  width: 100px;
  height: 100px;
  border-bottom: 2px solid #a855f7;
  box-shadow: 0 0 15px 5px rgba(168, 85, 247, 0.6);
}

/* Overlay to block right-click */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 2;
  pointer-events: all;
}

.icond {
  position: absolute;
  font-size: 22px;
  animation: floatAnim 12s infinite ease-in-out;
  pointer-events: none;
  filter: drop-shadow(0 0 8px currentColor);
  opacity: 0.8;
}

/* Only sides & corners — avoiding center */
.x-icon {
  top: 8%;
  left: 5%;
  font-size: 28px;
  color: #a855f7;
  animation-delay: 0s;
}

.o-icon {
  bottom: 8%;
  right: 5%;
  font-size: 32px;
  color: #22d3ee;
  animation-delay: 2s;
}

.star-icon {
  top: 12%;
  right: 8%;
  font-size: 26px;
  color: #facc15;
  animation-delay: 4s;
}

.tri-icon {
  bottom: 12%;
  left: 6%;
  font-size: 30px;
  color: #4ade80;
  animation-delay: 6s;
}

.diamond-icon {
  top: 5%;
  right: 15%;
  font-size: 22px;
  color: #f472b6;
  animation-delay: 8s;
}

.small-o {
  bottom: 10%;
  left: 15%;
  font-size: 18px;
  color: #a855f7;
  animation-delay: 3s;
}

.small-x {
  bottom: 5%;
  right: 12%;
  font-size: 20px;
  color: #22d3ee;
  animation-delay: 5s;
}

/* Random Floating Animation */
@keyframes floatAnim {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  20% {
    transform: translate(20px, -25px) rotate(72deg) scale(1.2);
  }

  40% {
    transform: translate(-15px, -40px) rotate(144deg) scale(0.9);
  }

  60% {
    transform: translate(25px, 20px) rotate(216deg) scale(1.3);
  }

  80% {
    transform: translate(-20px, 30px) rotate(288deg) scale(0.85);
  }

  100% {
    transform: translate(0, 0) rotate(360deg) scale(1);
  }
}




.minimg {
  width: auto;
  height: auto;
  margin-left: auto;
  transform: translateY(100px) scale(0.5);
  opacity: 0;
  padding-top: 0px;
  border-bottom: double 4px #a855f7;
  box-shadow: 0 2px 0 rgba(168, 85, 247, 0.4);

}

/* Mobile screens (below 768px) */
@media (max-width: 767px) {
  .parent {
    display: none;
    justify-content: flex-end;
    /* pushes child to the right */
    align-items: center;
    height: auto;
  }

  .minimg {
    width: 85%;
    height: auto;
    margin-left: auto;
    transform: translateY(100px) scale(0.5);
    opacity: 0;


  }
}

/* Tablet screens (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .parent {
    display: flex;
    justify-content: flex-end;
    /* pushes child to the right */
    align-items: center;
    height: 00px;
  }

  .minimg {
    width: auto;
    height: auto;
    margin-left: auto;
    transform: translateY(100px) scale(0.5);
    opacity: 0;
  }
}



/* About Section*/
.expertise-container {
  margin-bottom: 2rem;
}


.expertise-heading {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .expertise-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background-color: #27272a;
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 0.5rem;

}



.icon-box {
  background-color: rgba(88, 28, 135, 0.5);
  /* purple-900/50 */
  padding: 0.5rem;
  border-radius: 0.375rem;
  color: #c084fc;
  /* purple-400 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box i {
  font-size: 1.25rem;
}

.title {
  font-weight: 500;
  font-size: 16px;
  color: white;
  margin: 0;
}

.subtitle {
  color: #9ca3af;
  /* gray-400 */
  font-size: 14px;
  margin: 0;
}

.about-title {
  margin-top: 100px;
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  color: white;
  margin-bottom: 4rem;
}

@media (max-width: 767px) {
  .about-title {
    margin-top: 30px;
  }
}

.section-subtitle {
  font-size: 1.5rem;
  /* Tailwind's text-2xl = 24px */
  font-weight: 700;
  /* font-bold */
  color: #c084fc;
  /* text-purple-400 */
  margin-bottom: 1rem;
  /* mb-4 = 16px */
}

.custom-paragraph {
  font-family: sans-serif;
  color: #d1d5db;
  /* Tailwind's text-gray-300 */
  margin-bottom: 24px;
  /* Tailwind's mb-6 = 24px */
  line-height: 1.625;
  /* Tailwind's leading-relaxed = 1.625 */
}

.skill-item {
  margin-bottom: 20px;
  text-align: left;
  color: #d1d5db;
  font-size: 1rem;
}

.progress-bar {
  background-color: #555;
  border-radius: 8px;
  overflow: hidden;
  height: 10px;
  margin-top: 6px;

}

.progress {
  height: 10px;
  background: linear-gradient(to right, #a855f7 25%, #c084fc 100%);

  transition: width 1s ease-in-out;
  border-radius: 8px;
}

.skillcardboder {
  background-color: #27272a;
  border: 1px solid rgba(168, 85, 247, 0.2);
  /* purple-500/20 */
  border-radius: 0.5rem;
}

.card-skill {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
}

.title-skill {
  font-weight: 500;
  color: white;
  margin: 0;
}

.subtitle-skill {
  color: #a855f7;
  /* gray-400 */
  font-size: 0.875rem;
  margin: 0;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 10px;
  max-width: 1200px;
  width: 100%;
}
.grid-container-skil {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
  gap: 15px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Tablets and up */
@media (min-width: 768px) {
  .grid-container-skil {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on tablets & desktop */
  }
}




.skill-title-soft {
  color: #ffffff;
  margin-top: -20px;
  font-size: 1em;
  font-family: sans-serif;
  font-weight: bold;
  text-align: center;
}

.progress-container {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto;
}

.progress-ring {
  transform: rotate(-90deg);
  transform-origin: center;
}

.progress-ring circle {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}

.progress-ring-bg {
  stroke: #27272a;
}

.progress-ring-fg {
  stroke: #a855f7;
  stroke-dasharray: 0 1000;
  transition: stroke-dasharray 1s linear;
}

.progress-text {
  position: absolute;
  font-size: 18px;
  font-family: sans-serif;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-weight: bold;
}

.skill-title-headsoft {
  margin-bottom: -20px;
  margin-top: 40px;
  font-family: sans-serif;
  font-size: 28px;
}

.logo-skill {
  margin-right: 20px;
  background-color: #a855f7;
  /* purple-900/50 */
  padding: 10px;
  font-size: 20px;
  border-radius: 50%;
  color: #ffffff;
  /* purple-400 */

}

.skill-dots-row {
  display: flex;
  gap: 5px;
  margin-left: 20px;
  margin-bottom: 20px;
}

.skill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #facc15;
  /* default yellow color */
  box-shadow: 0 0 4px #facc15aa;
}

.skill-dot-off {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #3f3f46;
  /* default yellow color */
  box-shadow: 0 0 4px #facc15aa;
}

.exp-container {
  background-color: #27272a;
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 0.5rem;
  padding: 20px 30px;
  color: white;
  max-width: 800px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  margin-left: 30px;
  padding-left: 20px;
  border-left: 2px solid #9333ea;
  padding-top: 20px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 20px;
}

.timeline-item::before {
  content: attr(data-number);
  position: absolute;
  left: -34px;
  top: 0;
  width: 30px;
  height: 30px;
  background: #9333ea;
  color: white;
  font-weight: bold;
  font-size: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgb(57, 50, 87);
  margin-top: 20px;
}

.expgap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: -40px;
}

.expgap h4 {
  font-size: 1.2rem;
  margin: 0;
  font-weight: 600;

}


.edu-chip {
  padding: 6px 14px;
  background-color: #3e2555;
  border-radius: 12px;
  font-size: 0.9rem;
  white-space: nowrap;
  color: white;
}

.institute {
  color: #9333ea;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 1rem;
}

.timeline-item p {
  margin: 0;
  line-height: 1.6;
  color: #e4e4e7;
  font-size: 0.95rem;
}

/* Responsive adjustments*/
@media (max-width: 600px) {
  .exp-container {
    padding: 15px 20px;
    margin-top: -3px;
  }

  .timeline {
    margin-left: 20px;
    padding-left: 15px;
    margin-top: 40px;
    padding-top: 10px;
  }

  .timeline-item {
    padding-left: 15px;
    margin-bottom: 30px;
  }

  .timeline-item::before {
    left: -29px;
    width: 25px;
    height: 25px;
    font-size: 12px;
    margin-top: 0px;
  }

  .timeline-item:nth-of-type(1) .expgap {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    margin-bottom: 20px;
  }

  .timeline-item:nth-of-type(2) .expgap {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    margin-bottom: 30px;
  }

  .timeline-item:nth-of-type(3) .expgap {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    margin-bottom: 30px;
  }

  .expgap h4 {
    font-size: 1.1rem;
    margin-top: 2px;
  }

  .edu-chip {
    font-size: 0.85rem;
  }

}

.expertise-grid-cir {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .expertise-grid-cir {
    grid-template-columns: 1fr 1fr;
  }
}

.card-cir {
  gap: 0.75rem;
  padding: 1rem;
  background-color: #27272a;
  border: 1px solid rgba(168, 85, 247, 0.2);
  /* purple-500/20 */
  border-radius: 0.5rem;
}

.icon-box-cir {
  background-color: rgba(88, 28, 135, 0.5);
  /* purple-900/50 */
  padding: 0.5rem;
  border-radius: 0.375rem;
  color: #c084fc;
  /* purple-400 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box-cir i {
  font-size: 1.25rem;
}

.cirbox-card {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  margin-left: 10px;
  margin-bottom: -13px;
  margin-top: 10px;
}

.cirbox {
  font-size: 12px;
  background-color: #3e2555;
  padding: 7px 15px;
  border-radius: 12px;

}

/* Projects Section */
.project-grid {
  max-width: 1200px;
  /* Consistent with .hero */
  margin: 0 auto;
  padding: 1rem;
  justify-items: center;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Project Card */
.project-card {
  background-color: #27272a;
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 0.375rem;
  overflow: hidden;
  
}

.project-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  /* Consistent with 300x180 placeholder */
}

.project-content {
  padding: 0.75rem;
}

.project-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

.project-description {
  font-size: 0.875rem;
  color: #d1d5db;
  /* gray-300 */
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background-color: rgba(88, 28, 135, 0.5);
  /* purple-900/50 */
  color: #c084fc;
  /* purple-400 */
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
}

/* Filter Container */
.filter-container {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  /* Allow buttons to wrap on small screens */
  justify-content: center;
}

.filter-btn {
  background-color: #27272a;
  /* Matches .card */
  color: #d1d5db;
  /* gray-300 */
  padding: 0.5rem 1rem;
  border: 1px solid rgba(168, 85, 247, 0.2);
  /* purple-500/20 */
  border-radius: 0.375rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.filter-btn:hover {
  background-color: rgba(168, 85, 247, 0.3);
  /* purple-500/30 */
  color: #c084fc;
  /* purple-400 */
}

.filter-btn.active {
  background-color: #c084fc;
  /* purple-400 */
  color: #27272a;
  border-color: #c084fc;
}

/* Hidden class for filtering */
.project-card.hidden {
  display: none;
}

/* Mobile screens (below 768px) */
@media (max-width: 767px) {
  .project-grid {
    padding: 0.5rem;
  }

  .grid-container {
    gap: 0.75rem;
  }

  .project-card {
    padding: 0.5rem;
  }

  .project-content {
    padding: 0.5rem;
  }

  .project-title {
    font-size: 1rem;
  }

  .project-description {
    font-size: 0.8125rem;
  }

  .tag {
    font-size: 0.6875rem;
    padding: 0.2rem 0.4rem;
  }

  .filter-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8125rem;
  }
}

/* Medium screens (tablets and up) */
@media (min-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    /* Two columns */
    gap: 1.5rem;
    justify-content: center;
  }
}

/* Large screens (desktops) */
@media (min-width: 1024px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr);
    /* Three columns */
    gap: 2rem;
  }

  .project-content {
    padding: 1rem;
  }
}



form {
  max-width: 600px;
  margin: 0 auto;

}

.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-input {
  padding: 12px;
  border: 1px solid #5f5f68;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  background-color: #3f3f46;
  color: #ffffff;
  /* <-- actual text color */
}

/* Placeholder color */
.form-input::placeholder {
  color: #5f5f68;
  opacity: 1;
  /* ensure it's fully visible */
}


.form-input:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

legend {
  margin-bottom: 8px;
  color: #8e8e9c;
}

.form-btn {
  width: 100%;
  background-color: #a855f7;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 40px;
}

.form-btn:hover {
  background-color: #9333ea;
}

.form-message {
  text-align: center;
  font-size: 16px;
  padding: 10px;
}

@media (max-width: 786px) {
  .form-row {
    gap: 0px;
  }
}

.social-icon {
  color: rgba(255, 255, 255, 0.85);
  background-color: rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  font-size: 24px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  margin: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
  background-color: #7e22ce;
  transform: scale(1.1);
}



.project-grid-ser {
  display: flex;
  justify-content: center;
  margin: 0px 20px;
}

.grid-container-ser {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  /* space between columns and rows */
  padding: 20px;
}


.project-card-ser {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background-color: #27272a;
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 0.5rem;
  transition: transform 0.3s ease;
  font-family: sans-serif;
}



.project-content-ser {
  padding: 16px;
}



/* Responsive for smaller screens */
@media (max-width: 768px) {
  .grid-container-ser {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-container-ser {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .project-grid-ser {
    margin: 0;
  }
}

@media (max-width: 480px) {
  .project-grid-ser {
    margin: 0;
  }
}

#screenshot-blocker {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.001);
  z-index: 9999;
  pointer-events: none;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 30px;
  background-color: #111;
  color: #f5f5f5;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  max-width: 500px;
}

.footer-left h1 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #ffffff;
}

.footer-left hr {
  border: 0;
  height: 2px;
  background: #9333ea;
  width: 60px;
  margin-bottom: 15px;
  margin-left: 0;
}

.footer-left p {
  text-align: left;
  line-height: 1.6;
}

.footer-right {
  text-align: right;
}

.footer-right span {
  color: #9333ea;
  font-weight: bold;
}

@media (max-width: 768px) {
  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-right {
    text-align: left;
  }
}



.popup {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
}

.popup-content {
  background: rgb(39, 38, 38);
  padding: 15px 20px;
  margin: 5% auto;
  /* Lowered margin for better fit on smaller screens */
  width: 80%;
  max-width: 900px;
  max-height: 80vh;
  /* Set a max height to enable scrolling */
  border: 1.5px solid #3b185c;
  border-radius: 8px;
  position: relative;
  overflow: auto;
  /* Enables scroll if content overflows */
  color: white;
}


.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #9ca3af;
}


.card-pop {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background-color: #1d1b1b;
  border: 1px solid rgba(168, 85, 247, 0.2);
  /* purple-500/20 */
  border-radius: 0.5rem;
}

.pop-title {
  font-weight: 500;
  font-size: 16px;
  color: white;
  margin: 2px;
  font-family: sans-serif;

}


.pop-para {
  color: #9ca3af;
  /* gray-400 */
  font-size: 14px;
  margin: 0;
}

.expertise-grid-pop {
  display: grid;
  grid-template-columns: 1fr;
  /* 1 column by default (small screens) */
  gap: 1rem;
}

@media (min-width: 768px) {
  .expertise-grid-pop {
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns on medium and larger */
  }
}

.tag-s {
  background-color: rgba(102, 60, 134, 0.5);
  color: #c084fc;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
}

.model-container {
  position: relative;
  width: 100%;
  height: 600px;
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 90px;
  margin: 0 auto;
  z-index: 2;
}

/* Neon glowing ball */
.loader:before {
  content: "";
  position: absolute;
  bottom: 30px;
  left: 50px;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background: #00f7ff; /* neon light blue */
  box-shadow: 0 0 10px #00f7ff,
              0 0 20px #00f7ff,
              0 0 40px #00f7ff,
              0 0 60px #00f7ff;
  animation: loading-bounce 0.5s ease-in-out infinite alternate;
}

/* White neon steps */
.loader:after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  height: 7px;
  width: 45px;
  border-radius: 4px;
  box-shadow: 0 5px 0 #fff,
              -35px 50px 0 #fff,
              -70px 95px 0 #fff;
  animation: loading-step 1s ease-in-out infinite;
}

@keyframes loading-bounce {
  0%   { transform: scale(1, 0.7) }
  40%  { transform: scale(0.8, 1.2) }
  60%  { transform: scale(1, 1) }
  100% { bottom: 140px }
}

@keyframes loading-step {
  0% {
    box-shadow: 0 10px 0 rgba(0,0,0,0),
                0 10px 0 #fff,
              -35px 50px 0 #fff,
              -70px 90px 0 #fff;
  }
  100% {
    box-shadow: 0 10px 0 #fff,
              -35px 50px 0 #fff,
              -70px 90px 0 #fff,
              -70px 90px 0 rgba(0,0,0,0);
  }
}


#viewer {
  width: 100%;
  height: 100%;
}

.hide {
  display: none;
}

.glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  z-index: 0;
  opacity: 0.4;
  mix-blend-mode: screen;
  background: radial-gradient(circle, #7f00ff, transparent 70%);
  transition: transform 6s ease-in-out;
}

.glow2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #00f2fe, transparent 70%);
}