/** 
Theme Name: B4c-solutions Theme
Author: Samti med Wael
**/

/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap");

/* Typography */
body {
  font-family: "Roboto Condensed", sans-serif !important;
  color: #6c757d;
}

h1,
h2,
h3,
h4,
h5,
h6,
a,
button {
  font-family: "Poppins", sans-serif !important;
}

p, span {
  font-family: "Roboto Condensed", sans-serif !important;
  color: black;
  letter-spacing: 0.5px !important;
}

h2 {
  font-weight: 600 !important;
  font-size: 4em !important;
  color: black;
}
.services-title{
  font-size: 45px !important;
}
h3 {
  color: white !important;
  font-size: 2em !important;
  font-weight: 500;
}
h4 {
  font-size: 20px !important;
  line-height: 1.6 !important;
  color: black !important;
}

h5 {
  color: #333;
}

p,
ol {
  font-size: 18px;
}
ol {
  font-weight: 500;
}
p a {
  font-family: "Roboto Condensed", sans-serif !important;
  font-weight: 300;
}
span {
  font-family: "Roboto Condensed", sans-serif !important;
  font-size: 16px;
  font-weight: 400;
}
ul.list-unstyled li {
  font-family: "Roboto Condensed", sans-serif !important;
  margin-bottom: 10px;
  font-size: 16px;
  color: black;
}

/* ul.list-unstyled li i {
  color: #a7a2a0;
} */

/* Buttons */
.btn {
  font-size: 16px;
  padding: 12px 24px;
  border: none;
  transition: all 0.4s ease-in;
}

.btn-primary {
  background-color: #ff6b4a !important;
  color: white !important;
}

.btn-primary:hover {
  opacity: 0.8 !important;
}
.btn-contact-us {
  color: white !important;
}
.btn-contact-us:hover {
  color: black !important;
  transform: translateY(-8px);
}
.btn-get-in-touch {
  background-color: white !important;
  color: #e95925 !important;
  text-transform: none;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.btn-learn-more {
  color: white !important;
  background-color: #ea9374 !important;
  border: 2px solid #ea9374 !important;
}
.btn-get-in-touch:hover,
.btn-learn-more:hover {
  background-color: #e95925 !important;
  border-color: #e95925 !important;
  color: white !important;
  transform: translateY(-8px);
}

.btn-get-in-touch-2 {
  background-color: white !important;
  color: #e95925 !important;
  border-color: white !important;
}
.btn-get-in-touch-2:hover {
  background: transparent !important;
  color: white !important;
  transform: translateY(-8px);
}

/* Form Styles */
/* .form input, .form textarea {
  box-shadow: 0px 1px 2px rgba(85, 84, 84, 0.2);
}

.form button {
  background-color: #ff6b4a;
  color: white;
} */
.form-labels {
  font-family: "Roboto Condensed", sans-serif !important;
  font-size: 16px;
  font-weight: 400;
  color: black;
}
.form ::placeholder {
  font-family: "Roboto Condensed", sans-serif !important;
  color: #a7a2a0;
  font-size: 12px;
}
.form input,
.form textarea {
  font-family: "Roboto Condensed", sans-serif !important;
  color: #a7a2a0;
  box-shadow: 0px 1px 2px 0px rgba(85, 84, 84, 0.2);
}
.form button {
  font-size: 16px;
  padding: 12px 24px 12px 24px;
  border: none;
  background-color: #ff6b4a;
  transition: all 0.4s ease-in;
  opacity: 1;
  color: white;
}
.form button:hover {
  opacity: 0.8;
  background-color: #ff6b4a;
  color: white;
}
/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  background: url("images/download.jpeg") no-repeat center / cover;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 4%;
  /*transition: background-size 0.3s ease;*/
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 20vw;
  color: white;
}

.hero-content h1 {
  font-size: 5rem !important;
  font-weight: 700 !important;
}

.hero-content p {
  font-size: 1.2rem;
  margin: 15px 0;
}

.hero-buttons a {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  letter-spacing: 1px;
  margin: 10px;
  padding: 12px 35px;
  font-size: 16px;
  text-decoration: none;
  border-radius: 0 !important ;
  border: 2px solid white;
  text-transform: uppercase;
  transition: all 1s ease;
}

.hero-buttons a:hover {
  background-color: white;
  color: black;
}
.image-container {
  position: relative;
  height: 100%;
  background-image: url("images/pexels-fauxels-3182750.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.image-title {
  position: absolute;
  font-family: "Poppins", sans-serif;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 50px;
  font-weight: 700;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
}
.profile-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

/* Backgrounds */
.bg-orange-dark {
  background: #e95925;
}
.bg-orange {
  background: rgba(234, 147, 116, 0.2);
}

.bg-orange-light {
  background: rgba(234, 147, 116, 0.1);
}

.bg-image-1 {
  background: url("images/pexels-jakubzerdzicki-20232209.jpg") center / cover;
}

.bg-image-2 {
  background: url("images/LogoTbd.png") center / contain no-repeat;
}

.project {
  min-height: 700px;
}

/* Navbar */
.navbar-brand img {
  object-fit: cover;
  width: 150px;
}

.nav-link {
  color: black !important;
  font-weight: 500 !important;
  margin: 0 5px;
}
.nav-link.active{
  border-bottom: #e95925 1px solid;
}
.nav-link:hover {
  color: grey !important;
}

/* Utility Classes */
.border-s {
  border: 1.5px solid #ff6b4a;
  width: 20%;
}

.hidden-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.visible-element {
  opacity: 1;
  transform: translateY(0);
}
.custom-icon {
  font-size: 2.2rem;
  color: #e95925;
}
.social-media-icon {
  color: #ea9374;
  font-size: 1rem;
}
.social-media-icon:hover {
  color: #e95925;
}

.card-animation:hover {
  transform: translateY(-10px);
}
.card,
.card-img-top {
  border-radius: 0 !important;
  border: none !important;
}
.card-body {
  background: rgba(234, 147, 116, 0.4);
  padding: 10px !important;
}
.project-col {
  height: 500px;
  position: relative;
  background-size: cover;
  background-position: center;
  transition: opacity 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.project-1 {
  background-image: url("images/pexels-pixabay-163100.jpg");
}

.project-2 {
  background-image: url("images/pexels-pixabay-257886.jpg");
}

.project-3 {
  background-image: url("images/pexels-cang-hai-2894404-4425112.jpg");
}

.project-4 {
  background-image: url("images/pexels-thisisengineering-3862605.jpg");
}

.project-info {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  opacity: 0.8;
  padding: 10px 20px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
  transition: opacity 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.project-col:hover .project-info {
  opacity: 1;
}

.project-col:hover {
  filter: grayscale(100%);
}

/* Responsive Styles */
@media (max-width: 968px) {
  .hero-content h1 {
    font-size: 4.5rem !important;
  }
  h2 {
    font-size: 3.5em !important;
  }
  h3 {
    font-size: 1.5em !important;
  }
  h4 {
    font-size: 18px !important;
  }
  .hero-content p {
    font-size: 1rem !important;
  }

  .hero-buttons a {
    font-size: 14px !important;
    padding: 10px 20px !important;
  }
}

/* Initially neutral border for input fields */

/* Error message styling */
.error-message {
  color: red;
  font-size: 12px;
  display: none;
  margin-top: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show error message when active */
.error-message.active {
  display: block;
  opacity: 1;
}

/* Styling for the submit button */
button:disabled {
  background-color: #ccc;
  cursor: not-allowed; /* Standard cursor for disabled button */
}

/* Valid input field (green underline) */
input:valid, textarea:valid {
  border-bottom: 2px solid green;
}

/* Disabled submit button cursor */
button:disabled {
  cursor: not-allowed;
}

/* Change cursor to red circle with line (🚫) when the form is invalid */
button:disabled:hover {
  cursor: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36"%3E%3Ccircle cx="18" cy="18" r="16" fill="none" stroke="%23FF0000" stroke-width="4" /%3E%3Cline x1="12" y1="12" x2="24" y2="24" stroke="%23FF0000" stroke-width="4" /%3E%3C/svg%3E') 18 18, not-allowed;
}


@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 4rem !important;
  }
  h2 {
    font-size: 3em !important;
  }
  h3 {
    font-size: 1em !important;
  }
  h4 {
    font-size: 16px !important;
  }
  p,
  ol {
    font-size: 16px;
  }
  span {
    font-size: 14px;
  }
  .hero-content p {
    font-size: 1rem !important;
  }

  .hero-buttons a {
    font-size: 14px !important;
    padding: 10px 20px !important;
  }
}

@media (max-width: 480px) {
  .hero-section{
    height: 150vh;
  }
  .hero-content h1 {
    font-size: 3rem !important;
  }
  .services-title, h2 {
    font-size: 2.5em !important;
  }
  h3 {
    font-size: 1em !important;
  }
  h4 {
    font-size: 16px !important;
  }
  p,
  ol {
    font-size: 15px;
  }
  span {
    font-size: 13px;
  }
  .hero-content p {
    font-size: 0.9rem !important;
  }

  .hero-buttons a {
    font-size: 12px !important;
    padding: 8px 16px !important;
  }
  #about-us{
    text-align: center;
  }
  #about-us .border-s{
    margin: 0 auto;
  }
  .card-animation {
    text-align: center;
    margin-bottom: 6%;
  }
}

#project-logos {
  position: relative;
  overflow: hidden;
}

.logos-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.logos {
  display: flex;
  gap: 7rem;
  animation: scroll 30s linear infinite;
  will-change: transform;
}

.logos img {
  width: 100px;
  height: auto;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.logos img:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
  animation-play-state: paused;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}
