/* Reset Default Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background: #fafafa; /* Off-White Background */
    color: #333333;
}

/* Header */
header {
    background: rgba(0, 48, 135, 0.9); /* Deep Blue */
    color: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.logo-text:hover {
    transform: scale(1.05);
    color: #b3e0ff; /* Light Blue on hover */
}

.hamburger {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 20px;
    font-size: 16px;
    font-weight: 500;
}

nav a:hover {
    color: #00a3e0; /* Sky Blue */
}

.contact-info {
    margin: 0 15px;
    font-size: 14px;
}

.contact-info i {
    margin-right: 5px;
}

.whatsapp-icon {
    margin: 0 15px;
    font-size: 20px;
}

.whatsapp-icon i {
    color: #25D366; /* WhatsApp Green */
}

.whatsapp-icon:hover i {
    color: #b3e0ff; /* Light Blue */
}

.book-now-btn {
    background: #00a3e0; /* Sky Blue */
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
}

.book-now-btn:hover {
    background: #b3e0ff; /* Light Blue */
    color: white;
}

/* Hero Section (Slider) */
#home {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideShow 10s infinite;
}

.hero-slide:nth-child(1) {
    background-image: url('home-services-bg1.jpg');
    animation-delay: 0s;
}

.hero-slide:nth-child(2) {
    background-image: url('home-services-bg2.jpg');
    animation-delay: 5s;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 10px;
    width: 90%; /* Ensure it fits within mobile screens */
    max-width: 600px; /* Limit width for larger screens */
}

#home h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

#home p {
    font-size: 20px;
    margin-bottom: 30px;
}

#home button {
    background: #00a3e0; /* Sky Blue */
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
}

#home button:hover {
    background: #b3e0ff; /* Light Blue */
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

@keyframes slideShow {
    0% { opacity: 0; }
    10% { opacity: 1; }
    45% { opacity: 1; }
    55% { opacity: 0; }
    100% { opacity: 0; }
}

/* Sections */
section {
    padding: 100px 20px;
    text-align: center;
}

h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #003087; /* Deep Blue */
}

/* Services */
.service-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.service-box {
    background: white;
    width: 300px;
    margin: 20px;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    animation: fadeIn 1s forwards;
    transition: all 0.3s ease;
    cursor: pointer; /* To indicate it's clickable for Pest Control */
}

.service-icon {
    font-size: 40px;
    color: #00a3e0; /* Sky Blue */
    margin-bottom: 15px;
}

.service-box h3 {
    margin-bottom: 10px;
    color: #003087; /* Deep Blue */
}

.service-box p {
    color: #666;
}

.service-box:hover {
    background: #00a3e0; /* Sky Blue */
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.service-box:hover h3, .service-box:hover p {
    color: white;
}

.service-box:hover .service-icon {
    color: white;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.service-box:nth-child(1) { animation-delay: 0.2s; }
.service-box:nth-child(2) { animation-delay: 0.4s; }
.service-box:nth-child(3) { animation-delay: 0.6s; }
.service-box:nth-child(4) { animation-delay: 0.8s; }
.service-box:nth-child(5) { animation-delay: 1.0s; }

/* Pest Control Sub-Section */
.pest-control-details {
    display: none; /* Hidden by default */
    margin: 20px auto;
    padding: 20px;
    background: #f4f4f4;
    border-radius: 10px;
    max-width: 1200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.pest-control-details.active {
    display: block; /* Show when active */
}

.pest-service-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.pest-service-box {
    background: white;
    width: 200px;
    margin: 10px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.pest-service-box h4 {
    margin-bottom: 10px;
    color: #003087;
    font-size: 16px;
}

.pest-service-box p {
    color: #666;
    font-size: 14px;
}

.pest-service-box:hover {
    background: #00a3e0;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.pest-service-box:hover h4, .pest-service-box:hover p {
    color: white;
}

/* About */
#about {
    background: #f4f4f4; /* Light Gray */
    padding: 100px 20px;
}

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    padding: 20px;
    text-align: left;
}

.about-image {
    flex: 1;
    padding: 20px;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    object-fit: cover; /* Ensure images don't stretch */
}

/* Testimonials */
#testimonials {
    background: white;
    padding: 100px 20px;
}

.testimonial-slider {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-box {
    background: #f4f4f4; /* Light Gray */
    padding: 30px;
    border-radius: 10px;
    margin: 20px auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    animation: slideIn 1s forwards;
}

.testimonial-box:nth-child(1) { animation-delay: 0s; }
.testimonial-box:nth-child(2) { animation-delay: 3s; }

.testimonial-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: block;
    object-fit: cover; /* Ensure images don't stretch */
}

@keyframes slideIn {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Contact Form */
form {
    max-width: 600px;
    margin: 0 auto;
}

form input, form textarea {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    color: #333333;
    font-size: 16px; /* Ensure readability on mobile */
}

form textarea {
    height: 120px;
}

form button {
    background: #00a3e0; /* Sky Blue */
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    display: block;
    margin: 20px auto;
}

form button:hover {
    background: #b3e0ff; /* Light Blue */
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.whatsapp-link {
    color: #00a3e0;
    text-decoration: none;
    font-weight: 600;
}

.whatsapp-link:hover {
    color: #b3e0ff;
}

/* Footer */
footer {
    background: linear-gradient(to top, rgba(0, 48, 135, 0.7), rgba(0, 48, 135, 0.5)); /* Gradient Transparency */
    backdrop-filter: blur(5px); /* Subtle blur effect */
    color: white;
    padding: 15px 20px;
    font-size: 14px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    margin: 10px;
    min-width: 200px;
}

.footer-section h3 {
    margin-bottom: 8px;
    font-size: 16px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    display: block;
    margin: 3px 0;
    font-size: 12px;
}

.footer-section a:hover {
    color: #00a3e0;
}

.footer-section i {
    font-size: 16px;
    margin: 0 8px;
}

.footer-logo {
    margin-bottom: 15px;
    text-align: left;
}

.footer-logo-img {
    width: 80px;
    height: auto;
}

.footer-bottom {
    text-align: center;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    padding-top: 5px;
    font-size: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header */
    header {
        flex-direction: column;
        padding: 10px 15px; /* Reduced padding for mobile */
    }

    .logo-text {
        font-size: 20px; /* Smaller font size for mobile */
        margin: 5px 0;
    }

    .hamburger {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        align-items: center;
        margin-top: 10px;
    }

    nav.active {
        display: flex;
    }

    nav a {
        margin: 8px 0;
        font-size: 14px; /* Smaller font size for mobile */
    }

    .contact-info, .whatsapp-icon, .book-now-btn {
        margin: 8px 0;
        font-size: 12px;
    }

    .whatsapp-icon {
        font-size: 16px;
    }

    /* Hero Section */
    .hero-slider {
        height: 70vh; /* Reduced height for mobile */
    }

    .hero-content {
        padding: 20px;
    }

    #home h1 {
        font-size: 28px; /* Smaller heading for mobile */
    }

    #home p {
        font-size: 16px; /* Smaller paragraph for mobile */
    }

    #home button {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Sections */
    section {
        padding: 60px 15px; /* Reduced padding for mobile */
    }

    h2 {
        font-size: 28px; /* Smaller heading for mobile */
        margin-bottom: 20px;
    }

    /* Services */
    .service-box {
        width: 90%; /* Full width with some margin */
        margin: 10px auto;
        padding: 20px;
    }

    .service-icon {
        font-size: 30px;
    }

    .service-box h3 {
        font-size: 18px;
    }

    .service-box p {
        font-size: 14px;
    }

    .pest-service-box {
        width: 90%; /* Full width for pest services */
        margin: 10px auto;
        padding: 15px;
    }

    .pest-service-box h4 {
        font-size: 14px;
    }

    .pest-service-box p {
        font-size: 12px;
    }

    /* About */
    .about-content {
        flex-direction: column;
    }

    .about-text, .about-image {
        text-align: center;
        padding: 10px;
    }

    .about-image img {
        max-width: 300px; /* Smaller image for mobile */
    }

    /* Testimonials */
    .testimonial-box {
        padding: 20px;
    }

    .testimonial-img {
        width: 100px;
        height: 100px;
    }

    .testimonial-box p {
        font-size: 14px;
    }

    /* Contact Form */
    form input, form textarea {
        padding: 10px;
        margin: 10px 0;
        font-size: 14px;
    }

    form textarea {
        height: 100px;
    }

    form button {
        padding: 10px 25px;
        font-size: 14px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        text-align: center;
        margin: 15px 0;
        min-width: 100%;
    }

    .footer-logo {
        text-align: center;
        margin-bottom: 10px;
    }

    .footer-logo-img {
        width: 60px;
    }

    .footer-section h3 {
        font-size: 14px;
    }

    .footer-section a {
        font-size: 12px;
    }

    .footer-section i {
        font-size: 14px;
    }

    .footer-bottom {
        font-size: 8px;
    }
}

/* Extra Small Devices (max-width: 480px) */
@media (max-width: 480px) {
    .logo-text {
        font-size: 18px;
    }

    .hamburger {
        font-size: 20px;
    }

    nav a {
        font-size: 12px;
    }

    #home h1 {
        font-size: 24px;
    }

    #home p {
        font-size: 14px;
    }

    #home button {
        padding: 8px 15px;
        font-size: 12px;
    }

    section {
        padding: 40px 10px;
    }

    h2 {
        font-size: 24px;
    }

    .service-box h3 {
        font-size: 16px;
    }

    .service-box p {
        font-size: 12px;
    }

    .footer-logo-img {
        width: 50px;
    }
}
