/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

body, h1, h2, h3, h4, h5, h6, p, ul, li, a, input, textarea, button {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
}

body {
    background: #ffffff;
    color: #333;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Card */
.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 30px;
    margin: 30px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* Top Bar */
.top-bar {
    background: #222;
    color: #fff;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: #fff;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: #007BFF;
}

.top-bar i {
    font-size: 20px;
}

/* Header */
.header {
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: background 0.3s, box-shadow 0.3s;
}

.header.scrolled {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 50px;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav li a {
    padding: 10px;
    font-weight: 600;
    color: #333;
    transition: color 0.3s;
    position: relative;
}

.nav li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: #007BFF;
    left: 0;
    bottom: -5px;
    transition: width 0.3s;
}

.nav li a:hover::after {
    width: 100%;
}

.nav li a:hover {
    color: #007BFF;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 60px;
        right: 0;
        background: #ffffff;
        width: 250px;
        transform: translateX(100%);
        transition: transform 0.3s;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        height: 100vh;
        overflow-y: auto;
    }

    .nav.open {
        transform: translateX(0);
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
    }

    .nav li a {
        display: block;
        padding: 20px;
        border-bottom: 1px solid #eaeaea;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

/* Hero */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background 0.5s;
}

.hero .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    border-radius: 0 0 12px 12px;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInDown 1s ease forwards;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease forwards;
}

.hero-call-to-action {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    animation: fadeInUp 1s ease forwards;
}

.hero-description {
    font-size: 16px;
    color: #dcdcdc;
    margin-bottom: 30px;
    line-height: 1.6;
    animation: fadeInUp 1s ease forwards;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background-color: #007BFF;
    color: #ffffff;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    font-size: 18px;
    transition: background-color 0.3s, transform 0.3s;
    animation: pulse 2s infinite;
}

.btn-primary i {
    margin-right: 10px;
    font-size: 20px;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background-color: #6c757d;
    color: #ffffff;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 16px;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

.animate-pulse {
    animation: pulse 1.5s infinite;
}

.contact-wrapper {
    max-width: 700px;
    margin: 30px auto;
    animation: fadeInUp 1s ease forwards;
}

.contact-form {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin: 8px 0;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 16px;
    transition: background 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: rgba(255, 255, 255, 0.3);
    outline: none;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    background-color: #6c757d;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.contact-form button:hover {
    background-color: #5a6268;
    transform: translateY(-3px);
}

/* About */
.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.about-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.about-container div {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.about-container h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #007BFF;
}

.about-container p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555555;
}

.about-container a {
    display: inline-block;
    padding: 12px 30px;
    background: #007BFF;
    color: #ffffff;
    font-weight: 600;
    border-radius: 25px;
    transition: background 0.3s;
}

.about-container a:hover {
    background: #0056b3;
}

/* Electrical Services */
.services {
    text-align: center;
    background: #f9f9f9;
    padding: 60px 0;
}

.services h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #333333;
}

.services p {
    font-size: 18px;
    color: #555555;
    margin-bottom: 40px;
}

.services .service-items {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
}

.services .service-item {
    flex: 1 1 300px;
    max-width: 350px;
    border: none;
    border-radius: 12px;
    padding: 30px;
    background: #ffffff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.services .service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.services .service-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 20px;
}

.services .service-item h3 {
    margin-bottom: 15px;
    color: #007BFF;
    font-size: 24px;
}

.services .service-item p {
    font-size: 16px;
    color: #555555;
    line-height: 1.6;
}

/* Testimonials */
.testimonials {
    background: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.testimonials .testimonial-summary {
    margin-bottom: 40px;
}

.testimonials .testimonial-summary h3 {
    font-size: 24px;
    color: #007BFF;
    margin-bottom: 10px;
}

.testimonials .testimonial-summary p {
    font-size: 16px;
    color: #555555;
}

.testimonials .testimonial-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.testimonials .testimonial-card {
    flex: 1 1 300px;
    max-width: 350px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonials .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.testimonials .testimonial-card p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 15px;
}

.testimonials .testimonial-card h4 {
    font-size: 18px;
    color: #007BFF;
    margin-bottom: 5px;
}

.testimonials .testimonial-card p:last-child {
    font-size: 14px;
    color: #777777;
}

/* Why Choose Us */
.why-choose-us {
    background: #f9f9f9;
    padding: 60px 0;
    text-align: center;
}

.why-choose-us h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #007BFF;
}

.why-choose-us .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.why-choose-us .container div {
    padding: 25px;
    border: none;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.why-choose-us .container div:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.why-choose-us .container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 20px;
}

.why-choose-us .container h3 {
    color: #007BFF;
    font-size: 20px;
    margin-bottom: 10px;
}

.why-choose-us .container h4 {
    font-size: 18px;
    color: #555555;
    margin-bottom: 10px;
}

.why-choose-us .container p {
    font-size: 16px;
    color: #555555;
    line-height: 1.6;
}

/* Emergency Services */
.emergency-services {
    text-align: center;
    background: #ffffff;
    padding: 60px 0;
}

.emergency-services .emergency-banner {
    background-color: #007BFF;
    color: #ffffff;
    padding: 30px 20px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.emergency-services .emergency-banner h1 {
    font-size: 36px;
    margin: 0;
}

.emergency-services .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.emergency-services .container div {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.emergency-services .container h1 {
    font-size: 48px;
    font-weight: bold;
    color: #007BFF;
    text-align: center;
    margin-bottom: 20px;
}

.emergency-services .container h2 {
    color: #007BFF;
    font-size: 28px;
    margin-bottom: 20px;
}

.emergency-services .container p {
    font-size: 16px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.emergency-services .container a {
    display: inline-block;
    padding: 15px 30px;
    background: #007BFF;
    color: #ffffff;
    font-weight: 600;
    border-radius: 25px;
    transition: background 0.3s;
}

.emergency-services .container a:hover {
    background: #0056b3;
}

.emergency-services .container img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Special Offers */
.unique-services {
    background: #f9f9f9;
    padding: 60px 0;
    text-align: center;
}

.unique-services .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.unique-services .services-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.unique-services .services-content {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.unique-services .services-content h2 {
    color: #007BFF;
    font-size: 32px;
    margin-bottom: 20px;
}

.unique-services .services-content p {
    font-size: 16px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.unique-services .services-content ul {
    list-style: disc;
    text-align: left;
    max-width: 600px;
    margin: 0 auto 20px;
    padding-left: 20px;
}

.unique-services .services-content ul li {
    margin: 10px 0;
    font-size: 16px;
    color: #555555;
}

.unique-services .services-content a {
    display: inline-block;
    padding: 12px 30px;
    background: #007BFF;
    color: #ffffff;
    font-weight: 600;
    border-radius: 25px;
    transition: background 0.3s;
}

.unique-services .services-content a:hover {
    background: #0056b3;
}

/* Contact */
.contact {
    background: #f0f4f8;
    text-align: center;
    padding: 60px 0;
}

.contact h2 {
    color: #007BFF;
    font-size: 32px;
    margin-bottom: 20px;
}

.contact p {
    font-size: 18px;
    color: #555555;
    margin-bottom: 40px;
}

.contact .contact-info p {
    margin: 10px 0;
    font-size: 16px;
    color: #555555;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact .contact-info i {
    color: #007BFF;
    font-size: 20px;
}

.contact .contact-wrapper {
    max-width: 700px;
    margin: 30px auto;
}

.contact-form input, .contact-form textarea {
    width: 48%;
    margin: 1%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: #007BFF;
    outline: none;
}

.contact-form textarea {
    width: 98%;
    height: 140px;
    margin: 1% 0;
}

.contact-form button {
    width: 100%;
}

.contact-form button:hover {
    background: #0056b3;
}

/* Footer Styles */
.footer {
    background-color: #1a1a1a; /* Dark background */
    color: #ffffff; /* White text */
    padding: 60px 20px;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1 1 250px;
}

.footer-logo-img {
    max-height: 60px;
    transition: transform 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.1);
}

.footer-description {
    margin-top: 15px;
    font-size: 16px;
    color: #cccccc;
    line-height: 1.5;
}

.footer-nav {
    flex: 1 1 250px;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li {
    margin-bottom: 15px;
}

.footer-nav-list li a {
    color: #007BFF; /* Blue links */
    text-decoration: none;
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease;
}

.footer-nav-list li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #007BFF;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

.footer-nav-list li a:hover {
    color: #ffffff;
}

.footer-nav-list li a:hover::after {
    width: 100%;
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 30px;
    text-align: center;
}

.footer-info {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-details p {
    margin: 5px 0;
    font-size: 16px;
    color: #cccccc;
}

.footer-details a {
    color: #007BFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-details a:hover {
    color: #ffffff;
}

.footer-credit {
    font-size: 14px;
    color: #777777;
    margin-top: 20px;
}

.footer-credit a {
    color: #007BFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credit a:hover {
    color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-nav {
        flex: none;
    }

    .footer-nav-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* Hero Section Responsive */
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-call-to-action {
        font-size: 20px;
    }

    .btn-primary {
        padding: 12px 25px;
        font-size: 16px;
    }

    .btn-secondary {
        font-size: 14px;
        padding: 10px 20px;
    }

    /* Other Responsive Adjustments */
    .services .service-items {
        flex-direction: column;
    }

    .testimonials .testimonial-list {
        flex-direction: column;
    }

    .why-choose-us .container {
        grid-template-columns: 1fr;
    }

    .glider-prev,
    .glider-next {
        padding: 8px 12px;
        font-size: 16px;
    }

    .testimonial-card {
        padding: 15px;
    }

    .unique-services .container {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav ul {
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0,123,255,0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(0,123,255,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0,123,255,0);
    }
}

/* Back to Top */
#back-to-top {
    position: fixed;
    right: 30px;
    bottom: -60px;
    background: #007BFF;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: bottom 0.3s, background 0.3s;
    z-index: 999;
}

#back-to-top.show {
    bottom: 30px;
}

#back-to-top:hover {
    background: #0056b3;
}

/* Glider.js Overrides */
.glider-prev,
.glider-next {
    background: #007BFF;
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.glider-prev {
    left: -35px;
}

.glider-next {
    right: -35px;
}

.glider-prev:hover,
.glider-next:hover {
    background: #0056b3;
}

.dots {
    text-align: center;
    margin-top: 20px;
}

.dots button {
    border: none;
    background: #ccc;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.dots button.active {
    background: #007BFF;
}

.dots button:hover {
    background: #0056b3;
}
