/* ================= GLOBAL STYLES ================= */
:root {
  --red: #DF1024;
  --gray-soft: #DCD6D7;
  --gray-mauve: #625A67;
  --charcoal: #302B31;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--charcoal);
  background-color: var(--white);
  scroll-behavior: smooth;
}

img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.5px;
}

h2 span, h3 span {
  color: var(--red);
}

a {
  text-decoration: none;
  color: inherit;
}

.section {
  padding: 5rem 10%;
}

.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}



/* ================= HERO ================= */
.hero {
   background: linear-gradient(rgba(48,43,49,0.65), rgba(48,43,49,0.65)),
              url('../assets/img/5.jpg') center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10%;
  color: var(--white);
  text-align: left;
}

.hero-content {
  max-width: 550px;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--gray-soft);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-primary:hover {
  background: #b80d1f;
  transform: translateY(-2px);
}

/* ================= ABOUT ================= */
.about {
  background: linear-gradient(to right, #fff, #DCD6D7);
  padding: 100px 10%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #302B31;
  margin-bottom: 1rem;
}

.about-text h2 span {
  color: #DF1024;
}

.about-text p {
  color: #625A67;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-text .btn-primary {
  display: inline-block;
  margin-top: 1rem;
  background: #DF1024;
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.about-text .btn-primary:hover {
  background: #302B31;
  transform: translateY(-3px);
}

/* IMAGE */
.about-img {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-img img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(48, 43, 49, 0.3);
  transition: all 0.5s ease;
}

.about-img img:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 50px rgba(223, 16, 36, 0.4);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .about {
    padding: 80px 5%;
  }
  .about-container {
    gap: 2rem;
  }
  .about-text h2 {
    font-size: 2rem;
  }
}


/* ================= SERVICES ================= */
.services {
  background: linear-gradient(to bottom, #fff, #DCD6D7);
  text-align: center;
  padding: 100px 10%;
  color: #302B31;
}

.services h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #302B31;
}

.services h2 span {
  color: #DF1024;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  border-top: 5px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  border-top: 5px solid #DF1024;
  box-shadow: 0 12px 25px rgba(223, 16, 36, 0.3);
}

.icon-box {
  background: linear-gradient(135deg, #DF1024, #625A67);
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
}

.service-card:hover .icon-box {
  transform: rotate(10deg) scale(1.1);
  box-shadow: 0 6px 20px rgba(223, 16, 36, 0.4);
}

.icon-box img {
  width: 45px;
  height: 45px;
  filter: brightness(0) invert(1);
}

.service-card h3 {
  font-size: 1.3rem;
  color: #302B31;
  margin-bottom: 1rem;
}

.service-card p {
  color: #625A67;
  font-size: 1rem;
  line-height: 1.7;
}


/* ================= PROJECTS ================= */
.projects {
  text-align: center;
}

.projects h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
}

/* ================= TESTIMONIALS ================= */
.testimonials {
  background: linear-gradient(to bottom right, #302B31, #625A67);
  color: #fff;
  text-align: center;
  padding: 80px 10%;
}

.testimonials h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  color: #DCD6D7;
}

.testimonials h2 span {
  color: #DF1024;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2rem;
  border-radius: 1rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.testimonial-card .quote-icon {
  font-size: 4rem;
  color: #DF1024;
  opacity: 0.2;
  position: absolute;
  top: 20px;
  left: 25px;
  font-family: Georgia, serif;
}

.testimonial-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #DCD6D7;
  margin: 0 0 1.5rem 0;
  z-index: 2;
  position: relative;
}

.testimonial-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #DF1024;
  z-index: 2;
  position: relative;
  margin-top: auto;
}


/* === FOOTER === */
.footer {
  background: #302B31; /* Charcoal base */
  color: #DCD6D7; /* Soft gray text */
  padding: 3rem 1.5rem;
  text-align: left;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* === Headings === */
.footer h3 {
  font-size: 1.8rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer h3 span {
  color: #DF1024; /* Red accent */
}

.footer h4 {
  color: #DF1024;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* === Text === */
.footer p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #DCD6D7;
  margin: 0.4rem 0;
}

/* === Social Icons === */
.social-icons {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

/* === Footer Social Links === */
.social-links {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.social-links li a {
  color: #DCD6D7; /* soft gray */
  font-size: 1rem;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Accent underline hover */
.social-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #DF1024; /* Aenergy red */
  transition: width 0.3s ease;
}

.social-links li a:hover {
  color: #DF1024;
}

.social-links li a:hover::after {
  width: 100%;
}
.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

/* Responsive alignment */
@media (max-width: 768px) {
  .social-icons {
    justify-content: center;
  }
}




    /* ================= PRODUCTS PAGE STYLES ================= */
    .products-section {
      padding: 6rem 10%;
      background-color: #f9f9f9;
      text-align: center;
    }

    .products-section h2 {
      font-size: 2.4rem;
      color: #DF1024;
      margin-bottom: 2.5rem;
      font-weight: 700;
    }

    .product-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 2rem;
    }

    .product-card {
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 6px 16px rgba(0,0,0,0.08);
      overflow: hidden;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .product-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    }

    .card-image {
      background: #fff;
      padding: 1.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 240px;
    }

    .card-image img {
      width: auto;
      height: 180px;
      object-fit: contain;
    }

    .card-body {
      padding: 1.5rem;
      text-align: left;
    }

    .card-body h3 {
      color: #302B31;
      font-size: 1.2rem;
      margin-bottom: 0.75rem;
    }

    .card-body p {
      color: #625A67;
      font-size: 0.95rem;
      margin-bottom: 1.2rem;
      line-height: 1.6;
    }

    .btn {
      display: inline-block;
      background: #DF1024;
      color: #fff;
      padding: 0.6rem 1.4rem;
      border-radius: 50px;
      font-size: 0.9rem;
      font-weight: 600;
      transition: background 0.3s ease, transform 0.3s ease;
      text-align: center;
    }

    .btn:hover {
      background: #b80d1f;
      transform: translateY(-2px);
    }

    /* Scroll animation */
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .product-card {
      opacity: 0;
      animation: fadeInUp 0.8s ease forwards;
    }

    .product-card:nth-child(1) { animation-delay: 0.1s; }
    .product-card:nth-child(2) { animation-delay: 0.2s; }
    .product-card:nth-child(3) { animation-delay: 0.3s; }
    .product-card:nth-child(4) { animation-delay: 0.4s; }
    .product-card:nth-child(5) { animation-delay: 0.5s; }
    .product-card:nth-child(6) { animation-delay: 0.6s; }
    .product-card:nth-child(7) { animation-delay: 0.7s; }
    .product-card:nth-child(8) { animation-delay: 0.8s; }
    .product-card:nth-child(9) { animation-delay: 0.9s; }

    /* Responsive tweaks */
    @media (max-width: 768px) {
      .products-section {
        padding: 4rem 7%;
      }
      .card-body {
        text-align: center;
      }
      .card-body h3 {
        font-size: 1.1rem;
      }
    }
 
/* ================= TABLET (max-width: 1024px) ================= */
@media (max-width: 1024px) {
  /* Global paddings */
  .section {
    padding: 4rem 7%;
  }

  .hero {
    height: 80vh;
    padding: 0 7%;
    text-align: center;
    justify-content: center;
  }

  .hero-content {
    max-width: 90%;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* About Section */
  .about {
    padding: 80px 7%;
  }

  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-img img {
    max-width: 400px;
    margin: 0 auto;
  }

  /* Services Section */
  .services {
    padding: 80px 7%;
  }

  .service-grid {
    gap: 1.5rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  /* Products Section */
  .products-section {
    padding: 5rem 7%;
  }

  .card-image {
    height: 200px;
  }

  .card-image img {
    height: 150px;
  }

  /* Testimonials */
  .testimonials {
    padding: 70px 7%;
  }

  .testimonial-card p {
    font-size: 1rem;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer h3, .footer h4 {
    text-align: center;
  }
}


/* ================= PHONE (max-width: 480px) ================= */
@media (max-width: 480px) {
  /* Global adjustments */
  .section {
    padding: 3rem 5%;
  }

  h1, h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  p {
    font-size: 0.95rem;
  }

  /* Hero */
  .hero {
    height: 90vh;
    padding: 0 5%;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn-primary {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  /* About */
  .about {
    padding: 60px 5%;
    text-align: center;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }

  .about-text p {
    font-size: 0.95rem;
  }

  .about-img img {
    max-width: 90%;
    margin-top: 1.5rem;
  }

  /* Services */
  .services h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .service-card {
    padding: 1.2rem;
  }

  .icon-box {
    width: 65px;
    height: 65px;
  }

  .icon-box img {
    width: 35px;
    height: 35px;
  }

  .service-card h3 {
    font-size: 1.1rem;
  }

  .service-card p {
    font-size: 0.9rem;
  }

  /* Products */
  .products-section h2 {
    font-size: 1.8rem;
  }

  .product-card {
    border-radius: 12px;
  }

  .card-image {
    height: 180px;
    padding: 1rem;
  }

  .card-body {
    text-align: center;
    padding: 1rem;
  }

  .card-body h3 {
    font-size: 1rem;
  }

  .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1.2rem;
  }

  /* Testimonials */
  .testimonials h2 {
    font-size: 1.8rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .testimonial-card p {
    font-size: 0.9rem;
  }

  .testimonial-card h4 {
    font-size: 0.9rem;
  }

  /* Footer */
  .footer {
    padding: 2.5rem 1.2rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .social-links {
    align-items: center;
  }

  .footer-bottom {
    font-size: 0.85rem;
  }
}

