/* --- 1. Base & Utilities --- */
:root {
    --primary-color: #FFD700;
    /* Golden */
    --secondary-color: #1a1a1a;
    /* Dark Black/Near Black */
    --accent-color: #ffffff;
    /* White */
    --text-color: #333;
    --dark-bg: #111;
    --light-bg: #f8f8f8;
    --transition-time: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    /* Modern, clean font (assuming a link/import) */
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-dark {
    background-color: var(--dark-bg);
    color: var(--accent-color);
}

h1,
h2,
h3 {
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--secondary-color);
}

.bg-dark h2,
.bg-dark h3 {
    color: var(--primary-color);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    text-transform: uppercase;
}

hr {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border: none;
    margin: 0 auto 50px auto;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    margin: 5px;
    border: 2px solid transparent;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color var(--transition-time), color var(--transition-time), transform var(--transition-time);
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.02);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    border-color: var(--accent-color);
    transform: translateY(-3px) scale(1.02);
}

/* --- 2. Navigation & Header --- */
#navbar {
    position: fixed;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 15px 0;
    z-index: 1000;
    transition: background-color var(--transition-time), box-shadow var(--transition-time);
}

#navbar.sticky {
    background-color: var(--dark-bg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    /* Adjust size based on actual logo */
    margin-right: 10px;
    filter: drop-shadow(0 0 5px var(--primary-color));
}

.logo a {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li a {
    color: var(--accent-color);
    text-decoration: none;
    padding: 10px 15px;
    margin: 0 5px;
    font-weight: 500;
    transition: color var(--transition-time), border-bottom var(--transition-time);
}

.nav-links li a:hover,
.nav-links li .cta-nav-link:hover {
    color: var(--primary-color);
}

.cta-nav-link {
    background-color: var(--primary-color);
    color: var(--secondary-color) !important;
    border-radius: 5px;
    padding: 8px 15px;
    transition: background-color var(--transition-time), color var(--transition-time);
}

.cta-nav-link:hover {
    background-color: var(--accent-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- 3. Hero Section (Slider Styles) --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* This centers the flex container, but content inside swiper-slide will be left-aligned */
    color: var(--accent-color);
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    top: 74px;
}

.swiper-slide {
    background-size: cover !important;
    background-position: center !important;
    transition: background-image 0.5s ease-in-out;
    /* Ensure content is centered vertically and content div is left aligned */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Align content container to the left */
}

/* Placeholder Background Images */
.slide-1 {
    background: url('images/WelcomeBanner.png') no-repeat center center/cover;
}

.slide-2 {
    background: url('https://janathapestcontrol.in/wp-content/uploads/2017/01/terminte-slide.jpg') no-repeat center center/cover;
}

.slide-3 {
    background: url('https://janathapestcontrol.in/wp-content/uploads/2024/08/7.png') no-repeat center center/cover;
}

/* Dark overlay within the slides */
.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    /* Dark overlay */
    z-index: 1;
}

.slide-1::before {
    background-color: rgb(0 0 0 / 10%);
}

.hero-content {
    /* The container class (max-width: 1200px; margin: 0 auto; padding: 0 20px;) handles centering and width */
    position: relative;
    z-index: 2;
    padding: 20px;
    text-align: left;
    /* Crucial: Align text content to the left */
    width: 100%;
    max-width: 1200px;
    /* Use container's max-width */
    margin-left: 5%;
    /* Pushes content further left on wider screens */
    /* top: 223px; */

    top: 208px;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    /* text-shadow: 0 0 10px rgba(255, 215, 0, 0.8); */
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-buttons {
    margin-top: 30px;
}

/* Swiper Navigation (Arrows) Custom Styling */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color) !important;
    transform: scale(0.8);
    transition: color 0.3s, transform 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: var(--accent-color) !important;
    transform: scale(1);
}

/* Swiper Pagination (Dots) Custom Styling */
.swiper-pagination-bullet {
    background: var(--accent-color);
    opacity: 0.8;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

.clmn-ato{
    grid-column: 2/-1;
}

/* Responsive adjustment for Hero Text Alignment */
@media (max-width: 939px) {
.clmn-ato{
    grid-column: unset;
}
}

@media (max-width: 768px) {
    .slide-1 {
        /* background-position: left top !important; */
        background: url('images/MobBan.png') no-repeat left center/cover !important;
    }

    .hero-content {
        text-align: center;
        /* Center text on small screens */
        margin-left: auto;
        top: 163px;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* --- 4. About Us Section --- */
.about-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about-description {
    flex: 2;
}

.why-choose-us {
    flex: 1;
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--accent-color);
}

.why-choose-us h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.why-choose-us ul {
    list-style: none;
}

.why-choose-us ul li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.why-choose-us ul li i {
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 5px;
    font-size: 1.2rem;
}

/* --- 5. Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #222;
    padding: 0;
    /* Remove padding from card itself to manage image and text */
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--transition-time), box-shadow var(--transition-time), background-color var(--transition-time);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.2);
    background-color: var(--secondary-color);
}

/* Styling for the Image/Icon Placeholder (Top Half) */
.service-image-placeholder {
    height: 236px;
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    border-bottom: 3px solid var(--primary-color);
}

.service-image-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    transition: transform var(--transition-time);
}

.service-card:hover .service-image-placeholder i {
    transform: scale(1.1) rotate(5deg);
}

/* Styling for the Text Content (Bottom Half) */
.service-card h3,
.service-card p {
    padding: 15px 20px;
    margin: 0;
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--accent-color);
    padding-bottom: 5px;
}

.service-card p {
    color: #ccc;
    font-size: 0.95rem;
    padding-top: 5px;
}

/* --- 6. Features Section (The Renvox Advantage) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item {
    padding: 30px;
    background-color: var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow var(--transition-time);
}

.feature-item:hover {
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h4 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* --- 7. Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form-container h3,
.contact-info-map h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    background-color: #222;
    color: var(--accent-color);
    border-radius: 5px;
    transition: border-color var(--transition-time);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    border: none;
    cursor: pointer;
}

.contact-info-map p {
    margin-bottom: 15px;
}

.contact-info-map i {
    color: var(--primary-color);
    margin-right: 10px;
}

.contact-info-map a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-time);
}

.contact-info-map a:hover {
    color: var(--primary-color);
}

.map-embed {
    margin-top: 30px;
    border: 3px solid var(--primary-color);
    border-radius: 8px;
    overflow: hidden;
}

.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
}

.success-message {
    color: #4CAF50;
    font-weight: bold;
    margin-top: 15px;
    text-align: center;
}


/* --- 8. Footer --- */
footer {
    background-color: var(--secondary-color);
    color: #aaa;
    padding: 30px 0;
    text-align: center;
    border-top: 5px solid var(--primary-color);
}

.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.social-icons a {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-left: 15px;
    transition: color var(--transition-time);
}

.social-icons a:hover {
    color: var(--primary-color);
}

.quick-links a {
    color: #aaa;
    text-decoration: none;
    margin: 0 10px;
}

.quick-links a:hover {
    color: var(--primary-color);
}

/* --- 9. Scroll-to-Top Button --- */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background-color var(--transition-time), opacity var(--transition-time);
}

#scrollToTopBtn:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

#navbar {
    overflow-x: hidden;
}

html,
body {
    overflow-x: hidden;
}


/* --- 10. Media Queries (Responsiveness) --- */
@media (max-width: 992px) {
    .about-grid {
        flex-direction: column;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-map {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .footer-links {
        flex-direction: column;
    }

    .social-icons {
        margin-top: 15px;
    }

    /* Mobile Nav */
    .menu-toggle {
        display: block;
    }

    nav {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: right;
        position: absolute;
        top: 70px;
        /* Below the logo/toggle */
        right: 0;
        background-color: var(--dark-bg);
        padding: 10px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 5px 0;
    }

    .nav-links li a {
        display: block;
        padding: 10px 20px;
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 10px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 15px 15px 0 0;
    z-index: 9999;
}

.bottom-bar .item {
    text-decoration: none;
    color: #008000;
    /* green color */
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bottom-bar .icon {
    font-size: 22px;
    margin-bottom: 4px;
}

@media (min-width: 768px) {
    .bottom-bar {
        width: 60%;
        left: 50%;
        transform: translateX(-50%);
    }
}

.reviews-section {
    padding: 60px 20px;
    background: #f8f8f8;
    text-align: center;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #1a1a1a;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

.user-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.stars {
    color: #FFD700;
    font-size: 20px;
    margin: 5px 0 10px;
}

.review-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #333;
}

.review-card p {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}
