@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Poppins:wght@400;700&family=Open+Sans:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400&display=swap');

/* General smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Animation effect */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  color: #000000;
  padding: 0;
  margin: 0;
}

.about-backgrounds {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  z-index: -1;
}

.about-backgrounds img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  animation: bgFadeAbout 16s infinite;
}

.about-backgrounds img:nth-child(1) {
  animation-delay: 0s;
}

.about-backgrounds img:nth-child(2) {
  animation-delay: 4s;
}

.about-backgrounds img:nth-child(3) {
  animation-delay: 8s;
}

.about-backgrounds img:nth-child(4) {
  animation-delay: 12s;
}

@keyframes bgFadeAbout {
  0%, 25%, 100% {
    opacity: 1;
    z-index: 1;
  }
  30%, 95% {
    opacity: 0;
    z-index: 0;
  }
}


/* Header Styles */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 30px 70px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 10px 5px 15px rgba(0, 0, 0, 0.1);
}

/* General styles for the logo */
.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  cursor: default;
}

.logo div {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center the text */
}

.logo-image {
  width: 50px; /* Adjust size as needed */
  height: auto;
}

.logo span {
  font-size: 24px; /* Adjust size as needed */
  font-weight: bold;
  color: #000;
}

.logo small {
  font-size: 12px; /* Adjust size as needed */
  color: #666;
  margin-top: -5px; /* Adjust to reduce spacing */
}

/* Ensure the logo and text are styled to change the cursor on hover */
.logo,
.logo div,
.logo span,
.logo small {
  cursor: pointer; /* Change cursor to pointer on hover */
}

body.dark-mode .logo span{
  color: #ffffff;
}

body.dark-mode .logo small{
  color: #d4d3d3;
}
/* Media queries for responsiveness */

/* For tablets and larger phones */
@media (max-width: 768px) {
  .logo-image {
    width: 40px;
  }

  .logo span {
    font-size: 20px;
  }

  .logo small {
    font-size: 10px;
  }
}

/* For smaller phones */
@media (max-width: 576px) {
  .logo-image {
    width: 30px;
  }

  .logo span {
    font-size: 18px;
  }

  .logo small {
    font-size: 9px;
    margin-top: -2px; /* Adjust to reduce spacing */
  }
}

.navbar a {
  display: inline-block;
  font-size: 15px;
  color: #000000;
  text-decoration: none;
  font-weight: 500;
  margin-left: 15px;
  margin-right: 10px;
  padding: 1px 0px; 
  transition: 0.3s;
}

.navbar a:hover {
  color: rgb(3, 165, 177);
  background: #ebebeb;
  padding: 0px 10px;
  border-radius: 10px;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  z-index: 200;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #000;
  margin: 5px 0;
  transition: 0.4s;
}

@media (max-width: 768px) {
  .header {
    padding: 20px 30px;
  }
  .menu-toggle {
    display: block;
  }
  .navbar {
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  .navbar a {
    margin: 20px 0;
    font-size: 18px;
  }
  .navbar a:hover {
    padding: 5px 20px;
  }
  .navbar.active {
    display: flex;
  }
  .menu-toggle.active .bar1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .menu-toggle.active .bar2 {
    opacity: 0;
  }
  .menu-toggle.active .bar3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}


/* General dropdown styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  flex-direction: column;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* Show the dropdown content on hover */
.dropdown:hover .dropdown-content {
  display: flex;
}

.dropdown-toggle::after {
  content: ' ▼';
  font-size: 0.8em;
}

/* Dark mode styles */
body.dark-mode .dropdown-content {
  background-color: #333;
}

body.dark-mode .dropdown-content a {
  color: #fff;
}

body.dark-mode .dropdown-content a:hover {
  background-color: #444;
}

/* Navbar link hover effect */
.navbar a:hover, .navbar .dropdown:hover .dropdown-toggle {
  color: rgb(3, 165, 177);
  background: #ebebeb;
  padding: 0px 10px;
  border-radius: 10px;
}

body.dark-mode .navbar a:hover, body.dark-mode .navbar .dropdown:hover .dropdown-toggle {
  background-color: #2e2e2e;
  color: #00eeff;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
  .navbar {
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .navbar a,
  .dropdown-content a {
    margin: 10px 0;
    font-size: 18px;
  }

  .navbar.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #000;
    margin: 5px 0;
    transition: 0.4s;
  }

  .dropdown-content a {
    padding: 8px 16px;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }


}






/* Dark mode */
.dmicon {
  display: flex;
  align-items: center;
}

.dmicon i {
  margin: 7px;
  font-size: 20px;
  margin-right: 8px;
  transition: color .4s;
}

.dark-mode-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 50px;
  height: 25px;
}

.dark-mode-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.dark-mode-label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 25px;
}

.dark-mode-label:before {
  position: absolute;
  content: "";
  height: 21px;
  width: 21px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .dark-mode-label {
  background-color: #0ef;
}

input:checked + .dark-mode-label:before {
  transform: translateX(24px);
}

body.dark-mode .dmicon i {
  color: #ffcc00;
}

body:not(.dark-mode) .dmicon i {
  color: #666666;
}

/* About Section Background */
.about-background {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
}

.about-background .about-content {
  text-align: center;
  color: #fff;
}

.about-background .about-content h1 {
  font-size: 4rem;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.658); 
  border-radius: 20px;
  padding:10px;
}




/* Blog Section Styles */
.blog-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 50px 20px;
  background-color: #f9f9f9;
}

.blog-post {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: 20px;
  max-width: 300px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none; /* Remove underline from links */
  color: inherit; /* Inherit color from parent */
  padding:10px;
}

.blog-post:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.blog-post img {
  width: 100%;
  height: auto;
  border-bottom: 3px solid #007bff;
}

.blog-post h2 {
  font-size: 1.5em;
  margin: 15px 0;
  color: #333;
  font-weight: 700;
}

.blog-post p {
  font-size: 1em;
  margin: 0 15px 20px;
  color: #666;
  line-height: 1.6;
}

/* Dark Mode Styles */
body.dark-mode .blog-section {
  background-color: #121212;
}

body.dark-mode .blog-grid {
  background-color: #121212;
}

body.dark-mode .blog-post {
  background: #1e1e1e;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

body.dark-mode .blog-post:hover {
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

body.dark-mode .blog-post img {
  border-bottom: 3px solid #00eeff;
}

body.dark-mode .blog-post h2 {
  color: #ededed;
}

body.dark-mode .blog-post p {
  color: #ccc;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .blog-section {
    flex-direction: column;
    align-items: center;
  }

  .blog-post {
    max-width: 90%;
  }
}

/* Blog Section Styles for Dynamic Blog Posts */
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 0px 0px;
  background-color: #ffffff;
}

.blog-grid .blog-post {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: 20px;
  max-width: 300px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none; /* Remove underline from links */
  color: inherit; /* Inherit color from parent */
  padding: 10px;
}

.blog-grid .blog-post:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.blog-grid .blog-post img {
  width: 100%;
  height: auto;
  border-bottom: 3px solid #007bff;
}

.blog-grid .blog-post h2 {
  font-size: 1.5em;
  margin: 15px 0;
  color: #333;
  font-weight: 700;
}

.blog-grid .blog-post p {
  font-size: 1em;
  margin: 0 15px 20px;
  color: #666;
  line-height: 1.6;
}

.blog-grid .blog-post .btn-primary {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  text-transform: uppercase;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.blog-grid .blog-post .btn-primary:hover {
  background-color: #0056b3;
}

/* Responsive Design for Blog Posts */
@media (max-width: 768px) {
  .blog-grid {
    flex-direction: column;
    align-items: center;
  }

  .blog-grid .blog-post {
    max-width: 90%;
  }
}



.servelist{
  display:flex;
  flex-direction: column;
  margin-left: 20px;
  justify-content: space-evenly;

}

.servelist a{
  padding-bottom:10px;

}
.servelist a:hover{
  color:#000000ef;
} 
body.dark-mode .servelist a{
  color:#ededed;
} 
body.dark-mode .servelist a:hover{
  color:#64f0d6ef;
} 




/* Contact Us Section */
.contact-us {
  background: rgba(255, 255, 255, 0.842);
  color: #000;
  padding: 30px 5%;
}


.contact-us .section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 20px;
  color: #333;
}

.contact-us p{
  text-align:center;
  margin-bottom:10px;
  background-color: #fff;
  border-radius: 20px;
  padding:10px;
}
.contact-us .contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  padding: 20px 5%;
}

.contact-us .contact-form label {
  font-size: 16px;
  color: #333;
}

.contact-us .contact-form input, .contact-us .contact-form textarea, .contact-us .contact-form button {
  width: 100%;
  max-width: 500px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.contact-us .contact-form button {
  background: #0ef;
  border: none;
  color: #000;
  cursor: pointer;
  font-size: 16px;
}

.contact-us .contact-form button:hover {
  background: rgb(1, 148, 158);
  color: #fff;
}

@media (max-width: 768px) {
  .contact-us .contact-form input, .contact-us .contact-form textarea, .contact-us .contact-form button {
    max-width: 100%;
  }
}







/* Footer Section */
/* Footer Section */
.footer {
  background: rgb(7, 85, 91);
  color: #000;
  padding: 40px 10%;
}

.footer .flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.footer .flex-item {
  flex: 1 1 calc(33.33% - 20px);
  max-width: calc(33.33% - 20px);
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.footer .flex-item h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #333;
}

.footer .flex-item p {
  font-size: 16px;
  color: #666;
  padding: 10px;
}



.contact-me-flex {
  flex: 1 1 300px; /* Flex-grow, flex-shrink, and flex-basis */
  margin: 10px;
  padding: 10px;
  background-color: #ffffff; /* Background color for better visibility */
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-details {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.contact-details i {
  margin-right: 10px;
}

.email, .phone {
  white-space: nowrap; /* Prevent text from breaking into multiple lines */
  overflow: hidden; /* Hide any overflow text */
  text-overflow: ellipsis; /* Display ellipsis (...) for overflow text */
  max-width: 100%; /* Ensure the text doesn't expand beyond its parent */
  word-wrap: break-word; /* Break long words to ensure they fit within the container */
}

@media (max-width: 768px) {
  .contact-me-flex {
    margin: 10px 0;
  }
}




.footer .social-icons {
  display: flex;
  justify-content: space-evenly;
}

.footer .social-icons a {
  color: #000;
  font-size: 20px;
  margin: 0 5px;
}

.footer .social-icons a:hover {
  color: #0ef;
}

.footer .flex-item input,
.footer .flex-item button{
  padding: 5px;
  margin: 5px;
}



.footer .flex-item input{
  width: 100%;
}

.footer .flex-item button{
  background-color:#0ef;
  border:none;
  padding: 15px;
  border-radius: 20px;
}

.footer .flex-item button:hover{
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.39);
}

.footer-text {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color:#fff;
}

@media (max-width: 1110px) {
  .fotmail{
    font-size:16px;
  }

}

@media (max-width: 768px) {
  .footer .flex-item {
    flex: 1 1 100%;
    max-width: 100%;
  }


  .fotmail{
    font-size:13px;
  }

}





/* call and whatsapp icons */

.contact-icons i{
  display: inline-flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid #0ef;
  border-radius: 50%;
  font-size: 20px;
  color: #0ef;
  text-decoration: none;
  margin: 30px 0 px 30px 0;
  transition: .5 ease;
  opacity: 0; 
  animation: slideLeft 1s ease forwards;
  animation-delay: calc(.2s *var(--i));
}

.contact-icons i:hover{
  background: #0ef;
  color: #000;
  box-shadow: 0 0 20px #0ef;
}
.contact-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.contact-icon a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background-color: #25d366; /* WhatsApp green color */
  color: white;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.contact-icon a.call-icon {
  background-color: #007bff; /* Call icon blue color */
}

.contact-icon a:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.contact-icon a i {
  font-size: 24px;
}


/* call and whats app icons ends here */


.top{
  position: fixed;
  bottom: 2.1rem;
  left: 2.1rem;
}

.top i {
  color:#000000;
  background: #0ef;
  font-size: 10px;
  border-radius: 0.5rem;

}






/* Dark Mode Styles */
body.dark-mode {
  background-color: #121212;
  color: #ededed;
}

body.dark-mode .header {
  background-color: #1e1e1e;
  color: #ededed;
}

body.dark-mode .logo {
  color: #fff;
}

body.dark-mode .menu-toggle .bar {
  background-color: #fff;
}

body.dark-mode .navbar {
  background: #1e1e1e;
}

body.dark-mode .navbar a {
  color: #ededed;
}

body.dark-mode .navbar a:hover {
  background-color: #2e2e2e;
  color: #00eeff;
}

body.dark-mode .section-title {
  color: #ededed;
}


body.dark-mode .innovative-solutions{
  background-color: #282828f6;
}


body.dark-mode .innovative-solutions .section-title {
  color: #ededed;
}

body.dark-mode .work-experience {
  background-color: #282828f6;
}

body.dark-mode .work-experience p{
  color: #ededed;
  margin: 5px;
  padding: 10px;
}

body.dark-mode .flex-item, body.dark-mode .flex-item-image {
  background: #282828;
  color: #ededed;
}


body.dark-mode .flex-item h3{
  color: #dfdfdf;
}


body.dark-mode .flex-item h2, body.dark-mode .flex-item p {
  color: #bbb;
}



body.dark-mode .contact-us {
  background: rgba(18, 18, 18, 0.8);
}

body.dark-mode .contact-form input, body.dark-mode .contact-form textarea {
  background: #1e1e1e;
  color: #fff;
}
body.dark-mode .contact-form,
body.dark-mode .contact-us p{
  background-color:  #121212;
  color:#fff;
}

body.dark-mode .contact-form label{
  color:#fff;
}

body.dark-mode .contact-form button {
  background: #00eeff;
  color: #121212;
}

body.dark-mode .footer {
  background-color: #1e1e1e;
  color: #ededed;
}

body.dark-mode .footer .flex-item {
  background: rgb(7, 85, 91);
  color: #ededed;
}

body.dark-mode .footer .flex-item h2, body.dark-mode .footer .flex-item p {
  color: #bbb;
}

body.dark-mode .footer .social-icons a {
  color: #ededed;
}

body.dark-mode .footer .social-icons a:hover {
  color: #00eeff;
}

body.dark-mode .footer-text {
  color: #bbb;
}