/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Open Sans', sans-serif;
    color: #f5f5f5;
    background-color: #0f0e0e;
    line-height: 1.6;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

h1, h2, h3 {
    font-family: 'Lora', serif;
    margin-bottom: 1rem;
}

/* Hero Section */
/*
 * Hero Section
 *
 * The hero section now uses an animated gradient instead of a static
 * background image. The gradient is composed of deep burgundy and
 * near‑black shades to reinforce the Aqlaris brand palette. The
 * animation simulates a subtle video effect by moving the gradient
 * horizontally over time. This provides motion without relying on an
 * external video file, which would be difficult to host in this environment.
 */
.hero {
    position: relative;
    min-height: 70vh;
    /* Animated gradient background reminiscent of a hero video */
    background: linear-gradient(45deg, #5e1a2e, #0f0e0e, #231014);
    background-size: 200% 200%;
    animation: gradientAnimation 10s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fce8e6;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero button {
    background-color: #5e1a2e; /* deep burgundy */
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.hero button:hover {
    background-color: #842b43;
}

/*
 * Keyframes for the animated gradient used in the hero section. The
 * gradient shifts from left to right and back again over ten
 * seconds, creating a continuous loop. You can adjust the timing or
 * direction to refine the effect.
 */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Founder Section */
.founder {
    background-color: #1a0e10;
    color: #e5e5e5;
}
.founder h2 {
    color: #f9cfc0;
}
.founder p {
    max-width: 800px;
}

/* Quiz Section */
.quiz {
    background-color: #10080a;
    color: #e0e0e0;
}
.quiz form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}
.quiz label {
    font-weight: 600;
}
.quiz input, .quiz select {
    padding: 0.5rem;
    border: 1px solid #5e1a2e;
    background-color: #231014;
    color: #fff;
    border-radius: 4px;
}
.quiz button {
    align-self: flex-start;
    background-color: #5e1a2e;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}
.quiz button:hover {
    background-color: #842b43;
}
#result {
    margin-top: 1rem;
    background-color: #231014;
    padding: 1rem;
    border-radius: 4px;
}
/* Hide elements with the hidden class, including chat widget */
.hidden {
    display: none !important;
}

/* Services Section */
.services {
    background-color: #140a0c;
    color: #f5f5f5;
}
.services h2 {
    color: #f9cfc0;
    text-align: center;
    margin-bottom: 2rem;
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.service-card {
    background-color: #231014;
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}
.service-card h3 {
    margin-bottom: 0.5rem;
    color: #f9cfc0;
}

/* Testimonials Section */
.testimonials {
    background-color: #1a0e10;
    color: #e5e5e5;
}
.testimonials h2 {
    color: #f9cfc0;
    text-align: center;
    margin-bottom: 1.5rem;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.testimonial-grid blockquote {
    background-color: #231014;
    padding: 1.5rem;
    border-left: 5px solid #5e1a2e;
    border-radius: 4px;
    font-style: italic;
}
.testimonial-grid cite {
    display: block;
    margin-top: 0.5rem;
    font-weight: 700;
    color: #c59db2;
}

/* CTA Section */
.cta {
    background-color: #5e1a2e;
    text-align: center;
    padding: 3rem 0;
}
.cta h2 {
    margin-bottom: 1rem;
}
.cta p {
    margin-bottom: 1.5rem;
}
.cta button {
    background-color: #f9cfc0;
    color: #5e1a2e;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.cta button:hover {
    background-color: #ffe5dc;
}

/* Footer */
.footer {
    background-color: #0f0e0e;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.8rem;
}
.footer nav a {
    margin: 0 0.5rem;
    color: #c59db2;
    text-decoration: none;
}
.footer nav a:hover {
    text-decoration: underline;
}

/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 300px;
    max-height: 400px;
    background-color: #231014;
    border: 1px solid #5e1a2e;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
}
.chat-header {
    background-color: #5e1a2e;
    color: #fff;
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}
.chat-message {
    background-color: #842b43;
    color: #fff;
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    width: fit-content;
}
.chat-message.user {
    background-color: #5e1a2e;
    align-self: flex-end;
}
.chat-input {
    display: flex;
    border-top: 1px solid #5e1a2e;
}
.chat-input input {
    flex: 1;
    padding: 0.5rem;
    border: none;
    background-color: #231014;
    color: #fff;
}
.chat-input button {
    background-color: #5e1a2e;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
}
@media (min-width: 600px) {
    .testimonial-grid {
        grid-template-columns: 1fr 1fr;
    }
}
