/* Base styles */
:root {
    --wayii-black: #000000;
    --wayii-turquoise: #40E0D0;
    --wayii-blue: #0EA5E9;
    --wayii-dark: #003951;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-600: #4B5563;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--wayii-black);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to bottom, #ffffff, var(--gray-50));
    padding: 2rem;
}

.logo {
    height: 80px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Common styles for icon and heading alignment */
.icon-heading {
    display: flex; /* Use flexbox for layout */
}

.icon {
    width: 48px; /* Adjust icon size as needed */
    height: 48px;
    margin-right: 15px; /* Space between icon and heading */
    color: var(--wayii-turquoise); /* Use your color scheme */
}

/* Services Section */
.services {
    padding: 5rem 1rem;
    background: white;
}

.services h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack icon and heading vertically */
    align-items: flex-start; /* Align items to the start */
    background: linear-gradient(to bottom right, var(--gray-50), white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    cursor: pointer;
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.service-card .icon-heading {
    width: 100%; /* Full width for alignment */
}

.service-card h3 {
    margin: 0;
    display: block;
    text-align: center;
    margin-left: 0;
    max-width: 100%;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--gray-600);
    clear: both;
}

@media (min-width: 1024px) { /* Adjust the breakpoint as necessary */
    .services-grid {
        display: grid; /* Use grid layout */
        grid-template-columns: repeat(2, 1fr); /* Two columns */
        gap: 20px; /* Adjust the gap between items */
    }
}

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 4rem;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 1rem;
    background: linear-gradient(to bottom, var(--gray-50), white);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.testimonial {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.testimonial p::before {
    content: "“";
}

.testimonial p::after {
    content: "”";
}

.testimonial.active {
    display: block;
}

.testimonial p {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--gray-600);
}

.author {
    font-weight: 600;
    color: var(--wayii-black);
}

.company {
    color: var(--gray-600);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #D1D5DB;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot:hover {
    background-color: #9CA3AF;
}

.dot.active {
    background-color: var(--wayii-turquoise);
}


.email-link {
    color: var(--wayii-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.email-link:hover {
    color: var(--wayii-turquoise);
}

.services-overview {
    background: linear-gradient(to bottom, var(--gray-50), white);
    padding: 5rem 1rem;
}

.service-detail {
    position: relative;
    max-width: 800px; /* Adjust as needed for your layout */
    margin: 40px auto; /* Center the sections */
    padding: 40px;
    background-color: white; /* Ensure a white background for contrast */
    border-radius: 8px;
}

.service-detail::before {
    content: ""; /* Empty content for the pseudo-element */
    position: absolute;
    top: 0; /* Align to the top */
    height: 8px; /* Height of the border */
    width: 50%; /* Cover half the width */
    left: 0; /* Default to left side for odd sections */
    border-top-left-radius: 8px;
    border-top: 1px solid var(--wayii-turquoise);
}

.service-detail::after {
    content: ""; /* Empty content for the pseudo-element */
    position: absolute;
    top: 0; /* Align to the top */
    height: 50%; /* Cover the top half */
    width: 8px; /* Width of the border */
    left: 0; /* Align to the left side for even sections */
    border-left: 1px solid var(--wayii-turquoise);
    border-top-left-radius: 8px;
}

.service-detail ul, .modal-body ul {
    list-style-type: none; /* Remove default list points */
    padding: 0; /* Remove padding */
}

.service-detail:nth-child(odd) {
    text-align: left; /* Align odd sections to the left */
}

.service-detail:nth-child(even) {
    display: flex;
    flex-direction: column;
}

.service-detail:nth-child(even)::before {
    left: auto; /* Reset left*/
    right: 0; /* Align to the right side for even sections */
    border-top: 1px solid var(--wayii-turquoise);
    border-top-right-radius: 8px;
    border-top-left-radius: 0px;
}
.service-detail:nth-child(even)::after {
    left: auto;
    right: 0;
    border-left: 0px;
    border-right: 1px solid var(--wayii-turquoise);
    border-top-right-radius: 8px;
}

.service-detail:nth-child(even) .icon-heading {
    flex-direction: row-reverse;
    text-align: right;
}

.service-detail:nth-child(even) .service-list {
    display: flex;
    justify-content: flex-end;
    text-align: left;
}

.sub-service {
    margin: 1rem 0px;
}

.service-list > ul {
    list-style-type: disclosure-closed;
    padding: 0; 
}

h4 {
    margin: 1rem 0px;
}

hr {
    border: 1px solid var(--wayii-turquoise);
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    color: var(--gray-600);
    background: white;
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-up {
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: both;
}

/* Modal */
.modal {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    display: none; /* Hidden by default */
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px; /* Optional: set a max width for the modal */
    position: absolute; /* Position absolute for centering */
    top: 50%; /* Move it down 50% from the top */
    left: 50%; /* Move it right 50% from the left */
    transform: translate(-50%, -50%); /* Adjust to center it */
    border-radius: 0.75rem;
}

.modal-body {
    padding: 1rem;
}

.modal span.close {
    position: absolute; 
    top: 10px; 
    right: 10px; 
    cursor: pointer;
}
.modal span.close>svg {
    width: 24px;
    height: 24px;
    color: rgb(156 163 175 / 1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonial p {
        font-size: 1.125rem;
    }
}
