/* General Styling */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #e6f7ff, #e6f7ff);
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #182f19;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    text-align: center;
}

.logo {
    width: 150px;
    height: auto;
    margin-right: 20px;
    border-radius: 8px;
}

.header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

h1, p {
    margin: 0;
}

/* Navigation */
nav ul {
    list-style: none;
    padding: 0;
    background: #333333;
    overflow: hidden;
}

nav ul li {
    display: inline-block;
    padding: 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Sections */
section {
    background: white;
    margin: 30px auto;
    padding: 30px;
    width: 90%;
    max-width: 1000px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

section:hover {
    transform: scale(1.02);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

/* Services */
.service-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.service-card:nth-child(odd) {
    background: #FFE140;
}

.service-card:nth-child(even) {
    background: #FFE140;
}

.service-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 300px;
    height: 120px;
    border-radius: 10px;
    color: #4b3d2b;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.5s;
    user-select: none;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(30px);
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Scrolling Effect */
html {
    scroll-behavior: smooth;
}

/* Popup Background */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

/* Popup Content */
.popup-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    width: 80%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Close Button */
.close-btn {
    background: red;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
}

/* WhatsApp Buttons */
.whatsapp-button, .popup-whatsapp {
    display: inline-block;
    margin: 20px;
    padding: 10px 15px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.popup-whatsapp:hover, .whatsapp-button:hover {
    background-color: #1da851;
}

/* Footer */
footer {
    background: #263238;
    color: #fff;
    padding: 20px 0;
    text-align: left;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.footer-left {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
}

.footer-right {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    padding-left: 20px;
}

.footer-right h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.footer-right p {
    margin: 5px 0;
    font-size: 16px;
}

.footer-right a {
    color: #ffcc00;
    text-decoration: none;
}

.footer-right a:hover {
    text-decoration: underline;
}

/* Headings Styling */
section h2 {
    color: #000000;
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* Previous Plans & Ongoing Projects - Boxed Styling */
#plans ul, #projects ul {
    list-style-type: none;
    padding: 0;
}

#plans li, #projects li {
    background: #FFE140;
    margin: 10px 0;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

#plans li:hover, #projects li:hover {
    transform: scale(1.03);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

/* Dark Background Overlay when Popup is Open */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

/* Image Popup Centered */
#popup-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    display: block;
    margin: auto;
}

/* Smooth Scrolling Effect */
.scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 15px;
    padding: 10px;
    white-space: nowrap;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Image Styling */
.scroll-img {
    width: 250px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.scroll-img:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

/* Ensure the body stretches to full height */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Allow content to push the footer down */
main {
    flex: 1;
}

/* Footer at bottom only when scrolling */
footer {
    background: #333;
    color: white;
    padding: 10px;
    text-align: center;
    width: 100%;
    position: relative;
    bottom: 0;
}

/* Sales Section Styling */
#sales {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.sales-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.sales-card {
    background: #FFE140;
    padding: 20px;
    border-radius: 10px;
    width: 250px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-weight: bold;
    color: #424242;
}

.sales-card:hover {
    background: #e0e0e0;
    color: #263238;
    text-decoration: underline;
}

/* Project List Hover Effect */
ul li {
    cursor: pointer;
    color: #424242;
    transition: color 0.3s ease;
}

ul li:hover {
    color: #263238;
    text-decoration: underline;
}

/* Appointment Popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.close-btn {
    float: right;
    font-size: 20px;
    cursor: pointer;
}

input, select, textarea {
    width: 100%;
    margin: 8px 0;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.submit-btn {
    background-color: #007bff;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #0056b3;
}

/* Floating Book an Appointment Button */
#appointment-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: #007bff;
    color: white;
    padding: 12px 15px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    z-index: 1000;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

#appointment-btn:hover {
    background: #0056b3;
}

/* Larger Popup Box */
.popup-content {
    background: white;
    padding: 25px;
    width: 50%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Fix overlapping close button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

/* Form Input Styling */
input, select, textarea {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Button Styling */
.submit-btn {
    background: #28a745;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

.submit-btn:hover {
    background: #218838;
}

/* Tilting Animation */
@keyframes tilt {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(3deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-3deg); }
    100% { transform: rotate(0deg); }
}

/* Book an Appointment Button */
#appointment-btn {
    position: fixed;
    bottom: 120px;
    right: 20px;
    background-color: #007bff;
    color: white;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    animation: tilt 2s infinite ease-in-out;
    transition: transform 0.3s ease, bottom 0.3s ease;
}

#appointment-btn:hover {
    transform: scale(1.05);
}

/* Chat with Us Button */
#chat-btn {
    position: fixed;
    bottom: 40px;
    right: 20px;
    background-color: #25D366;
    color: white;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

#chat-btn:hover {
    transform: scale(1.05);
}

.contact-location {
    margin-top: 20px;
    text-align: center;
}

iframe {
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Media Queries for Responsive Design */

/* Mobile View (up to 767px) */
@media (max-width: 767px) {
    header {
        flex-direction: column;
        padding: 15px;
    }

    .logo {
        width: 100px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .header-text h1 {
        font-size: 24px;
    }

    .header-text p {
        font-size: 14px;
    }

    nav ul li {
        display: block;
        text-align: center;
        padding: 10px;
    }

    section {
        padding: 20px;
        margin: 20px auto;
    }

    .service-card {
        width: 100%;
        height: auto;
        margin-bottom: 15px;
    }

    .sales-card {
        width: 100%;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left, .footer-right {
        max-width: 100%;
        padding-left: 0;
    }

    .popup-content {
        width: 90%;
        padding: 20px;
    }

    #appointment-btn, #chat-btn {
        font-size: 14px;
        padding: 10px 15px;
    }

    #appointment-btn {
        bottom: 100px;
    }

    #chat-btn {
        bottom: 30px;
    }
}

/* Tablet View (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    header {
        padding: 20px;
    }

    .logo {
        width: 120px;
    }

    .header-text h1 {
        font-size: 28px;
    }

    .header-text p {
        font-size: 16px;
    }

    section {
        padding: 25px;
    }

    .service-card {
        width: 45%;
    }

    .sales-card {
        width: 45%;
    }

    .popup-content {
        width: 70%;
    }
}

/* Desktop View (1025px and above) */
@media (min-width: 1025px) {
    /* No changes needed as the default styles are already optimized for desktop */
}
/* Hamburger Menu Styles */
#hamburger-menu {
    display: none; /* Hide by default on larger screens */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
  }
  
  #hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    transition: transform 0.3s, opacity 0.3s;
  }
  
  #hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  #hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  
  #hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  /* Navigation Menu Styles */
  nav#nav-menu {
    display: flex;
    justify-content: flex-end;
    background: #333333;
  }
  
  nav#nav-menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
  }
  
  nav#nav-menu ul li {
    padding: 15px;
  }
  
  nav#nav-menu ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
  }
  
  /* Mobile Styles */
/* Mobile Styles */
@media (max-width: 767px) {
    #hamburger-menu {
      display: flex; /* Show hamburger menu on smaller screens */
    }
  
    nav#nav-menu {
      display: none; /* Hide nav by default on smaller screens */
      position: relative; /* Change from absolute to relative */
      width: 100%;
      background: #333333;
      text-align: center;
    }
  
    nav#nav-menu ul {
      flex-direction: column;
      gap: 10px;
      padding: 10px 0;
    }
  
    nav#nav-menu.active {
      display: flex; /* Show nav when active */
    }
  }