/* Basic Reset and Box-sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif; /* Professional and readable body font */
    line-height: 1.8;
    background-color: #f4f7f6; /* Light, professional background */
    color: #333; /* Dark, readable text */
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px; /* Slightly wider container for modern screens */
    margin: 0 auto;
    padding: 30px;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif; /* Modern and bold heading font */
    color: #2c3e50; /* Dark, professional heading color */
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.0rem;
}

h2 {
    font-size: 2.4rem;
}

h3 {
    font-size: 1.8rem;
}

p.section-intro {
    color: #777;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* Header Styles */
header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo a {
    font-size: 2.0rem;
    font-weight: 700;
    color: #3498db; /* Modern, vibrant logo color */
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
}

nav li {
    margin-left: 25px;
}

nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

nav a:hover {
    color: #3498db;
}

/* Hero Section Styles (Homepage) */
.hero {
    position: relative;
    overflow: hidden;
    padding: 150px 0;
    text-align: center;
    background-color: #e0f2f7; /* Light, inviting background */
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text contrast */
}

.hero .container {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    color: #fff; /* Light text for contrast */
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.button {
    display: inline-block;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
}

.button.primary {
    background-color: #3498db; /* Vibrant primary button color */
    color: #fff;
    box-shadow: 0 5px 10px rgba(52, 152, 219, 0.3);
}

.button.primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 7px 12px rgba(52, 152, 219, 0.4);
}

.button.secondary {
    background-color: #e74c3c; /* Distinct secondary button color */
    color: #fff;
    box-shadow: 0 5px 10px rgba(231, 76, 60, 0.3);
}

.button.secondary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 7px 12px rgba(231, 76, 60, 0.4);
}

.hero-button {
    font-size: 1.2rem;
    padding: 20px 45px;
}

/* Services Section Styles (Homepage) */
.services {
    padding: 80px 0;
    text-align: center;
    background-color: #fff;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.service-item {
    background-color: #f9f9f9;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

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

.service-item img.service-icon {
    width: 60px;
    height: auto;
    margin-bottom: 15px;
}

.service-item h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #3498db;
}

.service-item p {
    color: #666;
    line-height: 1.7;
}

/* Testimonials Section Styles (Homepage) */
.testimonials {
    padding: 80px 0;
    text-align: center;
    background-color: #f9f9f9;
    position: relative; /* For positioning navigation buttons */
}

.testimonial-carousel {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden; /* Hide slides that are off-screen */
    position: relative; /* For absolute positioning of slides */
}

.testimonial-slide {
    width: 100%; /* Each slide takes full width */
    flex-shrink: 0; /* Prevent slides from shrinking */
    display: none; /* Initially hide all slides */
    transition: transform 0.5s ease-in-out; /* Smooth transition for sliding */
    position: absolute; /* Allow for horizontal positioning */
    top: 0;
    left: 0;
}

.testimonial-slide.active {
    display: block; /* Show the active slide */
    position: relative; /* Reset positioning for the active slide */
}

.testimonial-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.testimonial-item .quote {
    font-style: italic;
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.testimonial-item .quote i {
    color: #3498db;
    margin: 0 5px;
}

.testimonial-item cite {
    display: block;
    margin-top: 15px;
    font-size: 0.95rem;
    color: #777;
    font-style: normal;
}

.testimonial-item cite img.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 10px;
}

.carousel-navigation {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.carousel-navigation button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #777;
    cursor: pointer;
    margin: 0 15px;
    transition: color 0.3s ease-in-out;
}

.carousel-navigation button:hover {
    color: #3498db;
}

/* Contact CTA Section Styles (Homepage) */
.contact-cta {
    background-color: #2c3e50; /* Dark, professional CTA background */
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.contact-cta h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.contact-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.8;
}

/* Video Section Styles (Homepage) */
.video-section {
    padding: 70px 0;
    text-align: center;
    background-color: #fff;
}

.video-section h2 {
    font-size: 2.4rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* Process Section Styles (Homepage) */
.process-section {
    padding: 80px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.process-section h2 {
    font-size: 2.4rem;
    margin-bottom: 40px;
    color: #2c3e50;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.process-step {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.process-step .step-number {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    line-height: 40px;
    font-weight: 600;
    margin-bottom: 15px;
}

.process-step h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #333;
}

.process-step p {
    color: #666;
    line-height: 1.7;
}

/* Footer Styles */
footer {
    background-color: #222; /* Dark footer background */
    color: #eee; /* Light footer text */
    padding: 60px 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3498db;
    text-decoration: none;
}

.footer-tagline {
    color: #777;
    font-size: 0.9rem;
    margin-top: 10px;
}

.footer-links h3,
.footer-services h3,
.footer-contact h3,
.footer-social h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
    padding: 0;
}

.footer-links li,
.footer-services li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.footer-links a:hover,
.footer-services a:hover {
    color: #3498db;
}

.footer-contact p {
    color: #ccc;
    margin-bottom: 10px;
}

.footer-contact a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.footer-contact a:hover {
    color: #3498db;
}

.footer-contact i {
    margin-right: 8px;
    color: #3498db;
}

.footer-social .social-links a {
    display: inline-block;
    margin-right: 10px;
    font-size: 1.2rem;
    color: #ccc;
    transition: color 0.3s ease-in-out;
}

.footer-social .social-links a:hover {
    color: #3498db;
}

.copyright-bar {
    background-color: #111;
    color: #888;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

.copyright-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.copyright-bar a {
    color: #888;
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s ease-in-out;
}

.copyright-bar a:hover {
    color: #eee;
}

/* FAQ Section Styles */
.faq-section {
    padding: 80px 0;
    background-color: #fff;
    text-align: center;
}

.faq-section h2 {
    font-size: 2.4rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.accordion-item {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.accordion-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    background-color: #f9f9f9;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.accordion-button:hover {
    background-color: #eee;
}

.accordion-title {
    flex-grow: 1;
}

.accordion-button .icon {
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml,%3Csvg fill%3D%22%23333%22 viewBox%3D%220 0 16 16%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath fill-rule%3D%22evenodd%22 d%3D%22M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.2s ease-in-out;
    margin-left: 10px;
}

.accordion-button[aria-expanded="true"] .icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    padding: 0 20px;
    background-color: #fff;
    overflow: hidden;
    transition: max-height 0.2s ease-out, padding 0.2s ease-out;
    border-top: 1px solid #ddd;
}

.accordion-content p {
    padding: 15px 0;
    color: #555;
    line-height: 1.7;
}

.accordion-item.active .accordion-content {
    padding-bottom: 15px;
}

/* Hero Section Styles for Secondary Pages */
.hero-secondary {
    background-color: #f9f9f9;
    padding: 100px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.hero-secondary .container {
    max-width: 800px;
}

.hero-secondary h1 {
    font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.hero-secondary p {
    font-size: 1.1rem;
    color: #777;
}

/* Detailed Services Section (services.html) */
.detailed-services {
    padding: 80px 0;
    background-color: #fff;
}

.detailed-services .container {
    max-width: 960px;
}

.service-details {
    margin-bottom: 40px;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.service-details:last-child {
    margin-bottom: 0;
}

.service-detailed-image {
    width: 100%; /* Make images responsive within their container */
    height: auto;
    margin-bottom: 20px;
    border-radius: 4px;
    display: block; /* Prevent extra space below inline images */
}

.service-details h3 {
    font-size: 2.0rem;
    color: #3498db;
    margin-bottom: 15px;
}

.service-details p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* About Us Section (about.html) */
.about-hero {
    extend: .hero-secondary; /* Inherit styles from secondary hero */
}

.about-content {
    padding: 80px 0;
    background-color: #fff;
}

.about-content .container {
    max-width: 960px;
}

.about-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.mission-vision {
    padding: 60px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.mission-vision .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.mission-vision div {
    padding: 30px;
}

.mission-vision h3 {
    font-size: 2.0rem;
    color: #3498db;
    margin-bottom: 15px;
}

.mission-vision p {
    color: #666;
    line-height: 1.7;
}

.team-section {
    padding: 80px 0;
    background-color: #fff;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.team-member {
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    background-color: #f9f9f9;
}

.team-member img {
    width: 100%; /* Responsive team member images */
    height: auto;
    border-radius: 50%;
    margin-bottom: 15px;
    display: block;
}

.team-member h4 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 5px;
}

.team-member p.title {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

/* Contact Us Section (contact.html) */
.contact-hero {
    extend: .hero-secondary; /* Inherit styles from secondary hero */
}

.contact-form-section {
    padding: 80px 0;
    background-color: #fff;
}

.contact-form-section .container {
    max-width: 700px;
}

.contact-form h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.contact-form p {
    color: #777;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.2s ease-in-out;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form button.primary {
    width: 100%;
    padding: 18px;
    display: block;
    text-align: center;
}

.contact-info-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.contact-info-section .container {
    max-width: 700px;
    text-align: center;
}

.contact-info-section h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 25px;
}

.contact-info-section p {
    color: #777;
    margin-bottom: 20px;
}

.contact-info-section ul {
    list-style: none;
    padding: 0;
}

.contact-info-section li {
    margin-bottom: 15px;
    color: #555;
}

.contact-info-section li strong {
    font-weight: 600;
    color: #333;
    margin-right: 5px;
}

.contact-info-section li a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.contact-info-section li a:hover {
    color: #2980b9;
}

.contact-info-section li i {
    margin-right: 8px;
    color: #3498db;
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        padding: 20px;
    }

    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        margin-bottom: 15px;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav li {
        margin: 10px 0;
    }

    .hero {
        padding: 120px 0;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .service-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .process-steps {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .copyright-bar .container {
        flex-direction: column;
    }

    .copyright-bar a {
        margin-left: 0;
        margin-top: 5px;
    }

    .mission-vision .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.4rem;
    }

    h2 {
        font-size: 2.0rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .button {
        padding: 14px 30px;
        font-size: 1rem;
    }

    .hero {
        padding: 100px 0;
    }

    .service-list {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .testimonial-slider {
        padding: 20px;
    }

    .contact-cta h2 {
        font-size: 2.2rem;
    }

    .service-details {
        padding: 20px;
    }

    .mission-vision div {
        padding: 20px;
    }
}
