/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    line-height: 1.6;
    color: #f4f4f4;
    background-color: #070707;
}

/* Header */
header {
    background-color: #070707;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.logo a {
    display: inline-block;
}

.logoImg {
    max-width: 200px;
}

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

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

nav ul li a {
    color: #f4f4f4;
    text-decoration: none;
}

/* Hero Section */
.hero {
    position: relative;
    background-image: url('./hero-img.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f4f4f4;
    padding: 0 20px;
    /* Added transparent background to cover the whole hero section */
    background-color: rgba(7, 7, 7, 0.8);
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 7, 7, 0.8);
    z-index: 1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-text {
    width: 50%;
    padding: 20px;
    /* Removed background-color from hero-text */
    /* background-color: rgba(7, 7, 7, 0.8); */
    border-radius: 5px;
}

.hero-text h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.hero-text p {
    margin-bottom: 20px;
    color: #ccc;
}

.hero button {
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    background-color: #f4f4f4;
    color: #070707;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.hero button:hover {
    background-color: #ccc;
}

.hero-image {
    width: 35%;
    max-width: 300px;
    margin-left: 20px;
}

.hero-image img {
    width: 100%;
    border-radius: 5px;
}

/* About Section */
#about {
    padding: 60px 20px;
    background-color: #141414;
    color: #f4f4f4;
    text-align: center;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

#about h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

#about p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #ccc;
}

#about img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 5px;
    margin-top: 30px;
}

/* Features Section */
#features {
    padding: 50px 20px;
    background-color: #070707;
    text-align: center;
}

#features h2 {
    margin-bottom: 40px;
}

.feature-container {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap onto the next line */
    justify-content: space-between; /* Distribute space evenly */
    align-items: flex-start;
    margin: 0 auto; /* Center the container */
    max-width: 1200px; /* Optional: limit the maximum width */
}

.feature-item {
    display: flex;
    flex-direction: column; /* Stack text and carousel vertically */
    align-items: center;
    background-color: #1e1e1e;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
    width: calc(50% - 20px); /* Two items per row with spacing */
    box-sizing: border-box; /* Include padding and border in width */
    margin-right: 20px;
}

.feature-item:nth-child(2n) {
    margin-right: 0; /* Remove right margin on every second item */
}

.feature-text {
    width: 100%;
    text-align: center;
}

.feature-text h3 {
    margin-bottom: 10px;
}

.feature-text p {
    color: #ccc;
}

.feature-carousel {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center; /* Center the carousel */
    margin-top: 20px;
}

.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 250px; /* Adjust as needed */
}

.carousel-track-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    padding: 0;
    margin: 0;
    list-style: none; /* Remove bullets */
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(7, 7, 7, 0.7);
    border: none;
    color: #f4f4f4;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 2;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

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

    .feature-item {
        width: 100%; /* Full width on mobile */
        margin-right: 0;
    }

    .feature-text, .feature-carousel {
        text-align: center;
    }

    .carousel {
        max-width: 300px; /* Smaller carousel on mobile */
    }
}


/* Testimonials Section */
#testimonials {
    padding: 50px 20px;
    text-align: center;
    background-color: #070707;
}

.testimonials {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    flex-wrap: wrap;
}

.testimonial {
    width: 45%;
    padding: 20px;
    background-color: #1e1e1e;
    color: #f4f4f4;
    border-radius: 5px;
    margin: 10px;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 10px;
}

.testimonial h4 {
    text-align: right;
    color: #ccc;
}

/* Download Section */
#download {
    padding: 50px 20px;
    text-align: center;
    background-color: #141414;
}

#download h2 {
    margin-bottom: 20px;
}

#download button {
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    background-color: #f4f4f4;
    color: #070707;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#download button:hover {
    background-color: #ccc;
}

/* Footer */
footer {
    background-color: #070707;
    color: #f4f4f4;
    text-align: center;
    padding: 20px;
}

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

    .hero {
        /* Added padding-top to create space between navbar and hero title */
        padding-top: 60px;
    }

    .hero-text, .hero-image {
        width: 100%;
        margin: 10px 0;
    }

    .hero-text h1 {
        font-size: 2em;
    }
    
    .hero-text p {
        font-size: 1em;
    }

    .feature-cards {
        flex-direction: column;
    }

    .feature-card {
        width: 100%;
    }

    .testimonial {
        width: 100%;
    }
}
