html{
  height: 100%;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}
body {
  background: radial-gradient(circle at top left, #0a0a1a, #141428, #1e1e2f);
  color: #e0e0e0;
  font-family: "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.glow-border {
  border: 1px solid rgba(30, 144, 255, 0.3);
  box-shadow: 0 0 10px rgba(30, 144, 255, 0.3);
}
#name-animation span {
  transition: all 0.05s ease; /* Smooth character changes */
}
/* Content container for scrolling sections */
.content-container {
  position: relative;
  background: linear-gradient(135deg, #0a0a1a, #141428);
  /* Matches your dark gradient theme */
  margin-top: 100vh;
  transition: transform 1s ease-in-out;
  z-index: 0;
}

#starfield {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100vh;
  pointer-events: none;
}

section {
  position: relative;
  z-index: 2;
}

.navbar {
  background: linear-gradient(180deg, #0a0a1a, #141428);
  box-shadow: 0 0 15px rgba(30, 144, 255, 0.2);
}

.navbar .nav-link {
  color: #b0cfff;
  font-weight: bold;
  position: relative;
  transition: all 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #1e90ff;
  transform: scale(1.05);
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background-color: #1e90ff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.navbar .nav-link.active::after,
.navbar .nav-link:hover::after {
  transform: scaleX(1);
}

.offcanvas {
  background: linear-gradient(180deg, #0a0a1a, #141428);
  border-right: 1px solid rgba(30, 144, 255, 0.2);
  box-shadow: 0 0 15px rgba(30, 144, 255, 0.2);
}

.offcanvas-header {
  border-bottom: 1px solid rgba(30, 144, 255, 0.2);
}

.offcanvas-title {
  color: #e0e0e0;
}

.offcanvas-body a {
  transition: transform 0.3s ease;
}

.offcanvas-body a:hover {
  color: #1e90ff;
  transform: scale(1.2);
}

.timeline {
  position: relative;
  margin-left: 20px;
  padding-left: 30px;
  border-left: 2px solid #1e90ff;
}

.timeline-item {
  margin-bottom: 40px;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -41px;
  top: 46%;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #1e90ff, #0a0a1a);
  border-radius: 50%;
  box-shadow: 0 0 10px #1e90ff;
}

.timeline-content {
  background: linear-gradient(145deg, #0a0a1a, #141428);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(30, 144, 255, 0.2);
  box-shadow: 0 0 12px rgba(30, 144, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(30, 144, 255, 0.3);
}

.card {
  background: linear-gradient(145deg, #0a0a1a, #141428);
  border-radius: 10px;
  border: 1px solid rgba(30, 144, 255, 0.2);
  box-shadow: 0 0 12px rgba(30, 144, 255, 0.15);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px rgba(30, 144, 255, 0.3);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at top right,
    rgba(255, 255, 255, 0.05),
    transparent 50%
  );
  z-index: 0;
}

.card .card-body {
  position: relative;
  z-index: 1;
}

.modal-content {
  background: linear-gradient(145deg, #0a0a1a, #141428);
  border: 1px solid rgba(30, 144, 255, 0.2);
  box-shadow: 0 0 15px rgba(30, 144, 255, 0.3);
  color: #e0e0e0;
}

.modal-header {
  border-bottom: 1px solid rgba(30, 144, 255, 0.2);
}

.modal-title i {
  margin-right: 8px;
  color: #1e90ff;
}

@keyframes shootingStar {
  0% {
    opacity: 0;
    transform: translateX(0) translateY(0);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(700px) translateY(-300px);
  }
}

.shooting-star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: linear-gradient(90deg, #ffffff, #1e90ff);
  box-shadow: 0 0 8px #1e90ff, 0 0 12px rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(90deg, #1e90ff, #3b82f6);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #1c7ed6, #2563eb);
}

.form-control,
.form-control:focus {
  background: linear-gradient(145deg, #0a0a1a, #141428);
  color: #e0e0e0;
  border: 1px solid rgba(30, 144, 255, 0.2);
  box-shadow: 0 0 8px rgba(30, 144, 255, 0.15);
}

#hero {
  height: 100vh;
  position: relative;
  background: linear-gradient(135deg, #0a0a1a, #141428);
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  color: white;
  pointer-events: auto;
}

#hero::before,
#hero::after {
  content: "";
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;

  z-index: 0;
  animation: blobMove 20s infinite alternate ease-in-out,
    blackholePulse 10s infinite ease-in-out;
  pointer-events: none;
  opacity: 1;

  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.8) 0%,
    /* black hole center */ rgba(30, 144, 255, 0.6) 40%,
    /* tech blue glow */ rgba(0, 0, 0, 0.9) 70%,
    /* dark falloff */ transparent 100% /* hard edge */
  );

  box-shadow: 0 0 20px rgba(30, 144, 255, 0.6), 0 0 40px rgba(30, 144, 255, 0.4),
    inset 0 0 20px rgba(0, 0, 0, 0.5);
  filter: none;
}

.carousel-item img {
  border-radius: 15px; /* Adjust as needed */
  border: 5px solid #1e8fff71;
  cursor: zoom-in; /* Show zoom-in cursor before clicking */
}

#hero::after {
  background: radial-gradient(
    circle at center,
    rgba(111, 66, 193, 0.4),
    transparent 70%
  );
  top: 20%;
  left: 60%;
  animation-delay: 5s;
}

@keyframes blobMove {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(100px, -50px) scale(1.2);
  }
  100% {
    transform: translate(-50px, 100px) scale(1);
  }
}

.card-title,
.card-subtitle {
  color: #ffffff;
}

.animate-text {
  animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

a,
a:hover {
  color: #1e90ff;
  text-decoration: none;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  border-left: 5px solid #1e90ff;
  padding-left: 15px;
  color: #ffffff;
}

/* Skills Orbit Animation */
.skill-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 150px;
  padding: 20px;
}

.skill-icon-container {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.skill-icon {
  font-size: 2.5rem;
  color: #1e90ff;
  z-index: 1;
}

.skill-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(30, 144, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: orbit 4s linear infinite;
}

.skill-orbit::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #1e90ff;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px #1e90ff;
}

/* Technologies Orbit Animation */
.tech-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 150px;
  padding: 20px;
}

.tech-icon-container {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tech-icon {
  font-size: 2.5rem;
  color: #1e90ff;
  z-index: 1;
}

.tech-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(30, 144, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: tech-orbit 3s linear infinite;
}

.tech-orbit::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #1e90ff;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 8px #1e90ff;
}

@keyframes orbit {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes tech-orbit {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (max-width: 767.98px) {
  .ms-300 {
    margin-left: 0 !important;
  }
}
#footer {
  background: linear-gradient(135deg, #0a0a1a, #141428);
  color: #e0e0e0;
  padding: 3rem 0;
  position: relative;
  bottom: 0;
  width: 100%;
  overflow: hidden;
  z-index: 0;
}

.footer-content {
  background: linear-gradient(145deg, #0a0a1a, #141428);
  border-radius: 10px;
  padding: 1.5rem;
  position: relative;
  z-index: 3;
}

.footer-content p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-content .btn-primary {
  background: linear-gradient(90deg, #1e90ff, #3b82f6);
  border: none;
  box-shadow: 0 0 10px rgba(30, 144, 255, 0.5);
}

.footer-content .btn-primary:hover {
  background: linear-gradient(90deg, #1c7ed6, #2563eb);
  box-shadow: 0 0 15px rgba(30, 144, 255, 0.7);
}

.footer-content .bi {
  font-size: 1.2rem;
  vertical-align: middle;
}

.footer-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.star-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #1e90ff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(30, 144, 255, 0.8);
  animation: starPulse 2s infinite alternate;
}

.star-particle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.star-particle:nth-child(2) {
  top: 60%;
  left: 50%;
  animation-delay: 0.5s;
}

.star-particle:nth-child(3) {
  top: 80%;
  left: 80%;
  animation-delay: 1s;
}

@keyframes starPulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.5);
    opacity: 1;
  }
}

.orbit {
  position: fixed;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(30, 144, 255, 0.4), transparent 70%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none; /* important */
  transition: transform 0.2s ease-out;
}

.orbit-right {
  background: radial-gradient(circle, rgba(111, 66, 193, 0.4), transparent 70%);
}

@keyframes flicker {
  0%,
  100% {
    opacity: 1;
  }
  20% {
    opacity: 0.6;
  }
  40% {
    opacity: 1;
  }
  60% {
    opacity: 0.3;
  }
  80% {
    opacity: 0.8;
  }
}

.orbit.flicker {
  animation: flicker 0.5s ease-in-out;
}
.footer-content {
  position: relative;
}
.footer-content p {
  position: absolute;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 999px; /* Circular pill shape */
  font-size: 1.5rem;
  color: #1e90ff;
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 10px rgba(30, 144, 255, 0.6);
  transition: all 0.3s ease;
  position: relative;
}

.back-to-top:hover {
  background-color: rgba(0, 0, 0, 0.8);
  color: #00ffff;
  box-shadow: 0 0 20px #00ffff, 0 0 40px #1e90ff;
}

.back-to-top i {
  pointer-events: none;
}
@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 8px #1e90ff, 0 0 16px #00ffff;
  }
  50% {
    box-shadow: 0 0 12px #00ffff, 0 0 24px #1e90ff;
  }
}

.back-to-top:hover {
  animation: glowPulse 1s infinite;
}

@media (max-width: 576px) {
  #hero {
    min-height: 80vh; /* Slightly shorter for mobile */
  }

  .hero-overlay h1 {
    font-size: 2rem; /* Smaller heading */
  }

  .hero-overlay p {
    font-size: 1rem;
  }

  .explore-more {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .orbit {
    width: 50px;
    height: 50px;
    display: none; /* Hide orbits on mobile to prevent clutter */
  }

  .footer-content p {
    font-size: 0.8rem;
    position: static; /* Fix absolute positioning issue */
  }

  .star-particle {
    width: 2px;
    height: 2px;
  }
}

.hero-overlay h1 {
  text-shadow: 0 0 8px rgba(30, 144, 255, 0.8), 0 0 12px rgba(173, 30, 255, 0.87); /* Added glowing text-shadow */
}

.hero-overlay p {
  text-shadow: 0 0 6px rgba(30, 144, 255, 0.6), 0 0 10px rgba(30, 144, 255, 0.4); /* Added slightly smaller shadow for paragraph */
}

