.electrical-controls-main {
  padding-top: 140px;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.electrical-controls-hero {
  text-align: center;
  margin-bottom: 6rem;
  animation: heroEntry 1.5s ease-out;
}

.electrical-controls-title {
  font-size: 4.5rem;
  color: #01447a;
  margin-bottom: 2rem;
  text-shadow: whitesmoke;

  background-clip: text;

  animation: titlePulse 4s ease-in-out infinite;
}

.electrical-controls-subtitle {
  font-size: 1.5rem;
  color: #01447a;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.electrical-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 4rem;
  margin-bottom: 5rem;
}

.electrical-controls-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  padding: 3.5rem;
  border-radius: 30px;
  border: 2px solid rgba(0, 0, 0, 0.77);
  transition: all 0.5s ease;
  animation: cardSlideIn 1s ease-out forwards;
  opacity: 0;
  transform: translateY(50px);
  position: relative;
  overflow: hidden;
}

.electrical-controls-card:before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(255, 215, 0, 0.1),
    transparent
  );
  animation: cardRotate 8s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.electrical-controls-card:hover:before {
  opacity: 1;
}

.electrical-controls-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 30px 60px rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.6);
}

.electrical-controls-card-content {
  position: relative;
  z-index: 1;
}

.electrical-controls-icon {
  width: 120px;
  height: 120px;
  background: #01447a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  font-size: 3rem;
  color: #0f0f23;
  box-shadow: 0 15px 40px rgba(31, 31, 30, 0.4);
  animation: iconFloat 3s ease-in-out infinite;
}

.electrical-controls-card-title {
  font-size: 2rem;
  color: #01447a;
  margin-bottom: 2rem;
  font-weight: 600;
}

.electrical-controls-features {
  list-style: none;
  padding: 0;
}

.electrical-controls-features li {
  padding: 1rem 0;
  color: #313131;
  position: relative;
  padding-left: 2.5rem;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.electrical-controls-features li:before {
  content: "⚡";
  position: absolute;
  left: 0;
  color: #313131;
  font-size: 1.2rem;
  animation: sparkle 2s ease-in-out infinite;
}

.electrical-controls-features li:hover {
  color: black;
  padding-left: 3rem;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 10px;
}

.electrical-controls-technology-section {
  /* background: rgba(0, 0, 0, 0.3); */
  padding: 5rem 3rem;
  border-radius: 40px;
  margin: 5rem 0;
  border: 2px solid #313131;
  text-align: center;
}

.electrical-controls-tech-title {
  font-size: 3rem;
  color: #01447a;
  margin-bottom: 3rem;
}

.electrical-controls-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.electrical-controls-tech-item {
  background: rgba(255, 215, 0, 0.1);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid #313131;
  transition: all 0.3s ease;
}

.electrical-controls-tech-item:hover {
  background: rgba(255, 215, 0, 0.2);
  transform: translateY(-5px);
}

.electrical-controls-cta {
  text-align: center;
  margin-top: 6rem;
  padding: 5rem 3rem;
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.1),
    rgba(15, 15, 35, 0.3)
  );
  border-radius: 40px;
  border: 3px solid #313131;
  position: relative;
  overflow: hidden;
}

.electrical-controls-cta:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 215, 0, 0.1),
    transparent
  );
  animation: slideLight 3s ease-in-out infinite;
}

.electrical-controls-cta-content {
  position: relative;
  z-index: 1;
}

.electrical-controls-cta-button {
  display: inline-block;
  padding: 1.5rem 4rem;
  background: #01447a;
  color: #0f0f23;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.4s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1.1rem;
}

.electrical-controls-cta-button:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px #01447a;
  background: #01447a;
}

.electrical-controls-mobile-menu {
  display: none;
}

@keyframes logoGlow {
  0%,
  100% {
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  }

  50% {
    text-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
  }
}

@keyframes heroEntry {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titlePulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

@keyframes cardSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

@keyframes slideLight {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

@media (max-width: 768px) {
  .electrical-controls-title {
    font-size: 3rem;
  }

  .electrical-controls-nav-links {
    display: none;
  }

  .electrical-controls-mobile-menu {
    display: block;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .electrical-controls-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .electrical-controls-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .electrical-controls-card {
    padding: 2rem;
  }

  .electrical-controls-tech-grid {
    grid-template-columns: 1fr;
  }
}
