/* Global Reset */
* {
  padding: 0;
  margin: 0;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

/* Hero Section */
.hero-section {
  background: url('../img/slide1.jpg') no-repeat center center/cover;
  padding: 80px 0;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Headings */
h1, h2, h3, h4 {
  font-weight: bold;
  color: rgb(152, 0, 152);
}

/* Cards */
.card {
  border: none;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* CTA Button */
.cta .btn {
  background-color: #007bff;
  border: none;
  padding: 12px 24px;
  font-size: 18px;
}

.cta .btn:hover {
  background-color: #0056b3;
}
/* Larger Navigation Bar */
.navbar {
    padding: 1.5rem 0; /* Increase vertical padding */
  }
  
.navbar-brand {
    font-size: 1.75rem; /* Increase brand font size */
  }
  
.navbar-nav .nav-link {
    font-size: 1.25rem; /* Increase link font size */
    padding: 0.75rem 1.5rem; /* Increase link padding */
  }
  
.dropdown-menu {
    font-size: 1.25rem; /* Increase dropdown font size */
  }
/* Dropdown Submenu Styling */
.dropdown-submenu .dropdown-menu {
  display: none; /* Hide submenus by default */
  position: absolute;
  top: 0;
  left: 100%;
  margin-top: -1px;
}

/* carousel settings */
.carousel-item {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 16/9;
}

.carousel-item img {
  position: absolute;
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 8px;
  bottom: 20%;
}

/* perm place */
.permplacebtn{
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ind spec */

.industry-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  color: white;
}

.industry-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0; /* Image is always visible */
}

/* Title always visible above image */
.industry-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.8rem;
  font-weight: bold;
  z-index: 1;
  text-shadow: 2px 2px 6px rgb(255, 255, 255);
  transition: opacity 0.3s ease;
}

/* Overlay for text description */
.industry-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1; /* Overlay always above the image */
}

/* Hide title when hovering so it doesn’t overlap */
.industry-card:hover .industry-title,
.industry-card.active .industry-title {
  opacity: 0;
}

/* Show description on hover/click */
.industry-card:hover .industry-info,
.industry-card.active .industry-info {
  opacity: 1;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .carousel-item {
      height: 400px;
  }
  
  .carousel-caption {
      padding: 10px;
      bottom: 10%;
  }
  
  .carousel-caption h5 {
      font-size: 1rem;
      margin-bottom: 0.25rem;
  }
  
  .carousel-caption p {
      font-size: 0.8rem;
      margin-bottom: 0;
  }

  /* Hide controls on mobile */
  .carousel-control-prev,
  .carousel-control-next {
      display: none;
  }
  .industry-card {
    height: 250px;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }

  #heroCarousel .carousel-caption {
    bottom: 20%;
    padding: 1rem;
  }

  #heroCarousel h2 {
    font-size: 1.5rem;
  }
  .industry-info {
  position: absolute;
  opacity: 0;
  transition: opacity 0.3s ease;
  }
  .industry-card.active .industry-info {
  opacity: 1;
  }
  .dropdown-submenu .dropdown-menu.show {
    display: block;
  }
  .dropdown-submenu .dropdown-menu {
    position: static; /* Stack submenus vertically on mobile */
    left: 0;
    margin-left: 10px;
  }
}

.industry-card {
  height: 400px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  background: white;
}

.industry-card:hover {
  background: #f8f9fa;
  transform: scale(1.02);
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
}

/* Desktop Enhancements */
@media (min-width: 769px) {
  #heroCarousel .carousel-item {
      height: 600px;
  }
  
  #cardCarousel .carousel-inner {
      height: 600px !important;
  }

  .navbar-nav{
    margin-left: 16%;
  }
  .carousel-caption h5 {
    font-size: 1.5rem;
  }

  .carousel-caption p {
    font-size: 1.1rem;
  }
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }
  .serviceimg{
    height: 70%;
    width: 70%;
  }
  .rounded-circle{
    margin-left: -40px;
  }
  .footerMid h4, .footerMid p{
    margin-left: 80px;
  }
  .footerRight h4, .footerRight a{
    margin-left: 100px;
  }
}
