/* General & Typography */
:root {
    --primary-color: #2c3e50; /* Dark Blue */
    --secondary-color: #3498db; /* Bright Blue */
    --light-grey: #f4f6f8;
    --dark-blue: #29313a;
    --text-color: #444;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

h1 { font-size: 2.5rem; color: #fff; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; text-align: center; }
h3 { font-size: 1.5rem; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: var(--primary-color);
    color: #fff;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    /* --- START of added/modified rules for logo icon --- */
    display: flex; /* Makes the logo text and icon align nicely */
    align-items: center; /* Vertically centers the icon with the text */
    /* --- END of added/modified rules for logo icon --- */
}

/* --- START of new rule for logo icon --- */
.logo-icon {
    height: 1.5em; /* This makes the icon's height proportional to the font-size of its parent (.logo) */
    width: auto;   /* Maintains the aspect ratio */
    margin-right: 0.5rem; /* Adds some space between the icon and the text */
    /* You can adjust 'height' and 'margin-right' to your preference */
}
/* --- END of new rule for logo icon --- */

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.video-container video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Overlay for readability */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin: 1rem 0 2rem;
}

.cta-button {
    background: var(--secondary-color);
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
    display: inline-block;
}

.cta-button:hover {
    background: #2a87c1;
}

/* Content Sections */
.content-section {
    padding: 80px 0;
}

.bg-light-grey {
    background: var(--light-grey);
}

.bg-dark-blue {
    background: var(--dark-blue);
    color: #fff;
}

.text-white {
    color: #fff;
}

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

/* About & Impact Flexbox Layouts */
.about-flex, .impact-flex {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-flex .about-text, .impact-flex .impact-list {
    flex: 1;
}

.about-flex .about-image, .impact-flex .impact-image {
    flex: 1;
    text-align: center;
}

.about-flex img, .impact-flex img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
}

.cta-button-alt {
    background: #fff;
    color: var(--secondary-color);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.cta-button-alt:hover {
    background: var(--light-grey);
}

/* New waitlist form styles */
.waitlist-form {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.waitlist-form input[type="email"] {
    flex-grow: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
    outline: none;
}

.waitlist-form button[type="submit"] {
    padding: 12px 25px;
    border: none;
    border-radius: 0 5px 5px 0;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.waitlist-form button[type="submit"]:hover {
    background: var(--light-grey);
}

/* Chatbot Styles */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    height: 400px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    z-index: 1000;
}

#open-chatbot-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999;
}

.chatbot-header {
    background: var(--primary-color);
    color: #fff;
    padding: 15px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    text-align: center;
    font-weight: bold;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.chatbot-body {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.message {
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    max-width: 80%;
}

.bot-message {
    background: var(--light-grey);
    align-self: flex-start;
}

.user-message {
    background: var(--secondary-color);
    color: #fff;
    align-self: flex-end;
}

.chatbot-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
}

#user-input {
    flex-grow: 1;
    border: none;
    padding: 8px;
    outline: none;
}

#send-btn {
    background: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}


/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    .nav-links {
        /*
        This rule hides the main nav links on smaller screens.
        You might want a hamburger menu icon to toggle their visibility.
        */
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    .about-flex, .impact-flex {
        flex-direction: column;
    }
    #chatbot-container, #open-chatbot-btn {
        right: 10px;
        bottom: 10px;
    }
}

@media (max-width: 600px) {
    .waitlist-form {
        flex-direction: column;
        gap: 10px;
    }

    .waitlist-form input[type="email"],
    .waitlist-form button[type="submit"] {
        border-radius: 5px;
        width: 100%;
        text-align: center;
    }
}