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

body {
    background-color: black; /* Solid black background */
    color: white; /* Ensure text remains readable */
    font-family: Arial, sans-serif; /* Ensure consistent font style */
    min-height: 100vh; /* Maintain viewport height */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Dynamic Header */
.dynamic-header {
    position: fixed;
    top: -200px; /* Initially hidden */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(0, 0, 0, 0.8); /* Slightly transparent black */
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: top 0.5s ease-in-out; /* Smooth animation */
}

.dynamic-header.show {
    top: 0; /* Slide in on scroll */
}

.dynamic-header .logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dynamic-header .logo-container img {
    width: 40px;
}

.dynamic-header .logo-container .title {
    font-size: 1.5rem;
    font-weight: bold;
}

.dynamic-header .buttons-container {
    display: flex;
    gap: 1rem;
}

.dynamic-header .buttons-container a img {
    width: 130px;
    height: auto; /* Maintain aspect ratio */
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 8rem 1rem 4rem; /* Add extra top padding for dynamic header */
    background-color: transparent;
}

.hero .app-icon {
    width: 120px;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
    color: white;
}

.hero .download-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.hero .app-store-btn img,
.hero .google-play-btn img {
    width: 150px;
    height: auto; /* Maintain aspect ratio */
}

/* Features Section */
.features-section {
    padding: 4rem 2rem 6rem; /* Add more padding for the bottom */
    text-align: center;
    background: transparent;
    color: white;
}

.features-title-container {
    margin: 0 auto 1rem; /* Center-align and add bottom margin */
    max-width: 800px;
}

.features-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.features-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 3rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    justify-content: center;
    align-items: center;
    padding: 0 5rem; /* Add larger horizontal padding */
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    width: 100%;
    padding: 0 3rem; /* Add extra space to center-align content */
}

.feature-item:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-image-container {
    width: 400px; /* Container width */
    height: calc(400px * 2688 / 1242); /* Maintain image aspect ratio */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the entire image fills the container */
}

.feature-text-container {
    flex: 1;
    text-align: left;
    color: white;
}

.feature-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 1rem;
}

.feature-description {
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.6;
}

/* Footer Section */
.footer {
    text-align: center;
    padding: 2rem 1rem; /* Increased bottom padding */
    background-color: transparent;
    color: #fff;
    margin-top: 8rem; /* Add extra space above footer */
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer p {
    font-size: 0.9rem;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    body {
        background-color: black; /* Keep black background for mobile */
        min-height: 100vh; /* Maintain viewport height */
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }

    .dynamic-header {
        padding: 0.5rem 1rem;
    }

    .dynamic-header .logo-container img {
        width: 30px; /* Adjusted for mobile */
    }

    .dynamic-header .title {
        font-size: 1.2rem;
    }

    .dynamic-header .buttons-container a img {
        width: 100px; /* Adjust button size */
    }

    .hero {
        padding: 6rem 1rem 2rem; /* Reduce padding for mobile */
    }

    .features-list {
        gap: 2rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 0; /* Remove extra padding on mobile */
    }

    .feature-item:nth-child(even) {
        flex-direction: column;
    }

    .feature-image-container {
        width: 280px; /* Smaller width for mobile */
        height: calc(280px * 2688 / 1242); /* Maintain aspect ratio */
    }

    .feature-title {
        font-size: 1.5rem;
    }

    .feature-description {
        font-size: 1rem;
    }

    .footer p {
        font-size: 0.8rem; /* Smaller text for footer */
    }
}
