
 html, body {
  overflow-x: hidden;
}
 body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; 
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: math, sans-serif;
  overflow-x: hidden;
}

main {
  flex: 1; 
}
h3, h5{
  font-family: math;
}
p{
  
  line-height: 1.8;
  color: #000;
  font-size: 16px;
}

.nav-item,
.dropdown-item {
  font-family: math;
  font-size: 17px;
  font-weight: 500;
}

/* .nav-item:hover{
    color: #ff4c60;
    transition: 0.3s;
    
} */
.nav-link {
  color: white !important;
}

.nav-link:hover {
  color: #ffc107 !important;
  transition: 0.3s;
}

.dropdown-item:hover {
  background-color: #495057 !important;
  color: white !important;
  transition: 0.3s;
}

.dropdown-menu {
  border-radius: 0;
  border: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  font-size: 16px;
  font-weight: 500;
  color: black !important;
}
/* Desktop hover */
@media (min-width: 992px) {
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }

  .dropdown-submenu {
    position: relative;
  }

  .dropdown-submenu .dropdown-menu {
    top: 0;
    right: 100%;
  }
}


/* .dropdown-item:active{
    background-color: #ff4c60;
    color: white !important;
} */
.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff !important;
}

.navbar-brand:hover {
  color: #ffc107 !important;
  transition: 0.3s;
}

.position-relative {
  margin-left: 20px;
}

.position-relative:hover {
  color: #ffc107 !important;
  transition: 0.3s;
}


 /* Animated Gradient Navbar */
.navbar {
  background: linear-gradient(90deg, #667eea, #764ba2);
  /* background-size: 400% 400%;
  animation: gradientMove 6s ease infinite; */
}

/* Animation */
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.school-name {
  font-size: 1.5rem;
  font-family: 'Font Awesome 5 Pro';
  /* text-shadow: 2px 0 black; */
}

.tagline {
  font-size: 0.875rem;
  text-align: right;
}


@media (max-width: 576px) {
  .school-name {
    font-size: 15px !important;
  }

}

@media screen and (min-width: 992px) and (max-width: 1040px) {
  .school-name {
    font-size: 15px !important;
  }


}


/* ---------------------------hero section-------------------------- */

.hero-section {
  height: 100vh;
  /* background: linear-gradient(var(--bs-tertiary-color), rgba(10, 20, 60, 0.8)), url(/images/top-header.jpg) no-repeat center center / cover; */
  /* background: url(/stm32/images/top-header.jpg) no-repeat center center / cover; */
  background: url(/images/top-header.jpg) no-repeat center center / cover; 
             
  display: flex;
  align-items: center;
  justify-content: center;
 
}

.hero-content {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

/* Gradient heading */
.hero-title {
  font-size: 3rem;
  background: linear-gradient(to right, #00c6ff, #0072ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Button hover */
.btn-primary {
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  border: none;
}

.btn-primary:hover {
  opacity: 0.85;
}

.tools-text {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tools-text span {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.9rem;
  color: #fff;
  background: rgba(0, 198, 255, 0.15);
  border: 1px solid rgba(0, 198, 255, 0.4);
  transition: 0.3s;
}

/* Hover Glow */
.tools-text span:hover {
  background: #00c6ff;
  color: #000;
  box-shadow: 0 0 10px #00c6ff, 0 0 20px #00c6ff;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    height: 90vh;
    padding: 20px;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }
}
/* ---------------------------About section-------------------------- */
/* .overview-section {
  background: #f8f9fa;
} */


/* Feature box base */
.feature-box {
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 1.05rem; 
  font-weight: 600;
  transition: 0.3s;
  font-family: math;
}

/* Mild background colors */
.bg-soft-blue {
  background-color: #e7f1ff;
}

.bg-soft-green {
  background-color: #e8f8f1;
}

.bg-soft-purple {
  background-color: #f3e8ff;
}

.bg-soft-orange {
  background-color: #fff4e6;
}

/* Hover effect */
.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
/* ------------------------------components----------------------------- */



/* Side layout fix */
.service-card {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Text alignment */
.service-card h5 {
  margin-bottom: 5px;
}

.service-card p {
  margin-bottom: 5px;
}
.services-section {

   /* background: url(/stm32/images/service.jpg)  center/cover no-repeat; */
    background: url(/images/service.jpg) no-repeat center center / cover; 
  position: relative;
    /* min-height: 100vh; */
  padding: 110px 0;
  display: flex;
  
}

.services-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

.services-section .container {
  position: relative;
  z-index: 1;
}

/* CARD BASE */
.service-card {
  position: relative;
  padding: 25px;
  border-radius: 20px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  overflow: hidden;
  z-index: 1;
  height: 100%;
  transition: 0.3s;
}

/* 🔥 Animated Border */
.service-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: linear-gradient(270deg, #00f0ff, #ff00c8, #00f0ff);
  background-size: 400% 400%;
  z-index: -1;
  animation: borderMove 6s linear infinite;
}

/* Inner layer to create border effect */
.service-card::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: rgba(20, 20, 20, 0.85);
  border-radius: 18px;
  z-index: -1;
}

/* Animation */
@keyframes borderMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hover */
.service-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* ICON */
/* .service-card .icon {
  width: 60px;
  height: 60px;
  background: #ffc107;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
} */

.service-card .icon img {
  width: 100px;
  height: 100px;
  border: 2px solid #ffc107;
}

/* TEXT */
.service-card h5 {
  font-weight: 600;
}

.service-card p {
  font-size: 14px;
  opacity: 0.8;
  color: #ddd;
}

/* ARROW */
.service-card .arrow {
  display: inline-block;
  margin-top: 10px;
  color: #ffc107;
  font-size: 20px;
  transition: 0.3s;
}

.service-card:hover .arrow {
  transform: translateX(6px);
}

/* .component-card {
  background: #ffffff;
  border-radius: 10px;
  height: 100%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: 0.3s;
}
.component-card p{
  line-height: 1.6;
    color: #000;
    font-size: 16px;
    padding: 14px;
    text-align: start;
}


.component-card h6 {
  font-weight: 800;
  margin-top: 8px;
}

.component-card img {
    height: 100px;
  object-fit: contain;
  border: 2px solid #f3e8ff;
  border-radius: 8px;
  transition: 0.3s;
}

.component-card:hover img {
  border-color: #0072ff;
  box-shadow: 0 0 10px rgba(0,114,255,0.6);
} */
/* ------------------------------------------------------ */


.py-custom {
  padding: 70px 0; 
}

.tutorial-list {
  margin-top: 10px;
}

.tutorial-list li {
  padding: 10px 0;
    font-size: 19px;
    position: relative;
    font-family: bold;
    color: #000;
}

.tutorial-list li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, #00c6ff, #0072ff);
  opacity: 0.4;
}

.tutorial-list li:hover {
  color: #0d6efd;
  transform: translateX(5px);
  transition: 0.3s;
}
.tutorial-list li a {
  text-decoration: none;
  color: #333;
  display: block;
  transition: 0.3s;
}

.tutorial-list li a:hover {
  color: #0d6efd;
  transform: translateX(5px);
}

/* ---------------------------footer-------------------------- */
/* footer {
 
background: linear-gradient(90deg, #667eea, #764ba2);
} */
footer {

  background: linear-gradient(90deg, rgba(102,126,234,0.7), rgba(118,75,162,0.7)),
              url('/images/footer.jpg') no-repeat center center/cover;
}

.cta-text {
  color: #ffc107;
  font-family: math;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  color: #ffc107;
  text-decoration: none;
  transition: 0.3s;
}

.facebook-bg {
  background-color: #3b5998;
  color: #fff;
  padding: 11px;
  border-radius: 50%;
  margin: 5px;
  /* height: 40px; */
  width: 40px;
  text-align: center;
}

.instagram-bg {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
  padding: 10px;
  border-radius: 50%;
  margin: 5px;
  width: 40px;
  text-align: center;
}

.youtube-bg {
  background-color: #CD201F;
  color: #fff;
  padding: 10px;
  border-radius: 50%;
  margin: 5px;
  width: 40px;
  text-align: center;
}

.copyright-area {
  background-color: rgb(0 0 0 / 42%);
  text-align: center;
  font-weight: 800;
  font-family: math;
}
.copyright-area p{
  text-align: center;
  color: white;
}

/* ---------------------------banner-------------------------- */
.banner-mba-img {
  background: url('/images/banner/1.jpg') no-repeat center center;
  background-size: cover;
}
.banner-project-img {
  background: url('/images/projects/Microchip-2.jpg') no-repeat center center;
  background-size: cover;
}
.banner-inner-txt h1{
  color: white;
  position: absolute;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%); 
  /* background: rgba(0,0,0,0.5);  */
  background: var(--bs-purple);
  padding: 10px 20px; 
  border-radius: 5px; 
  text-align: center;
  font-family: math;
}
/* Small devices (mobile) */
@media (max-width: 576px) {
  .banner-inner-txt h1 {
    font-size: 15px; 
    padding: 5px 10px;
  }
}
/* ---------------------------projects page-------------------------- */
.project-card {
  border-radius: 15px;
  overflow: hidden;
  transition: 0.4s;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.project-img {
   width: 100%;
  height: 250px;
  object-fit: contain;
  background: #f8f9fa;
  padding: 10px;   /* gives nice spacing */
}

/* animation */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.6s;
}
.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

.blink-text {
  animation: glowBlink 2.5s infinite;
  color: #ff3c00;
}

@keyframes glowBlink {
  0%,100% { opacity: 1; text-shadow: 0 0 5px #ff3c00; }
  50% { opacity: 0.3; text-shadow: none; }
}

/* --------------------------image popup------------------------ */
/* .img-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
} */
.img-modal{
  /* display: none;
    position: fixed;
    z-index: 9999; */
    padding-top: 60px;
    /* left: 0;
    top: 0;
    width: 100%; */
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    /* background: rgba(0, 0, 0, 0.6);
    display: flex; */
    align-items: center;
    justify-content: center;
}

.img-modal img {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 50px;
  cursor: pointer;
}

/* .img-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.6);

  display: flex;
  align-items: center;
  justify-content: center;
} */


.img-box {
  /* background: #fff;
  padding: 15px;
  border-radius: 12px; */
  text-align: center;
  /* max-width: 500px;
  width: 90%;
  position: relative; */
}

/* Image */
.img-box img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  /* max-height: 60vh; */
  object-fit: contain;
}

/* Close */
/* .close-btn {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 25px;
  cursor: pointer;
} */

/* Mobile fix */
@media (max-width: 576px) {
  .img-box {
    max-width: 90%;
    padding: 10px;
  }

  .img-box img {
    max-height: 50vh;
  }
}
 /* ------------------------video btn------------------ */
.tutorial-card{
    max-width: 700px;
    margin: auto;
    padding: 50px 30px;
    border-radius: 24px;
    background: linear-gradient(135deg,#6f42c1,#8b5cf6);
    color: white;
    box-shadow: 0 20px 50px rgba(111,66,193,.25);
}

.play-wrapper{
    width: 120px;
    height: 120px;
    margin: auto;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.play-wrapper i{
    font-size: 50px;
    color: white;
    margin-left: 6px;
}

.tutorial-card h2{
    font-family: math;
    font-weight: bold;
}

.tutorial-card p{
    opacity: .9;
    font-size: 18px;
}

@keyframes pulse{
    0%{
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255,255,255,.5);
    }
    70%{
        transform: scale(1.05);
        box-shadow: 0 0 0 25px rgba(255,255,255,0);
    }
    100%{
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255,255,255,0);
    }
}