/* ===== GLOBAL STYLES ===== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    text-decoration: none;
}

/* Global link styles */
a {
    color: #2f2f2f;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

header, main {
    width: 100%;
}

/* ===== NAVIGATION ===== */
.navlinks {
    width: 100%;
    display: flex;
    justify-content: space-around;
    background-color: rgba(202, 202, 202, 0.3);
    position: fixed;
    z-index: 10;
    padding: 10px 0;
    align-items: center;
}

/* Navigation links */
.navlinks ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.navlinks ul li {
    font-weight: bold;
}

/* Logo styles */
.logo {
    width: auto;
    display: flex;
    align-items: center;
    color: #4CAF50;
    cursor: pointer;
}

.logo img {
    max-width: 45px;
    height: auto;
    transition: transform 0.4s ease;
}

/* Hover effects */
.logo img:hover,
.navlinks li:hover,
.navlinks .logo h2:hover {
    transform: scale(1.2);
}

.navlinks a {
    text-decoration: none;
    color: #2f2f2f;
    transition: color 0.3s ease;
}

.navlinks a:hover {
    color: #4CAF50;
}

/* Mobile menu toggle */
.ham {
    display: none;
    cursor: pointer;
    padding: 5px;
}

.ham i {
    font-size: 24px;
    transition: all 0.3s ease;
}

.ham i:hover {
    transform: scale(1.2);
    color: #4CAF50;
}

/* ===== HERO SECTION ===== */
.home {
    width: 100%;
    min-height: 100vh;
    background-color: #fff;
    display: flex;
    align-items: center;
    padding-top: 70px; /* Navbar height */
}

.hero-text-wrapper {
    width: 100%;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-text-wrapper img {
    width: 180px;
    max-width: 100%;
    margin-bottom: 1rem;
}

.hero-text-wrapper h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #4CAF50;
    font-weight: 700;
    margin: 1rem 0;
}

.heroimg {
    display: none;
}




/* ===== SERVICES SECTION ===== */
.services {
    background-color: #f5f5f5;
    text-align: center;
    padding: 4rem 1rem;
}

.servicesh2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: #2f2f2f;
    margin-bottom: 2rem;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex: 1 1 300px;
    max-width: 350px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 2.5rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.service-card h2 {
    color: #2f2f2f;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.service-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* ===== ABOUT SECTION ===== */
.about {
    width: 100%;
    min-height: 100vh;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    padding: 4rem 1rem;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.about-text {
    flex: 1 1 500px;
    padding: 1rem;
}

.about-text h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: #4CAF50;
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1rem;
}

.about-image {
    flex: 1 1 200px;
    text-align: center;
    padding: 1rem;
}

.about-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* ===== TESTIMONIALS SLIDER ===== */

.ref-gallery {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  padding: 1rem;
}

.gallery-wrapper {
  width: 100%;
  max-width: 1200px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery-main {
  flex: 1;
  margin-bottom: 1rem;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  overflow: hidden;
  padding: 5%;
}

.gallery-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  transition: opacity 0.5s ease;
}


.gallery-thumbs {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.thumb {
  height: 90px;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
  transition: transform 0.3s ease, opacity 0.3s ease, border 0.3s ease;
}

.thumb:hover {
  transform: scale(1.05);
  opacity: 1;
}

.selected-thumb {
  opacity: 1;
  border: 2px solid #4CAF50;
}


@media (max-width: 768px) {
  .gallery-main {
    min-height: 60vh;
  }

  .thumb {
    height: 70px;
  }
}

@media (max-width: 480px) {
  .gallery-main {
    min-height: 55vh;
  }

  .thumb {
    height: 60px;
  }
}



/* ===== CONTACT SECTION ===== */
.contact-section {
    background-color: #fff;
    padding: 4rem 1rem;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;

}

.contact-info {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

}

.contact-info h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    translate: 10% ;
}

.contact-info div {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
}

.contact-info i {
    color: #4CAF50;
    font-size: 1.3rem;
}

.contact-form {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Form elements */
.contact-form input,
.contact-form textarea {
    padding: 0.9rem 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.contact-form button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.85rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #388e3c;
}

/* ===== RESPONSIVE STYLES ===== */

/* Tablet and desktop styles */
@media (min-width: 768px) {
    .heroimg {
        display: flex;
        width: 40%;
        justify-content: center;
        align-items: center;
    }
    
    .hero-text-wrapper {
        width: 60%;
    }
    
    .home {
        flex-direction: row;
    }
    
    .ref {
        min-height: 100vh;
        padding: 4rem 1rem;
    }
    
    .pslider {
        height: 400px;
    }
}

/* Mobile menu styles */
@media (max-width: 900px) {
    .navlinks ul {
        display: none;
    }
    
    .navlinks {
        justify-content: space-between;
        padding: 10px 20px;
    }
    
    .ham {
        display: block;
    }
    
    /* Active mobile menu */
    .active {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 999;
        background-color: rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .ulactive {
        display: flex !important;
        flex-direction: column;
        gap: 2rem;
        font-size: 1.5rem;
    }
    
    .ulactive li {
        transition: all 0.3s ease;
    }
    
    .ulactive li:hover {
        transform: scale(1.05);
        color: #4CAF50;
        background-color: rgba(76, 175, 80, 0.1);
        padding: 0.5rem 1rem;
        border-radius: 8px;
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    .pslider {
        height: 250px;
    }
    
    .pslide.pprev {
        transform: translateX(-25%) scale(0.8);
    }
    
    .pslide.pnext {
        transform: translateX(25%) scale(0.8);
    }
    
    .pcontrols button {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .contact-container {
        padding: 1.5rem;
    }
    
    .contact-info div {
        font-size: 0.95rem;
    }
    .heroimg {
        width: 100% !important;
    }
    
    .about{

        text-align: center;
    }

    .contact-info{

        text-align: center;
        justify-content: center;
        align-items: center;
    }

}

/* Mobile hero section */
@media (max-width: 767px) {
    .home {
        flex-direction: column;
        padding-top: 80px;
        padding-bottom: 40px;
    }
    
    .hero-text-wrapper {
        width: 100%;
        height: 100vh;
    }
    
    .hero-text-wrapper img {
        width: 200px;
        transform: translateY(-20%);
    }
    
    .heroimg {
        display: none;
    }
    
    .electrican {
        display: none;
    }
}

@media (min-width: 768px) {
    .pslider {
        height: 500px !important;
    }
}

    .about{

        text-align: center;
    }

    .contact-info{

        text-align: center;
        justify-content: center;
        align-items: center;
    }


@media (max-width: 480px) {
    .pslider {
        height: 350px !important;
    }
}

/* Mobile menu icon states */
.ham i.fa-times {
    color: #4CAF50;
    transform: scale(1.1);
}

.active .ham {
    display: none;
}

#rotating-text {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}
.rotating-hidden {
  opacity: 0;
}


