/* Global Styles */
:root {
    --secondary-color: #f5f3ff;
    --text-color: #333;
    --light-text-color: #fff;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Use viewport height to ensure full height */
}

main {
    flex: 1 0 auto;
    padding-bottom: 2rem; /* Add some space above the footer */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1 0 auto; /* This will push the footer to the bottom */
}

/* Header Styles */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo img {
    height: 40px;
}

nav ul {
    list-style-type: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #0056b3;
}

.menu-toggle {
    display: none;
}

/* Main Content Styles */
main {
    flex: 1 0 auto;
    padding-top: 80px; /* Adjust based on your header height */
}

.section {
    padding: 4rem 5%;
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 2rem;
}

/* Hero Section Styles */
.hero, .about-hero, .services-hero, .contact-hero
{
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    margin-top: -80px;
    padding-top: 180px
}

.about-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/about.jpg');
}

.services-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/services.jpg');
}

.contact-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/contact-us.png');
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cta-buttons button {
    padding: 12px 24px;
    margin: 10px;
    font-size: 1em;
    background-color: #0056b3;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 100px;
}

.cta-buttons button:hover {
    background-color: #003d82;
}

/* Brand Banner Styles */
.brand-banner {
    background-color: #f8f8f8;
    padding: 2rem 0;
}

.brand-banner .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.brand-banner img {
    height: 50px;
    margin: 1rem;
    filter: grayscale(50%);
    transition: filter 0.3s;
}

.brand-banner img:hover {
    filter: grayscale(0%);
}

.why-us {
    padding-bottom: 6rem; /* Increased bottom padding */
}


/* Features and Services Styles */
.features-container, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature, .service-item {
    background-color: #f8f8f8;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover, .service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.feature h3, .service-item h3 {
    color: #0056b3;
    margin-bottom: 1rem;
}

.service-image {
    width: 100%;
    height: 100px;
    object-fit: scale-down;
}

.service-content {
    padding: 20px;
}

/* About Us Styles */
.about-us img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* About Content Styles */
.about-content {
    display: flex;
    padding: 4rem 0;
}

.about-text {
    flex: 1;
    padding-right: 2rem;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
}

.team-members {
    position: absolute;
    bottom: -20px;
    left: 20px;
    display: flex;
}

.team-members img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--light-text-color);
    margin-right: -15px;
}

/* Tab Buttons Styles */
.tab-buttons {
    display: flex;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    transition: color 0.3s;
}

.tab-btn:hover {
    color: #4a0e78;
}

.tab-btn.active {
    color: #4a0e78;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #4a0e78;
}

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

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Stats Section Styles */
.stats {
    background-color: #f5f3ff; /* Light purple background */
    padding: 4rem 0;
}

.stats .container {
    display: flex;
    justify-content: space-between;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #4a0e78; /* Dark purple for numbers */
    margin-bottom: 0.5rem;
}


/* Team Section Styles */
.team {
    padding: 4rem 0;
}

.team h2 {
    text-align: center;
    margin-bottom: 2rem;
}

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

.team-member {
    text-align: center;
}

.team-member img {
    width: 150px; /* Reduced size */
    height: 150px; /* Reduced size */
    border-radius: 50%; /* Make it circular */
    object-fit: cover; /* Ensure the image fills the circular container */
    margin-bottom: 1rem;
}

/* Contact Page Styles */
.contact {
    padding: 4rem 0;
}

.contact-content {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-left,
.contact-right {
    flex: 1;
}

.contact-info,
.contact-form {
    width: 50%;
}

.contact-info h2,
.contact-form h2 {
    margin-bottom: 1rem;
    font-size: 1.5em;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.contact-card {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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


.contact-card p {
    margin: 0;
}

.contact-card p strong {
    font-weight: bold;
    margin-right: 0.5rem;
}
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

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

.btn-primary {
    background-color: #0056b3;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #003d82;
}

/* Footer Styles */
footer {
    background-color: #f5f3ff; /* Light purple background */
    color: #333; /* Dark text color */
    padding: 2rem 0;
    flex-shrink: 0; /* Prevent footer from shrinking */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-left {
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 40px;
    margin-right: 1rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
}

.footer-contact a {
    color: #4a0e78; /* Dark purple for links */
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.footer-copyright {
    font-size: 0.9em;
}

.footer-divider {
    height: 30px;
    width: 1px;
    background-color: #ccc;
    margin: 0 2rem;
}

/* Ensure main content doesn't overlap with fixed footer */
main {
    padding-bottom: 100px; /* Adjust based on your footer height */
}

/* Media Queries */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5em;
        cursor: pointer;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 0;
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 1rem;
    }

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

    .about-text, .about-image {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .stats .container {
        flex-wrap: wrap;
    }

    .stat-item {
        flex: 0 0 50%;
        margin-bottom: 2rem;
    }

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

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .contact-content,
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-left {
        flex-direction: column;
        align-items: center;
        margin-bottom: 1rem;
    }

    .footer-logo {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .footer-contact,
    .footer-right {
        width: 100%;
        text-align: center;
        align-items: center;
    }

    .footer-copyright {
        margin-top: 1rem;
    }
}
