html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
}

/* for the header section */
.jumbotron {
position: relative;
height: 100vh; 
overflow: hidden;

}

.text-overlay {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 2; 
color: white;
text-align: center;
}

.jumbotron::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('assets/images/bg.jpg'); 
background-size: cover;
background-position: center;
animation: slideBackground 10s linear infinite; 
z-index: 1; 
opacity: 0.9;
}

@keyframes slideBackground {
0% { background-image: url('assets/images/bg.jpg'); } 
33.33% { background-image: url('assets/images/bg2.jpg'); } 
66.66% { background-image: url('assets/images/bg3.jpg'); } 
100% { background-image: url('assets/images/bg4.jpg'); } 
}


/* for navbar section */


.navbar {
  background-color: #000;
  position: sticky;
  top: 0;
  z-index: 1000; /* Ensure the navbar is above other content */
}

.navbar-brand, .navbar-nav .nav-link {
  color: white !important; 
  font-weight: bold;
}
.navbar-nav .nav-link:hover {
  color: red !important; 
}


/* for services section */


.services {
  padding: 50px 0;
  text-align: center;
  margin-bottom: 125px;

}
.services h2 {
  margin-bottom: 30px;
  color: #333;
  font-weight: bold;   
  margin-top: 50px;
 
}
.services h2:hover {
  color: red;
  font-weight: bold;    
}

.services .service-item {
  margin-top: 25px;
  margin-bottom: 30px;
  padding: 80px; 
  background-color: #000000;
  box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
  width: 100%; 
  font-size:12px;
  height:300px;
  color:white;

}

.services .service-item:hover {
  transform: scale(1.05); 
  background-color: gray;
  color: white;
}
.services .service-item h3 {
  color:white;
  font-weight: bold;    
  text-transform: uppercase;
}
.btn{
  background-color: black;
  color:white;
}
.btn:hover{
  color:red;
}



/* for about section */


.about {
  background-image: url("assets/images/about-us-image.jpg");
  background-repeat: no-repeat;
  color: white;
  padding: 50px 0;
  text-align: center;
  animation: fadeInUp 1s ease;
  margin-bottom: 90px;
  padding-top: 290px;
}
.about h2 {
  margin-bottom: 30px;
  font-weight: bold;
  color: #fff;
}

.about p {
  color: #fff;
}
.about-text {
  padding: 0 20px;
  text-align: justify;
}
.boss{
  border-radius: 50%;
}
.boss-info{
  font-weight: bold;
  font-size: 20px;
}
.profile-card {
  position: relative; 
  overflow: hidden; 
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60%;
}
.profile-card img {
  position: relative; 
  border-radius: 50%;
  width: 220px;
  height: 220px;
  margin-bottom: 20px;
  transition: opacity 0.3s ease; 
}
.profile-card .back {
  position: absolute;
  top: 100%; 
  left: 0;
  width: 100%;
  padding: 20px;
  background-color: #fff; 
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  transition: top 0.3s ease; 
  text-align: center;
}
.profile-card:hover .back {
  top: 0; 
}
.profile-card:hover img {
  opacity: 0; 
}
.btn-learn-more{
  background-color: black;
  color: red;
  text-decoration: none;
  font-weight: bold;
  padding:20px;
}
.btn-learn-more:hover{
  color: red;
  background-color: white;
  text-decoration: none;
}

  /* Keyframes for typewriter animation */
  @keyframes typing {
      from { width: 0; }
      to { width: 100%; }
    }
  
/* Apply typewriter animation to paragraphs */
.typewriter-text {
overflow: hidden; 
border-right: .15em solid red; 
white-space: nowrap; 
animation: typing 3s steps(40, end);
}
.about-text h2 {
transform: scale(1); 
transition: transform 1s ease;
} 
.about-text:hover h2 {
transform: scale(1.2); 
}



@media (max-width: 767.98px) {
  
  .profile-card {
      width: 80%; 
      margin-top: -200px;
      margin-left: 50px;
      margin-bottom: 70px;
    }
    .typewriter-text{
      font-size: 11px;
    }
    .about-text h2{
      font-size: 18px;
    }
}



/* for contact section */


.contact {
  background-image: url("assets/images/contact-us-image.jpg");
  background-size: cover;
  background-position: center;
  padding: 80px 0;
}

.contact h2 {
  font-weight: bold;  
  color: white;
  margin-bottom: 50px;
}

.contact h2:hover {
  color: red;
}

.contact-form {
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
  padding: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.5); 
  background-color: rgba(255, 255, 255, 0.1); 
  color: white; 
}

textarea.form-control {
  height: 150px; 
}

.button-container {
  display: flex;
  justify-content: space-between; 
  margin-bottom: 10px; 
}

.btn-primary,
.btn-secondary {
  flex: 1; 
}

.btn-primary {
  background-color: black;
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  margin-right: 5px; 
}

.btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.5);
  color: black;
}

.btn-secondary {
  background-color: red;
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  margin-left: 5px; 
}

.btn-secondary:hover {
  background-color: white;
  color: red;
}

.btn-secondary i {
  color: black; 
}

.form-control::placeholder {
  color: white;
}



/* for footer section */


footer.footer {
  background-color: #000;
  color: #fff;
  padding: 15px 0;
}
footer.footer .text-muted {
  color: #fff;
}
.footer .social-icons{
  margin-top: 5px;
  color: gray;
  font-size: 11px;
}
.footer .social-icon {
  font-size: 13px; 
  margin-top: -5px;

}


/* for span and icons colors */
.red, .fas {
  color: red; 
  font-weight: bold; 
}


.social-icons {
margin-top: 20px;
}

.social-icon {
display: inline-block;
margin-right: 20px;
font-size: 24px;
color: #fff; 
transition: color 0.3s ease; 
}

.social-icon:hover {
color: red; 
}
.text-section {
background-color: rgba(128, 128, 128, 0.1); 
padding: 80px;
}



/* modal for services */


.modal-title{
  font-weight: bold;
  color: red;
}


/* projects - gallery */

.projects {
  padding: 50px 0;
  margin-bottom: 100px;
  padding-top: 80px;
}

.projects h2:hover{
  color: red;
}

.project-item {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); 
  transition: box-shadow 0.3s ease; 
  margin-top: 30px;
}

.project-item:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5); 
}
.project-item img {
  width: 100%;
  height: 250px;
  transition: transform 0.3s ease;
}

.project-item:hover img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.project-item:hover .overlay {
  opacity: 1;
}

.overlay h3,
.overlay p {
  margin: 0;
  padding: 10px;
  text-align: center;
}

.projects h2{
  margin-bottom: 30px;
}



/* scroll up button */

#scrollUpButton {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  background-color: #000;
  color: red;
  border: none;
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

#scrollUpButton:hover {
  background-color: white;
}