/* --- Global Styles & Variables --- */
:root {
    --primary-color: #00aeff; /* A vibrant blue */
    --secondary-color: #0a2049; /* Dark blue for depth */
    --accent-color: #00f5d4; /* A bright teal/cyan for highlights */
    --light-color: #f4f4f4;
    --dark-color: #1a1a2e; /* Very dark blue/purple - main background */
    --text-color: #e0e0e0;
    --text-dark: #333;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --container-width: 1100px;
    --section-padding: 60px 0;
}

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

body {
    font-family: var(--font-secondary);
    line-height: 1.7;
    background-color: var(--dark-color);
    color: var(--text-color);
    overflow-x: hidden; /* Prevent horizontal scroll from AOS */
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: var(--container-width);
    margin: auto;
    padding: 0 20px;
    overflow: hidden; /* Clear floats */
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; font-weight: 900; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-padding {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--light-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.bg-light {
    background-color: var(--secondary-color); /* Slightly lighter dark */
    color: var(--text-color);
}
.bg-light .section-title {
    color: var(--light-color);
}

.bg-dark {
    background-color: var(--dark-color);
    color: var(--text-color);
}
.bg-dark .section-title {
    color: var(--light-color);
}


.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px; /* Pill shape */
    text-transform: uppercase;
    font-weight: 700;
    font-family: var(--font-primary);
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 174, 255, 0.3);
}

.cta-button:hover {
    background: var(--accent-color);
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 245, 212, 0.4);
}

.cta-button-light {
    background: var(--light-color);
    color: var(--dark-color);
    box-shadow: 0 5px 15px rgba(244, 244, 244, 0.2);
}
.cta-button-light:hover {
    background: var(--accent-color);
    color: var(--dark-color);
    box-shadow: 0 8px 20px rgba(0, 245, 212, 0.4);
}

/* --- Header/Navigation --- */
#main-header {
    background: rgba(26, 26, 46, 0.85); /* Slightly transparent dark */
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

#main-header.scrolled {
    background: var(--secondary-color); /* Solid on scroll */
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

#main-header .logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
}
#main-header .logo:hover {
    color: var(--primary-color);
}

#main-header nav ul {
    display: flex;
}

#main-header nav ul li {
    margin-left: 25px;
}

#main-header nav ul li a {
    color: #fff;
    padding: 5px 10px;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
    border-bottom: 2px solid transparent;
}

#main-header nav ul li a:hover,
#main-header nav ul li a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

#main-header nav ul li a.cta-nav {
    background: var(--primary-color);
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    border-bottom: none;
}
#main-header nav ul li a.cta-nav:hover {
    background: var(--accent-color);
    color: var(--dark-color);
}

#mobile-menu-toggle {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}


/* --- Hero Section --- */
#hero {
    height: 100vh;
    min-height: 600px;
    background: url('../images/hero-bg.jpg') no-repeat center center/cover; /* Replace with your AI image */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-top: 80px; /* Account for fixed header */
}

#hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 26, 46, 0.7), rgba(10, 32, 73, 0.85)); /* Dark gradient overlay */
    z-index: 1;
}

#hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

#hero .sub-headline {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* --- Video Overlay Styles --- */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}
.video-overlay-content {
    position: relative;
    background-color: #000;
    padding: 0; /* No padding if video is 100% width/height of this */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-width: 900px; /* Max width of video container */
    width: 90%;     /* Responsive width */
    overflow: hidden; /* Ensures rounded corners clip the video */
}
/* Style the video element itself */
.video-overlay-content video {
    display: block; /* Removes extra space below video */
    width: 100%;
    height: auto; /* Maintain aspect ratio based on width */
    border-radius: 8px; /* Match parent if padding is 0 */
}
.close-video-btn {
    position: absolute;
    top: -35px;
    right: -5px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    z-index: 1001; /* Above video content */
}
.close-video-btn:hover {
    color: #ccc;
}


/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    text-align: center;
}

.feature-item {
    background: var(--secondary-color);
    padding: 2rem 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 174, 255, 0.2);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 174, 255, 0.2);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* New style for image-based feature icons */
.feature-icon-img {
    width: 60px;  /* Adjust width as needed */
    height: 60px; /* Adjust height as needed */
    margin: 0 auto 1rem auto; /* Centers the image and adds bottom margin */
    display: block; /* Ensures margin:auto works for centering */
    object-fit: contain; /* Or 'cover', depending on your image and desired look */
}

.feature-item h3 {
    color: var(--light-color);
    margin-bottom: 0.5rem;
}

/* --- How It Feels Section --- */
.how-it-feels-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.how-it-feels-item {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: var(--dark-color); /* Darker cards on lighter section background */
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.how-it-feels-item:nth-child(even) {
    flex-direction: row-reverse;
}

.how-it-feels-image {
    flex: 1;
    max-width: 40%; /* Adjust as needed */
}
.how-it-feels-image img {
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
    height: 250px; /* Example fixed height */
    /* 
      AI IMAGE PLACEHOLDER: 
      Ensure your AI images for this section are visually distinct and fit a roughly landscape aspect ratio.
      Example: images/how-it-feels-login.jpg, images/how-it-feels-ai-run.jpg, etc.
      These should be mockups or artistic representations.
    */
    background-color: #333; /* Placeholder BG if image fails to load */
}


.how-it-feels-text {
    flex: 1.5;
}
.how-it-feels-text h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
}

/* --- Testimonials Section --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-item {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.testimonial-item blockquote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--light-color);
    opacity: 0.9;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
}

/* --- FAQ Section --- */
.faq-accordion {
    max-width: 800px;
    margin: auto;
}

.faq-item {
    background: var(--dark-color);
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid rgba(0, 174, 255, 0.1);
}

.faq-question {
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--light-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer p {
    padding-bottom: 1rem; /* Add padding when open */
    color: var(--text-color);
    opacity: 0.9;
}
.faq-answer.open {
    /* max-height will be set by JS to scrollHeight */
    padding-top: 0.5rem; 
}


/* --- Contact Form Section --- */
.contact-form {
    max-width: 700px;
    margin: 2rem auto 0;
    background: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -2rem auto 2rem; /* Pull up under title */
    color: var(--text-color);
    opacity: 0.8;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light-color);
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--primary-color);
    background-color: var(--dark-color); /* Darker input fields */
    color: var(--text-color);
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.3);
}

.contact-form button[type="submit"] {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

#form-status {
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
}
#form-status.success { color: var(--accent-color); }
#form-status.error { color: #ff6b6b; }

/* --- Closing Banner Section --- */
#closing-banner {
    padding: 5rem 0;
    text-align: center;
    /* Optional: Add a subtle background pattern or image here */
    background: var(--dark-color) url('../images/closing-bg.jpg') no-repeat center center/cover;
}

#closing-banner h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

#closing-banner p {
    font-size: 1.2rem;
    color: var(--light-color);
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Footer --- */
/* #main-footer {
    background: var(--secondary-color);
    color: var(--text-color);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

#main-footer p {
    margin-bottom: 0.5rem;
    opacity: 0.7;
} */


/* --- Footer --- */
#main-footer {
    background: var(--secondary-color);
    color: var(--text-color);
    text-align: center;
    padding-top: 2rem; /* Space at the very top of the footer */
    padding-bottom: 1.5rem; /* Space at the very bottom of the footer */
    font-size: 0.9rem;
}

#main-footer .footer-meta {
    margin-bottom: 0.5rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}


/* --- Contact Info Section --- */
.contact-info {
    margin-top: 1.5rem; /* Space above the contact info block */
    padding-bottom: 1.5rem; /* Space between contact items and the bottom border */
    border-bottom: 1px solid var(--text-color-lighter, rgba(255, 255, 255, 0.2)); /* Bottom border */
    opacity: 0.9;
    line-height: 1.6;
    /* Default text-align is center (inherited from #main-footer) */
    /* Children will stack vertically by default */
}

/* Direct children of .contact-info (address, p tags) */
.contact-info > * {
    margin-bottom: 1rem; /* Space between items when stacked (mobile) */
}

/* Remove bottom margin from the last stacked item */
.contact-info > *:last-child {
    margin-bottom: 0;
}

.contact-info address {
    font-style: normal; /* Remove default italics */
    /* text-align: right; */
}

.contact-info strong {
    /* display: block; Makes "Address:", "Phone:", "Email:" take their own line */
    margin-bottom: 0.25rem; /* Small space below the label */
    margin-right: 0.3rem;
}

.contact-info a {
    color: inherit; /* Inherits --text-color */
    text-decoration: none;
}

.contact-info a:hover,
.contact-info a:focus {
    text-decoration: underline;
    opacity: 0.8;
}

/* --- Responsive: Horizontal Layout for Contact Info on Larger Screens --- */
@media (min-width: 768px) { /* Adjust this breakpoint as needed */
    .contact-info {
        display: flex;
        justify-content: space-around; /* Distributes space around items */
        align-items: flex-start;
        gap: 1.5rem; /* Space between the flex items */
        /* text-align: left; Override footer's text-align: center for items within contact-info */
    }

    /* For flex items (address, p tags) on larger screens */
    .contact-info > * {
        flex: 1; /* Allows items to grow/shrink. */
        /* max-width: 300px; /* Optional: If you want to constrain item width */
        margin-bottom: 0; /* Reset bottom margin, gap handles horizontal spacing */
    }
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    #hero h1 { font-size: 2.8rem; }
    #hero .sub-headline { font-size: 1.1rem; }
    .how-it-feels-item {
        flex-direction: column !important; /* Stack on smaller screens, important to override nth-child */
    }
    .how-it-feels-image {
        max-width: 100%;
    }
     .how-it-feels-image img {
        height: 200px; /* Adjust for mobile */
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2.section-title { font-size: 2rem; }

    #main-header nav ul {
        display: none; /* Hide desktop nav */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background: var(--secondary-color);
        padding: 1rem 0;
    }
    #main-header nav ul.active {
        display: flex; /* Show when active */
    }

    #main-header nav ul li {
        margin: 0;
        text-align: center;
    }
    #main-header nav ul li a {
        display: block;
        padding: 0.8rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    #main-header nav ul li a.cta-nav {
        margin: 1rem auto;
        display: inline-block; /* Keep pill shape */
        width: auto;
    }
    #mobile-menu-toggle {
        display: block; /* Show hamburger */
    }

    .features-grid {
        grid-template-columns: 1fr; /* Stack features */
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    #hero { padding-top: 60px; min-height: 500px; }
    #hero h1 { font-size: 2rem; }
    #hero .sub-headline { font-size: 1rem; }
    .cta-button { padding: 10px 20px; font-size: 0.9rem;}
    .section-padding { padding: 40px 0; }
    .section-title { font-size: 1.8rem; margin-bottom: 2rem; }
    
    .how-it-feels-item { padding: 1rem; }
    .testimonial-item { padding: 1.5rem; }
}