/* styles.css */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Arial', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 80px; /* Adjust based on header height */
}

.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    padding: 20px;
    background: url('images/feature1.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

.hero-content {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px 40px;
    border-radius: 10px;
    animation: fadeIn 1s ease-in;
}

.hero-content h1 {
    font-size: 3em;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.5em;
}


.scroll-indicator {
    margin-top: 20px;
    text-align: center;
    animation: fadeInUp 2s forwards;
    opacity: 1; /* Ensure it's initially visible */
    transition: opacity 1s, transform 1s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Ensure contents are centered vertically */
    position: relative;
    color: white; /* Ensure text color is white for better contrast */
}

.scroll-indicator.highlight {
    background-color: rgba(0, 0, 0, 0.7); /* Added background for contrast */
    padding: 10px 20px;
    border-radius: 5px;
}

.scroll-indicator span {
    font-size: 1.2em;
    display: block;
    margin-bottom: 10px;
    line-height: 1.5em; /* Adjust line-height for better vertical alignment */
}

.scroll-indicator .arrow {
    width: 30px;
    height: 30px;
    border: solid white;
    border-width: 0 5px 5px 0;
    display: inline-block;
    padding: 5px;
    transform: rotate(45deg);
    transition: transform 1s, opacity 1s;
}

.features-section .feature-item {
    display: flex;
    justify-content: center; /* Change justify to space-between for even spacing */
    align-items: center;
    margin: 20px 0; /* Adjust margins for better spacing */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    flex-direction: row; /* Default direction */
}

.features-section .feature-item.feature-reverse {
    text-align: left;
}

.features-section .feature-item img {
    width: 40%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.features-section .feature-description {
    width: 50%;
    padding: 0 20px;
    text-align: left; /* Ensure text aligns properly */
}

.features-section .feature-description h2 {
    font-size: 2em;
    color: #2c3e50;
}

.features-section .feature-description p {
    font-size: 1.2em;
    color: #34495e;
}

/* Media Query for small screens */
@media (max-width: 768px) {
    .features-section .feature-item {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items in column layout */
    }

    .features-section .feature-item img,
    .features-section .feature-description {
        width: 100%; /* Full width on small screens */
        padding: 10px 0; /* Adjust padding */
        text-align: center; /* Center text for better aesthetics */
    }
    /* Correct stacking order for feature-reverse on small screens */
    .features-section .feature-item.feature-reverse {
        flex-direction: column; /* Ensure it stacks the same as non-reverse */
    }
    
    /* Add spacing between text and image for clarity */
    .features-section .feature-item.feature-reverse .feature-description {
        order: 2; /* Text below the image */
    }
    .features-section .feature-description {
        padding: 20px; /* Ensure enough padding for readability */
    }
    .features-section .feature-item.feature-reverse img {
        order: 1; /* Image above the text */
    }
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
