:root {
  --primary-color: #6a05ad;
  --secondary-color: #f603a1;
  --bg-color: #121212;
  --card-bg: rgba(255, 255, 255, 0.05);
  --border-glow: rgba(106, 5, 173, 0.7);
}
body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-color);
  color: #e0e0e0;
  overflow-x: hidden;
  position: relative;
}
/* Loader */
#loading {
  position: fixed;
  display: block;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  text-align: center;
  opacity: 0.7;
  background-image: linear-gradient(to right, rgba(106, 5, 173, 0.8), rgba(246, 3, 161, 0.8));
  z-index: 99999;
}

#loading-image {
  position: absolute;
  top: 45%;
  left: 45%;
  z-index: 100;
}
/* Navbar Styling */
.navbar-custom {
  background-color: rgba(18, 18, 18, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.3s ease;
}
.navbar-custom.scrolled {
  background-color: rgba(18, 18, 18, 0.9);
}
.navbar-brand,
.nav-link {
  color: #e0e0e0 !important;
  font-weight: 500;
}
.nav-link:focus,
.nav-link:checked,
.nav-link:hover {
  color: var(--secondary-color) !important;
  text-shadow: 0 0 5px var(--secondary-color);
}
/* Glassmorphism & Gradient */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 60px rgba(246, 3, 161, 0.2);
}
.text-neon-gradient {
  background: linear-gradient(
    45deg,
    var(--secondary-color),
    var(--primary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.border-glow {
  border: 2px solid;
  border-image: linear-gradient(
      45deg,
      var(--secondary-color),
      var(--primary-color)
    )
    1;
  box-shadow: 0 0 10px rgba(246, 3, 161, 0.5);
  transition: box-shadow 0.3s ease;
}
.border-glow:hover {
  box-shadow: 0 0 20px rgba(246, 3, 161, 0.8), 0 0 30px rgba(106, 5, 173, 0.5);
}
.btn-gradient {
  background: linear-gradient(
    45deg,
    var(--secondary-color),
    var(--primary-color)
  );
  border: none;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  overflow: hidden;
}
.btn-gradient::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-gradient:hover::before {
  opacity: 1;
}
/* Hero Section */
.page-section {
  position: relative;
  padding: 8rem 0;
  position: relative;
}
#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
#particles-js,
.particles-js-section {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1; /* Place behind content */
  background-color: var(--bg-color);
}
.section-content {
  position: relative;
  z-index: 1;
}
.hero-content h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(246, 3, 161, 0.5);
}
.hero-content p {
  font-size: clamp(1rem, 3vw, 1.5rem);
  max-width: 600px;
  margin: 0 auto 2rem;
}
/* Sections */
.section-heading {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 3rem;
}
/* Skill bars */
.skill-bar {
  background: rgba(255, 255, 255, 0.1);
  height: 8px;
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.skill-progress {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  width: 0;
  transition: width 1s ease-in-out;
}
.skill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
#skills div#particles-js-skills {
  z-index: 0;
}
/* Awards section */
#awards {
  position: relative;
}
#awards #awards-video {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  min-width: 10%;
  min-height: 100%;
  opacity: 0.8;
}
/* Services section */
.service-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    var(--secondary-color),
    var(--primary-color)
  );
  opacity: 0.2;
  filter: blur(50px);
  z-index: -1;
  transform: scale(0);
  transition: transform 0.5s ease-out;
}
.service-card:hover {
  transform: perspective(1000px) rotateX(7deg) scale(1.05);
  box-shadow: 0 20px 80px rgba(246, 3, 161, 0.3);
}
.service-card:hover::before {
  transform: scale(1.5);
}
.service-card i {
  font-size: 3rem;
  margin-bottom: 1rem;
}
/* publications Section */
#publications {
    background-image: url(../images/publications_bg.png);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
/* Clients Section  */
#clients img {
    width: 80%;
    background: #fff;
    padding: 20px;
}
/* Portfolio Section  */
#portfolio {
    background-image: url(../images/portfolio_bg.png);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.portfolio-item:hover img {
  transform: scale(1.1);
}
.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
  box-shadow: inset 0 0 15px var(--secondary-color);
}
.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
  box-shadow: inset 0 0 40px var(--secondary-color);
}
.portfolio-overlay h4 {
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}
.portfolio-overlay p {
  font-size: 0.9rem;
  color: #e0e0e0;
}
/* case study Section */
#case-studies {
  background: rgba(139, 0, 0, 0.3);
}
.case-study-item {
  margin-bottom: 50px;
  padding: 50px 4px;
  text-align: center;
}
.case-study-boder {
  border-bottom: 2px solid var(--secondary-color);
}
/* Testimonials Section */
.testimonial-card {
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}
.testimonial-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  color: #fff;
  background: linear-gradient(
    45deg,
    var(--secondary-color),
    var(--primary-color)
  );
  z-index: -1;
  border-radius: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.testimonial-card:hover::before {
  opacity: 1;
}
.testimonial-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--primary-color);
}
#testimonials #particles-js-testimonials {
  z-index: 0;
}
/* Blog Section */
.blog-post {
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-post:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 40px rgba(246, 3, 161, 0.2);
}
/* Contact Form */
.form-control,
.form-control:focus {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: border-color 0.3s ease;
}
.form-control::placeholder {
  color: #fff;
}
.form-control:focus {
  box-shadow: none;
  border-color: var(--secondary-color);
}
.map-container {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
#contact #particles-js-contact {
  z-index: 0;
}
/* Footer */
.footer {
  background: var(--bg-color);
  padding: 3rem 0;
  text-align: center;
}
.social-icons a {
  color: #e0e0e0;
  font-size: 1.5rem;
  margin: 0 0.75rem;
  transition: transform 0.3s ease, color 0.3s ease;
  position: relative;
}
.social-icons a:hover {
  color: var(--secondary-color);
  transform: translateY(-5px);
  text-shadow: 0 0 10px var(--secondary-color);
}
.social-icons a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--secondary-color);
  opacity: 0;
  transition: all 0.3s ease;
  filter: blur(5px);
  z-index: -1;
}
.social-icons a:hover::before {
  opacity: 0.5;
  width: 120%;
  height: 120%;
}
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  section {
    padding: 5rem 0;
  }
}
@keyframes glowing-border {
  0% {
    box-shadow: 0 0 5px rgba(246, 3, 161, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(246, 3, 161, 1);
  }
  100% {
    box-shadow: 0 0 5px rgba(246, 3, 161, 0.5);
  }
}
.glowing-element {
  animation: glowing-border 2s infinite alternate;
}

