/* Base Styles */
:root {
  --primary-color: #e30613;
  --primary-dark: #b80510;
  --secondary-color: #f8f8f8;
  --dark-color: #333;
  --light-color: #fff;
  --gray-color: #f4f4f4;
  --text-color: #333;
  --border-color: #ddd;
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", "Roboto", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: var(--dark-color);
  transition: var(--transition);
}

ul {
  list-style: none;
}

.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 20px;
  color: var(--dark-color);
  position: relative;
  font-size: 2.5rem;
  font-weight: 700;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
}

.section-subtitle {
  text-align: center;
  margin-bottom: 50px;
  color: #666;
  font-size: 1.2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.bg-light {
  background-color: var(--gray-color);
}

.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 14px 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(227, 6, 19, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(227, 6, 19, 0.4);
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--light-color);
  padding: 13px 30px;
  border: 2px solid var(--light-color);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  margin-left: 15px;
}

.btn-secondary:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: var(--primary-color);
  padding: 12px 28px;
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
  transform: translateY(-3px);
}

.img-placeholder {
  background-color: #eee;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.img-real {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Header Styles */
header {
  background-color: var(--light-color);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 10px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.logo-text h1 {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.logo-text p {
  color: var(--dark-color);
  font-size: 0.9rem;
  margin: 0;
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu li {
  margin-left: 25px;
}

.nav-menu a {
  color: var(--dark-color);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-menu a:hover::after {
  width: 100%;
}

.language-selector {
  display: flex;
  align-items: center;
}

.language-selector button {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  padding: 5px;
  color: var(--dark-color);
}

.language-selector button.active {
  color: var(--primary-color);
  font-weight: 700;
}

.language-selector span {
  margin: 0 5px;
  color: var(--dark-color);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 120px 0;
  background-color: var(--light-color);
  position: relative;
  overflow: hidden;
  /* background-image: url("../img/hero-bg.jpg"); */
  background-size: cover;
  background-position: center;
  color: var(--light-color);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  flex: 1;
  padding-right: 50px;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--light-color);
  line-height: 1.2;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
}

.hero-image {
  flex: 1;
  position: relative;
}

.hero-image img {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.scroll-down a {
  color: var(--light-color);
  font-size: 1.5rem;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

/* About Section */
.about-content {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  margin-top: 50px;
}

.about-text {
  flex: 1.5;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.experience-badge {
  position: absolute;
  bottom: -25px;
  right: -25px;
  background-color: var(--primary-color);
  color: var(--light-color);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 5px 15px rgba(227, 6, 19, 0.3);
}

.experience-badge .years {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.experience-badge .text {
  font-size: 0.8rem;
  max-width: 80px;
}

.about-text h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 600;
}

.about-text p {
  margin-bottom: 25px;
  color: #555;
  font-size: 1.05rem;
}

.about-text ul {
  margin-left: 20px;
  margin-bottom: 30px;
}

.about-text ul li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 30px;
  color: #555;
}

.about-text ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-size: 1.1rem;
}

/* Certifications Section */
.certifications-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 50px;
}

.certification-card {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.certification-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.certification-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.certification-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.certification-card p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.7;
}

/* Services Categories */
.services-categories {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 50px;
}

.service-category {
  flex: 1;
  min-width: 300px;
  background-color: var(--light-color);
  border-radius: 10px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.service-category:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.category-icon {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 25px;
}

.service-category h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.service-category p {
  color: #666;
  margin-bottom: 25px;
  font-size: 1rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background-color: var(--light-color);
  border-radius: 10px;
  padding: 40px 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  text-align: center;
  border-bottom: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  border-bottom: 4px solid var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 25px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-card h3 {
  margin-bottom: 15px;
  color: var(--dark-color);
  font-size: 1.3rem;
  font-weight: 600;
}

.service-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-features {
  text-align: left;
  margin-top: 20px;
}

.service-features li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 25px;
  color: #666;
  font-size: 0.9rem;
}

.service-features li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

/* Maintenance Types */
.maintenance-types {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 50px;
}

.maintenance-type {
  flex: 1;
  min-width: 300px;
  background-color: var(--light-color);
  border-radius: 10px;
  padding: 40px 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.maintenance-type:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.maintenance-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 25px;
  text-align: center;
}

.maintenance-type h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark-color);
  text-align: center;
}

.maintenance-type p {
  color: #666;
  margin-bottom: 25px;
  font-size: 1rem;
  text-align: center;
}

.maintenance-features li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: #666;
}

.maintenance-features li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

/* Projects Section */
.projects-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.filter-btn {
  background: none;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1rem;
  color: #666;
  transition: var(--transition);
  border-radius: 30px;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color);
  color: var(--light-color);
}

.projects-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  height: 280px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--light-color);
  padding: 25px 20px;
  transform: translateY(0);
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  background: linear-gradient(to top, rgba(227, 6, 19, 0.9), rgba(227, 6, 19, 0.5), transparent);
}

.gallery-overlay h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 600;
}

.gallery-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 10px;
}

.project-category {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
}

/* Contact Section */
.contact-container {
  display: flex;
  gap: 50px;
}

.contact-info,
.contact-form {
  flex: 1;
}

.contact-info h3,
.contact-form h3 {
  margin-bottom: 25px;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.contact-info p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.contact-info i {
  margin-right: 10px;
  color: var(--primary-color);
  width: 20px;
}

.map-container {
  margin-top: 30px;
  border-radius: 8px;
  overflow: hidden;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 70px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.footer-logo,
.footer-links,
.footer-contact {
  margin-bottom: 30px;
}

.footer-logo h3 {
  color: var(--light-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.footer-logo p {
  color: #ccc;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--light-color);
  margin-bottom: 20px;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: #ccc;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  color: #ccc;
}

.footer-contact a {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  color: #ccc;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #999;
  font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--light-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 1100px) {
  .hero-content h2 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 992px) {
  .section {
    padding: 80px 0;
  }

  .hero {
    padding: 100px 0;
  }

  .hero .container {
    flex-direction: column;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 50px;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-content {
    flex-direction: column;
  }

  .contact-container {
    flex-direction: column;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    background-color: var(--light-color);
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: calc(100vh - 70px);
    overflow-y: auto;
    z-index: 1000;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 15px 0;
    width: 100%;
  }

  .nav-menu a::after {
    display: none;
  }

  .language-selector {
    margin-top: 20px;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-content h2 {
    font-size: 2.2rem;
  }

  .testimonial-content {
    padding: 30px;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  .experience-badge {
    width: 100px;
    height: 100px;
    bottom: -15px;
    right: -15px;
  }

  .experience-badge .years {
    font-size: 2rem;
  }

  .experience-badge .text {
    font-size: 0.7rem;
  }
}

@media (max-width: 576px) {
  .footer-content {
    flex-direction: column;
  }

  .hero {
    padding: 80px 0;
  }

  .section {
    padding: 60px 0;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .about-text h3,
  .contact-info h3,
  .contact-cta h3 {
    font-size: 1.3rem;
  }

  .certification-card {
    min-width: 100%;
  }

  .service-card,
  .cta-card,
  .business-hours {
    padding: 25px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .btn-secondary {
    margin-left: 0;
  }

  .projects-filter {
    flex-direction: column;
    align-items: center;
  }

  .filter-btn {
    width: 100%;
    text-align: center;
  }
}
