* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

:root {
  --bg-color: #1f242d;
  --second-bg-color: #323946;
  --text-color: #fff;
  --main-color: #f58b1f;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 9%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo img {
  height: 60px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}


.logo:hover {
  transform: scale(1.05);
}

.logo span {
  color: var(--main-color);
  text-shadow: 0 0 15px var(--main-color);
}

.navbar a {
  font-size: 1.7rem;
  color: var(--text-color);
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease;
  border-bottom: 3px solid transparent;
}

.navbar a:hover,
.navbar a.active {
  color: var(--main-color);
  border-bottom: 3px solid var(--main-color);
}

#menu-icon {
  font-size: 3.6rem;
  color: var(--main-color);
  display: none;
}

section {
  min-height: auto;
  padding: 10rem 9% 2rem;
}

.home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10rem;
  padding: 10rem 9% 5rem;
}

.home-content {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  text-align: left;
  justify-content: center;
}

span {
  color: var(--main-color);
}

.home-content h1 {
  font-size: 5.6rem;
  font-weight: 700;
  line-height: 1.3;
}

.home-content h3 {
  font-size: 3.2rem;
  font-weight: 700;
  margin: 1rem 0;
}

.home-content p {
  font-size: 1.6rem;
  line-height: 1.6;
  max-width: 700px;
  margin-bottom: 2rem;
}

.home-img img {
  width: 35vw;
  border-radius: 50%;
  box-shadow: 0 0 25px var(--main-color);
  transition: 0.4s ease-in-out;
}

.home-img img:hover {
  box-shadow: 0 0 25px var(--main-color),
              0 0 50px var(--main-color),
              0 0 100px var(--main-color);
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background: transparent;
  border: 0.2rem solid var(--main-color);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--main-color);
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.3s ease;
}

.social-icons a:hover {
  background: var(--main-color);
  color: var(--text-color);
  transform: translateY(-5px);
  box-shadow: 0 0 25px var(--main-color);
}

.btn {
  display: inline-block;
  padding: 1.2rem 3.2rem;
  background: var(--main-color);
  border-radius: 4rem;
  font-size: 1.6rem;
  color: var(--text-color);
  letter-spacing: 0.1rem;
  font-weight: 600;
  transition: 0.3s ease;
  box-shadow: 0 0 15px var(--main-color);
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--main-color);
}

.btn-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn-group a:nth-of-type(2) {
  background-color: transparent;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  box-shadow: none;
}

.btn-group a:nth-of-type(2):hover {
  background-color: var(--main-color);
  color: var(--text-color);
  box-shadow: 0 0 25px var(--main-color);
}

.text-animation {
  font-size: 3.4rem;
  font-weight: 600;
  min-width: 280px;
  margin-bottom: 2rem;
}

.text-animation span {
  position: relative;
}

.text-animation span::before {
  content: "Electrical Repairs";
  color: var(--main-color);
  animation: words 20s infinite;
}

.text-animation span::after {
  content: "";
  position: absolute;
  width: calc(100% + 8px);
  height: 100%;
  background-color: var(--bg-color);
  border-left: 2px solid var(--main-color);
  right: -8px;
  animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
  to {
    border-left: 2px solid var(--bg-color);
  }
}

@keyframes words {
  0%,20% {
    content: "Electrical Repairs";
  }
  21%,40% {
    content: "Wiring Installation";
  }
  41%,60% {
    content: "Lighting Design";
  }
  61%,80% {
    content: "Panel Upgrades";
  }
  81%,100% {
    content: "Emergency Services";
  }
}

@keyframes typing {
  10%,15%,30%,35%,50%,55%,70%,75%,90%,95% {
    width: 0;
  }
  5%,20%,25%,40%,45%,60%,65%,80%,85%,100% {
    width: calc(100% + 8px);
  }
}

.heading {
  text-align: center;
  font-size: 6rem;
  margin-bottom: 5rem;
}

.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3rem;
  padding: 4rem 2rem;
  background: var(--second-bg-color);
}

.about .heading {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.about-img img {
  width: 35vw;
  border-radius: 50%;
  box-shadow: 0 0 25px var(--main-color);
  transition: 0.4s ease-in-out;
}

.about-img img:hover {
  box-shadow: 0 0 25px var(--main-color),
              0 0 50px var(--main-color),
              0 0 100px var(--main-color);
}


.about-content h3 {
  font-size: 2.6rem;
  margin-bottom: 2rem;
}

.about-content p {
  font-size: 1.6rem;
  line-height: 1.6;
  margin: 2rem 0 3rem;
}

.service-area, .credentials {
  margin: 3rem 0;
}

.service-area h4, .credentials h4 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--main-color);
}

.area-list, .credentials ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.area-list span, .credentials li {
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.8rem 1.5rem;
  border-radius: 0.8rem;
}

.services h2 {
  margin-bottom: 5rem;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 2.5rem;
}

.service-box {
  background-color: var(--second-bg-color);
  height: 350px;
  border-radius: 3rem;
  border: 5px solid transparent;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-box:hover {
  background: var(--main-color);
  color: var(--text-color);
  border: 5px solid var(--text-color);
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-box:hover h5 {
  color: var(--text-color);
}

.service-box:hover .service-cta {
  background: var(--text-color);
  color: var(--main-color);
}

.service-box .service-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  justify-content: left;
  align-items: baseline;
  padding: 5rem 5rem;
}

.service-info h5 {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--main-color);
}

.service-info p {
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.service-cta {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--main-color);
  color: var(--text-color);
  border-radius: 0.8rem;
  font-size: 1.4rem;
  font-weight: 600;
  transition: 0.3s ease;
}

.service-cta:hover {
  background: var(--text-color);
  color: var(--main-color);
  transform: translateY(-3px);
}

.trust-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 5rem;
}

.badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem 2.5rem;
  border-radius: 1rem;
  transition: 0.3s ease;
}

.badge:hover {
  background: var(--main-color);
  transform: translateY(-5px);
}

.badge i {
  font-size: 3rem;
}

.badge span {
  font-size: 1.6rem;
  font-weight: 600;
}

.portfolio {
  background: var(--second-bg-color);
}

.portfolio h2 {
  margin-bottom: 5rem;
}

.portfolio-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.portfolio-box {
  position: relative;
  border-radius: 2rem;
  box-shadow: 0 0 1rem var(--bg-color);
  overflow: hidden;
  display: flex;
}

.portfolio-box img {
  width: 100%;
  height: 300px; /* Fixed height */
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: 0.5s ease;
}

.portfolio-box:hover img {
  transform: scale(1.05);
}

.portfolio-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.1), var(--main-color));
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 0 4rem;
  transform: translateY(100%);
  transition: 0.5s ease;
}

.portfolio-box:hover .portfolio-layer {
  transform: translateY(0);
}

.portfolio-layer h4 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.portfolio-layer p {
  font-size: 1.4rem;
  margin: 0.3rem 0 1rem;
}

.portfolio-layer a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 5rem;
  height: 5rem;
  background: var(--text-color);
  border-radius: 50%;
  margin-top: 1rem;
}

.portfolio-layer a i {
  font-size: 2rem;
  color: var(--main-color);
}
.view-all-button {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 20px;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.view-all-button:hover {
  background-color: #555;
}

.portfolio-filters {
  text-align: center;
  margin-bottom: 2rem;
}
.filter-btn {
  background-color: #eee;
  border: none;
  padding: 10px 20px;
  margin: 0 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.filter-btn.active, .filter-btn:hover {
  background-color: #333;
  color: #fff;
}
.portfolio-box {
  display: none; /* Hide all by default, JS will handle showing */
}
.portfolio-box.show {
  display: block;
}
.portfolio-category-title {
  font-size: 24px;
  margin: 30px 0 10px;
  color: var(--main-color); /* or any color you use */
  text-align: center;
}


.team {
  background: var(--bg-color);
  padding: 8rem 9% 4rem;
}

.team .heading {
  text-align: center;
  font-size: 6rem;
  margin-bottom: 5rem;
  color: var(--text-color);
}

.team-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.team-member {
  background: var(--second-bg-color);
  padding: 3rem;
  border-radius: 2rem;
  border-left: 5px solid var(--main-color);
  transition: 0.3s ease;
  text-align: center;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.team-member img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--main-color);
  margin-bottom: 1.5rem;
}

.team-member h4 {
  font-size: 2rem;
  color: var(--main-color);
  margin-bottom: 0.5rem;
}

.team-member p {
  font-size: 1.5rem;
  color: var(--text-color);
  opacity: 0.85;
  line-height: 1.6;
}



.testimonials {
  background: var(--bg-color);
  padding: 8rem 9%;
}

.testimonial-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.testimonial-box {
  background: var(--second-bg-color);
  padding: 3rem;
  border-radius: 2rem;
  border-left: 5px solid var(--main-color);
  transition: 0.3s ease;
}

.testimonial-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.testimonial-text {
  font-size: 1.6rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.testimonial-author img {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--main-color);
}

.author-info h5 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.author-info p {
  font-size: 1.4rem;
  opacity: 0.8;
}

/* Add these styles to your style.css file */

.faq {
  background: var(--second-bg-color);
  padding: 8rem 9% 4rem;
}

.faq-container {
  max-width: 900px;
  margin: 4rem auto;
}

.faq-item {
  background: var(--bg-color);
  border-radius: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(245, 139, 31, 0.1);
}

.faq-question h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-color);
}

.faq-question i {
  font-size: 2.4rem;
  color: var(--main-color);
  transition: all 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
}

.faq-answer p {
  padding: 0 3rem 2rem;
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--text-color);
  opacity: 0.9;
}

.faq-item.active .faq-question {
  border-bottom: 1px solid rgba(245, 139, 31, 0.3);
}

.faq-item.active .faq-question i {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-cta {
  text-align: center;
  margin-top: 4rem;
}

.faq-cta p {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .faq-question h3 {
    font-size: 1.6rem;
    width: 80%;
  }
  
  .faq-question {
    padding: 1.5rem 2rem;
  }
  
  .faq-answer p {
    padding: 0 2rem 1.5rem;
  }
}

.contact {
  background: var(--second-bg-color);
}

.contact h2 {
  margin-bottom: 3rem;
}

.contact form {
  max-width: 70rem;
  margin: 1rem auto;
  text-align: center;
  margin-bottom: 3rem;
}

.contact form .input-box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.6rem;
  color: var(--text-color);
  background: var(--bg-color);
  border-radius: 0.8rem;
  border: 2px solid var(--main-color);
  margin: 0.7rem 0;
}

.contact form .input-box input {
  width: 49%;
}

.contact form textarea {
  resize: none;
}

.contact form .btn {
  margin-top: 2rem;
  cursor: pointer;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 5rem;
}

.info-box {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 1rem;
  transition: 0.3s ease;
}

.info-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.info-box i {
  font-size: 3rem;
  color: var(--main-color);
}

.info-box h4 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.info-box a, .info-box p {
  font-size: 1.5rem;
  color: var(--text-color);
  transition: 0.3s ease;
}

.info-box a:hover {
  color: var(--main-color);
}


.footer {
  background: var(--bg-color);
  padding: 5rem 9% 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 5rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--main-color);
}

.footer-col p {
  font-size: 1.5rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-col ul li {
  margin-bottom: 1.5rem;
  list-style: none;
}

.footer-col ul li a {
  font-size: 1.5rem;
  color: var(--text-color);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--main-color);
  text-shadow: 0 0 5px #ffb400;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .social {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer .social a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background: transparent;
  border: 0.2rem solid var(--main-color);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--main-color);
  transition: 0.3s ease;
}

.footer .social a:hover {
  background: var(--main-color);
  color: var(--text-color);
  transform: translateY(-5px);
  box-shadow: 0 0 15px var(--main-color);
}

.copyright {
  font-size: 1.4rem;
  text-align: center;
}

.call-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--main-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(245, 139, 31, 0.3);
    z-index: 99;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.call-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(245, 139, 31, 0.4);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 139, 31, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(245, 139, 31, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 139, 31, 0); }
}

/* BREAKPOINTS */
@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }
}

@media (max-width: 991px) {
  .header {
    padding: 2rem 3%;
  }

  section {
    padding: 10rem 3% 2rem;
  }

  .services {
    padding-bottom: 7rem;
  }

  .portfolio {
    padding-bottom: 7rem;
  }

  .contact {
    min-height: auto;
  }

  .footer {
    padding: 2rem 3%;
  }
}

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

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 3%;
    background: var(--bg-color);
    border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    display: none;
  }

  .navbar.active {
    display: block;
  }

  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
  }

  .home {
    flex-direction: column;
    gap: 5rem;
  }

  .home-content h3 {
    font-size: 2.6rem;
  }

  .home-content h1 {
    font-size: 5rem;
  }

  .home-img img {
    width: 70vw;
  }

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

  .about img {
    width: 70vw;
  }

  .services h2 {
    margin-bottom: 3rem;
  }

  .portfolio h2 {
    margin-bottom: 3rem;
  }

  .portfolio-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .call-float {
    display: flex;
  }
}

@media (max-width: 617px) {
  .portfolio-container {
    grid-template-columns: 1fr;
  }

  .services-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 50%;
  }

  .contact form .input-box input {
    width: 100%;
  }
}

@media (max-width: 365px) {
  .home-img img {
    width: 90vw;
  }

  .about-img img {
    width: 90vw;
  }

  .footer {
    flex-direction: column-reverse;
  }

  .footer p {
    text-align: center;
    margin-top: 2rem;
  }
}