* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0d6efd;
  --secondary: #6c757d;
  --light: #f8f9fa;
  --dark: #212529;
  --saffron: #ff9933;
  --white: #ffffff;
  --green: #a3f69c;
  --danger: #f86060;
}

body {
  font-family: "Roboto";
}

.navbar {
  z-index: 1 !important;
}

/* Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(165, 162, 162, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.contact-popup {
  background-color: #343a40;
  color: #fff;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
  padding: 30px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.popup-overlay.active .contact-popup {
  transform: translateY(0);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #ff6b6b;
}

.contact-info {
  margin-bottom: 20px;
}

.contact-info h3 {
  margin-bottom: 20px !important;
  color: #4dabf7;
}

.contact-details {
  margin-bottom: 20px !important;
}

.contact-details p {
  margin-bottom: 10px !important;
  display: flex;
  align-items: center;
  line-height: 2rem !important;
  font-size: 1rem !important;
}

.contact-details i {
  margin-right: 10px !important;
  color: #4dabf7;
  width: 20px !important;
  text-align: center !important;
}

.social-icons {
  display: flex;
  gap: 15px !important;
}

.social-icons a {
  color: #fff;
  font-size: 1.2rem !important;
  transition: color 0.2s ease;
}

.social-icons a:hover {
  color: #4dabf7;
}

#contactForm1 .form-control {
  margin-bottom: 15px;
  border: none;
  border-bottom: 3px solid var(--secondary);
}

#contactForm1 p {
  text-align: center;
  margin: 20px;
  font-size: 12px;
}

#contactForm1 option {
  color: #2f2e2e;
  background-color: rgba(255, 255, 255, 0.1);
}

.form-control:focus {
  border-color: #4dabf7;
  box-shadow: 0 0 0 0.25rem rgba(77, 171, 247, 0.25);
}

.btn-send {
  background-color: #4dabf7;
  color: #fff;
  border: none;
  padding: 10px 20px;
  transition: background-color 0.2s ease;
}

.btn-send:hover {
  background-color: #339af0;
}

/* Popup Media */
@media (max-width: 768px) {
  .contact-popup {
    padding: 10px;
    max-width: 95%;
  }

  .row {
    flex-direction: column;
  }

  .col-md-6 {
    width: 100%;
  }

  .close-btn {
    top: 10px;
    right: 10px;
  }
}

/* Hero Carousel */
.hero-carousel {
  margin: -100px 0;
}

.carousel-item {
  height: 85vh;
  min-height: 100px;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
}

.carousel-caption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.carousel-caption h1,
.carousel-caption p {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Section Styling */
section {
  padding: 100px 0;
  position: relative;
}

.section-header h2 {
  position: relative;
  padding-bottom: 15px;
  color: rgb(99, 98, 98);
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg,
      var(--primary),
      var(--white),
      var(--green));
}


/* Application Cards */
.application-card {
  transition: all 0.3s ease;
  background: white;
  border: none;
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(13, 110, 253, 0.1);
  border-radius: 50%;
}

/* Manufacturing Process */
.process-steps {
  position: relative;
}

.process-step {
  display: flex;
  align-items: flex-start;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
  font-weight: bold;
}

.process-step::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 40px;
  width: 2px;
  height: calc(100% - 40px);
  background-color: var(--primary);
}

.process-step:last-child::before {
  display: none;
}

.video-wrapper {
  position: relative;
  overflow: hidden;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 24px;
  cursor: pointer;
}

/* Contact Form */
.contact {
  background-color: #e4e6e7;
  border-radius: 6px;
}

.contact-info {
  line-height: 1.6;
}

.contact-info h5 {
  font-size: 1rem;
  margin-bottom: 15px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-info p {
  font-size: 14px;
  line-height: 1.6;
}

.map-container {
  overflow: hidden;
  border-radius: 10px;
}

/* Footer */
footer a {
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--primary) !important;
}

footer .btn {
  height: 37.5px;
}

.social-icons a {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--primary);
  color: white !important;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(100px);
}

.back-to-top.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
}

/* Animate Pulse */
.animate-pulse {
  animation: animate-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes animate-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* Hover Float Effect */
.hover-float {
  transition: transform 0.3s ease;
}

.hover-float:hover {
  transform: translateY(-10px);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .carousel-item {
    height: 40vh;
  }

  section {
    padding: 80px 0;
  }
}

@media (max-width: 768px) {
  .carousel-item {
    height: 60vh;
  }

  .carousel-caption {
    bottom: 20%;
  }

  .carousel-caption h1 {
    font-size: 2rem;
  }

  section {
    padding: 60px 0;
  }
}

@media (max-width: 576px) {
  .carousel-item {
    height: 40vh;
    min-height: 400px;
  }

  .carousel-caption h1 {
    font-size: 1.5rem;
  }

  .carousel-caption p {
    font-size: 0.9rem;
  }

  /* Mobile popup adjustments */
  .contact-popup {
    padding: 8px;
    max-width: 98%;
    max-height: 90vh;
    overflow-y: auto;
  }

  .close-btn {
    top: 8px;
    right: 8px;
    font-size: 1.8rem;
    z-index: 10;
  }

  .application-card {
    width: 100% !important;
  }

  .contact-info h3 {
    font-size: 1.1rem;
    margin-bottom: 15px !important;
  }

  .contact-details p {
    font-size: 0.9rem !important;
    line-height: 1.5rem !important;
  }

  .form-control {
    margin-bottom: 10px;
    font-size: 0.9rem;
  }

  .btn-send {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  #testimonials {
    height: 480px;
  }
}

.section-header h2 {
  color: #2c3e50;
  position: relative;
  padding-bottom: 15px;
}

.section-header h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
}

.video-wrapper {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.video-wrapper .img-fluid {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-wrapper.img-fluid source {
  width: auto;
  height: auto;
}

.video-wrapper:hover {
  box-shadow: 0 0 25px rgba(52, 152, 219, 0.4);
}

.rounded {
  border-radius: 10px !important;
}

.shadow {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.play-button:hover {
  background: rgba(255, 255, 255, 1);
  transform: translate(-50%, -50%) scale(1.05);
}

.play-button i {
  font-size: 24px;
  color: #2c3e50;
  margin-left: 4px;
}

.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(52, 152, 219, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
  }
}

.process-step {
  display: flex;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.process-step.visible {
  opacity: 1;
  transform: translateX(0);
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #3498db, #2c3e50);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.step-content h5 {
  color: #2c3e50;
  margin-bottom: 5px;
  font-weight: 600;
}

.step-content p {
  color: #7f8c8d;
  margin-bottom: 0;
}