/* Steel Building Company - Professional Industrial Design */

:root {
  --primary-steel: #1a252f;
  --secondary-blue: #2980b9;
  --accent-gray: #5d6d7e;
  --light-gray: #2c3e50;
  --dark-gray: #1a252f;
  --white: #ffffff;
  --text-dark: #ecf0f1;
  --text-light: #bdc3c7;
  --gradient-primary: linear-gradient(135deg, #1a252f 0%, #2980b9 100%);
  --gradient-secondary: linear-gradient(135deg, #5d6d7e 0%, #7f8c8d 100%);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--dark-gray);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-steel);
}

h1 {
  font-size: 2.8rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Navigation */
.navbar {
  background: var(--gradient-primary) !important;
  box-shadow: var(--shadow);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white) !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.navbar-toggler {
  border: none;
  color: var(--white);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(52, 152, 219, 0.7));
  color: var(--white);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('1.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -1;
  animation: heroBackground 20s infinite;
}

@keyframes heroBackground {
  0% { background-image: url('1.jpeg'); }
  20% { background-image: url('2.jpeg'); }
  40% { background-image: url('3.jpeg'); }
  60% { background-image: url('4.jpeg'); }
  80% { background-image: url('5.jpeg'); }
  100% { background-image: url('1.jpeg'); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
}

.hero-carousel {
  position: relative;
  z-index: 2;
}

.hero-carousel .carousel {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.hero-carousel .carousel-item img {
  height: 400px;
  object-fit: cover;
  width: 100%;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.hero-carousel .carousel-control-prev {
  left: 15px;
}

.hero-carousel .carousel-control-next {
  right: 15px;
}

.hero-carousel .carousel-indicators {
  bottom: 15px;
}

.hero-carousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}

.hero-buttons {
  margin-top: 2rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  font-weight: 700;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* Buttons */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: var(--gradient-secondary);
}

.btn-outline-primary {
  border: 2px solid var(--secondary-blue);
  color: var(--secondary-blue);
  padding: 10px 25px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--secondary-blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* Cards */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  overflow: hidden;
  background: var(--light-gray);
  color: var(--white);
}

.card h5, .card p, .card label {
  color: var(--white);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  padding: 1.5rem;
  font-weight: 600;
  font-size: 1.2rem;
}

.card-body {
  padding: 2rem;
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

/* Services Section */
.services {
  padding: 6rem 0;
  background: var(--primary-steel);
  color: var(--white);
}

.services h2, .services p {
  color: var(--white);
}

.service-card {
  text-align: center;
  padding: 2rem;
  background: var(--light-gray);
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  height: 100%;
  color: var(--white);
}

.service-card h4, .service-card p {
  color: var(--white);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

/* About Section */
.about {
  padding: 6rem 0;
  background: var(--dark-gray);
  color: var(--white);
}

.about h2, .about p, .about li {
  color: var(--white);
}

.about-image img {
  max-height: 400px;
  object-fit: cover;
  width: 100%;
}

.about-content {
  background: var(--primary-steel);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  color: var(--white);
}

.about-content h2, .about-content p, .about-content li {
  color: var(--white);
}

/* Projects Section */
.projects {
  padding: 6rem 0;
  background: var(--primary-steel);
  color: var(--white);
}

.projects h2, .projects p {
  color: var(--white);
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  height: 200px;
  margin-bottom: 1rem;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 62, 80, 0.8);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  padding: 1.5rem;
  text-align: center;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.project-description {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background: var(--dark-gray);
  color: var(--white);
}

.contact h2, .contact p, .contact h5, .contact label {
  color: var(--white);
}

.contact-form {
  background: var(--primary-steel);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  color: var(--white);
}

.contact-form h5, .contact-form label {
  color: var(--white);
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: var(--white);
  color: var(--text-dark);
}

.form-control:focus {
  border-color: var(--secondary-blue);
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background: var(--primary-steel);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer p, .footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--secondary-blue);
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--secondary-blue);
  color: var(--white);
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.social-icons a i {
  color: var(--white);
}

.social-icons a:hover {
  background: var(--white);
  color: var(--secondary-blue);
  transform: translateY(-3px);
}

/* Contact Information Icons */
.contact .fas, .contact .fab {
  color: var(--secondary-blue);
}

.contact a {
  color: var(--white);
  text-decoration: none;
}

.contact a:hover {
  color: var(--secondary-blue);
}

/* Carousel */
.carousel-item {
  height: 400px;
}

.carousel-item img {
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 15px;
  padding: 1.5rem;
  bottom: 20px;
  left: 20px;
  right: 20px;
  text-align: left;
}

.carousel-caption h5 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white !important;
}

.carousel-caption p {
  font-size: 1rem;
  margin-bottom: 0;
  color: white !important;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.carousel-indicators {
  bottom: 10px;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 5px;
}

.carousel-indicators .active {
  background-color: var(--secondary-blue);
}

/* Modal */
.modal-content {
  border: none;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  border-radius: 15px 15px 0 0;
}

.modal-body img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Utilities */
.text-primary {
  color: var(--secondary-blue) !important;
}

.bg-primary {
  background: var(--gradient-primary) !important;
}

.bg-light {
  background: var(--primary-steel) !important;
}

.shadow {
  box-shadow: var(--shadow) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero {
    padding: 2rem 0 2rem;
    min-height: 50vh;
  }
  
  .hero-content {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .hero-carousel .carousel-item img {
    height: 300px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .carousel-item {
    height: 300px;
  }
  
  .project-card {
    height: 250px;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .about-content {
    padding: 2rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 1.5rem 0 1.5rem;
    min-height: 40vh;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .carousel-item {
    height: 250px;
  }
  
  .project-card {
    height: 200px;
  }
  
  .btn-primary, .btn-outline-primary {
    padding: 10px 20px;
    font-size: 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .service-card {
    padding: 1rem;
  }
  
  .about-content {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}
