:root {
  --primary-color: #e60012;
  --secondary-color: #2d2d2d;
  --bg-color: #ffffff;
  --text-color: #333333;
  --accent-color: #f8f8f8;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --energy-glow: rgba(255, 255, 255, 0.8);
}

/* Base Styles */
.hero-section {
  position: relative;
  height: 70vh;
  min-height: 400px;
  /*max-height: 900px;*/
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--bg-color);
  overflow: hidden;
  isolation: isolate;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(251, 64, 80, 0.3) 100%
  );
  z-index: 1;
}

/* Particle Animation - Optimized */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  contain: strict; /* Improves performance by limiting reflow scope */
}

.hero-particles span {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--energy-glow);
  border-radius: 50%;
  opacity: 0;
  animation: energyWave var(--duration, 6s) ease-in-out var(--delay, 0s) infinite;
  box-shadow: 0 0 10px var(--primary-color);
  left: calc(var(--x-pos, 85) * 1%);
  top: calc(var(--y-pos, 50) * 1%);
  will-change: transform, opacity;
}

.hero-particles span:nth-child(odd) {
  background: var(--bg-color);
  width: 6px;
  height: 6px;
  box-shadow: 0 0 8px var(--bg-color);
  animation-duration: calc(var(--duration, 6s) + 2s);
}

/* Content Styles */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  padding: 2rem;
}

.hero-headline {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-subheadline {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.hero-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-logo {
  height: auto;
  max-width: 180px;
  width: 100%;
  object-fit: contain;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  min-width: 140px;
}

.hero-cta-button.primary {
  background: var(--primary-color);
  color: var(--bg-color);
}

.hero-cta-button:not(.primary) {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-color: var(--bg-color);
  color: var(--bg-color);
}

.hero-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: var(--bg-color);
  animation: scrollIndicator 2s ease-in-out infinite;
}

/* Animations */
    @keyframes energyWave {
      0% {
        transform: translate(0, 0) scale(0.5);
        opacity: 0.4;
      }
      50% {
        opacity: 0.8;
        transform: translate(calc(60vw * var(--x-dir)), calc(30vh * var(--y-dir))) scale(1.2);
      }
      100% {
        transform: translate(calc(80vw * var(--x-dir)), calc(40vh * var(--y-dir))) scale(0.8);
        opacity: 0;
      }
    }

    @keyframes flipIn {
      from {
        opacity: 0;
        transform: rotateX(-90deg);
      }
      to {
        opacity: 1;
        transform: rotateX(0deg);
      }
    }

    @keyframes flipOut {
      from {
        opacity: 1;
        transform: rotateX(0deg);
      }
      to {
        opacity: 0;
        transform: rotateX(90deg);
      }
    }

    @keyframes fadeInUp {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes zoomIn {
      0%, 100% {
        transform: scale(1.1);
      }
      50% {
        transform: scale(1.15);
      }
    }

    @keyframes scrollIndicator {
      0%, 100% {
        transform: translateY(0);
        opacity: 1;
      }
      50% {
        transform: translateY(10px);
        opacity: 0.5;
      }
    }

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero-section {
    /* min-height: 500px; */
    height: auto;
  }
  
  .hero-particles span {
    width: 6px;
    height: 6px;
  }
  
  .hero-particles span:nth-child(odd) {
    width: 4px;
    height: 4px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    /* min-height: 450px; */
    height: auto;
  }
  
  .hero-content {
    padding: 1.5rem;
  }
  
  .hero-logos {
    margin-bottom: 1.5rem;
  }
  
  .hero-logo {
    max-width: 140px;
  }
  
  .hero-cta-button {
    padding: 0.6rem 1.2rem;
    min-width: 120px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    /* min-height: 400px; */
    height: auto;
  }
  
  .hero-headline {
    margin-bottom: 0.75rem;
  }
  
  .hero-subheadline {
    margin-bottom: 1.5rem;
  }
  
  .hero-logos {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }
  
  .hero-logo {
    max-width: 100px;
  }
  
  .hero-ctas {
    gap: 0.75rem;
  }
  
  .hero-cta-button {
    padding: 0.5rem 1rem;
    min-width: 110px;
    font-size: 0.9rem;
  }
  
  .scroll-line {
    height: 30px;
  }
  
  /* Reduce particle count on small devices */
  .hero-particles span {
    display: none;
  }
  
  .hero-particles span:nth-child(-n+15) {
    display: block;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero-image, .scroll-line, .hero-particles span {
    animation: none !important;
  }
  
  .hero-particles span {
    opacity: 0 !important;
  }
}
/* ===================================== Trust Section ======================================================= */
.trust-section {
  padding: 80px 20px;
  background: var(--accent-color);
}

.trust-container {
  max-width: 1300px;
  margin: 0 auto;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

/* Trust Card */
.trust-card {
  background: var(--bg-color);
  border-radius: 12px;
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.trust-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.trust-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.trust-card:hover::before {
  transform: scaleX(1);
}

/* Icon Circle */
.icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(230, 0, 18, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.trust-card:hover .icon-circle {
  background: var(--primary-color);
  transform: rotateY(180deg);
}

.trust-card:hover .icon-circle i {
  color: var(--bg-color);
}

.icon-circle i {
  font-size: 28px;
  color: var(--primary-color);
  transition: var(--transition);
}

/* Content */
.counter {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 8px;
  line-height: 1;
}

.counter.number::after {
  content: "+";
  color: var(--primary-color);
  margin-left: 2px;
}

.trust-card p {
  color: var(--text-color);
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.9;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeIn 0.7s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.15s;
}
.delay-2 {
  animation-delay: 0.3s;
}
.delay-3 {
  animation-delay: 0.45s;
}

/* Responsive */
@media (max-width: 768px) {
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-card {
    padding: 25px 20px;
  }
}

/* ===================================== Products Section ======================================================= */
.products-section {
  position: relative;
  padding: 50px 0;
  background: linear-gradient(
    180deg,
    var(--bg-color) 0%,
    var(--accent-color) 100%
  );
  text-align: center;
  overflow: hidden;
}

.products-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 30px;
}

.products-headline {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s ease forwards;
}

.products-subheadline {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-color);
  opacity: 0.85;
  margin-bottom: 70px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 50px;
  justify-items: center;
}

.product-card {
  position: relative;
  background: var(--bg-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  transform: perspective(1000px) rotateY(0deg);
  opacity: 0;
  animation: fadeInCard 0.8s ease forwards;
  animation-delay: var(--card-delay);
}

.product-card:hover {
  transform: perspective(1000px) rotateY(3deg) translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.product-image {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--primary-color);
  aspect-ratio: 3 / 2; /* Explicitly enforce 3:2 aspect ratio */
  padding-top: 66.67%; /* Fallback for older browsers */
}

.product-image img.slide {
  width: 100%;
  object-fit: cover; /* Ensure the image covers the container without stretching */
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img.slide {
  transform: scale(1.1);
}

.product-content {
  padding: 30px;
  text-align: center;
}

.product-content h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.product-content p {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-color);
  opacity: 0.9;
  margin-bottom: 25px;
  line-height: 1.6;
}

.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--bg-color);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.product-cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.product-cta:hover::before,
.product-cta:focus::before {
  width: 220px;
  height: 220px;
}

.product-cta:hover,
.product-cta:focus {
  background: var(--bg-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: var(--shadow);
  transform: scale(1.05);
}

.product-cta:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 4px;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInCard {
  to {
    opacity: 1;
    transform: perspective(1000px) rotateY(0deg);
  }
}

@media (max-width: 991px) {
  .products-headline {
    font-size: 2rem;
  }

  .products-subheadline {
    font-size: 1rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
  }

  .product-content h3 {
    font-size: 2rem;
  }

  .product-content p {
    font-size: 1.1rem;
  }
}

@media (max-width: 767px) {
  .products-section {
    padding: 50px 0;
  }

  .products-headline {
    font-size: 2.5rem;
  }

  .products-subheadline {
    font-size: 1.2rem;
    margin-bottom: 60px;
  }

  .product-content {
    padding: 25px;
  }

  .product-cta {
    padding: 14px 30px;
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .products-container {
    padding: 0 20px;
  }

  .products-headline {
    font-size: 2rem;
  }

  .products-subheadline {
    font-size: 1rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    max-width: 400px;
  }
}

/* ===================================== Featured Products Section =======================================================*/
/* Featured Products Section */
        .featured-products-section {
            position: relative;
            padding: 80px 20px;
            background: radial-gradient(circle, var(--accent-color) 0%, var(--bg-color) 100%);
            overflow: hidden;
            min-height: 100vh;
        }

        .section-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(230, 0, 18, 0.1), rgba(255, 255, 255, 0.05));
            z-index: 1;
        }

        .featured-products-container {
            position: relative;
            max-width: 1400px;
            margin: 0 auto;
            text-align: center;
            z-index: 2;
        }

        .featured-products-headline {
            font-size: 3rem;
            color: var(--secondary-color);
            margin-bottom: 15px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative;
        }

        .featured-products-headline::after {
            content: '';
            width: 80px;
            height: 4px;
            background: var(--primary-color);
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            border-radius: 2px;
        }

        .featured-products-subheadline {
            font-size: 1.3rem;
            color: var(--text-color);
            margin-bottom: 50px;
            opacity: 0.85;
            font-style: italic;
        }

        .featured-products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            padding: 0 20px;
        }

        .product-card {
            position: relative;
            background: linear-gradient(180deg, var(--accent-color) 0%, #fff 100%);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            animation: fadeInUp 0.8s ease-in-out forwards;
            animation-delay: var(--card-delay);
            opacity: 0;
            border: 1px solid rgba(230, 0, 18, 0.1);
        }

        .product-card:hover {
            transform: translateY(-12px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
            border-color: var(--primary-color);
        }

        .product-image {
            width: 100%;
            height: 220px;
            background-size: cover;
            background-position: center;
            transition: var(--transition);
            border-bottom: 3px solid var(--primary-color);
        }

        .product-card:hover .product-image {
            transform: scale(1.1);
        }

        .product-content {
            padding: 25px;
            text-align: left;
        }

        .product-content h3 {
            font-size: 1.6rem;
            color: var(--secondary-color);
            margin-bottom: 12px;
            font-weight: 700;
        }

        .product-content p {
            font-size: 1.1rem;
            color: var(--text-color);
            margin-bottom: 15px;
            opacity: 0.9;
        }

        .product-price {
            display: flex;
            flex-direction: column;
            margin-bottom: 20px;
        }

        .original-price {
            font-size: 1.1rem;
            color: var(--text-color);
            text-decoration: line-through;
            opacity: 0.7;
        }

        .offer-price {
            font-size: 1.5rem;
            color: var(--primary-color);
            font-weight: 700;
        }

        .featured-product-cta {
            display: inline-block;
            padding: 12px 24px;
            background: var(--gradient);
            color: var(--bg-color);
            text-decoration: none;
            border-radius: 8px;
            font-weight: 600;
            transition: var(--transition);
            box-shadow: 0 2px 8px rgba(230, 0, 18, 0.3);
        }

        .featured-product-cta:hover {
            background: var(--secondary-color);
            transform: translateY(-3px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        }

        .highlight-badge {
            position: absolute;
            top: 15px;
            left: 15px;
            background: #ffd700;
            color: var(--secondary-color);
            padding: 6px 12px;
            border-radius: 12px;
            font-size: 0.9rem;
            font-weight: 600;
            z-index: 3;
        }

        /* Animation */
        @keyframes fadeInUp {
            0% {
                opacity: 0;
                transform: translateY(30px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .featured-products-headline {
                font-size: 1.8rem;
            }

            .featured-products-subheadline {
              width: 80%;
              margin: 20px auto;
                font-size: 1rem;
            }

            .featured-products-grid {
                grid-template-columns: 1fr;
            }

            .product-image {
                height: 200px;
            }

            .product-content h3 {
                font-size: 1.4rem;
            }

            .offer-price {
                font-size: 1.3rem;
            }
        }

        @media (max-width: 480px) {
            .featured-products-section {
                padding: 40px 10px;
            }

            .product-card {
                margin: 0 10px;
            }
        }

/* ===================================== Why Choose Us Section ======================================================= */
.why-choose-us {
  padding: 5rem 1rem;
  background: var(--accent-color);
  position: relative;
}

.why-choose-us-container {
  max-width: 1300px;
  margin: 0 auto;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.section-title span {
  color: var(--primary-color);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-color);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
  }
}

/* Feature Columns */
.feature-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Feature Card */
.feature-card {
  background: var(--bg-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(230, 0, 18, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--primary-color);
  color: var(--bg-color);
}

.feature-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.feature-content p {
  color: var(--text-color);
  opacity: 0.8;
  line-height: 1.5;
}

/* Center Image */
.center-image {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.center-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}
.delay-4 {
  animation-delay: 0.4s;
}

/* ====================================== Services Section ======================================================= */
/* Styling the services section with a clean, modern design */
.services-section {
  padding: 50px 0;
  background: var(--bg-color);
}

/* Centering and constraining the container */
.services-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Formatting the header with centered text */
.services-header {
  text-align: center;
  margin-bottom: 60px;
}

/* Styling the main headline */
.services-headline {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: 700;
}

/* Creating a decorative divider */
.divider {
  width: 100px;
  height: 4px;
  background: var(--primary-color);
  margin: 0 auto 20px;
}

/* Styling the subheadline */
.services-subheadline {
  font-size: 1.2rem;
  color: var(--text-color);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Setting up a responsive grid for service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Styling individual service cards with bold hover effects */
.service-card {
  background: var(--accent-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: var(--card-delay);
  position: relative;
  z-index: 1;
}

.service-card:hover {
  transform: scale(1.1) rotate(2deg); /* Dramatic scale and slight rotation */
  box-shadow: 0 12px 30px rgba(230, 0, 18, 0.4); /* Glowing red shadow */
  background: linear-gradient(
    to bottom,
    rgba(45, 45, 45, 0.9) 0%,
    rgba(180, 0, 14, 0.9) 100%
  ); /* Gradient overlay */
  z-index: 2;
}

/* Inner card content wrapper */
.card-inner {
  padding: 30px;
  text-align: center;
  transition: var(--transition);
}

.service-card:hover .card-inner {
  transform: translateY(-5px); /* Slight lift effect */
}

/* Styling the service icons */
.service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  color: var(--bg-color); /* Icon turns white for contrast */
  transform: rotate(360deg) scale(1.3); /* Spin and enlarge icon */
}

/* Formatting card content */
.card-content h3 {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 600;
  transition: var(--transition);
}

.service-card:hover .card-content h3 {
  color: var(--bg-color); /* White text on hover */
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8); /* Glowing text shadow */
}

.card-content p {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.5;
  transition: var(--transition);
}

.service-card:hover .card-content p {
  color: var(--accent-color); /* Lighter text for readability */
}

/* Adding a pseudo-element for a flashy border effect on hover */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-radius: 10px;
  transition: var(--transition);
  z-index: -1;
}

.service-card:hover::before {
  /* border-color: var(--primary-color); */
  box-shadow: 0 0 20px var(--primary-color); /* Neon glow */
  animation: pulseBorder 0.5s infinite alternate; /* Pulsing effect */
}

/* Animation for card appearance */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulsing border animation */
@keyframes pulseBorder {
  from {
    box-shadow: 0 0 10px var(--primary-color);
  }
  to {
    box-shadow: 0 0 25px var(--primary-color);
  }
}
.services-button-container {
  text-align: center;
  margin-top: 40px;
}

.services-button {
  display: inline-block;
  padding: 14px 32px;
  background-color: var(--primary-color); /* Mitsubishi Red */
  color: var(--bg-color); /* White */
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
  border: 2px solid transparent;
}

.services-button:hover {
  background-color: var(--bg-color); /* White */
  color: var(--primary-color); /* Mitsubishi Red */
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .services-headline {
    font-size: 2rem;
  }

  .services-subheadline {
    font-size: 1rem;
  }

  .service-card {
    animation-delay: 0s; /* Remove staggered animation on mobile */
  }

  .service-card:hover {
    transform: scale(1.05); /* Less aggressive scaling on mobile */
    rotate: 0deg; /* Remove rotation on mobile */
  }
}

/* ============== Enhanced Portfolio with Modern Hover Effects ============== */
.portfolio-section {
  padding: 6rem 0;
  background-color: var(--bg-color);
  overflow: hidden;
}

.portfolio-container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title .highlight {
  color: var(--primary-color);
  position: relative;
}

.section-title .highlight::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 4px;
  bottom: -8px;
  left: 0;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.section-header:hover .highlight::after {
  transform: scaleX(1);
  transform-origin: left;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-color);
  opacity: 0.8;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  height: 350px;
  perspective: 1000px;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.portfolio-image-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-fit: cover;
  transition: transform 0.6s ease;
  transform-origin: center;
}

.portfolio-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(
    to bottom,
    rgba(127, 126, 126, 0.9) 0%,
    rgba(180, 0, 14, 0.9) 100%
  );
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.overlay-content {
  transform: translateY(30px);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  width: 100%;
}

/* Hover Effects */
.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .overlay-content {
  transform: translateY(0);
  transition-delay: 0.1s;
}

.portfolio-item:hover img {
  transform: scale(1.15) rotate(2deg);
}

.portfolio-overlay h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.portfolio-overlay p {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  line-height: 1.6;
}

.product-badge {
  display: inline-block;
  background-color: white;
  color: var(--primary-color);
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 0.8rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.product-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .portfolio-item {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 2rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .portfolio-item {
    height: 280px;
  }

  .portfolio-overlay h3 {
    font-size: 1.5rem;
  }
}

/* ====================================== CTA Section ======================================================= */
.cta-section {
  padding: 5rem 1rem;
  background: linear-gradient(
    to bottom,
    var(--primary-color),
    rgba(180, 0, 14, 0.9) /* Your red color */
  );
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-section-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .container {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* CTA Content */
.cta-content {
  flex: 1;
  text-align: center;
}

@media (min-width: 768px) {
  .cta-content {
    text-align: left;
  }
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.cta-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 500px;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background: var(--bg-color);
  color: var(--primary-color);
}

.btn-primary:hover {
  background: var(--primary-color); /* Red background on hover */
  color: var(--bg-color); /* White text on hover */
  border: 2px solid var(--bg-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  border: 2px solid var(--bg-color);
  color: var(--bg-color);
}

.btn-secondary:hover {
  background: var(--bg-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn i {
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

/* CTA Image */
.cta-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.cta-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: 300px;
  object-fit: contain;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}
