/* General Styles */
/* New styles */

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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Navigation */
header {
  /* background-color: #333; */
  background-color: black;
  color: white;
  padding: 10px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 30px;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links li a {
  color: white;
  text-decoration: none;
}

.nav-links li a:hover {
  color: #f09d51;
}

.btn{
  border-radius: 10px;
}

/* Services section */
.our-services {
  /* background-color: #f4f4f4; */
  padding: 50px 0;
  text-align: center;
}

.our-services h2 {
  margin-bottom: 40px;
  font-size: 36px;
}

.our-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.our-service-card {
  background-color: white;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.our-service-card:hover {
  transform: scale(1.05);
  background-color: #e0f7fa;
}

.our-service-card img {
  max-width: 100%;
  border-radius: 8px;
  height: 100px;
  width: 100px;
}

.our-service-card h3 {
  margin-top: 15px;
  font-size: 24px;
}

.our-service-card p {
  margin: 15px 0;
  font-size: 16px;
}

.our-service-card .btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #333;
  color: white;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0px 2px 6px 1px rgba(0, 0, 0, 0.20);
}

.our-service-card .btn:hover {
  background-color: #faacc6;
}

.our-service-card.disabled {
  /* pointer-events: none; */
  opacity: 0.5;
  background-color: #ccc;
  position: relative; /* For positioning the tooltip */
}

.our-service-card.disabled:hover::after {
  content: "This service is currently unavailable.";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -150%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.our-service-card.disabled:hover {
  cursor: not-allowed;
}

.our-service-card.disabled::after {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}


/* About Section */
.about {
  background: #faf2ac;
  padding: 50px 20px;
  text-align: center;
}

.about h2 {
  margin-bottom: 20px;
  font-size: 36px;
  color: #333;
}

.about span {
  color: red;
}

/* Accordion */
.accordion-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.accordion-item {
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
}

.accordion-button {
  background-color: #f9f9f9;
  color: #333;
  padding: 15px 20px;
  width: 100%;
  text-align: left;
  font-size: 18px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-button::after {
  content: "+";
  font-size: 20px;
  color: red;
}

.accordion-button.active::after {
  content: "-";
  color: red;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: #fff;
  padding: 0 20px;
}

.accordion-content p {
  padding: 15px 0;
  margin: 0;
  font-size: 16px;
}

/* Objectives Grid */
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
  gap: 20px;
  padding: 10px 0;
}

.objective {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px;
  text-align: left;
}

.objective h4 {
  margin-bottom: 10px;
  font-size: 18px;
  color: red;
}

.objective p {
  font-size: 16px;
  margin: 0;
}

/* Contact Section */
.contact {
  padding: 50px 20px;
  text-align: center;
  background-color: #333;
  color: white;
}

.contact h2 {
  margin-bottom: 20px;
  font-size: 36px;
}

.contact p {
  font-size: 18px;
}


/* Footer Styling */
footer {
  background-color: #333;
  color: white;
  padding: 40px 0px 0px;
  text-align: left;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-container div {
  flex: 1;
  padding: 20px;
}

.footer-about h3, .footer-contact h3, .footer-quick-links h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.footer-about p, .footer-contact p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-contact .social-links a {
  margin-right: 10px;
  display: inline-block;
}

.footer-quick-links ul {
  list-style: none;
}

.footer-quick-links ul li {
  margin-bottom: 10px;
}

.footer-quick-links ul li a {
  color: white;
  text-decoration: none;
}

.footer-quick-links ul li a:hover {
  text-decoration: underline;
}

.footer-bottom {
  background-color: #222;
  text-align: center;
  padding: 10px 20px;
  margin-top: 20px;
  font-size: 12px;
}

.footer-bottom p {
  margin: 5px;
}

.social-links img {
  width: 20px;
  height: 20px;
}

* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
  width: 100%; /* Make the container span the full width of the screen */
  position: relative;
  margin: auto;
  overflow: hidden; /* Prevent images from overflowing the container */
}

/* Style the images */
.slideshow-container img {
  width: 100%; /* Ensure images span the full width of the container */
  height: auto; /* Maintain aspect ratio */
  max-height: 70vh; /* Optional: Limit the height to 70% of the viewport height */
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.transition {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes transition {
  from {opacity: .4}
  to {opacity: 1}
}

/* Services */
.service-projects-section{
  padding: 20px;
}

.service-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 10vh auto;
}

.service-project-card {
  background-color: white;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  display: flex; /* Enables Flexbox layout */
  flex-direction: column; /* Stacks children vertically */
  align-items: center; /* Centers items horizontally */
  justify-content: center; /* Centers items vertically */
  height: 100%; /* Adjust this to fit your layout needs */
  text-align: center; /* Optional, ensures text is centered */
}

.service-project-card img {
  max-width: 100%;
  border-radius: 8px;
  height: 100px;
  width: 100px;
}

.service-project-card h3 {
  margin-top: 15px;
  font-size: 24px;
}

.service-project-card p {
  margin: 15px 0;
  font-size: 16px;
}

.service-project-card .btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #333;
  color: white;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0px 2px 6px 1px rgba(0, 0, 0, 0.20);
}

.service-project-card .btn:hover {
  /* background-color: #f09d51; */
  background-color: #faacc6;
}

.service-project-card:hover {
  transform: scale(1.1);
  background-color: #e0f7fa;
}

.service-project-card.disabled {
  /* pointer-events: none; */
  opacity: 0.5;
  background-color: #ccc;
  position: relative; /* For positioning the tooltip */
}

.service-project-card.disabled:hover::after {
  content: "This service is currently unavailable.";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -150%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-project-card.disabled:hover {
  cursor: not-allowed;
}

.service-project-card.disabled::after {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}



/* CSE Projects */
.cse-projects {
  background-color: #f4f4f4;
  padding: 50px 0;
  text-align: center;
}

.cse-projects h2 {
  margin-bottom: 40px;
  font-size: 36px;
}

.cse-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.cse-project-card {
  background-color: white;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  display: flex; /* Enables Flexbox layout */
  flex-direction: column; /* Stacks children vertically */
  align-items: center; /* Centers items horizontally */
  justify-content: center; /* Centers items vertically */
  height: 100%; /* Adjust this to fit your layout needs */
  text-align: center; /* Optional, ensures text is centered */
}

.cse-project-card img {
  max-width: 100%;
  border-radius: 8px;
  height: 100px;
  width: 100px;
}

.cse-project-card h3 {
  margin-top: 15px;
  font-size: 24px;
}

.cse-project-card p {
  margin: 15px 0;
  font-size: 16px;
}

.cse-project-card .btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #333;
  color: white;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0px 2px 6px 1px rgba(0, 0, 0, 0.20);
}

.project-card .btn:hover {
  /* background-color: #f09d51; */
  background-color: #faacc6;
}

/*Contact buttons*/
/* Shared button styles */
.fixed-button {
  position: fixed;
  right: 0vw;
  z-index: 1000;
  width: 200px;
  height: 50px;
  display: flex;
  align-items: center;
  box-shadow: 0px 2px 6px 1px rgba(0, 0, 0, 0.20);
  border-radius: 10px;
  color: white;
  background-color: rgba(255, 174, 0, 1);
  font-weight: 700;
  padding: 0 10px;
  font-size: 20px;
}

.fixed-button img {
  width: 30px;
  height: 30px;
  margin-right: 10px;
}

/* Specific positions */
.contact-button {
  top: 60vh;
}

.whatsapp-button {
  top: calc(60vh - 60px);
  background-color: #25d366; 
}

.email-button {
  top: calc(60vh - 120px);
  background: #333333;
  img{
    width: 25px;
    height: 25px;
  }
}



/* Enquiry form */
.enquiry-container {
  max-width: 600px;
  margin: 60px auto 2rem;
  padding: 1.5rem;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

h2 {
  text-align: center;
  color: #333;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.required {
  color: red;
  margin-left: 2px;
}

input, textarea, select {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

button {
  background-color: #e91e63;
  color: white;
  border: none;
  padding: 0.7rem;
  width: 100%;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 4px;
}

button:hover {
  background-color: #faacc6;
}

.error {
  color: red;
  font-size: 0.9rem;
  display: none;
}