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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --z-chat-toggle: 1000;
    --z-chat-box: 900;
    --light-bg: #f4f4f4;
    --space-unit: 1rem;
}



html {
    font-size: 16px;
}


body {
    color: var(--text-color);
    background-color: var(--light-bg);
}
/* Update all color references to use variables */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

h1 { margin-bottom: calc(var(--space-unit) * 1.5); }
p { margin: calc(var(--space-unit) * 1.25) 0; }
h2, h3, h4 {
    color: #2c3e50;
}
h1 {
    color: #f4f4f4;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    background-color: #2c3e50;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
}

button:hover {
    background-color: #34495e;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Header Styles */
header {
    background-color: #2c3e50;
    padding: 10px 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    font-size: 18px;
}

nav ul li a:hover {
    color: #3498db;
}

/* Hero Section Styles */
#hero {
    background: url('https://via.placeholder.com/1600x600') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 60px 20px;
}

#hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

#hero p {
    font-size: 18px;
    margin-bottom: 20px;
}

.cta-button {
    background-color: #3498db;
    color: #fff;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 5px;
}

.cta-button:hover {
    background-color: #2980b9;
}

/* Services Section Styles */
#services {
    padding: 40px 20px;
    text-align: center;
}

#services h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.service {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

}

.service h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service p {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}

button, .service, nav ul li a {
    transition: all 0.3s ease;
}

/* Contact Section Styles */
#contact {
    background-color: #fff;
    padding: 40px 20px;
}

#contact h2 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
}

form {
    max-width: 600px;
    margin: 0 auto;
}

label {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

textarea {
    resize: vertical;
}

button[type="submit"] {
    width: 100%;
}

/* Chatbot UI Styles */
#chatbox {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    display: none;
    flex-direction: column;
    z-index: 1000; /* Make sure it's on top */
}

/* Add this container for chat input elements */
#chat-input-container {
    display: flex;
    border-top: 1px solid #ddd;
}

#chat-header {
    background-color: #3498db;
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

#chat-header h4 {
    margin: 0;
}

#chat-messages {
    padding: 10px;
    height: 200px;
    overflow-y: auto;
    border-bottom: 1px solid #ddd;
}

#user-input {
    padding: 10px;
    border: none;
    flex: 1;
}

#send-btn {
    background-color: #3498db;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
}

#send-btn:hover {
    background-color: #2980b9;
}

#chat-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001; /* Ensures the button is clickable above other content */
}


#chat-toggle-btn:hover {
    background-color: #2980b9;
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* Media Queries */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        margin-top: 10px;
        padding: 10px 0;
        width: 100%;
    }

    nav ul li {
        margin: 10px 0;
    }

    #hero h1 {
        font-size: 28px;
    }

    #hero p {
        font-size: 16px;
    }

    .cta-button {
        font-size: 16px;
        padding: 12px 24px;
    }

    .services-container {
        grid-template-columns: 1fr;
    }
    html {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    #hero {
        padding: 40px 10px;
    }

    #hero h1 {
        font-size: 24px;
    }

    #hero p {
        font-size: 14px;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    #contact h2 {
        font-size: 24px;
    }

    button[type="submit"] {
        padding: 12px;
    }

    #chatbox {
        width: 250px;
        bottom: 10px;
    }
}
/* Updated Color Scheme */
:root {
    --primary-color: #1A2B40;    /* Deep Navy */
    --secondary-color: #2A5C84;  /* Professional Blue */
    --accent-color: #FF6B35;     /* Energetic Orange */
    --text-color: #2D3748;       /* Soft Black */
    --light-bg: #F8FAFC;         /* Cloud White */
    --success-green: #38A169;    /* Positive Green */
}

/* Modern Gradient Hero */
#hero {
    background: linear-gradient(155deg, var(--primary-color) 0%, #0F172A 100%);
    position: relative;
    overflow: hidden;
}

#hero:after {
    content: "";
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--light-bg);
    transform: skewY(-2deg);
}

/* Enhanced Service Cards */
.service {
    background: white;
    border: 1px solid #E2E8F0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.service-cta {
    color: var(--accent-color);
    font-weight: 600;
    margin-top: auto;
}

/* Modern Form Styling */
form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

input, textarea {
    border: 2px solid #CBD5E0 !important;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

/* Dynamic Chatbot */
#chat-header {
    background: var(--primary-color);
    padding: 1rem;
}

#chat-messages {
    background: #F7FAFC;
}

/* Interactive Buttons */
button, .cta-button {
    background: var(--accent-color);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover, .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Typography Enhancements */
h1, h2 {
    font-weight: 700;
    letter-spacing: -0.05em;
}

h1 {
    line-height: 1.2;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.contact-sub {
    color: var(--secondary-color);
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 2rem;
}