  body {
    margin: 0;
    background-color: #0f0f0f;
    font-family: "Poppins", sans-serif;
    color: #fff;
  }

  .bg-primary {
    background: linear-gradient(135deg, #40056d, #54025a, #a70101);
  }

  header {
  position: relative;
  height: 320px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background-color: #0f0f0f;
}

/* Background image (placed behind everything) */
.header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;     /* keeps aspect ratio */
  opacity: 0.60;         /* makes text readable */
  z-index: 1;
}

/* Logo on the left */
.logo-container {
  position: absolute;
  top: 20px;
  left: 30px;
  z-index: 3;
}

.logo {
  width: 70px;
  height: auto;
  border-radius: 10px;
}

/* Header text stays above background */
.header-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
}

.header-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.header-content p {
  color: #ccc;
  font-size: 1.1rem;
  margin-top: 10px;
}
.nav-pills .nav-link {
  color: #ccc;
  border-radius: 10px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
  background: linear-gradient(135deg, #54025a, #8e084d);
  color: #fff;
  box-shadow: 0 0 12px rgba(142, 8, 77, 0.8);
  transform: translateY(-2px);
}
  nav.navbar {
    border-top: 2px solid #54025a;
    border-bottom: 2px solid #54025a;
  }

  .navbar-dark .navbar-nav .nav-link {
    color: #ccc;
    font-weight: 500;
    transition: 0.3s;
  }

  .navbar-dark .navbar-nav .nav-link:hover,
  .navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
    background-color: #54025a;
    border-radius: 10px;
    padding: 8px 16px;
  }

  .container {
    margin-top: 50px;
  }

  .img, .img2, .img3 {
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    height: 220px;
    margin-bottom: 15px;
    border: 2px solid #54025a;
    box-shadow: 0 0 10px rgba(84,2,90,0.4);
  }

  .img {
    background-image: url('ser.png');
  }

  .img2 {
    background-image: url('web.jpg');
  }

 .img3 {
  background-image: url('web3.jpeg');
  background-size: cover;      /* makes it fill properly */
  background-position: center; /* centers the image */
  background-repeat: no-repeat;
  width: 100%;
  height: 220px;               /* must have a height! */
  border-radius: 15px;
  border: 2px solid #54025a;
  box-shadow: 0 0 10px rgba(84,2,90,0.4);
}

  h2 {
    color: #8e084d;
    margin-bottom: 20px;
    font-weight: 600;
  }

  h5 {
    color: #a70101;
  }
  form {
      background: #12121a;
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 12px;
      box-shadow: 0 0 20px rgba(100, 0, 200, 0.2);
    }
    .btn-primary {
      background: linear-gradient(90deg, #5a00a0, #a00070);
      border: none;
      transition: all 0.3s ease;
    }
    .btn-primary:hover {
      background: linear-gradient(90deg, #8a00f5, #d000a3);
      box-shadow: 0 0 20px rgba(210, 0, 255, 0.6);
    }
    /* Success message styling */
    .success-message {
      display: none;
      background: #0f0020;
      color: #d0a8ff;
      border: 1px solid rgba(160, 0, 255, 0.4);
      padding: 15px;
      border-radius: 8px;
      text-align: center;
      margin-top: 15px;
      animation: fadeIn 0.8s ease forwards;
    }
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
/**
  .skills-section h6 {
  font-weight: 600;
}

.progress {
  height: 20px;
  background-color: #bcb7b7;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  transition: width 1.5s ease-in-out;
}
*/
/* === Dark Violet Themed Skills Section === */
.skills-section {
  background: linear-gradient(145deg, #3c0300, #4b1401);
  color: #e5d4ff;
  box-shadow: 0 0 15px rgba(144, 0, 163, 0.514);
}

.skills-section h3 {
  font-weight: 600;
  color: #d7b8ff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skills-section h6 {
  margin-top: 10px;
  font-weight: 500;
  color: #dcb9ff;
}

/* Progress bar container */
.skills-section .progress {
  height: 18px;
  background-color: #2d004d;
  border-radius: 10px;
  overflow: hidden;
}

/* Violet gradient bar */
.skills-section .progress-bar {
  background: linear-gradient(90deg, #97196d, #7e1132);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  text-align: right;
  padding-right: 8px;
  border-radius: 10px 0 0 10px;
  transition: width 1.5s ease-in-out;
}

/* Optional subtle glow on hover */
.skills-section .progress-bar:hover {
  box-shadow: 0 0 10px #b96eff;
}
/* --- Glow Animation for My Skills Heading --- */
.skills-section h3 {
  color: #d1b3ff;
  text-shadow: 0 0 10px #9c27b0;
  transition: all 0.4s ease-in-out;
  letter-spacing: 1px;
}

.skills-section h3:hover {
  color: #f3e5f5;
  text-shadow: 0 0 20px #c77dff, 0 0 40px #9c27b0;
  transform: scale(1.08);
  animation: glowPulse 1.5s infinite alternate;
}

@keyframes glowPulse {
  from {
    text-shadow: 0 0 15px #9c27b0, 0 0 25px #6a1b9a;
  }
  to {
    text-shadow: 0 0 30px #ba68c8, 0 0 50px #9c27b0;
  }
}
/* === Violet-Red Glowing Sections === */
.education-section,
.experience-section,
.cert-section {
  background: linear-gradient(145deg, #2d0029, #3a002f, #530039);
  color: #f2e4ff;
  box-shadow: 0 0 20px rgba(170, 0, 90, 0.6);
  border: 1px solid rgba(210, 0, 140, 0.3);
  transition: all 0.5s ease;
}

/* Background slow color animation */
@keyframes bgShift {
  100% { background: linear-gradient(145deg, #3c000d, #4a0048, #6a004b); }
}

/* Section Headings */
.education-section h3,
.experience-section h3,
.cert-section h3 {
  color: #f3c9ff;
  text-shadow: 0 0 10px #b30086, 0 0 20px #ff0099;
  letter-spacing: 1.2px;
  animation: glowPulse 2s infinite alternate;
  transition: transform 0.3s ease;
}

.education-section h3:hover,
.experience-section h3:hover,
.cert-section h3:hover {
  transform: scale(1.08);
  text-shadow: 0 0 25px #ff3fb4, 0 0 50px #a80084;
}

/* === Card Styles === */
.edu-card, .exp-card, .cert-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 12px;
  border-left: 4px solid #d1006b;
  transition: all 0.4s ease;
  box-shadow: 0 0 12px rgba(120, 0, 90, 0.5);
}

.edu-card:hover,
.exp-card:hover,
.cert-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 25px rgba(255, 0, 144, 0.7);
}

/* Logos */
.edu-logo, .cert-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 10px;
  animation: logoPulse 3s infinite ease-in-out;
}

@keyframes logoPulse {
  0% { box-shadow: 0 0 5px #a70101; }
  50% { box-shadow: 0 0 20px #97008c; }
  100% { box-shadow: 0 0 5px #a70101; }
}

/* Year Styling */
.edu-year, .exp-year {
  color: #ff6eb8;
  font-style: italic;
  font-size: 0.9rem;
}

/* Credential Button */
.view-credential {
  color: #ff9efc;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dashed #ff9efc;
  transition: 0.3s;
}

.view-credential:hover {
  color: #fff;
  text-shadow: 0 0 10px #ff00b3;
  border-color: #fff;
}

/* Glow Animation */
@keyframes glowPulse {
  100% { text-shadow: 0 0 10px #a70080, 0 0 20px #ff0099; }
}


/* === Infinite 3D Inline Rotation (Always Visible) === */
.skills-section h3 {
  display: inline-block;
  font-weight: 700;
  font-size: 2rem;
  color: #e8caff;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 15px #9c27b0, 0 0 30px #c77dff;
  transform-style: preserve-3d;
  perspective: 800px;
  animation: rotate3DText 6s linear infinite;
}

/* Infinite smooth rotation with visible front at all times */
@keyframes rotate3DText {
  0% {
    transform: rotateY(0deg) rotateX(10deg);
  }
  25% {
    transform: rotateY(90deg) rotateX(10deg);
    filter: brightness(1.3);
  }
  50% {
    transform: rotateY(180deg) rotateX(10deg);
    filter: brightness(1.1);
  }
  75% {
    transform: rotateY(270deg) rotateX(10deg);
    filter: brightness(1.3);
  }
  100% {
    transform: rotateY(360deg) rotateX(10deg);
  }
}
/* === Services Section (Violet Theme) === */
.services-showcase {
  color: #e8d6ff;
  font-family: 'Poppins', sans-serif;
  padding-bottom: 60px;
}

/* Heading Glow */
.glow-heading {
  color: #f3c9ff;
  text-shadow: 0 0 15px #a000b0, 0 0 35px #ff00cc;
  animation: glowPulse 2s infinite alternate;
}

.service-pair {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: linear-gradient(145deg, #2d0029, #3a002f, #530039);
  border: 1px solid rgba(210, 0, 140, 0.3);
  box-shadow: 0 0 25px rgba(170, 0, 90, 0.5);
  border-radius: 14px;
  margin: 40px 0;
  padding: 30px;
  flex-wrap: wrap;
  transition: all 0.6s ease;
}

.service-card, .service-detail {
  flex: 1 1 45%;
  padding: 15px;
}

.service-card h4 {
  color: #ff80e0;
  text-shadow: 0 0 10px #ff00cc;
  margin-bottom: 15px;
}

.service-detail h5 {
  color: #ffb3ff;
  text-shadow: 0 0 8px #b300ff;
  margin-bottom: 12px;
}

.service-detail ul {
  list-style: none;
  padding: 0;
}

.service-detail li {
  background: rgba(255, 255, 255, 0.05);
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 6px;
  transition: 0.3s;
}

.service-detail li:hover {
  background: rgba(255, 0, 180, 0.1);
  transform: translateX(5px);
}

/* === Fade-In on Scroll Animation === */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Glow Pulse Animation */
@keyframes glowPulse {
  0% { text-shadow: 0 0 15px #a000b0, 0 0 30px #ff00cc; }
  50% { text-shadow: 0 0 30px #ff40d0, 0 0 60px #ff66ff; }
  100% { text-shadow: 0 0 15px #a000b0, 0 0 30px #ff00cc; }
}
.project-img {
  display: block;
  width: 100%;
  height: 220px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 0 12px rgba(70, 0, 90, 0.3);
  cursor: pointer;
  text-decoration: none;
}

.project-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(150, 0, 255, 0.5);
}


  .col-sm-4 {
    background: #161616;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #112256;
  }

  .col-sm-8 {
    background: #161616;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #112256;
  }

  .nav-pills .nav-link {
    color: #ccc;
    border-radius: 10px;
    margin-bottom: 8px;
  }

  .nav-pills .nav-link.active {
    background-color: #54025a;
  }
  footer {
    margin-top: 70px;
    padding: 30px;
    background-color: #111;
    color: #ccc;
    text-align: center;
    border-top: 2px solid #54025a;
  }

  footer p {
    margin: 0;
  }

  @media (max-width: 767px) {
    header h1 {
      font-size: 1.9rem;
    }
  }