html {
    scroll-behavior: smooth;
}

/* Basic Reset & Body Styles */
body, h1, h2, h3, p, ul {
    margin: 0;
    box-sizing: border-box;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}

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

/* Header & Navigation */
.top-bar {
    background: #004a99;
    color: #fff;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.contact-info span {
    margin-right: 15px;
}

.contact-info .fas {
    margin-right: 5px;
}

/* Header & Navigation */
.navbar {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: relative; /* Ensures z-index is respected */
    z-index: 1000; /* Keeps navbar on top */
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0056b3;
    text-decoration: none;
}

.logo img {
    height: 60px; /* Adjust this value to resize your logo */
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.nav-links a.active-link {
    color: #0056b3;
}

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero {
    position: relative;
    color: #fff;
    padding: 6rem 0;
    text-align: center;
    overflow: hidden;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out;
    z-index: -1;
}

.hero-text {
    animation: fadeInDown 1s ease-out;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    color: #eee;
    margin-bottom: 1rem;
}

.slideshow-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #0056b3;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0,0,0,0.3);
}

.prev {
  left: 0;
  border-radius: 0 3px 3px 0;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* Services Section */
.services {
    padding: 4rem 0;
    text-align: center;
}

.services h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    color: #666;
}

.service-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background: #fff;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    flex-basis: calc(33.333% - 14px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 2.5rem;
    color: #0056b3;
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 1rem;
    color: #0056b3;
}

/* Staggering card animation */
.service-cards .card:nth-child(2) { animation-delay: 0.2s; }
.service-cards .card:nth-child(3) { animation-delay: 0.4s; }
.service-cards .card:nth-child(4) { animation-delay: 0.1s; }
.service-cards .card:nth-child(5) { animation-delay: 0.3s; }
.service-cards .card:nth-child(6) { animation-delay: 0.5s; }

/* About Us Section */
.about-us-section {
    padding: 4rem 0;
    background: #fff;
}

.about-us-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-us-text {
    flex: 1;
}

.about-us-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #0056b3;
}

.about-us-text p {
    margin-bottom: 1rem;
}

.about-us-text strong {
    display: block;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: #333;
}

.about-us-image {
    flex: 1;
}

.about-us-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 4rem 0;
    background: #f9f9f9;
}

.choose-us-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.choose-us-image {
    flex: 1;
}

.choose-us-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.choose-us-text {
    flex: 1;
}

.choose-us-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0056b3;
}

.features-list {
    list-style: none;
    margin-top: 1.5rem;
}

.features-list li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.features-list .fa-check-circle {
    color: #28a745;
    margin-right: 10px;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    text-align: center;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 15px 20px;
}

.faq-item summary {
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none; /* Remove default marker */
    position: relative;
    padding-right: 30px;
}

.faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome/Safari */
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    font-size: 1.5rem;
    color: #0056b3;
}

.faq-item[open] summary::after {
    content: '−';
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background: #f9f9f9;
    text-align: center;
}

.contact-content {
    display: flex;
    gap: 40px;
    text-align: left;
    margin-top: 2rem;
}

.contact-details {
    flex: 1;
}

.contact-details h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #0056b3;
}

.contact-details p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-details .fas {
    margin-right: 15px;
    margin-top: 5px;
    color: #0056b3;
}

.contact-form {
    flex: 1.5;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 1rem;
}

.contact-form button {
    background: #0056b3;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #004a99;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    text-align: left;
}

.footer-section {
    flex: 1;
    padding: 0 20px;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
}

.footer-section .fas {
    margin-right: 10px;
}

.copyright {
    text-align: center;
    border-top: 1px solid #555;
    padding-top: 1rem;
    margin-top: 1rem;
}

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

/* --- Responsive Design --- */
@media (max-width: 820px) {
    .container {
        width: 90%;
    }

    /* Hamburger Menu */
    #menu-icon {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        background: #fff;
        flex-direction: column;
        text-align: center;
        transition: all 0.4s ease;
        border-top: 1px solid #eee;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    /* Layout Stacking */
    .about-us-content, .choose-us-content {
        flex-direction: column;
    }

    .choose-us-content .choose-us-image {
        order: -1; /* Move image to top in "Why Choose Us" section */
    }

    .card {
        flex-basis: calc(50% - 10px);
    }

    .hero {
        height: 60vh;
    }

    .hero-text h1 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .top-bar {
        font-size: 0.8rem;
    }

    .contact-info {
        text-align: center;
    }

    .contact-info span {
        display: block;
        margin-bottom: 5px;
    }

    .card {
        flex-basis: 100%;
    }

    .contact-content {
        flex-direction: column;
    }
}

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