/* Basic Reset & Global Styles */
:root {
    --primary-color: #005A9C; /* A professional blue */
    --secondary-color: #00A8E8; /* A lighter, vibrant blue */
    --accent-color: #FFC107; /* Yellow/Gold for accents like CTAs */
    --dark-text: #333;
    --light-text: #f4f4f4;
    --bg-light: #f9f9f9;
    --bg-dark: #2c3e50; /* Darker blue/gray for contrast */
    --font-primary: 'Arial', sans-serif; /* Consider Google Fonts like 'Open Sans' or 'Lato' */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    overflow: hidden; /* Clear floats */
    padding: 0 20px;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* Header & Navigation */
header {
    background: #fff;
    color: var(--dark-text);
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000; /* Ensure header stays on top */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary-color);
    font-weight: bold;
}
/* Optional: if using an image logo */
/* header .logo img {
    height: 50px;
} */

header nav ul {
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: var(--dark-text);
    font-weight: 500;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.nav-button {
    background: var(--primary-color);
    color: var(--light-text) !important; /* Important to override link color */
    padding: 8px 15px !important; /* Important to override link padding */
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-button:hover {
    background: var(--secondary-color);
    border-bottom: none !important; /* Remove hover border */
}


/* Hero Section */
#hero {
    background: var(--bg-dark); /* Or use: url('../images/hero-background.jpg') no-repeat center center/cover; */
    color: var(--light-text);
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

#hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

#hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--dark-text);
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background: #ffdb58; /* Lighter gold */
    transform: translateY(-2px);
}

/* Services Section */
#services {
    padding: 4rem 0;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-item {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.service-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* About Us Section */
#about {
    padding: 4rem 0;
}

.about-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text ul {
    list-style: none;
    padding-left: 0;
}

.about-text ul li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.about-text ul li i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.about-image { /* Optional: if you add an image */
    flex: 1;
    text-align: center;
}
.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* CTA Section (bottom) */
#contact-cta {
    background: var(--primary-color);
    color: var(--light-text);
    padding: 4rem 0;
    text-align: center;
}

#contact-cta h2 {
    color: var(--light-text);
    margin-bottom: 1rem;
}

#contact-cta p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.cta-button-secondary {
    display: inline-block;
    background: var(--light-text);
    color: var(--primary-color);
    padding: 12px 25px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.cta-button-secondary:hover {
    background: var(--secondary-color);
    color: var(--light-text);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}
/* Gradio App Related*/

.chat-interface-card {
    background: #f8fafc;         /* Or your site background */
    border-radius: 12px;
    padding: 24px 16px;
    margin-top: 2em;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    text-align: center;
}
.chat-heading {
    margin-bottom: 8px;
    color: #0076d6; /* Accent color, customize as needed */
    font-size: 1.4em;
    font-weight: bold;
}
.chat-subheading {
    font-size: 1em;
    color: #555;
    margin-bottom: 16px;
}

/* Footer */
footer {
    background: var(--dark-text);
    color: var(--light-text);
    text-align: center;
    padding: 2rem 0;
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--secondary-color);
}
footer a:hover {
    text-decoration: underline;
}

/* Contact Form Page Specific Styles */
#contact-form-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

#contact-form-section .container {
    max-width: 700px; /* Narrower container for form */
}

#contact-form-section h2 {
    margin-bottom: 1rem;
}
#contact-form-section p {
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--dark-text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
}

.form-group button[type="submit"] {
    /* Re-use cta-button styles or define new ones */
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-text);
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.form-group button[type="submit"]:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}


/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    header nav ul {
        flex-direction: column;
        margin-top: 1rem;
    }
    header nav ul li {
        margin: 0.5rem 0;
    }
    .nav-button {
        display: block;
        margin-top: 0.5rem;
    }

    #hero h2 {
        font-size: 2.2rem;
    }
    #hero p {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr; /* Stack services */
    }
    
    .about-content {
        flex-direction: column;
    }
    .about-image {
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    #hero {
        height: auto;
        padding: 3rem 15px;
    }
    #hero h2 {
        font-size: 1.8rem;
    }
    #hero p {
        font-size: 0.9rem;
    }
    .cta-button, .cta-button-secondary {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    .form-group input, .form-group select, .form-group textarea, .form-group button {
        font-size: 0.9rem;
    }
}
