/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Variables */
    --primary-dark: #005689;
    --primary: #0078c0;
    --primary-light: #54a9e2;
    --secondary: #5be49b;
    --secondary-light: #9fffcc;
    --accent: #ffb347;
    --white: #ffffff;
    --light-gray: #f5f7fa;
    --mid-gray: #e0e5ec;
    --dark-gray: #4a5568;
    --black: #2d3748;

    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    
    /* Sizing */
    --container-width: 1200px;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

h2:hover::after {
    width: 100px;
}

p {
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 5rem 0;
}

/* Added for new pages title sections */
.page-title-section {
    background-color: var(--light-gray);
    padding: 4rem 0;
    text-align: center;
    margin-top: 80px; /* Adjust if header height changes */
}
.page-title-section h1 {
    font-size: 2.8rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}
.page-title-section p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    max-width: 700px;
    margin: 0 auto;
}


.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    font-family: var(--heading-font);
    font-size: 0.9rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    z-index: -1;
    transition: width 0.3s ease;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 120, 192, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 120, 192, 0.4);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(91, 228, 155, 0.3);
}

.btn-secondary:hover {
    background-color: #4ad28d;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(91, 228, 155, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* ===== HEADER & NAVIGATION ===== */
header { /* This refers to the <header> element dynamically loaded */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo svg {
    width: 36px; /* Adjusted for new logo */
    height: 36px; /* Adjusted for new logo */
    margin-right: 10px;
}

.logo-text {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0;
}

.logo-text span {
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-gray);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(120deg, var(--white) 50%, var(--light-gray) 50%);
    overflow: hidden;
    padding-top: 80px; /* Height of fixed header */
}

.hero-content {
    width: 50%;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-image {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 45%; /* Can adjust if new SVG aspect ratio requires it */
    max-width: 500px; /* Example max width for new SVG */
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}
.hero-image svg{
    width: 100%;
    height: auto;
}


@keyframes float {
    0% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-53%) translateX(5px); /* Subtle change */
    }
    100% {
        transform: translateY(-50%) translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SERVICES OVERVIEW ===== */
.services-overview {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--light-gray);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    transform-origin: center;
    transition: transform 0.3s ease;
}
 .service-icon svg { /* Ensure SVGs scale within their container */
    width: 100%;
    height: 100%;
}


.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.service-description {
    font-size: 0.95rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.service-link {
    font-weight: 600;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.service-link::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.service-link:hover::after {
    transform: translateX(5px);
}

/* ===== WHY CHOOSE US ===== */
.why-choose-us {
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.why-choose-us::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: rgba(84, 169, 226, 0.1);
    z-index: 0;
}

.why-choose-us::after {
    content: '';
    position: absolute;
    bottom: -5%;
    right: -5%;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background-color: rgba(91, 228, 155, 0.1);
    z-index: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    background-color: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item .feature-icon svg { /* Ensure SVGs scale */
    width: 100%;
    height: 100%;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: rotate(10deg);
}

.feature-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    background-color: var(--white);
}

.testimonial-card {
    background-color: var(--light-gray);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    margin-bottom: 3rem; /* Applied only to this card, consider a wrapper if multiple */
}

.testimonial-quote {
    position: absolute;
    top: -15px;
    left: 2rem;
    width: 30px; /* Make sure the SVG inside scales */
    height: 30px; /* Make sure the SVG inside scales */
    fill: var(--primary);
    opacity: 0.2;
}
.testimonial-quote svg {
    width: 100%;
    height: 100%;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    background-color: var(--primary-light);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-weight: 600;
}

.author-details h4 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.author-details p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--primary);
}

/* ===== CALL TO ACTION ===== */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 5rem 0;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta h2::after {
    background: var(--white);
    left: 50%;
    transform: translateX(-50%);
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.cta .btn-secondary { /* This was already specific */
    background-color: var(--white);
    color: var(--primary);
}
.cta .btn-secondary:hover {
    background-color: var(--secondary); /* Keep original hover */
    color: var(--primary-dark);
}


/* ===== FOOTER ===== */
footer { /* This refers to the <footer> element dynamically loaded */
    background-color: var(--black);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo svg {
    width: 30px; /* Adjusted for new logo */
    height: 30px; /* Adjusted for new logo */
    margin-right: 10px;
    /* fill is handled by new SVG structure or direct path fill */
}

.footer-logo-text {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--white);
    margin: 0;
}

.footer-logo-text span {
    color: var(--secondary);
}

.footer-intro p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: flex-start; /* Changed to flex-start for better icon alignment */
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    margin-top: 3px; /* Adjust for vertical alignment */
    fill: var(--secondary); /* Explicit fill */
}

.social-links {
    display: flex;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: var(--white); /* Explicit fill */
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* ===== CONTACT FORM SPECIFIC STYLES (for contact.html) ===== */
.contact-form-section {
    padding: 3rem 0; /* Smaller padding if it's not a main section */
}
.contact-form-container {
    display: grid;
    grid-template-columns: 1fr; /* Default to 1 column */
    gap: 3rem;
    align-items: flex-start;
}
@media (min-width: 768px) {
    .contact-form-container {
        grid-template-columns: 1fr 1fr; /* Two columns on larger screens */
    }
}

.contact-info-column h3, .contact-form-column h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}
.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}
.contact-info-item svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
    margin-right: 1rem;
    flex-shrink: 0;
}
.contact-info-item p {
    margin-bottom: 0;
    color: var(--dark-gray);
}
.contact-info-item a {
    color: var(--primary);
}
.contact-info-item a:hover {
    color: var(--primary-dark);
}

.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-gray);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--mid-gray);
    border-radius: 8px;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 120, 192, 0.2);
}
.form-group textarea {
    min-height: 150px;
    resize: vertical;
}
#response-message {
    margin-top: 1rem;
    font-weight: 600;
}

/* About Page Specific Styles */
.about-content p, .service-detail-card p {
    font-size: 1.05rem;
    line-height: 1.7;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.team-member-card {
    background-color: var(--light-gray);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.team-member-card img, .team-member-card .placeholder-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
    background-color: var(--mid-gray); /* For placeholder */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--dark-gray);
}
.team-member-card h4 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}
.team-member-card span {
    font-size: 0.9rem;
    color: var(--primary);
    display: block;
}

/* Services Page Specific Styles */
.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
@media (min-width: 768px) {
    .service-detail-grid {
         /* grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); */ /* If cards are smaller */
    }
}

.service-detail-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align icon to left */
}

@media (min-width: 768px) {
    .service-detail-card {
        flex-direction: row; /* Icon next to text on larger screens */
    }
}
.service-detail-card .service-icon { /* Re-use service-icon style */
    width: 60px; /* Slightly smaller for detail page */
    height: 60px;
    margin-bottom: 1rem; /* Margin for mobile stack */
    margin-right: 0; /* Reset margin for mobile stack */
}
 .service-detail-card .service-icon svg {
    width: 100%;
    height: 100%;
}


@media (min-width: 768px) {
    .service-detail-card .service-icon {
        margin-right: 1.5rem; /* Margin for desktop layout */
        margin-bottom: 0;
        flex-shrink: 0;
    }
}

.service-detail-card .service-content h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}
.service-detail-card .service-content h3::after { /* Simpler underline for service details */
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--secondary);
    margin-top: 0.3rem;
}


/* ===== MEDIA QUERIES ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    .page-title-section h1 { font-size: 2.5rem; }


    h2 {
        font-size: 1.8rem;
    }

    .hero-content {
        width: 60%;
    }

    .hero-image {
        width: 40%;
        right: 2%; /* Adjust position slightly */
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 70px;
    }
    .hero { padding-top: 70px; }
    .page-title-section { margin-top: 70px; }


    .menu-toggle {
        display: block;
        z-index: 1001; /* Ensure it's above nav menu */
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen */
        flex-direction: column;
        background-color: var(--white);
        width: 80%;
        max-width: 300px; /* Max width for mobile menu */
        height: 100vh;
        padding: 80px 0 30px; /* Top padding to clear header */
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        align-items: center; /* Center items */
        justify-content: flex-start; /* Align to top */
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        margin: 1.5rem 0; /* Vertical spacing */
        width: 100%;
        text-align: center;
    }
    .nav-link {
        display: block; /* Make link take full width */
        padding: 0.5rem 0;
    }


    .hero {
        background: var(--white); /* Simpler background for mobile */
        text-align: center;
        min-height: auto; /* Adjust height */
        padding-bottom: 3rem;
    }

    .hero-content {
        width: 100%;
        padding: 2rem 0; /* Adjusted padding */
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        position: relative; /* Change from absolute */
        top: auto;
        right: auto;
        transform: none; /* Reset transform */
        width: 70%; /* Adjust width */
        max-width: 350px;
        margin: 2rem auto 0; /* Center and add margin */
        display: block;
        animation: none; /* Disable float on mobile if it causes layout issues */
    }
    
    .contact-form-container {
        grid-template-columns: 1fr; /* Force single column */
    }


    .service-card {
        padding: 1.5rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        margin: 0 auto 1rem; /* Center icon */
    }

    .footer-content {
        grid-template-columns: 1fr; /* Single column for footer items */
        gap: 2rem;
        text-align: center; /* Center footer content */
    }
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-contact p {
        justify-content: center;
    }
    .footer-logo, .social-links {
        justify-content: center;
    }

}

@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    .page-title-section { padding: 3rem 0; }
    .page-title-section h1 { font-size: 2rem; }
    .page-title-section p { font-size: 1rem; }


    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    .hero-buttons .btn {
        width: 80%;
        max-width: 250px;
    }

    .services-grid,
    .features-grid {
        grid-template-columns: 1fr; /* Single column for cards */
    }

    .hero-image {
        width: 80%; /* Further adjust hero image */
    }
}