/* styles.css */
:root {
    --primary-blue: #0000FF;
    --primary-red: #FF0000;
    --text-color: #333;
    --background-color: #f4f4f4;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
}

/* Header styles */
header {
    background-color: var(--primary-blue);
    color: white;
    padding: 0rem 0;
}

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

nav ul {
    display: flex;
    list-style: none;
}

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

nav a {
    color: white;
    text-decoration: none;
}

.hero {
    position: relative;
    overflow: hidden;
    height: 100vh; /* Full viewport height */
    display: flex; /* Added to enable flexbox for centering */
    justify-content: center; /* Centering horizontally */
    align-items: center; /* Centering vertically */
    text-align: center; /* Centering text */
}

.hero-content {
    background-color: rgba(0, 0, 0, 0.7); /* Dark semi-transparent background */
    padding: 2rem;
    border-radius: 10px;
    color: white; /* Ensure text color is white for better visibility */
    max-width: 90%; /* Prevent it from being too wide */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1; /* Keep the video behind content */
    transform: translate(-50%, -50%);
    object-fit: cover; /* Cover the entire section */
}

/* Optional: Adjust the height for smaller screens */
@media (max-width: 768px) {
    .hero {
        height: 400px;  /* Reduce height on smaller screens */
    }
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-red);
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

/* Section Background Colors */
.faq-section, .testimonials-section, .how-it-works-section {
    background-color: var(--background-light-grey);
}

.form-section, .community-section, .featured-swaps-section {
    background-color: white;
}

h2 {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.join {
    color: white;
}

/* FAQ */
.faq {
    margin-bottom: 2rem;
}

.faq h3 {
    color: var(--primary-red);
}

.faq p {
    margin-bottom: 1rem;
}

/* Form Section */
form label, form input, form button {
    display: block;
    width: 50%;
    margin-bottom: 1rem;
}

form input, form button {
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}

form button {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    cursor: pointer;
}

form button:hover {
    background-color: #333;
}




/* Community Section */
.community-section ul {
    list-style-type: disc;
    margin-left: 20px;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-red);
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

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

/* Testimonials */
blockquote {
    background-color: white;
    padding: 1rem;
    border-left: 5px solid var(--primary-red);
    margin-bottom: 2rem;
}

/* How It Works */
ol {
    list-style-type: decimal;
    margin-left: 20px;
}

ol li {
    margin-bottom: 1rem;
}

/* Featured Swaps */
.featured-swaps-section ul {
    list-style-type: none;
}

.featured-swaps-section ul li {
    padding: 1rem;
    border: 1px solid #ddd;
    margin-bottom: 1rem;
}

/* Features section styles */
.features {
    padding: 4rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.feature {
    flex-basis: calc(33.333% - 20px);
    margin-bottom: 2rem;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Email capture section styles */
.email-capture {
    background-color: var(--primary-blue);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.email-capture h2 {
    margin-bottom: 2rem;
}

.email-form {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

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

.email-form button {
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    transition: background-color 0.3s ease;
}

.email-form button:hover {
    background-color: #cc0000;
}

/* Footer styles */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* How It Works Section */
.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem 0;
}

.step-card {
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    flex: 1;
    min-width: 250px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card h3 {
    margin: 1rem 0;
    color: var(--primary-blue);
}

.step-card p {
    font-size: 1rem;
    color: var(--text-color);
}

.step-card i {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .steps-container {
        flex-direction: column;
        align-items: center;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .feature {
        flex-basis: 100%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* Ensure that the logo does not take up too much space */
.logo {
    max-width: 220px;  /* Set a smaller max width for the logo */
    height: auto;  /* Auto-adjust the height to maintain aspect ratio */
    width: 100%;  /* Ensure it scales down on smaller screens */
}
