:root {
    --primary-color: #9333ea; /* A vibrant purple */
    --secondary-color: #f8fafc; /* Bright white/light-gray for headings */
    --background-color: #0f172a; /* Dark slate blue */
    --card-background: #1e293b; /* Slightly lighter slate for cards/header */
    --light-gray: #ecf0f1;
    --white: #ffffff;
    --text-color: #cbd5e1; /* Lighter text color (slate 300) */
    --border-color: #334155; /* For subtle borders */
}

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

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

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

/* Header */
header {
    background: var(--card-background);
    padding: 1rem 0;
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.8rem;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

/* Call to Action Button */
.cta-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
    display: inline-block;
}

.cta-button:hover {
    background-color: #a855f7; /* purple-500 */
    transform: translateY(-2px);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
}

.nav-cta {
    padding: 0.5rem 1.2rem;
}

/* Hero Section */
#hero {
    padding: 5rem 0;
    background: transparent;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
}

/* Features Section */
#features {
    padding: 5rem 0;
    overflow: hidden; /* Prevent swiper overflow issues */
}

#features h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
}

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

.feature-card {
    background: var(--card-background);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    overflow: hidden;
    text-align: center;
    padding-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%; /* Make cards in swiper same height */
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border-color: rgba(147, 51, 234, 0.5);
}

.feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: 1.5rem 0 0.5rem;
}

.feature-card p {
    padding: 0 1.5rem;
    font-size: 0.95rem;
    flex-grow: 1; /* Allows footer to align */
}

/* Swiper Styles */
.feature-swiper {
    padding-bottom: 3rem; /* Space for pagination */
}

.swiper-slide {
    height: 450px; /* Allow slide to size to its content */
}

.swiper-pagination-bullet {
    background: var(--text-color);
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: #a855f7; /* purple-500 */
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 2rem; /* Make arrows a bit bigger */
    font-weight: 800;
}

/* Image Banner Section */
#image-banner {
    padding: 4rem 0;
}

.banner-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.banner-image-wrapper {
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.banner-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.banner-images img:hover {
    transform: scale(1.1);
}

/* Community CTA Section */
#community {
    background-color: transparent;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

#community h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

#community p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-color);
}

#community .cta-button {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 1.1rem;
}

#community .cta-button:hover {
    background-color: #a855f7; /* purple-500 */
    color: var(--white);
}

/* Footer */
footer {
    background: var(--background-color);
    color: var(--text-color);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .hero-text h1 {
        font-size: 2.5rem;
    }

    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }

    .nav-cta {
        display: none; /* Hide nav CTA on mobile to avoid clutter */
    }

    .banner-images {
        grid-template-columns: repeat(2, 1fr);
    }
}