
/* Base styles */
:root {
    --primary-color: #007bff;
    --text-color: #333;
    --nav-bg-color: #fff;
    --nav-text-color: #007bff;
}

body, html {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

nav {
    z-index: 10;
}

.logo a {
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.5em;
}

.logo span {
    color: var(--text-color);
}

.nav-toggle {
    display: none;
    position: absolute;
    right: 20px;
    top: 20px;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links li {
    margin: 0 15px;
}

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

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

/* Responsive nav toggle */
.hamburger {
    display: none;
    width: 30px;
    height: 2px;
    background-color: var(--text-color);
}

/* For mobile screens */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        background-color: var(--nav-bg-color);
        right: 0;
        left: 0;
        text-align: center;
        padding: 20px 0;
        top: 60px;
        flex-direction: column;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .nav-toggle {
        display: block;
    }

    .nav-toggle .hamburger {
        display: block;
    }

    .nav-links.active {
        display: flex;
    }
}

#hero {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: #333;
    padding: 50px 20px;
    text-align: center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-color: #fff;
    background-repeat: no-repeat;
    background-size: 50% 50%, 50% 50%;
    background-position: 0 0, 100% 0, 100% 100%, 0 100%;
    background-image: linear-gradient(#6e8efb, #6e8efb), linear-gradient(#a777e3, #a777e3);
    z-index: 0;
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

.hero-buttons button {
    background-color: #ffffff;
    color: #6e8efb;
    border: 2px solid #ffffff;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hero-buttons button:hover {
    background-color: transparent;
    color: white;
}

@media (min-width: 768px) {
    #hero {
        padding: 100px 20px;
    }

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

    .hero-content p {
        font-size: 1.25rem;
    }
}

#about {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 50px 20px;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.about-btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 10px 25px;
    margin-top: 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.about-btn:hover {
    background-color: #0056b3;
}

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

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

@media screen and (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
    }

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

    .about-text {
        order: 2;
    }

    .about-image img {
        margin-top: 20px;
    }
}

/* Features Overview Section */
#features {
    background-color: #f9f9f9;
    padding: 50px 0;
    text-align: center;
}

.features-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.feature {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: calc(50% - 10px);
    max-width: 300px;
    padding: 20px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

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

.icon {
    font-size: 48px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .features-container {
        flex-direction: column;
    }

    .feature {
        width: 80%;
        margin: 0 auto; /* Center align the feature boxes on smaller screens */
    }
}

#how-it-works {
    background-color: #f8f9fa;
    text-align: center;
    padding: 50px 20px;
}

#how-it-works h2 {
    margin-bottom: 40px;
    color: #333;
}

.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.step {
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 10px;
    width: calc(20% - 20px);
    padding: 20px;
    transition: transform 0.3s ease;
}

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

.step img {
    width: 80px;
    height: 80px;
    margin: auto;
}

.step h3 {
    color: #007bff;
    margin: 20px 0 10px;
}

.step p {
    font-size: 14px;
    color: #666;
}

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

    .step {
        width: 80%;
    }
}

/* FAQ Section Styling */
#faq {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

#faq h2 {
    text-align: center;
    margin-bottom: 40px;
}

.faq-container {
    border-top: 2px solid #dee2e6;
}

.faq-item {
    border-bottom: 1px solid #dee2e6;
    padding: 10px 0;
}

.faq-question {
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    margin-bottom: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
    transition: background-color 0.3s ease;
}

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

.faq-answer {
    display: none;
    padding: 20px;
    background-color: #e9ecef;
    border-radius: 5px;
    margin-bottom: 10px;
}

.faq-answer p {
    margin: 0;
}

#roadmap {
    background-color: #f9f9f9;
    color: #333;
    padding: 50px 10%;
}

#roadmap h2 {
    text-align: center;
    margin-bottom: 40px;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #007bff;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.container.left {
    left: 0;
}

.container.right {
    left: 50%;
}

.container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid #007bff;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.container.right::after {
    left: -17px;
}

.content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.content h3 {
    margin-top: 0;
}

.content span {
    display: block;
    margin-top: 10px;
    color: #999;
}

@media screen and (max-width: 600px) {
  .container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .container::before {
    left: 60px;
  }

  .container.right::after, .container.right::before {
    left: 60px;
  }
}

#community {
    background-color: #f0f0f0;
    text-align: center;
    padding: 50px 20px;
}

#community h2 {
    color: #333;
    margin-bottom: 10px;
}

#community p {
    color: #666;
    margin-bottom: 30px;
}

.community-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    margin: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    width: 300px;
}

.card:hover {
    transform: scale(1.05);
}

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

.card-content {
    padding: 20px;
}

.btn {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    margin-top: 15px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #0056b3;
}

footer {
    background-color: #222;
    color: #fff;
    padding: 40px 0;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
}

.footer-content > div {
    margin: 20px;
}

.footer-links ul,
.footer-social a {
    list-style: none;
    padding: 0;
}

.footer-links ul li,
.footer-social a {
    margin: 10px 0;
}

.footer-links ul li a,
.footer-social a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social a {
    font-size: 1.5em;
}

.footer-social a:hover,
.footer-links ul li a:hover {
    color: #007bff;
}
