/* General Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth; /* Enable smooth scrolling for anchor links */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    /* Soft gradient background */
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4 {
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #1a2a45; /* Darker blue for headings */
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; font-weight: 400; color: #4a5a75; }

p {
    margin-bottom: 1rem;
    color: #555;
}

a {
    text-decoration: none;
    color: #007bff; /* Standard link blue */
    transition: color 0.3s ease; /* Smooth transition for link hover */
}

a:hover {
    color: #0056b3; /* Darker blue on hover */
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utility Classes */
.cta-button {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth transition */
}

.cta-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px); /* Slight lift effect */
}

/* Header Styles */
#main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease; /* Transition for potential scroll effects */
}

#main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
}

#main-header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2a45;
}

#main-header nav ul {
    display: flex;
}

#main-header nav ul li {
    margin-left: 2rem;
}

#main-header nav ul li a {
    color: #333;
    font-weight: 600;
    padding-bottom: 5px;
    position: relative;
}

#main-header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease; /* Underline animation */
}

#main-header nav ul li a:hover::after,
#main-header nav ul li a.active::after { /* Add 'active' class via JS if needed */
    width: 100%;
}

#menu-toggle {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* Main Content & Sections */
main {
    padding-top: 80px; /* Adjust based on header height */
}

section {
    padding: 4rem 2rem;
    max-width: 1100px;
    margin: 2rem auto; /* Spacing between sections */
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover */
}

section:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Glassmorphism Section Style */
.glass-section {
    background: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
    backdrop-filter: blur(15px); /* The core glass effect */
    -webkit-backdrop-filter: blur(15px); /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Subtle border */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15); /* Soft shadow */
    border-radius: 15px;
    /* Explanation:
       - background: rgba(...) provides the semi-transparent base color.
       - backdrop-filter: blur(...) creates the frosted glass look by blurring content behind the element.
       - border: adds a subtle edge definition.
       - box-shadow: gives depth.
    */
}

/* About Section Specifics */
#about h1 {
    margin-bottom: 0.2rem;
}
#about h2, #about h3, #about h4 {
    margin-bottom: 0.5rem;
}
#about p {
    max-width: 800px; /* Limit text width for readability */
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}
.strengths {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    justify-content: center; /* Center items if they wrap */
}
.strengths span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #333;
    background-color: rgba(255, 255, 255, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.strengths i {
    color: #007bff;
}


/* Specialties Section Specifics */
#specialties .specialty-list {
    list-style: disc; /* Use standard bullets */
    margin-left: 20px; /* Indent list */
    margin-bottom: 1.5rem;
    columns: 2; /* Display in two columns on wider screens */
    column-gap: 2rem;
}
#specialties .specialty-list li {
    margin-bottom: 0.5rem;
    color: #444;
}
.commitment {
    font-style: italic;
    font-weight: 600;
    color: #1a2a45;
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

/* Testimonials Section Specifics */
#testimonials {
    text-align: center;
}
.testimonial-carousel {
    position: relative;
    overflow: hidden;
    max-width: 700px;
    margin: 1.5rem auto;
    min-height: 150px; /* Ensure space for content */
}
.testimonial {
    display: none; /* Hide all testimonials by default */
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.5s ease-in-out; /* Fade transition */
    /* Explanation:
       - display: none hides inactive slides.
       - opacity: 0 starts the fade-in effect.
       - transition: defines the fade duration and timing function (ease-in-out).
    */
}
.testimonial.active {
    display: block; /* Show the active testimonial */
    opacity: 1;
}
.testimonial p {
    font-style: italic;
    margin-bottom: 1rem;
    color: #333;
}
.testimonial span {
    font-weight: 600;
    color: #0056b3;
}
.carousel-controls {
    margin-top: 1rem;
}
.carousel-controls button {
    background: none;
    border: 1px solid #ccc;
    color: #555;
    padding: 8px 12px;
    margin: 0 0.5rem;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.carousel-controls button:hover {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Contact Section Specifics */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}
.contact-form, .contact-info {
    flex: 1;
    min-width: 300px; /* Ensure minimum width on smaller screens */
}
.contact-form h3, .contact-info h3 {
    margin-bottom: 1.5rem;
    color: #1a2a45;
}
.contact-form form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #444;
}
.contact-form form input,
.contact-form form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.7); /* Slightly transparent inputs */
    transition: border-color 0.3s ease;
}
.contact-form form input:focus,
.contact-form form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
.contact-form form button {
    width: 100%;
    margin-top: 0.5rem;
}
#form-status {
    margin-top: 1rem;
    font-weight: 600;
}
.contact-info .cta-button {
    margin-top: 1rem;
    margin-bottom: 2rem;
}
.map-container {
    margin-top: 2rem;
}
.map-container iframe {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    background-color: rgba(26, 42, 69, 0.8); /* Darker footer background */
    color: #f0f0f0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    #specialties .specialty-list {
        columns: 1; /* Single column on medium screens */
    }
}

@media (max-width: 768px) {
    #main-header nav {
        padding: 0.8rem 1rem;
    }
    #main-header nav ul {
        display: none; /* Hide nav links */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95); /* Slightly less transparent for readability */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    #main-header nav ul.active {
        display: flex; /* Show when active */
    }
    #main-header nav ul li {
        margin: 0;
        text-align: center;
    }
    #main-header nav ul li a {
        display: block;
        padding: 0.8rem 1rem;
        border-bottom: 1px solid #eee;
    }
     #main-header nav ul li a::after {
        display: none; /* Remove underline effect on mobile */
    }
    #main-header nav ul li a:hover {
        background-color: #f0f0f0;
    }
    #menu-toggle {
        display: block; /* Show hamburger menu */
    }

    section {
        padding: 3rem 1rem;
        margin: 1.5rem auto;
    }

    .strengths {
        flex-direction: column;
        align-items: flex-start; /* Align items left */
        gap: 1rem;
    }

    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }

    body {
        font-size: 15px;
    }

    section {
        padding: 2rem 1rem;
    }

    .cta-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}
