/* Global Styles */
html, body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--text-color);
}

main {
  margin-bottom: 500px;
}

.container {
  max-width: 1150px;
  margin: 0 auto;
}

.btn-outline-light {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.btn-outline-light:hover {
    background-color: var(--primary-color)!important;
    border-color: var(--primary-color)!important;
}

/* Top bar */
.topbar {
  background-color: var(--primary-color)!important;
  color: #fff;
  padding: 2px;
  text-align: right;
}

/* Navigation Bar and Footer Styles */
.navbar, .footer {
	background-color: var(--custom-color);
}

.navbar .nav-link,
.navbar-light .navbar-nav .nav-link {
    color: var(--header-footer-text-color) !important;
}

.navbar .nav-link:hover,
.navbar-light .navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

.navbar .btn {
  padding: .49rem .75rem;
}

.page-content {
	margin: 25px auto;
}

.page-content h1 {
	margin: 15px auto;
}

/* Hero Section */
.hero {
  position: relative;
  color: white;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  overflow: hidden;
  padding: 30px;
}

/* Hero Image */
.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image covers the hero section */
  z-index: -1; /* Places the image behind the text */
}

/* Hero Content Styling */
.hero-content {
  background: rgba(0, 0, 0, 0.5);
  padding: 30px;
  border-radius: 8px;
}

.hero-video {
	width: 100%;
	height: auto;
	object-fit: cover;
}

.hero h1 {
  font-size: 3.8rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.cta-btn {
	background-color: var(--primary-color);
	color: #f8f9fa;
	margin: 10px;
	padding: 15px 30px;
	font-size: 1.2rem;
	transition: background-color 0.3s ease;
}

.cta-contact-btn {
	color: #f8f9fa;
	border-color: #f8f9fa;
	margin: 10px;
	padding: 15px 30px;
	font-size: 1.2rem;
	transition: background-color 0.3s ease;
}

.cta-btn:hover {
	background-color: var(--secondary-color);
}

.cta-contact-btn:hover {
	background-color: var(--secondary-color);
}

.btn-outline-light:hover {
  color: #212529;
  background-color: var(--secondary-color);
  border-color: #f8f9fa;
}

/* USP Section */
.usp-section {
  background-color: #f8f9fa;
  padding: 60px 0;
}

.usp-item {
  font-size: 1.2rem;
  text-align: center;
  background: white;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
}

.usp-item i {
  font-size: 2rem;
  /*color: #007bff;*/
  color: var(--primary-color);
  margin-bottom: 15px;
}

.usp-item h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Services Section */
.service-item .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
}

.service-item .card:hover {
  transform: scale(1.05);
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
}

.card-body i {
  color: var(--primary-color);
}

/* Testimonials Section */
.testimonials-section {
	background: linear-gradient(to right, #0052D4, #65C7F7); /* Fallback */
	background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
	padding: 60px 0;
	text-align: center;
}

.testimonials-section h2 {
  color: var(--bg-color);
  margin-bottom: 30px;
}

.testimonial {
  background-color: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column; /* Stack items vertically */
}

.testimonial-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 10px; /* Center image and add space below */
}

.testimonial blockquote {
  margin: 0 0 15px 0;
  font-style: italic;
}

.testimonial footer {
  font-weight: bold;
  color: var(--primary-color);
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.testimonial footer img {
  justify-self: start;
}

.testimonial footer .testimonial-name-role {
  justify-self: end;
  text-align: left;
}

/* Aspect Ratio for Service Images */
.card-img-top {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Call to Action Section */
#services .mt-4 h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

#services .mt-4 p {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

/* CTA Section Styling */
#cta {
  position: relative;
  color: white;
}

#cta h3 {
  font-size: 2.5rem;
  font-weight: bold;
}

#cta p {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

#cta .btn {
  padding: 15px 30px;
}

/* Latest Projects Section */
#latest-projects img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#latest-projects img:hover {
  transform: scale(1.05);
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
}

.cc-window.cc-floating {
    border-radius: 10px;
}

/* Footer */
.footer {
	padding: 30px 0;
	text-align: center;
    background-color: var(--custom-color);
}

.footer .nav-link {
    color: var(--header-footer-text-color) !important;
}

.footer .nav-link:hover {
    color: var(--secondary-color) !important;
}

.footer a {
    color: var(--header-footer-text-color) !important;
}

.footer a:hover {
    color: var(--secondary-color) !important;
}

.footer p {
    color: var(--header-footer-text-color);
}

/* Responsive Hero Section for small screens */
@media (max-width: 768px) {
  .logo {
    height: 40px;
  }
  .hero {
    min-height: 40em;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.2rem;
  }
  .cta-btn {
    padding: 10px 20px;
    font-size: 1rem;
  }
  .hero-content {
    padding: 20px;
    margin-top: 0;
  }
}

@media (max-width: 360px) {
  .hero {
    min-height: 35em;
  }
  .hero h1 {
    font-size: 2rem;
  }
}