/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.35;
    color: #333;
}

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

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    margin-bottom: 0.8em;
    color: #222;
}

h1 {
    font-size: 2.8em;
}

h2 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 1.2em;
}

h3 {
    font-size: 1.4em;
}

/* Navbar */
.navbar {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* Slightly softer shadow */
    border-bottom: 1px solid #eee; /* Add subtle border */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    text-decoration: none;
    display: inline-block;
}

.logo-img {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

.navbar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.navbar nav ul li {
    margin-left: 25px;
}

.navbar nav ul li a {
    color: #555;
    font-weight: 500;
}

.navbar nav ul li a:hover {
    color: #007bff;
    text-decoration: none;
}

.cta-button-nav {
    background-color: #007bff;
    color: #fff !important; /* Override specificty */
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.cta-button-nav:hover {
    background-color: #0056b3;
    color: #fff !important; /* Override specificty */
    text-decoration: none;
}

/* Hero Section */
.hero {
    /* Subtle layered gradient for texture */
    background-color: #f8f9fa; /* Base color in case gradients aren't supported */
    background-image: 
        radial-gradient(circle at 1% 1%, hsla(210, 50%, 98%, 0.8) 0px, transparent 50%), /* Light blueish spot top-left */
        radial-gradient(circle at 99% 99%, hsla(300, 30%, 97%, 0.7) 0px, transparent 50%), /* Light pinkish spot bottom-right */
        radial-gradient(circle at 50% 50%, hsla(0, 0%, 100%, 0.5) 0px, transparent 30%);   /* Faint white center spot */
    color: #333; 
    text-align: center; /* Default alignment for mobile */
    padding: 60px 0; /* Reduced padding */
    position: relative; 
    overflow: hidden; 
}

/* Remove absolute positioning for video */
.hero-video {
    /* position: absolute; */
    /* top: 50%; */
    /* left: 50%; */
    /* min-width: 100%; */
    /* min-height: 100%; */
    width: 100%; /* Make video responsive within its container */
    height: auto;
    max-width: 450px; /* Example max width */
    border-radius: 8px; /* Optional: add rounded corners */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Optional: subtle shadow */
    /* z-index: 0; */
    /* transform: translateX(-50%) translateY(-50%); */
    /* background-size: cover; */
}

/* Remove overlay */
/* 
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1; 
}
*/

/* Adjust container and content alignment for mobile first */
.hero .hero-container { /* Use the specific class */
    position: relative;
    z-index: 2; 
}

.hero-content h1 {
    margin-bottom: 0.5em;
    color: #222; /* Keep text dark */
    text-shadow: none; /* Ensure no text shadow */
}

.hero-content .subtitle {
    font-size: 1.2em;
    color: #555; /* Keep text dark */
    text-shadow: none; 
    margin-bottom: 1.5em;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 12px 25px;
    font-size: 1.1em;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    position: relative; 
    z-index: 2; 
}

/* Hide video on mobile */
.hero-media {
    display: none; 
    margin-top: 40px; /* Add space if stacked */
}

/* Desktop Layout (Side-by-side) */
@media (min-width: 768px) {
    .hero {
        padding: 80px 0; /* Reduced padding for desktop */
    }
    
    .hero .hero-container {
        display: flex;
        align-items: center;
        gap: 40px; /* Space between text and video */
    }

    .hero-content {
        flex: 1; 
        text-align: left; 
    }
    
    .hero-content h1,
    .hero-content .subtitle {
         margin-left: 0;
         margin-right: 0; /* Remove auto margins */
         max-width: none; /* Allow full width within flex item */
    }

    .hero-media {
        display: block; 
        flex-basis: 40%; /* Adjust basis if needed */
        aspect-ratio: 1.1 / 1; /* Make aspect ratio slightly taller */
        overflow: hidden;      /* Hide the parts of the video outside the container */
        margin-top: 0;
        border-radius: 8px; /* Keep rounded corners for the container */
        box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Keep shadow */
    }

    .hero-video {
        width: 100%;            /* Make video fill the container width */
        height: 100%;           /* Make video fill the container height */
        object-fit: cover;      /* Cover the container, cropping excess */
        object-position: center top; /* Align video to the top */
        display: block;         /* Ensure it behaves as a block element */
        border-radius: 0;       /* Remove radius from video if container has it */
        box-shadow: none;       /* Remove shadow from video if container has it */
    }
}

/* Features Section */
.features {
    padding: 60px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.feature-item i { /* Style for icons if you add them */
    font-size: 2.5em;
    color: #007bff;
    margin-bottom: 15px;
}

.feature-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* About Section */
.about {
    background-color: #f8f9fa;
    padding: 60px 0;
    text-align: center;
    position: relative; /* Needed for pseudo-element positioning */
    overflow: hidden; /* Ensure pseudo-element doesn't leak */
    z-index: 0; /* Establish stacking context */
}

/* Add subtle logo pattern as background texture */
.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(logo.svg);
    background-repeat: repeat;
    background-size: 180px auto; /* Adjust size of repeating logo */
    opacity: 0.04; /* Make logo very faint */
    z-index: -1; /* Place behind the content */
}

.about .container { /* Ensure container content is above pseudo-element */
    position: relative; 
    z-index: 1;
}

.about h2 {
     margin-bottom: 0.8em; /* Restore default */
}

.about p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.faq {
    padding: 60px 0;
    background-color: #fff; /* Or keep alternating like #f8f9fa */
}

.faq h2 {
    margin-bottom: 1.5em;
}

.faq-list {
    max-width: 800px; /* Constrain width for readability */
    margin: 0 auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden; /* Ensures contained borders */
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 18px 25px;
    font-weight: 600;
    font-size: 1.1em;
    cursor: pointer;
    position: relative;
    list-style: none; /* Remove default marker */
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

/* Add a simple chevron indicator */
.faq-question::after {
    content: '+'; /* Simple plus/minus or use SVG/Font Awesome */
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4em;
    /* color: #007bff; */ /* Original bright blue */
    color: hsl(211, 60%, 55%); /* Desaturated blue */
    transition: transform 0.3s ease;
}

.faq-item[open] > .faq-question::after {
    content: '−'; /* Change to minus when open */
    /* transform: translateY(-50%) rotate(45deg); */ /* Example rotation for chevron */
}

.faq-item[open] > .faq-question {
    background-color: #f8f9fa; /* Keep background consistent when open */
}

.faq-answer {
    padding: 5px 25px 20px 25px;
    background-color: #fff; 
    color: #555;
    line-height: 1.45;
}

.faq-answer p:first-child {
    margin-top: 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: #333;
    color: #eee;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    margin: 0;
    font-size: 0.9em;
} 