/*
* Construction Works Website - Main Stylesheet
* Version: 1.0
*/

/* Global Styles */
:root {
  --primary-color: #e63946;
  --secondary-color: #1d3557;
  --light-color: #f1faee;
  --dark-color: #1d3557;
  --grey-color: #f8f9fa;
  --text-color: #333;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

a {
  color: var(--primary-color);
  transition: all 0.3s ease;
}

a:hover {
  color: #c1121f;
}

.btn {
  border-radius: 4px;
  padding: 10px 24px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #c1121f;
  border-color: #c1121f;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.section-header {
  margin-bottom: 40px;
}

/* Top Bar */
.top-bar {
  font-size: 14px;
}

.top-bar i {
  font-size: 16px;
}

/* Navbar */
.navbar {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  max-height: 60px;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 20px 15px;
  position: relative;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

.navbar-nav .nav-link.active:after,
.navbar-nav .nav-link:hover:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Hero Carousel */
.carousel-item {
  height: 600px;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  filter: brightness(0.7);
}

.carousel-caption {
  bottom: 25%;
  padding: 20px;
}

.carousel-caption h2 {
  font-size: 3rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Features Section */
.feature-box {
  transition: all 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  color: var(--primary-color);
}

/* Services Section */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card img {
  height: 240px;
  object-fit: cover;
}

/* Projects Section */
.project-card {
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-card img {
  height: 240px;
  object-fit: cover;
}

.project-image {
  position: relative;
  overflow: hidden;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(29, 53, 87, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-meta {
  font-size: 14px;
  color: #6c757d;
  margin-top: 15px;
}

/* Testimonials Section */
.testimonial-item {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-img img {
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Page Header */
.page-header {
  background: var(--primary-color);
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Project Detail Page */
.project-info {
  height: 100%;
}

.project-gallery img {
  height: 180px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.project-gallery img:hover {
  transform: scale(1.05);
}

/* Contact Page */
.contact-form {
  border-radius: 8px;
}

.captcha-code {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 2px;
}

.map-container {
  height: 450px;
}

.map-container iframe {
  border: 0;
  width: 100%;
  height: 100%;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
}

.footer a {
  color: #fff;
  transition: all 0.3s ease;
}

.footer a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .carousel-item {
    height: 500px;
  }
  
  .carousel-caption h2 {
    font-size: 2.5rem;
  }
  
  .navbar-nav .nav-link {
    padding: 10px 15px;
  }
  
  .navbar-nav .nav-link.active:after,
  .navbar-nav .nav-link:hover:after {
    display: none;
  }
}

@media (max-width: 768px) {
  .carousel-item {
    height: 400px;
  }
  
  .carousel-caption {
    bottom: 15%;
  }
  
  .carousel-caption h2 {
    font-size: 2rem;
  }
  
  .carousel-caption p {
    font-size: 1rem;
  }
  
  .project-gallery img {
    height: 150px;
  }
}

@media (max-width: 576px) {
  .carousel-item {
    height: 300px;
  }
  
  .carousel-caption h2 {
    font-size: 1.5rem;
  }
  
  .top-bar span {
    display: block;
    margin-bottom: 5px;
  }
}